thanhvanchi Posted December 14, 2016 Report Share Posted December 14, 2016 Hello all member! UVM supports changing UVM severity (Fatal/Error/…) to new desired one from command line using +uvm_set_severity: +uvm_set_severity=<comp> ,<id> ,<current severity> ,<new severity> -- I’ve tried it and it works fine with one setting (+uvm_set_severity) However, I’ve tried to change severity of several paths/IDs (by specifying +uvm_set_severity several times) – and it didn’t work. Seems that only the 1st one is accepted and others are ignored) Example: +uvm_set_severity=uvm_test_top.producer_agent.monitor,ERR_TIMEOUT_ID1,UVM_ERROR,UVM_WARNING +uvm_set_severity=uvm_test_top.consumer_agent.monitor,ERR_TIMEOUT_ID2,UVM_ERROR,UVM_WARNING Is it UVM known limitation or a bug ? BTW, using widcard (*) indeed works well, but I wish to have better controlability (set severity of 2 different IDs in 2 different <comp>/path) Regards, Ofir Relevant code in uvm_component.svh : function void uvm_component::m_set_cl_sev; // _ALL_ can be used for ids or severities // +uvm_set_severity=<comp>,<id>,<orig_severity>,<new_severity> // +uvm_set_severity=uvm_test_top.env0.*,BAD_CRC,UVM_ERROR,UVM_WARNING static string values[$]; static bit first = 1; string args[$]; uvm_severity orig_sev, sev; if(!values.size()) void'(uvm_cmdline_proc.get_arg_values("+uvm_set_severity=",values)); Thank's! Quote Link to comment Share on other sites More sharing options...
uwes Posted January 4, 2017 Report Share Posted January 4, 2017 uvm11 had problems in this area. uvm12 should be better in some areas but still https://accellera.mantishub.io/view.php?id=4871 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.