ug_gs_msa_qii (1162599)
Текст из файла
Getting Started with Quartus II Simulation Using theModelSim-Altera Software User GuideGetting Started with Quartus II Simulation Using theModelSim-Altera SoftwareUser Guide101 Innovation DriveSan Jose, CA 95134www.altera.comUG-01102-1.0Document last updated for Altera Complete Design Suite version:Document publication date:11.0June 2011© 2011 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS and STRATIX are Reg.
U.S. Pat.& Tm. Off. and/or trademarks of Altera Corporation in the U.S. and other countries. All other trademarks and service marks are the property of their respectiveholders as described at www.altera.com/common/legal.html. Altera warrants performance of its semiconductor products to current specifications in accordancewith Altera’s standard warranty, but reserves the right to make changes to any products and services at any time without notice.
Altera assumes no responsibility orliability arising out of the application or use of any information, product, or service described herein except as expressly agreed to in writing by Altera. Alteracustomers are advised to obtain the latest version of device specifications before relying on any published information and before placing orders for products orservices.Getting Started with Quartus II Simulation Using the ModelSim-Altera Software User GuideJune 2011 Altera CorporationGetting Started with Quartus II SimulationUsing the ModelSim-Altera SoftwareThe NativeLink feature of the Quartus II software allows you to control theModelSim-Altera software from within the Quartus II software. By connecting thetwo tools with the NativeLink feature, the process of setting up your simulation isgreatly streamlined, allowing you to focus on the simulation itself.This user guide provides instructions for getting started with Quartus II projectsimulation using the ModelSim-Altera Starter Edition or ModelSim-Altera Editionsoftware, and includes the following sections:■“Prerequisites”■“Starting the ModelSim-Altera Software with the Quartus II Software”■“Setting Up EDA Tool Options” on page 1–1■“Setting Up the Simulation” on page 1–3■“Running ModelSim-Altera from the Quartus II Software” on page 1–4■“Creating Stimulus Waveforms” on page 1–4■“Modifying Stimulus Waveforms” on page 1–6■“Starting Simulation” on page 1–7■“Exporting Created Stimulus Waveforms as an HDL Testbench” on page 1–8PrerequisitesYou should have met the following prerequisites before performing a simulation:■Understanding of Verilog, SystemVerilog, or VHDL hardware descriptionlanguage■Completion of the “Getting Started Tutorial” in the Quartus II softwareStarting the ModelSim-Altera Software with the Quartus II SoftwareTo start the ModelSim-Altera software, follow these steps:1.
Unzip the provided Quartus II design example project counter.zip.2. Start the Quartus II software and open the design example Quartus II project filecounter.qpf.Setting Up EDA Tool OptionsYou can specify where your third-party EDA simulators are installed with the EDAtool options settings in the Quartus II software. These settings enable you to startthird-party EDA simulators from the Quartus II software.June 2011Altera CorporationGetting Started with Quartus II Simulation Using the ModelSim-Altera Software1–2Getting Started with Quartus II Simulation Using the ModelSim-Altera SoftwareStarting the ModelSim-Altera Software with the Quartus II Software1For Windows users, the ModelSim-Altera tool path is automatically added duringinstallation.
Linux users must perform the following two steps to add theModelSim-Altera tool path.To set up the EDA tool options for ModelSim-Altera, follow these steps:1. On the Tools menu of the Quartus II GUI, click Options. The Options dialog boxappears. In the Category list, under General, click EDA Tool Options. The EDATool Options page appears (Figure 1–1).Figure 1–1. EDA Tool Options Page (Options Dialog Box)2.
Click the Browse button to the right of ModelSim-Altera in the EDA Tool list tospecify the location of the ModelSim-Altera executable. The path is <ModelSimAltera installation path>\bin.Getting Started with Quartus II Simulation Using the ModelSim-Altera SoftwareJune 2011Altera CorporationGetting Started with Quartus II Simulation Using the ModelSim-Altera SoftwareStarting the ModelSim-Altera Software with the Quartus II Software1–3Setting Up the SimulationThis section guides you in setting up the simulation environment to run theModelSim-Altera simulator on your Quartus II project.To set up the simulation environment, follow these steps:1.
On the Assignments menu, click Settings.2. In the Settings dialog box, under EDA Tool Settings, select Simulation. TheSimulation page appears. (Figure 1–2).Figure 1–2. Simulation Page (Settings Dialog Box)3. In the Tool name list, select ModelSim-Altera. Ensure that Run gate-levelsimulation automatically after compilation box is turned off.4. Under EDA Netlist Writer settings, in the Format for output netlist list, selectVerilog HDL. Ensure that the Map illegal HDL characters, Enable glitchfiltering, and Generate Value Change Dump (VCD) file script boxes are turnedoff.5.
Under NativeLink settings, select None.f For more information about the Quartus II NativeLink feature, refer to the SimulatingAltera Designs chapter in volume 3 of the Quartus II Handbook.June 2011Altera CorporationGetting Started with Quartus II Simulation Using the ModelSim-Altera Software1–4Getting Started with Quartus II Simulation Using the ModelSim-Altera SoftwareRunning ModelSim-Altera from the Quartus II SoftwareRunning ModelSim-Altera from the Quartus II SoftwareIn this section, you will use Quartus II software to generate the ModelSim-Alteraautomation script (.do file) and start the ModelSim-Altera software.
The script thencompiles the design files, and you are ready for simulation. Follow these steps:1. On the Processing menu, point to Start, and then click Start Analysis &Elaboration.2. On the Tools menu, point to Run EDA Simulation Tool and then click EDA RTLSimulation. The Quartus II software starts the ModelSim-Altera simulator.Creating Stimulus WaveformsThis section guides you in adding signals to the Wave window, creating the clockwaveform, and creating the reset waveform.Adding Signals to the Wave WindowTo add signals to the Wave window, follow these steps:1.
In the ModelSim-Altera GUI, expand Work in the Library window, and thenright-click counter.2. Click Create Wave (Figure 1–3).Three signals (clk, reset, and count) from the counter design example are added inthe Wave window, where you can create stimulus waveforms for each signal tosimulate the design. In this example, you will create stimulus waveforms for theclk and reset signals. The count signal is not needed and can be deleted.Getting Started with Quartus II Simulation Using the ModelSim-Altera SoftwareJune 2011Altera CorporationGetting Started with Quartus II Simulation Using the ModelSim-Altera SoftwareCreating Stimulus Waveforms1–5Figure 1–3. Create Wave on the Shortcut Menu3. Right-click the count signal in the Wave window, and then click Delete.Creating the Clock Waveform1.
Right-click the clk signal in the Wave window, and then click Create/ModifyWaveform. The Create Pattern Wizard appears (Figure 1–4).Figure 1–4. Create Pattern Wizard2. Under Patterns, select Clock.3. For Start Time, enter 0, for End Time, enter 5000, and for Time Unit, enter ns.4. Click Next.5. For Clock Period, enter 100, for Time Unit enter ns, and for Duty Cycle, enter 50.June 2011Altera CorporationGetting Started with Quartus II Simulation Using the ModelSim-Altera Software1–6Getting Started with Quartus II Simulation Using the ModelSim-Altera SoftwareCreating Stimulus Waveforms6. Click Finish.Creating the Reset Waveform1. Right-click the reset signal in the Wave window, and then click Create/ModifyWaveform.2. In the Create Pattern Wizard, under Patterns, select Constant.3.
For Start Time, enter 0, for End Time, enter 5000, and for Time Unit, enter ns.4. Click Next.5. Enter St0 (Strong 0) for Value.6. Click Finish.f For more information, refer to Chapter 12, Generating Stimulus with Waveform Editor inthe ModelSim User’s Manual. In the ModelSim-Altera software, on the Help menu,point to PDF Documentation, and then click User’s Manual.Modifying Stimulus WaveformsTo modify stimulus waveforms, follow these steps:1. On the Wave menu, point to Mouse Mode and then click Edit Mode. Make surethe Wave window is activated.
To activate it, click in the Wave window.2. Select the reset signal from 0 ns to approximately 120 ns. The selection does notneed to be exact (Figure 1–5).Figure 1–5. Inverted Waveform for reset SignalGetting Started with Quartus II Simulation Using the ModelSim-Altera SoftwareJune 2011Altera CorporationGetting Started with Quartus II Simulation Using the ModelSim-Altera SoftwareCreating Stimulus Waveforms1–73. On the Wave menu, point to Wave Editor, and then click Invert. The Edit Invertdialog box appears (Figure 1–6).Figure 1–6. Edit Invert Dialog Box4.
Характеристики
Тип файла PDF
PDF-формат наиболее широко используется для просмотра любого типа файлов на любом устройстве. В него можно сохранить документ, таблицы, презентацию, текст, чертежи, вычисления, графики и всё остальное, что можно показать на экране любого устройства. Именно его лучше всего использовать для печати.
Например, если Вам нужно распечатать чертёж из автокада, Вы сохраните чертёж на флешку, но будет ли автокад в пункте печати? А если будет, то нужная версия с нужными библиотеками? Именно для этого и нужен формат PDF - в нём точно будет показано верно вне зависимости от того, в какой программе создали PDF-файл и есть ли нужная программа для его просмотра.















