21.13.1.38 prbs_test

Description

This Tcl command used in PRBS test to start, stop, reset the error counter and read the error counter value. PRBS data stream patterns are generated and checked by the internal SERDES block. These are used to self-test signal integrity of the device. You can switch the device through several predefined patterns.

Note:

​prbs_test is renamed as smartbert_test in G5.

prbs_test [-deviceName device_name ] -start -serdes "integer value" \
          -lane "integer value" [-near] -pattern "PatternType"
prbs_test [-deviceName device_name ] -stop -serdes "integer value" \
          -lane "integer value"
prbs_test [-deviceName device_name ] -reset_counter \
          -serdes "integer value" -lane "integer value"
prbs_test [-deviceName device_name ] -read_counter \
          -serdes "integer value" -lane "integer value"

Arguments

ParameterTypeDescription

deviceName

string

Specifies device name. This parameter is optional if only one device is available in the current configuration or set for debug.

start

none

Starts the prbs test.

stop

none

Stops the prbs test.

reset_counter

none

Resets the prbs error count value to 0.

read_counter​

none

Reads and prints the error count value.

SerDes

integer

SerDes block number. Must be between 0 and 4 and varies between dies.

lane

integer

SerDes lane number. Must be between 0 and 4.

near

none

Corresponds to near-end (on-die) option for prbs test. Not specifying implies off-die.

pattern

string

The pattern sequence to use for PRBS test. It can be one of the following: prbs7, prbs11, prbs23, or prbs31.

Return TypeDescription
NoneNone

Error Codes

Error CodeDescription

None

Parameter 'param_name' is not defined. Valid command formatting is

'prbs_test [-deviceName "device name"] [-start "TRUE | FALSE"] [-stop "TRUE | FALSE"] [-reset_counter "TRUE | FALSE"] [-read_counter "TRUE | FALSE"] [-pattern "Pattern type"] -serdes "integer value" -lane "integer value" [-near "TRUE | FALSE"] '

None

Required parameter 'serdes' is missing.

None

serdes: Invalid argument value: 'serdes_value' (expecting integer value).

None

Required parameter 'lane' is missing.

Supported Families

SmartFusion 2
IGLOO 2

RTG4

Example

The following example starts PRBS test with the "prbs11" pattern:

prbs_test -start -serdes 1 -lane 0 -near -pattern "prbs11"

See Also

  • smartbert_test

  • loopback_mode

  • loopback_test