21.13.1.78 write_usram

Description

This tcl command writes a 12-bit word into the specified uSRAM location.

write_usram [-deviceName "device name"] \
            [-name "USRAM block name"] \
            [-logicalBlockName "USRAM user defined block name"] \
            [-port "USRAM port name"] \
            [-offset "integer value"] \
            [-logicalValue "USRAM block word value"] \
            [-value "integer value"]

Physical block
write_usram –name block_name \
            –offset offset_value \
            –value integer_value

Logical block
write_usram -logicalBlockName block_name \
            -port port_name \
            -offset offset_value \
            -logicalValue hexadecimal_value

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 of the user defined memory block.

port

string

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

offset

integer

Offset (address) of the target word within the memory block.

logicalValue

integer

Specifies the hexadecimal value to be written to the memory block. Size of the value is equal to the width of the output port selected.

value

integer

12- bit value to be written.

Return TypeDescription
NoneNone

Error Codes

Error CodeDescription

None

Parameter 'logicalValue' has illegal value.

None

offset: Invalid argument value: 'offset_value' (expecting integer value).

None

Parameter 'offset' has illegal value.

None

Active probe value must be specified.

None

Port_name is an invalid Port name.

None

Parameter 'port' has illegal value.

None

LSRAM port name must be specified.

None

LSRAM block word cannot be written. Use phyical block word to write.

None

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

None

Parameter 'value' has illegal value.

None

Parameter 'name' has illegal value.

Supported Families

PolarFire
PolarFire SoC
SmartFusion 2
IGLOO 2
RTG4

Example

Writes a value of 0x291 to the device PolarFire in the Fabric_Logic_0/U3/F_0_F0_U1/ramtmp_ramtmp_0_0/INST_RAM64x12_IP with an offset of 0.

write_lsram \
-name {Fabric_Logic_0/U3/F_0_F0_U1/ramtmp_ramtmp_0_0/INST_RAM64x12_IP} \
-offset 0 \
-value 291
write_usram -logicalBlockName {Fabric_Logic_0/U3/F_0_F0_U1} -port {Port A} -offset 1 -logicalValue {00FFF}

See Also

  • read_usram