Jump to content

Get verbosity from a module


Recommended Posts

How can I get the current verbosity from within a module?

 

I am trying to do something like this but the module can't find the function that returns the verbosity level.

 

initial begin

  int prev_level;

  prev_level = get_report_verbosity_level();

  case (prev_level)

      default: ;

  endcase

 

end

Link to comment
Share on other sites

Thanks Alan, this is the code that worked for me.

 

import uvm_pkg::*;

 

module top

 

initial begin

  int prev_level;

  prev_level = uvm_top.get_report_verbosity_level();

  case (prev_level)

      default: ;

  endcase

 

end

 

endmodule

 

//Mike R.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...