21.13.1.45 read_lsram

Description

This tcl command reads a specified block of large SRAM from the device.

read_lsram [-deviceName "device name"] \
           [-name "LSRAM block name"] \
           [-logicalBlockName "USRAM user defined block name"] \
           [-port "LSRAM port name"] \
           [-fileName "Data file name"] \
           [-file "Data file name"]

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.

name

string​

Specifies the name for the target block.

logicalBlockName

string​

Specifies the name for the user defined memory block.

port

string​

Specifies the port for the memory block selected. Can be either Port A or Port B.

fileName

string​

Optional; specifies the output file name for the data read from the device.

file

string​

Optional; specifies the output file name for the data read from the device.

Return TypeDescription
NoneNone

Error Codes

Error CodeDescription

None

Parameter 'file' has illegal value.

None

Parameter 'fileName' has illegal value.

None

Port 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.

None

Missing argument. Must specify '-name' or '-logicalBlockName'.

None

Parameter 'deviceName' has illegal value.

None

Parameter 'param_name' is not defined. Valid command formatting is'read_lsram [-deviceName "device name"] [-name "LSRAM block name"] [-logicalBlockName "USRAM user defined block name"] [-port "LSRAM port name"] [-fileName "Data file name"] [-file "Data file name"]'.

None

LSRAM block name failed to read: Target block not found in debug file.

None

Parameter 'name' has illegal value.

Supported Families

PolarFire
PolarFire SoC
SmartFusion 2
IGLOO 2
RTG4

Example

Reads the LSRAM Block Fabric_Logic_0/U2/F_0_F0_U1/ramtmp_ramtmp_0_0/INST_RAM1K20_IP from the PolarFire device and writes it to the file output.txt.

read_lsram \
-name {Fabric_Logic_0/U2/F_0_F0_U1/ramtmp_ramtmp_0_0/INST_RAM1K20_IP} \
–fileName {output.txt}

This example reads the uSRAM logical Block {Fabric_Logic_0/U3/F_0_F0_U1} from {Port A}.

read_lsram -logicalBlockName {Fabric_Logic_0/U2/F_0_F0_U1} -port {Port A}

See Also

  • write_lsram