[SOLVED] Verilog print out %d longer than 32bit

Status
Not open for further replies.

childs72

Member level 1
Joined
Apr 8, 2006
Messages
33
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,542
Good day,

Anyone can share how to (in Verilog) print out signal >32bit using %d?

Example I used:

Code Verilog - [expand]
1
2
reg [49:0] my_var;
initial $display("%d", my_var);



The result I got is not my_var, thus i suspect %d is limited to 32bit. Is there any way I can print out my_var in decimal format?

Thanks!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…