Visible to Intel only — GUID: mwh1411073379775
Ixiasoft
1.1. Software and Hardware Requirements
1.2. Download and Install the Tutorial Design Files
1.3. Open the Tutorial Project
1.4. Creating Qsys Systems
1.5. Assemble a Hierarchical System
1.6. Viewing the Memory Tester System in Qsys
1.7. Compiling and Downloading Software to a Development Board
1.8. Debugging Your Design
1.9. Verifying Hardware in System Console
1.10. Simulating Custom Components
1.11. View a Diagram of the Completed System
1.4.1.1. Create a New Qsys System and Set up the Clock Source
1.4.1.2. Add a Pipeline Bridge
1.4.1.3. Add a Custom Pattern Generator
1.4.1.4. Add a PRBS Pattern Generator
1.4.1.5. Add a Two-to-One Streaming Multiplexer
1.4.1.6. Verify the Memory Address Map
1.4.1.7. Connect the Reset Signals
1.4.1.8. Save the System
1.4.2.1. Create a New Qsys System and Set Up the Clock Soource
1.4.2.2. Add a Pipeline Bridge
1.4.2.3. Add a Custom Pattern Checker
1.4.2.4. Add the PRBS Pattern Checker
1.4.2.5. Add a One-to-Two Streaming Demultiplexer
1.4.2.6. Verify the Memory Address Map
1.4.2.7. Connect the Reset Signals
1.4.2.8. Save the System
Visible to Intel only — GUID: mwh1411073379775
Ixiasoft
1.10.2.2. Run the Simulation
- Start the ModelSim-Altera software.
- Click File > Change Directory, browse to the \simulation_tutorial directory, and then click OK.
- Click Compile > Compile Options.
- Click the Verilog & SystemVerilog tab, select Use SystemVerilog, and then click OK.
- Click File > Load
Ensure you activate the ModelSim-Altera Transcript window, otherwise the Load function is disabled.
- 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.
- 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.
- 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
- To run the low frequency test, modify \simulation_tutorial\test_include.svh according to Table 4.
Table 4. Values for Low Frequency Pattern Test Macro New Value PATTERN_POSITION 0 NUM_OF_PATTERN 2 NUM_OF_PAYLOAD_BYTES 256 FILENAME low_freq.hex FILENAME_REV low_freq_rev.hex - Reload the load_sim.tcl script, run the simulation for 40us, and observe the result in the Transcript window.
INFO: top.pgm: Starting test low_freq.hex INFO: top.pgm.read_file: Read file low_freq.hex success INFO: top.pgm.read_file: Read file walking_ones_rev.hex success INFO: top.pgm: Test low_freq.hex passed
- To run the random number pattern test, modify \simulation_tutorial\test_include.svh according to Table 5.
Table 5. Values for Random Number Pattern Test Macro New Value PATTERN_POSITION 32 NUM_OF_PATTERN 64 NUM_OF_PAYLOAD_BYTES 1024 FILENAME random_num.hex FILENAME_REV random_num_rev.hex - Reload the load_sim.tcl script, and run the simulation for 40us to observe the following results.
INFO: top.pgm: Starting test random_num.hex INFO: top.pgm.read_file: Read file random_num.hex success INFO: top.pgm.read_file: Read file random_num_rev.hex success INFO: top.pgm: Test random_num.hex passed