[SOLVED] VHDL: How display two variables in one line?

Status
Not open for further replies.

ebrahimi.khoy

Member level 3
Joined
Dec 4, 2010
Messages
64
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Visit site
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)));
 

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