Qsys System Design Tutorial

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

1.4.1.4. Add a PRBS Pattern Generator

The output of the PRBS pattern generator is a statically-defined PRBS pattern. You can specify the pattern length before the pattern repeats in the parameter editor. The pattern length is defined by 2^(data width) – 1.

For example, a 32-bit PRBS pattern generator repeats the pattern after it sends 4,294,967,295 elements. You set the width of the PRBS generator based on the (local) data width of the memory on your board.

The PRBS pattern generator has two interfaces; the csr and the st_pattern_output streaming source interface. The csr interface controls the behavior of the PRBS pattern generated. The st_pattern_output streaming source interface sends data to the pattern writer component.

  1. In the IP Catalog, expand Memory Test Microcores, and then double-click PRBS Pattern Generator.
  2. In the parameter editor, accept the default parameters, and then click Finish.
  3. Rename the instance to prbs_pattern_generator.
  4. Set the prbs_pattern_generator clock interface to clk_0.
  5. Connect the prbs_pattern_generator csr interface to the mm_bridge m0 interface.
  6. Assign the prbs_pattern_generator csr interface to a base address of 0x0420, which is a base address just higher than the end address of the custom_pattern_generator csr interface of 0x410.