Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

How to change the print format used by UVM?

$
0
0

I need to dump the contents of a queue in my scoreboard. When the queue is large and the items in the queue have a lot of properties, the report becomes very large and hard to parse. This is because the default UVM print format is table.

    foreach(my_q[i]) begin
      `uvm_info("REPORT", $sformatf("my_q[%0d]:\n%s",
        i, my_q[i].sprint()), UVM_LOW)
    end

I'm interested in printing each item on a single line. How do I accomplish the following:

  1. Change the format from the command line?
  2. Change the default format that is used by my whole scoreboard?
  3. Change the format that is used only by the method that is dumping the queue contents?

You can edit and re-run the simple example of this issue here: http://www.edaplayground.com/s/4/656


Viewing all articles
Browse latest Browse all 756

Trending Articles