Interlaken sample channel client component, Interlaken sample channel client component –2 – Altera Interlaken MegaCore Function User Manual

Page 64

Advertising
background image

6–2

Chapter 6: Qsys Design Examples

Interlaken Sample Channel Client Component

Interlaken MegaCore Function

June 2012

Altera Corporation

User Guide

f

For more information about the interconnect fabric that Qsys generates, refer to the

Qsys Interconnect

chapter in volume 1 of the Quartus II Handbook. For more

information about Qsys, refer to the

Creating a System with Qsys

chapter in volume 1 of

the Quartus II Handbook.

The design example files are provided in the Interlaken IP core installation directory.
You can use them as a basis for developing your own testbench for your Interlaken
MegaCore function variation. Based on the example, you can create your own stimuli
and verification criteria, using the Interlaken Sample Channel Client component
available in the Qsys tool.

Interlaken Sample Channel Client Component

The design examples implement each channel client with an Interlaken Sample
Channel Client component.

The Interlaken Sample Channel Client is a component in the Component Library
panel in the Qsys system integration tool. The only parameter available in its
parameter editor is Width of datapath in bits, which must match the datapath width
of the Interlaken MegaCore function to which it connects. However, its instantiation
relies on values being assigned to the additional parameters shown in

Table 6–2

.

The Interlaken Sample Channel Client sends data samples on the channel to which it
is connected in the RX application interface. Each data sample is some number of bits
that fits in WORDS number of 64-bit (8-byte) words. These are the valid bits in the
transmission. An internal register of size LOG_WORDS holds the number of 64-bit words
with at least one valid bit in them, and an internal register of size EMPTY_BITS holds
the number of bytes with no valid bits in them. The LOG_WORDS and EMPTY_BITS
parameters can be derived from the value of WORDS, but are provided as separate
parameters for legibility.

Table 6–2. Interlaken Sample Channel Client Hidden Parameters

Parameter

Description

Default Value

WORDS

Number of 64-bit words in each data sample. (Not all bits need
be valid). Value is one of 2, 4, or 8, depending on the DUT
variation.

8

LOG_WORDS

Size of the internal register that holds the number of valid
words in the current transmission in or out. Value is 2, 3, or 4,
depending on the DUT variation, because holding a number
from 0 to WORDS requires log

2

(WORDS) + 1 bits.

4

EMPTY_BITS

Size of the internal register that holds the number of empty
bytes in transmissions in and out of the Interlaken Sample
Channel Client. Value is 4, 5, or 6, depending on the DUT
variation, because holding a number from 0 to 8, 0 to 16, or 0
to 64 requires 4, 5, or 6 bits.

6

BUFFER_WORDS

Number of 64-bit words in TX_STRING and RX_STRING
vectors. Default value is WORDS × 2.

WORDS

× 2

TX_STRING

String from which outgoing data samples are derived. Length is
BUFFER_WORDS

× 64.

RX_STRING

String against which to check Interlaken RX incoming data
samples after they pass through the channel interface.

Advertising