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] VHDL: How display two variables in one line?

Status
Not open for further replies.

ebrahimi.khoy

Member level 3
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) & "FETCH:pC=" & integer'image(conv_integer(unsigned(fe.pc)));
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top