
You can see the default address range of the pattern_access interface in the Base and End columns on the
System Contents tab.
You assign a base address for the csr interface that is higher than the end address of the pattern_access
interface to avoid conflicting with the address space of the pattern_access interface.
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.
Add a Two-to-One Streaming Multiplexer
You add a two-to-one streaming multiplexer between the pattern generators and the pattern writer
because the system has two pattern sources, and the pattern writer component accepts data only from one
streaming source. The two-to-one streaming soft programmable multiplexer IP core allows the processor
to select which pattern to send to the pattern writer.
The two-to-one streaming multiplexer component has the following interfaces:
• Two streaming inputs: st_input_A and st_input_B.
• One streaming output: st_output.
• One csr slave interface, which the processor controls to select whether input A or input B is sent to the
streaming output.
The custom pattern generator connects to input A, and the PRBS pattern generator connects to input B.
1. In the IP Catalog, expand Memory Test Microcores, and then double-click Two-to-one Streaming
Mux.
2. In the parameter editor, accept the default parameters, and then click Finish.
3. Rename the instance to two_to_one_st_mux.
4. Set the two_to_one_st_mux clock to clk_0.
5. Connect the two_to_one_st_mux st_input_A interface to the custom_pattern_generator
st_pattern_output interface.
6. Connect the two_to_one_st_mux st_input_B interface to the prbs_pattern_generator
st_pattern_output interface.
TU-01006
2015.05.04
Add a PRBS Pattern Generator
7
Qsys System Design Tutorial
Altera Corporation
Send Feedback
Kommentare zu diesen Handbüchern