Visible to Intel only — GUID: bhc1447658014674
Ixiasoft
1.7.4. Software Parameters
Various behaviors of the main.c source code are controlled by software parameters defined in the main header file, main.h.
Parameter |
Description |
Default Value |
---|---|---|
DEBUG_MODE |
Set to 1 to print debug messages, else set to 0. |
0 |
PRINT_INTERRUPT_ MESSAGES |
Set to 1 to print JESD204B error interrupt messages, else set to 0. |
1 |
CONFIG_SPI |
Set to 1 to configure external converters via SPI interface at start of main.c execution, else set to 0. |
1 |
PATCHK_EN |
Set to 1 when test pattern checker is included in the initial design configuration, else set to 0. |
1 |
ALTERA_TRANSPORT_ LAYER |
Set to 1 when using Altera transport layer, else set to 0. |
1 |
BONDED |
Set to 1 when transceivers configured in bonded mode, set to 0 when transceivers configured in unbonded mode. |
0 |
DATAPATH |
Set to indicate JESD204B IP configuration:
|
3 |
DATA_RATE_LINK_n |
Set to indicate the initially configured serial data rate of link n in Mbps (for example, to set link 0 to 6144 Mbps, DATA_RATE_LINK_ 0=6144). For multi-link scenarios, add additional DATA_RATE_ LINK_n parameters to the DR_init[] array in main.c.
Note: Data rate reconfiguration is not supported in this reference design.
|
6144 |
DATA_RATE_MIN |
Set to indicate the minimum serial data rate (in Mbps) supported by the JESD204B IP core for the following device families:
Note: Data rate reconfiguration is not supported in this reference design.
|
2000 |
MAX_LINKS |
Set to indicate the number of links in the design (for example, for dual link, set MAX_LINKS=2)
Note: When using the design as-is, the maximum value of MAX_ LINKS is 4. To increase the limit, redesign the address map in QSYS.
|
1 |
LINE_BUFFER |
Sets the maximum number of characters that user can enter on command line. |
100 |
MAX_NUM_OPTIONS |
Sets the maximum number of options per command. |
20 |
MAX_OPTIONS_CHAR |
Sets the maximum number of characters per command option |
10 |
LOOPBACK_INIT |
Initial value of loopback. Set to 1 for internal serial loopback mode, else set to 0. |
1 |
SOURCEDEST_INIT |
Initial value of source/destination. Set to indicate test pattern generator/checker type or user mode:
|
PRBS |
F1_FRAMECLK_DIV |
Set to the F1_FRAMECLK_DIV parameter as defined in the top level HDL file (jesd204b_ed.sv). |
4 |
F2_FRAMECLK_DIV |
Set to the F2_FRAMECLK_DIV parameter as defined in the top level HDL file (jesd204b_ed.sv). |
2 |
SOC |
Set to 1 if source code is targeting ARM® HPS. Set to 0 if source code is targeting soft Nios II processor. |
1 |