





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






This tutorial describes how to create designs that have a QuickSim II model at the top level that contains both ModelSim and QuickSim II parts or viewpoints. QuickSim Pro (QSPro) supports mixed designs with a QuickSim II (also referred to as Electronic Design Data Model (EDDM)) model as the design root. Figure 1 shows examples of possible design hierarchies that can or cannot be simulated with QSPro. In Figure 1, ModelSim models (VHDL and Verilog) are noted as “HDL,” and QuickSim II models are noted as “QSIM.”
Figure 2. Proposed EDDM Quicksim-on-top hierarchical structure
The directory structure shown in Figure 2 shows how an EDDM-ontop design is organized under $MGC_WD (where MGC_WD defines the current Mentor Graphics Work Directory and typically points to the top design in a hierarchy. The dashed-line shapes indicate structures you will create in later steps in the design creation process.
Mixed Quicksim-VHDL Design Creation Steps
In order to demonstrate the methodology for performing such a simulation, we create a design for a mixed_counter where we create a counter in VHDL and use it in tandem with a standard chip 4-bit counter (74LS161). The steps involved in performing suych a design are implemented below:
$MGC_WD
Folder contains all compiled or created components
Folder contains all QSPro & Quicksim II data
Folder contains all HDL source code
Folder contains all Modelsim compiled data
components
src vhdl_lib
qspro_lib
if (icount = "1111") then rco <= '1'; else rco <= '0'; end if; end if; end if; qa <= icount(0); qb <= icount(1); qc <= icount(2); qd <= icount(3); END PROCESS count; END behave1;
Figure 4. VHDL code for counter_4bit.vhd
Note, that you may also define your entity and architecture in separate files. Then at the time of simulation (in case of several defined architectures) you may choose which architecture is to be actually used.
Figure 5. Generate Symbol dialog box in Design Architect
b. In the Generate symbol dialog box, choose the Module Tab (if the VHDL code has integrated entity and architecture), else choose the Entity tab. Ensure that the references to the Modelsim Initfile, Library Logical Name, Entity name and Default Architecture, Component directory selections are done properly. c. The shape of the symbol can be selected using Choose Shape tab. However, for convenience we use the default box shape for the symbol. d. Press OK. A symbol for the counter_4bit will be generated and displayed as shown below.
Synchronous 4 bit … The second symbol appears in the schematics window.
Figure 8. Complete mixed_counter schematics
architect at this instant of time.
different time scale simulation results are given below in Figure 9.
Figure 9. mixed_counter simulation results