c4brian Posted August 21, 2015 Report Share Posted August 21, 2015 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? Quote Link to comment Share on other sites More sharing options...
apfitch Posted August 22, 2015 Report Share Posted August 22, 2015 1666-2011 introduced SC_REPORT_INFO_VERB which has a verbosity argument. I don't know about SV/SC cross-language working, I guess that would be tool specific? Alan Maryam 1 Quote Link to comment Share on other sites More sharing options...
maehne Posted August 24, 2015 Report Share Posted August 24, 2015 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. Quote Link to comment Share on other sites More sharing options...
c4brian Posted August 24, 2015 Author Report Share Posted August 24, 2015 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!! Quote Link to comment Share on other sites More sharing options...
c4brian Posted August 27, 2015 Author Report Share Posted August 27, 2015 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. 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.