mrussell98 Posted March 4, 2015 Report Share Posted March 4, 2015 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 Quote Link to comment Share on other sites More sharing options...
apfitch Posted March 4, 2015 Report Share Posted March 4, 2015 A module isn't a class derived from uvm_report_object, so class methods aren't available. You could do something like uvm_top.get_report_verbosity_level() (assuming you've imported uvm_pkg of course) regards Alan Quote Link to comment Share on other sites More sharing options...
mrussell98 Posted March 5, 2015 Author Report Share Posted March 5, 2015 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. 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.