Qsys System Design Tutorial

ID 683378
Date 5/04/2015
Public
Document Table of Contents

1.9.3. Debug with System Console

The design example scripts test the memory in loops for different block sizes, that is, the number of bytes to group together in a single instance of back-to-back reads or writes. The scripts also test the memory in loops for different memory block trails, that is, the number of blocks by which the pattern reader trails the pattern writer.
  1. To download the programming file to your development board, in Qsys, click Generate > Generate.
  2. Select the language for Create HDL design files for synthesis.
  3. Click Generate. Qsys generates HDL files for the system and the .qip file, which provides the list of required HDL files for the Quartus II compilation.
  4. When Qsys completes the generation, click Close.
  5. In the Quartus II software, click Project > Add/Remove Files in Project, and verify that the project contains the top_system.qip.
  6. Click Processing > Start Compilation. When compilation completes, click OK.
  7. Connect the development board to a supported programming cable.
  8. Click Tools > Programmer.
  9. Check that the Programmer displays the correct programming hardware. Otherwise, click Hardware Setup and select the correct programming hardware, and then click Close.
  10. To program the device, click Start.
  11. In Qsys, click Tools > System Console.
  12. Before you execute scripts in System Console, navigate to the directory for the Tcl scripts, and then in Qsys System Console window, click File > Execute Script.
  13. To start the memory tests, run the run_sweep.tcl file from the tt_qsys_design\quartus_ii_projects_for_boards\<development_board> \system_console directory.
    When you run the run_sweep.tcl script, the System Console displays the progress of the tests in the Messages tab. The tests perform test sweeps on the SDRAM by varying the memory block size and memory block trail distance. When the tests finish successfully, Qsys generates a message that reports successful completion.