0
\$\begingroup\$

Say I have a count signal in a counter VHDL file and want to display this in my simulation output, what would I have to do to my testbench to output such data?

\$\endgroup\$
2
  • \$\begingroup\$ To display it in the wave window, or to access it at the top level (in the testbench code)? \$\endgroup\$ Commented Jan 24, 2016 at 15:13
  • \$\begingroup\$ @BrianDrummond displaying it in the wave window, I have tried just doing signal count: std_logic; but as expected it came up as an undefined value. \$\endgroup\$ Commented Jan 24, 2016 at 15:15

1 Answer 1

3
\$\begingroup\$

This isn't a VHDL question but a tool question. The details may vary from one simulator to another but typically there's a tree view showing the testbench and all components in it - and components inside them, recursively.

Select the component you're interested in, and its internal signals will appear in the signal list view. Select some or all of those signals and there will be some means (right click?) to add them to the Wave window.

Now re-start and re-run the simulation.

(If that's not detailed enough, look at manuals, tutorials, or tell us which simulator you're using. GHDL- which is command-line based - has a command line option to collect all signals, then you select the ones you want in GTKWave)

\$\endgroup\$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.