On Tuesday 18 March 2008 09:01:26 Pascal Giard wrote: > > I am quite new to ghdl and have used Xilinx a wee bit. > > Using the test bench that the tutorial provided worked fine. Test > > bench that I have that runs in Xilinx but gives me a test bench problem > > with ghdl the test bench simply generates clocks so that I can look at > > and debug the code. In ghdl I think it runs and never stops or stops on > > the first clock. It either case I am not getting a wave file from > > ghdl. It's okay with the test bench that comes with the counter > > example. Any pointes would be greatly appreciated. Regards Ian. > > In order to get a waveform file you need to use the --vcd argument. > e.g. > ./$(TB_ENTITY) --vcd=/tmp/my_waveform.vcd > > Then you can use a VCD viewer such as gtkwave to visualize it.
Also, keep in mind that a VHDL program (in this case, your testbench) will run *forever* until it terminates normally (i.e. all clocks stopped, all processes in wait, no more events) or it exits with an assertion. You can exit early manually by using --stop-time. I also recommend --vcdgz if you running long simulations and want to save a few hundred gigabytes. =) Gtkwave will read .vcd.gz files directly. -- Wesley J. Landaker <[EMAIL PROTECTED]> <xmpp:[EMAIL PROTECTED]> OpenPGP FP: 4135 2A3B 4726 ACC5 9094 0097 F0A9 8A4C 4CD6 E3D2
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
