DIFFERENT REPORTING MACROS - NISHUNISARGA/UVM_notes GitHub Wiki

  • compare to SV and V we have only $display, $strobe and $monitor for displaying but in uvm we have several display option based on the verbosity.
  • Default rededancy level is 200(UVM_MEDIUM).
  • UVM_INFO should have less than or equal to default redadency level then only the messages sent to console.
  • except UVM_INFO others only have 2 arguments: id and message
  • UVM_INFO(ID,msg,redundany_level);[Informative Messages]
  • ID -> is used to indicates which class is sending the data(path name of the class who is sending the data).
  • msg -> its a message which we wants to send to console
  • redundancy level -> redundancy level we add to MACRO
  • the advantage of using the UVM_INFO is that we can specify when to send the information to terminal/console.

NOTE: By default the redundancy level is 200(UVM_MEDIUM). always try to keep the redundancy level lower than 200 so that it will give us the message. If we keep the redundancy level more than 200 then the string will be get filtered out.

               typedef enum {
                        UVM_NONE    :  0
                        UVM_LOW     :  100
                        UVM_MEDIUM  :  200
                        UVM_HIGH    :  300
                        UVM_FULL    :  400
                        UVM_DEBUG   :  500
                        } UVM_verbosity

NOTE: Path -> src/base/uvm_objects_globals.svh