SourcePoint Intel Help

Table of Contents

last_jtag_device

Return the device ID of the last JTAG device.

Syntax

[result = ] last_jtag_device

Where:

result

specifies a debug variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

Discussion

last_jtag_device returns the device ID of the last JTAG device.  It can be used with num_jtag_devices and/or first_jtag_device to iterate over JTAG devices.

Example 1

To create a custom-format devicelist command:

Command input:

define proc devlist()

{

  define ord4 nID

  if (num_jtag_devices > 0)

  {

    for (nID=first_jtag_device; nID <= last_jtag_device; nID++)

    {

      printf("%4x %8s (%-11s) port %d, scanchain %d, idcode %x\n",

        devicelist[nID].did,

        devicelist[nID].alias,

        devicelist[nID].devicetype,

        devicelist[nID].debugport,

        devicelist[nID].scanchain,

        devicelist[nID].idcode)        

    }

  }

}

Related Topics