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

print() options

$
0
0

by default when a numerical value is printed, it is displayed as hexa decimal. how can i change it to decimal using print().

 

eg;

class mycls extends uvm_sequence_item;

   int a,b,c;

endclass

 

in top module........

mycls m1=new;

m1.print();

above displays a,b,c in hexa. how to change to decimal?


Viewing all articles
Browse latest Browse all 756

Trending Articles