ebrahimi.khoy
Member level 3
- Joined
- Dec 4, 2010
- Messages
- 64
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Activity points
- 1,736
Hi,
In verilog, several variables and strings can be mixed in display command.
Now, I have two variables named counter and PC and I want to display them in the following format in each cycle:
counter=1 PC=2345
counter=2 PC=2349
...
Any solution?
- - - Updated - - -
I found a solution:
report "Cycle=" & integer'image(counter) & "FETCHC=" & integer'image(conv_integer(unsigned(fe.pc)));
In verilog, several variables and strings can be mixed in display command.
Now, I have two variables named counter and PC and I want to display them in the following format in each cycle:
counter=1 PC=2345
counter=2 PC=2349
...
Any solution?
- - - Updated - - -
I found a solution:
report "Cycle=" & integer'image(counter) & "FETCHC=" & integer'image(conv_integer(unsigned(fe.pc)));