Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

How to set verbosity for uvm_object (not component)?

$
0
0

Is there a command-line command to change the verbosity for a uvm_object (like a configuration object)?

 

For components, I use:

+uvm_set_verbosity=test_top.env.myagent.*,_ALL_,UVM_DEBUG,run

 

I want to leave the entire testbench verbosity as sv_medium, except for one object of the following class.  Not being a component, it's not in the component hierarchy.

class plb_agent_configuration extends agent_cfg_base #(plb_transaction);
  `uvm_object_utils( plb_agent_configuration )

  virtual interface plb_driver_bfm   driver_bus;
  virtual interface plb_monitor_bfm  monitor_bus;

  function new( string name = "" );
    super.new( name );
  endfunction

  virtual task access(inout TRANS_T txn);
    driver_bus.access(txn);
  endtask

  virtual task monitor(inout TRANS_T txn);
    monitor_bus.monitor(txn);
  endtask

  virtual task wait_clk(input uint32_t num);
    monitor_bus.wait_for_clk(num);
  endtask

  virtual task wait_rsp();
    while (monitor_bus.cb.RspFlag_i!=1) @monitor_bus.cb;
    `uvm_info(report_id, "response!", UVM_DEBUG)
  endtask

endclass

Viewing all articles
Browse latest Browse all 756

Trending Articles