July 30, 2009
Here is an idea that I added to a recent test bench. It is a verbose messaging macro:
`define verbose(msg)ovm_top.ovm_report_info($psprintf(”%m”), msg,500);
`define info(msg) ovm_top.ovm_report_info($psprintf(”%m”), msg);
`define warning(msg) ovm_top.ovm_report_warning($psprintf(”%m”), msg,,`__FILE__,`__LINE__);
`define error(msg) ovm_top.ovm_report_error($psprintf(”%m”), msg,,`__FILE__,`__LINE__);
`define fatal(msg) ovm_top.ovm_report_fatal($psprintf(”%m”), msg,,`__FILE__,`__LINE__);
This macro creates an OVM info message, but it gives it a verbosity of 500. This means that the message will not show [...]
Read the full article →