21.13.1.43 read_id_code
(Ask a Question)Description
This Tcl command reads the ID code of a device. Each device has a unique ID, thereby executing this command returns a hexadecimal value.
Note:
Being able to read the IDCODE is an indication that the JTAG interface is working correctly.
read_id_code [-deviceName "device name"]
Arguments
Parameter | Type | Description |
---|---|---|
deviceName | none | Specify device name. This parameter is optional if only one device is available in the current configuration. |
Return Type | Description |
---|---|
Hexadecimal number | Returns the hexadecimal ID code of the DUT/product. |
Error Codes
Error Code | Description |
---|---|
None | None |
Supported Families
PolarFire |
PolarFire SoC |
SmartFusion 2 |
IGLOO 2 |
RTG4 |
Example
The following command reads the IDCODE from the current configuration:
read_id_code
See Also
set_debug_device
read_device_status