[source]

Class uvm_report_server

uvm_pkg::uvm_report_server + compose_report_message(): string + do_copy(): void + execute_report_message(): void + get_id_count(): int + get_id_set(): void + get_max_quit_count(): int + get_message_database(): uvm_tr_database + get_quit_count(): int + get_server(): uvm_report_server + get_severity_count(): int + get_severity_set(): void + get_type_name(): string + process_report_message(): void + report_summarize(): void + set_id_count(): void + set_max_quit_count(): void + set_message_database(): void + set_quit_count(): void + set_server(): void + set_severity_count(): void + summarize(): void uvm_pkg::uvm_default_report_server

Inheritance Diagram of uvm_report_server

Constructors

function new ( string name ) [source]

Functions

virtual function string get_type_name ( ) [source]

virtual function void set_max_quit_count ( int count, bit overridable ) [source]

count is the maximum number of UVM_QUIT actions the uvm_report_server will tolerate before invoking client.die(). when overridable = 0 is passed, the set quit count cannot be changed again

virtual function int get_max_quit_count ( ) [source]

returns the currently configured max quit count

virtual function void set_quit_count ( int quit_count ) [source]

sets the current number of UVM_QUIT actions already passed through this uvm_report_server

virtual function int get_quit_count ( ) [source]

returns the current number of UVM_QUIT actions already passed through this server

virtual function void set_severity_count ( uvm_severity severity, int count ) [source]

sets the count of already passed messages with severity severity to count

virtual function int get_severity_count ( uvm_severity severity ) [source]

returns the count of already passed messages with severity severity

virtual function void set_id_count ( string id, int count ) [source]

sets the count of already passed messages with id to count

virtual function int get_id_count ( string id ) [source]

returns the count of already passed messages with id

virtual function void get_id_set ( string q ) [source]

returns the set of id's already used by this uvm_report_server

virtual function void get_severity_set ( uvm_severity q ) [source]

returns the set of severities already used by this uvm_report_server

virtual function void set_message_database ( uvm_tr_database database ) [source]

sets the uvm_tr_database used for recording messages

virtual function uvm_tr_database get_message_database ( ) [source]

returns the uvm_tr_database used for recording messages

virtual function void do_copy ( uvm_object rhs ) [source]

copies all message statistic severity,id counts to the destination uvm_report_server the copy is cummulative (only items from the source are transferred, already existing entries are not deleted, existing entries/counts are overridden when they exist in the source set)

virtual function void process_report_message ( uvm_report_message report_message ) [source]

Function- process_report_message

Main entry for uvm_report_server, combines execute_report_message and compose_report_message

virtual function void execute_report_message ( uvm_report_message report_message, string composed_message ) [source]

Processes the provided message per the actions contained within.

Expert users can overload this method to customize action processing.

virtual function string compose_report_message ( uvm_report_message report_message, string report_object_name ) [source]

Constructs the actual string sent to the file or command line from the severity, component name, report id, and the message itself.

Expert users can overload this method to customize report formatting.

virtual function void report_summarize ( UVM_FILE file ) [source]

Outputs statistical information on the reports issued by this central report server. This information will be sent to the command line if file is 0, or to the file descriptor file if it is not 0.

The run_test method in uvm_top calls this method.

virtual function void summarize ( UVM_FILE file ) [source]

Function- summarize

static function void set_server ( uvm_report_server server ) [source]

Sets the global report server to use for reporting.

This method is provided as a convenience wrapper around setting the report server via the uvm_coreservice_t::set_report_server method.

In addition to setting the server this also copies the severity/id counts from the current report_server to the new one

// Using the uvm_coreservice_t:
uvm_coreservice_t cs;
cs = uvm_coreservice_t::get();
your_server.copy(cs.get_report_server());
cs.set_report_server(your_server);

// Not using the uvm_coreservice_t:
uvm_report_server::set_server(your_server);

static function uvm_report_server get_server ( ) [source]

Gets the global report server used for reporting.

This method is provided as a convenience wrapper around retrieving the report server via the uvm_coreservice_t::get_report_server method.

// Using the uvm_coreservice_t:
uvm_coreservice_t cs;
uvm_report_server rs;
cs = uvm_coreservice_t::get();
rs = cs.get_report_server();

// Not using the uvm_coreservice_t:
uvm_report_server rs;
rs = uvm_report_server::get_server();