Functional Simulation
Pure Schematic Designs
- Create a viewpoint using pld_dve:
pld_dve -s design_name technology [viewpoint_name]
- Perform functional simulation with pld_quicksim:
pld_quicksim design_name[/viewpoint_name]
Schematic Designs with XNF Elements
- Create a symbol in pld_da for each XNF element in your design.
- To the symbols, add the FILE property with the path name of the XNF file as the value.
- Run pld_men2edif to convert the entire design into EDIF.
- Run pld_men2sim on this EDIF file to create a design component that represents the entire design:
pld_edif2sim edif_file component_name technology -m -eddm [-sd dir]
Use -sd to search additional directories other than the one containing the source EDIF file to find supporting EDIF, NGO, or XNF files.
- Perform functional simulation with pld_quicksim:
pld_quicksim design_name[/viewpoint_name]
Schematic Designs with LogiBLOX Elements
Schematic designs with LogiBLOX elements already contain simulation models, so you only need to create a viewpoint, then simulate.
- Create a viewpoint using pld_dve:
pld_dve -s design_name technology [viewpoint_name]
- Perform functional simulation with pld_quicksim:
pld_quicksim design_name[/viewpoint_name]
Mixed Schematic and VHDL with Schematic-on-Top Designs
You can simulate the design either before or after you synthesize the HDL module.
Before Synthesis
Follow these steps to simulate your design before you synthesize it:
- Compile the VHDL module into a work library. If using Mentor version B.2 and up, use -qhpro -syminfo when compiling, otherwise Generate Symbol in the Design Architect will fail.
- Create a symbol for the HDL module with pld_da using File Miscellaneous Symbol.
- The Generate Symbol dialog box opens as shown in the Generate Symbol Dialog Box figure.
- In the Generate Symbol dialog box, choose Entity as the source and specify the library logical name, entity name, and default architecture.
- Instantiate the symbol on the schematic.
- Create a viewpoint using pld_dve:
pld_dve -s design_name technology [viewpoint_name]
- Run QuickHDL PRO to simulate the design by typing the following syntax:
qhpro [options] design_name
After Synthesis
To simulate your VHDL design after you synthesize it, follow these steps:
- Synthesize the HDL module that is being included on the schematic, and create an EDIF file from that synthesis.
- Create a symbol for the HDL module with pld_da.
- If the synthesis output was an EDIF file, run pld_edif2sim to convert it to a Mentor EDDM single object:
pld_edif2sim edif_file symbol_component_name technology
{-m|-s} -eddm [-sd dir1 ... -sd dirn]
Use -m if the synthesis was performed with a Mentor tool; use -s if the synthesis was performed with a Synopsys tool.
- Perform functional simulation with pld_quicksim:
pld_quicksim design_name[/viewpoint_name]
Where design_name is the EDDM design created by pld_edif2sim.
HDL-at-Top Designs
EDDM models must be inserted in the top-level HDL file.
- Create a work library.
- Perform the following steps for any schematic based components that need to be included in the top level VHDL:
- Run pld_dve -s to create a viewpoint for each EDDM component.
- Make sure the EDDM has an underlying symbol associated with it. If not create one using pld_da Miscellaneous Generate Symbol. Specify Schematics as the source in the dialog box.
- Run gen_arch to create entity and architecture source files.
- Instantiate this component into the top-level VHDL file.
- Compile the VHDL source files with vcom:
vcom [options] design_name
See the Mentor documentation for a description of the available options.
- Run QuickHDL PRO to simulate the design by typing the following syntax:
qhpro [options] design_name
For a description of the QuickHDL PRO options, see the Mentor Graphics documentation.
Pure HDL Designs
- Create a working library.
- Compile the HDL source files with vcom:
vcom [options] design_name
See the Mentor documentation for a description of the available options.
- Simulate the design by running ModelSim. Type the following syntax:
vsim [options] [-lib_name] [primary [architecture [primary] ...]