21.13.1.61 serdes_write_register

Description

This tcl command writes the value to the SerDes register. Displays the result in the log window/console.

serdes_write_register [-serdes "integer value"] \
                      [-lane "integer value"] \
                      -name "Serdes register name" \
                      -value "Serdes register value"

Arguments

ParameterTypeDescription

deviceName

string

Optional user-defined device name. The device name is not required if there is only one device in the current configuration, or a device has already been selected using the set_debug_device command.

serdes

integer

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

lane

integer

SerDes lane number. Must be between 0 and 3.

The lane number should be specified when the lane register is used. Otherwise, the command will fail.

When the lane number is specified along with the SYSTEM or PCIe register, the command will fail with an error message, as the lane is not applicable to them.

name

string

Name of the SerDes register.

value

hexadecimal

Specify the value in hexadecimal format.

Return TypeDescription
NoneNone

Error Codes

Error CodeDescription

None

Required parameter 'name' is missing.

None

Parameter 'serdes' has illegal value.

None

Parameter 'lane' has illegal value.

None

Parameter 'name' has illegal value.

None

Required parameter 'value' is missing.

None

Parameter 'value' has illegal value.

None

'Reg_name' is either an invalid or unsupported SerDes register.

None

SerDes lane number should not be specified for system register.

None

Parameter 'parm_name' is not defined. Valid command formatting is 'serdes_write_register [-deviceName "device name"] [-serdes "integer value"] [-lane "integer value"] -name "Serdes register name" -value "Serdes register value" '

Supported Families

SmartFusion 2
IGLOO 2
RTG4

Example

This example writes {0x5533} value to the {SYSTEM_SER_PLL_CONFIG_HIGH} SerDes register:

serdes_write_register -serdes 0 \
                      -name {SYSTEM_SER_PLL_CONFIG_HIGH} \
                      -value {0x5533}

See Also

  • serdes_lane_reset

  • serdes_read_register