Qsys System Design Tutorial

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

1.5.1.3.3. Add a RAM Test Controller

The RAM test controller contains two streaming command interfaces; write_command and read_command, that send commands to the pattern reader and pattern writer components. These streaming interfaces issue commands effectively because Avalon-ST interfaces offer low latency and a simple handshaking protocol, as well as because the processor accesses a slave port, csr, to write commands to the controller.
  1. In the IP Catalog, double-click RAM Test Controller from the Memory Test Microcores group.
  2. In the parameter editor, click Finish to accept the default parameters.
  3. Rename the instance to ram_test_controller.
  4. Set the ram_test_controller clock to clk_0.
  5. Connect the ram_test_controller write_command interface to the pattern_writer_command interface.
  6. Connect the ram_test_controller read_command interface to the pattern_reader_command interface.
  7. Connect the ram_test_controller csr interface to the mm_bridge m0 interface.

Do not use the Generation tab at this point in the tutorial to generate HDL code for these subsystems. You must generate files for the entire top-level system, which includes all the subsystems. The batch script provided for you to program the device requires that only one system is generated in the project directory. The top-level design includes a Nios II subsystem, and the Nios II software build tools require the SOPC Information File (.sopcinfo) to be generated for the top-level design. If there are multiple .sopcinfo files, the batch script to program the device fails with an error from the software build tools.