Jump to content
c4brian

SystemVerilog & SystemC Reporting verbosity

Recommended Posts

I have a SV UVM environment with a SystemC model included.

 

I know that SystemC has a UVM style reporting feature, but I don't see any verbosity attached to it.  E.g. SC_REPORT_INFO(MSGID,""); <--- wheres the verbosity?

 

I would like to, from the command line of my simulator, change the UVM verbosity level, and have it filter messages not only in my SV files, but also the SystemC files as well.

 

Thoughts?

 

 

Share this post


Link to post
Share on other sites

Have a look to clause 8.3.2 "Class definition" (of sc_report_handler) of IEEE Std 1666-2011 to find the different standardized macros for reporting with different severities:

  • SC_REPORT_INFO(msg_type, msg)
  • SC_REPORT_WARNING(msg_type, msg)
  • SC_REPORT_ERROR(msg_type, msg)
  • SC_REPORT_FATAL(msg_type, msg)

and the by Alain mentioned SC_REPORT_INFO_VERB(msg_type, msg, verbosity). I admit that this information is rather well hidden in the SystemC LRM.

Share this post


Link to post
Share on other sites

Thanks Alan, and Torsten.  It turned out to be much simpler than I imagined; I used the command you mentioned, and apparently it automatically picks up the verbosity setting ( I thought I would have to manually pass it to the SC file(s)).

 

Awesome!!

Share this post


Link to post
Share on other sites

Scratch what I said about the SystemC automatically picking up the verbosity setting from my UVM environment.

cout << "verbosity=" <<dec<< sc_report_handler::get_verbosity_level() << endl;

reveals the default setting of 200. 

sc_report_handler::set_verbosity_level(SC_DEBUG);

This command successfully changed the verbosity and filtering works.

Now the challenge is talking with tool vendor to learn hopefully how to affect the SC verbosity from SV world.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×