Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

3.7.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 Platform Designer, click Generate > Generate.
  2. Select the language for Create HDL design files for synthesis.
  3. Click Generate. Platform Designer generates HDL files for the system and the .qip file, which provides the list of required HDL files for the Intel® Quartus® Prime compilation.
  4. When Platform Designer completes the generation, click Close.
  5. In the Intel® Quartus® Prime 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 Platform Designer, click Tools > System Console.
  12. Before you execute scripts in System Console, navigate to the directory for the Tcl scripts, and then in Platform Designer 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, Platform Designer generates a message that reports successful completion.