Home Methodologies OVM Tutorial Messaging utilities
Main Menu
System Verilog
    - OVM Tutorial
        -- OVM Overview
        -- CRV in OVM
        -- OVM Based Env
        -- UVC in OVM
        -- Data Item
        -- Sequence Item Macros
        -- ovm-driver
        -- OVM sequencer
        -- OVM Monitor
        -- OVM Sequences
        -- OVM build in sequences
        -- OVM Do macros
        -- OVM Test
        -- Messaging utilities
    - OVM Example
    - UVM
    - VMM
    - VMM RAL
    - VMM Example
    - AVM Tutorial
Open Vera
Digital Concepts
Verification Basics
Interview Questions
Computer Architechture
C and C++
AsicGuru Blog
Tags Cloud
Usefull Sites
Know Your IP/Location
Local Information India
Buy Car/Inverter Batteries
Real Estate India
Sports Accessories India
Messaging Utilities
Share This Articale:

OVM messaging utilities :

  • function void ovm_report_fatal(string id, string message, int verbosity_level=100, tring filename="", int line=0);
  • function void ovm_report_error(string id, string message, int verbosity_level=0, string filename="", int line=0);
  • function void ovm_report_warning(string id, string message, int verbosity_level=300, string filename="", int line=0);
  • function void ovm_report_info (string id, string message, int verbosity_level=200, string filename="", int line=0);

Example :

ovm_report_info("TB", "Starting out testbench \n");

Output will be :

OVM_INFO @ 0: reporter [TB] Starting out testbench

Arguments :

id - This argument is unique identifier for the message. You can assign your component name to this id. You can configure an individual report’s actions and output file descriptor using its id string.

message - Message you want to display

Verbosity - This argument specify the messges relative importance. If the verbosity argument is wrong message will be dropped. The default verbosity levels by severity are: 

  1. OVM_FATAL=0
  2. OVM_ERROR=100
  3. OVM_WARNING =200
  4. OVM_INFO =300

filename and line - The filename and line arguments allow you to provide the location of the call to the
report methods. If specified, they are displayed in the output.

eg. ovm_report_info("TB", "Starting out testbench \n", , `__FILE__, `__LINE__);

Note In System Verilog: 

`__FILE__ = Prints the file name from where the message got printed

`__LINE__ = Prints the line number in the file where to report function is called

output :

# OVM_INFO puneet.sv(10) @ 0: reporter [TB] Starting out testbench

Keywords : ovm_report_error   ovm_report_fatal   ovm_report_info   ovm_report_warning  

This Articles is written/submitted by puneet (Puneet Aggarwal). You can also contribute to Asicguru.com. Click here to start

Prev << OVM Test

Sign In
Login with :-
| | |  
  • Bookmark