Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top