21.13.1.9 ddr_read

Description

This tcl command reads the value of specified configuration registers pertaining to the DDR memory controller (MDDR/FDDR).

ddr_read -deviceName "deive name" \
         -block {DDR name} \
         -name {register name}

Arguments

ParameterTypeDescription

deviceName

string

Specify device name. This parameter is optional if only one device is available in the current configuration.

block

string

Specify block name: fddr | mddr | east_fddr | west_fddr.

  • Specifies which DDR configurator is used in the Libero design.

  • SmartFusion 2 and IGLOO 2 - fddr and mddr 56.

  • RTG4 - east_fddr and west_fddr.

name

string

  • Specifies which configuration registers need to be read.

  • A complete list of registers is available in the DDR Interfaces User Guides for the respective families.

Return TypeDescription

​​​​Returns 16-bit hexadecimal value.

The result of the command in the example below will be: Register Name: DDRC_DYN_REFRESH_1_CR Value: 0x1234 “ddr_read” command succeeded.

Error Codes

Error CodeDescription

None

Required parameter 'block' is missing.

None

Parameter 'block' has illegal value.

None

Required parameter 'name' is missing.

None

Parameter 'name' has illegal value.

None

Parameter 'param_name' is not defined. Valid command formatting is'ddr_read [-deviceName "device name"] -block "DDR Block Name" -name "DDR Resgister Name"'.

Supported Families

SmartFusion 2
IGLOO 2
RTG4

Example

Read DDR Controller register DDRC_DYN_REFRESH_1_CR for a configured FDDR block on a SmartFusion 2 or IGLOO 2 device:

ddr_read -block fddr -name DDRC_DYN_REFRESH_1_CR

See Also

  • ddr_write