Next: Logic Synthesis From VHDL
Up: VHDL
Previous: Program Entry
You can test your VHDL design at this point by using QuickHDL.
- Type qhsim at the command line.
- In the Startup window, the settings are:
Simulator resolution: ns
Library: work
Entity, Configuration, or Module: design_name
Architecture: behavior
Load
- In the QuickHDL VHDL/Verilog window, in the pull down menu if you go to
View you probably want to open:
Source: To view your source code.
Signals: To force your inputs.
Waves: To see the waveforms.
- In the Signals window, use View to list inputs, outputs or internal
signals. Go to Wave and Signals in design to trace these in the Wave window.
- To force a signal, select it, click on Force and then set the value and
delays.
- For a clock you need to force the signal twice. For example, if you want a clock with
a period of 40ns that started low you would:
- Select the 'clk' signal in the Signals window.
- In the menu bar click on Force.
- Put 0 in the Value field.
- Put 0 in the Delay field.
- Enter 40 in the Repeat Every field.
- Click on Force
- In the menu bar click on Force again.
- Put 1 in the Value field.
- Put 20 in the Delay field.
- Enter 40 in the Repeat Every field.
- In the main window under Run click on 100 ns to run the simulation.
- If your design has buses, click on the + in the Wave window to see the individual
signals.
After you have verified the functionality of your design go on to the next section.
Geun Rae Cho
Tue Aug 24 19:15:12 MDT 1999