GET_BSDL_IR_OPCODE
The GET_BSDL_IR_OPCODE function gets the code for a particular instruction for a JTAG device from its BSDL file.
Syntax
GET_BSDL_IR_OPCODE( STRING jtagDeviceRef, STRING instruction )
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.
- instruction
- The name of the instruction whose opcode is to be returned, e.g. "EXTEST".
Return value
An INT value containing the opcode for the instruction.Errors
If the supplied JTAG device reference is invalid or the instruction is not defined for the device, then an error occurs. If the strings are 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 code := GET_BSDL_IR_OPCODE("XJDemo.IC2", "BYPASS");
XJTAG v4.1.100