21.13.1.10 ddr_write

Description

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

ddr_write [-deviceName "device name"] \
          -block {ddr name} \
          -name {register name} \
          -value {hexadecimal value}

Arguments

ParameterTypeDescription

deviceName

string

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

block

string

Specify blcok 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 • 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.

value

hexadecimal
  • Specifies the value to be written into the specified register of a given block.

  • Hex_value in the form of “0x12FA”.

Return TypeDescription
NoneNone

Error Codes

Error CodeDescription

None

Parameter 'value' has illegal value.

None

Required parameter 'value' is missing.

None

Parameter 'name' has illegal value.

None

Required parameter 'name' is missing.

None

Parameter 'block' has illegal value.

None

Required parameter 'block' is missing.

None

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

Supported Families

SmartFusion 2
IGLOO 2
RTG4*

Example

Write a 16-bit value DDR Controller register DDRC_DYN_REFRESH_1_CR for a configured FDDR block on a SmartFusion 2 or IGLOO 2 device:

ddr_write -block fddr -name DDRC_DYN_REFRESH_1_CR -value 0x123f

See Also

  • ddr_read