21.13.1.9 ddr_read
(Ask a Question)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
Parameter | Type | Description |
---|---|---|
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.
|
name | string |
|
Return Type | Description |
---|---|
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 Code | Description |
---|---|
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