21.13.1.46 read_usram
(Ask a Question)Description
This tcl command reads a uSRAM block from the device.
read_usram [-deviceName "device name"] \
[-name "USRAM block name"] \
[-logicalBlockName "USRAM user defined block name"] \
[-port "USRAM port name"] \
[-file "Data file name"] \
[-fileName "Data file name"]
Phisical block
read_usram -name {RAMS_LSRAM_URAM_0/PF_DPSRAM_C0_0/PF_DPSRAM_C0_0/PF_DPSRAM_C0_PF_DPSRAM_C0_0_PF_DPSRAM_R0C0/INST_RAM1K20_IP}
Logical block
read_usram -logicalBlockName {RAMS_LSRAM_URAM_0/PF_URAM_C0_0/PF_URAM_C0_0} -port {Port A}
Arguments
Parameter | Type | Description |
---|---|---|
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. |
name | string | Specifies the name for the target block. |
logicalBlockName | string | Specifies the name of the user defined memory block. |
port | string | Specifies the port of the memory block selected. Can be either Port A or Port B. |
file | string | This parametr is ptional. Specifies the output file name for the data read from the device. |
fileName | string | This parametr is ptional. Specifies the output file name for the data read from the device. |
Return Type | Description |
---|---|
None | None |
Error Codes
Error Code | Description |
---|---|
None | Missing argument. Must specify '-name' or '-logicalBlockName'. |
None | Error: Parameter 'param_name' is not defined. Valid command formatting is'read_usram [-deviceName "device name"] [-name "USRAM block name"] [-logicalBlockName "USRAM user defined block name"] [-port "USRAM port name"] [-file "Data file name"] [-fileName "Data file name"]'. |
None | Parameter 'name' has illegal value. |
None | Error reading USRAM block value from the device: Target block not found in debug file. |
None | Parameter 'file' has illegal value. |
None | Port_name is an invalid Port name. |
None | Parameter 'port' has illegal value. |
None | RAM port name must be specified. |
None | LSRAM block cannot be read. Use phyical block option to read. |
None | Parameter 'logicalBlockName' has illegal value. |
Supported Families
PolarFire |
PolarFire SoC |
SmartFusion 2 |
IGLOO 2 |
RTG4 |
Example
Reads the uSRAM Block Fabric_Logic_0/U3/F_0_F0_U1/ramtmp_ramtmp_0_0/INST_RAM64x12_IP from the PolarFire device and writes it to the file sram_block_output.txt.
read_usram \
-name {Fabric_Logic_0/U3/F_0_F0_U1/ramtmp_ramtmp_0_0/INST_RAM64x12_IP} \
–fileName {output.txt}
This example reads the uSRAM logical Block {Fabric_Logic_0/U3/F_0_F0_U1} from {Port A}.read_usram -logicalBlockName {Fabric_Logic_0/U3/F_0_F0_U1} -port {Port A}
See Also
write_usram