View Single Post
  #1 (permalink)  
Old 06-22-2009, 11:18 PM
Amal
Guest
 
Posts: n/a
Default $display and zero padding...

In Verilog or SystemVerilog, is it possible to do zero padding when
displaying an integer as in C/C++? Something equivalent to:

printf( "%05d", x );

Also is it possible to display in upper-case hex characters instead?

printf( "%X", h );

-- Amal
Reply With Quote