0
\$\begingroup\$

I want to analyze an output sine signal from my VHDL code in Modelsim. I have created a project and simulated the code. However the outout in the "Wave" window is in binary form represented as a 32 bit output. I tried to change my signal as a Analog signal in wave properties but nothing really changed. I would like to se an analog output signal in decimal format which resemples a sine wave. How do I do this?

\$\endgroup\$
  • \$\begingroup\$ Modelsim can display analog waveforms, oscilloscope style, as well as digital signals. They might have to be integer or real, or numeric_std.signed or unsigned. \$\endgroup\$ – Brian Drummond Feb 5 '18 at 12:05
  • \$\begingroup\$ @BrianDrummond, my answer felt wrong when I typed it! Thanks and corrected below. \$\endgroup\$ – TonyM Feb 5 '18 at 13:16
1
\$\begingroup\$

Yes, you can. On the Wave window, select your signals and right-click Under 'Format', select 'Analog' to see your signal as an analogue wave.

If you have a lot of data, you could write VHDL to write your values data into an output file in .CSV format (Comma-Separated Values). Then you could import that .CSV file into Excel and plot a graph from it.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.