Functional Simulation
VHDL-on-top designs consist of a VHDL based design referencing EDDM components.
Compiling the Design
Before functionally simulating the mixed VHDL-based design, perform the following steps:
NOTEThis procedure assumes that you are using ModelSim. QuickHDL provides the same functionality as ModelSim. If you are using QuickHDL instead of ModelSim, see the ModelSim and QuickHDL appendix for details on how to modify this procedure.
|
- Create a working library with vlib.
vlib mywork
- Map the library with vmap.
vmap work mywork
- If using LogiBLOX modules, use vmap to map to the compiled LogiBLOX modules location.
vmap logiblox $XILINX/mentor/data/vhdl/logiblox
- Compile the VHDL source files with vcom.
vcom [options] design_name
See the Mentor documentation for a description of the available options.
Simulating the Design
To simulate VHDL-at-top designs, invoke QuickHDL Pro, which in turn invokes QuickSim to simulate the Unified Libraries elements and ModelSim to simulate the VHDL-based blocks as needed.
- Double-click the left mouse button on the QuickHDL Pro icon in the Design Manager Tools window.
Alternatively, you can select the top-level component in the Navigator window and click the right mouse button to invoke QuickHDL Pro.
The QHDL Pro dialog box appears, as shown in the QHDL Pro Dialog Box figure.
- In the Invoke On field, click on Configuration.
- In the Name field, type the path name of the configuration from Gen_Arch.
- Click on Qhpro.
- Click on OK to proceed with simulation.
For details on using QHDL Pro, refer to the Mentor Graphics Documentation.
Optional Post-Synthesis Functional Simulation
You can optionally re-simulate the design after synthesis to an EDIF or XNF file to ensure that the design's functionality remains optimal. To do so, follow these steps:
- Create the NGO from EDIF2SIM and XNF2SIM for later use in the implementation tool. EDIF2SIM and XNF2SIM NGO files must be placed in your top level directory or you must modify the macro search path in the Xilinx Design Manager to include the location of NGO files. EDIF2SIM or XNF2SIM do not have the macro search path functionality. You must have the EDIF2SIM and XNF2SIM NGO files in the same directory as your top-level EDIF or XNF.
- If the synthesis tool created an EDIF file, submit the file to pld_edif2sim, then submit it to ModelSim.
- If the synthesis tool created an XNF file, submit the file to pld_xnf2sim, then submit it to ModelSim.