GET_BSDL_IR_LENGTH

The GET_BSDL_IR_LENGTH function gets the length of the instruction register for a JTAG device from the INSTRUCTION_LENGTH value in its BSDL file.

Syntax

GET_BSDL_IR_LENGTH( STRING jtagDeviceRef )

Parameters

jtagDeviceRef

A JTAG device reference in the form 'board.device' or 'board.device.core' for a multicore device. The GET_JTAG_DEVICE function can be used to get this device reference for any JTAG device in the project.

Return value

An INT value containing the instruction register length.

Errors

If the supplied JTAG device reference is invalid, then an error occurs. If the string is constant, then the verification can be done at compile-time and an error is emitted then, otherwise the error will occur at run-time, when the function is run.

Example

INT irLength := GET_BSDL_IR_LENGTH("XJDemo.IC2");

To get the boundary scan register length for a JTAG device use:

INT drLength := WIDTHOF(SAFE("XJDemo.IC2"))