QSC Q-SYS PS-1650G Manual de usuario Pagina 25

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 27
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 24
This test program performs the following actions:
Reads a pattern file.
Writes the pattern to the design under test via the pattern master BFM.
Sets various design under test options via the CSR master BFM.
Starts the design under test pattern generation.
Collects data generated by the design under test.
Compares the results against the original pattern file.
Set Up the Simulation Environment
This tutorial includes test program files that you can use with the Qsys-generated testbench and
ModelSim simulation script. To learn more about Qsys simulation support, open and review the
simulation script, \simulation_tutorial\load_sim.tcl. After your review of the script, close the script
without making changes.
The load_sim.tcl script sets simulation variables to set up the correct hierarchical paths in the Qsys-
generated simulation model and ModelSim script. Additionally, the script identifies the top-level instance
name for the simulation and provides the path to the location of the Qsys-generated files. Some functions,
such as memory initialization, rely on correct hierarchical paths names in the simulation model.
The load_sim.tcl script performs the following actions:
Sources the Qsys-generated ModelSim simulation script, msim_setup.tcl.
Uses the command aliases defined in the msim_setup.tcl script to compile and elaborate the files for
the Qsys testbench simulation model.
Compiles and elaborates the extra simulation files for the tutorial—the test program and top-level
simulation file that instantiates the test program.
Loads the wave.do file that provides signals for the ModelSim waveform view.
Run the Simulation
1. Start the ModelSim-Altera software.
2. Click File > Change Directory, browse to the \simulation_tutorial directory, and then click OK.
3. Click Compile > Compile Options.
4. Click the Verilog & SystemVerilog tab, select Use SystemVerilog, and then click OK.
5. Click File > Load
Ensure you activate the ModelSim-Altera Transcript window, otherwise the Load function is disabled.
6. Select the load_sim.tcl script, and then click Open.
The warning messages relate to unused connections in an ALTSYNCRAM megafunction. Because
these ports are not used, you can ignore the warning messages.
7. Run the simulation for 40us. To run the simulation, in the ModelSim-Altera Transcript window type
the following command: run 40us.
You can run the h command to show the available options for the msim_setup.tcl script.
8. Observe the results.
INFO: top.tb.reset_source.reset_deassert: Reset deasserted
INFO: top.pgm: Starting test walking_ones.hex
INFO: top.pgm.read_file: Read file walking_ones.hex success
INFO: top.pgm.read_file: Read file walking_ones_rev.hex success
INFO: top.pgm: Test walking_ones.hex passed
TU-01006
2015.05.04
Set Up the Simulation Environment
25
Qsys System Design Tutorial
Altera Corporation
Send Feedback
Vista de pagina 24
1 2 ... 20 21 22 23 24 25 26 27

Comentarios a estos manuales

Sin comentarios