176
ChipScope Pro Software and Cores User Guide
UG029 (v14.3) October 16, 2012
Chapter 5:
ChipScope Engine Tcl Interface
::chipscope::csejtag_db parse_bsdl
This subcommand is used to extract device information from a Boundary Scan Description
Language (BSDL) buffer.
Syntax
::chipscope::csejtag_db parse_bsdl handle filename buf bufLen
Arguments
Returns
A list in the format:
{deviceName irlen idcode cmd_bypass}
Where:
deviceName
String containing the name of the device
irlen
Number of bits in the
IR
of the device
idcode
IDCODE
of the device
cmd_bypass
String containing the BYPASS instruction for the device (usually all ones)
An exception is thrown if the subcommand fails.
Example
Extract device information from the file
device.bsd
that was placed in the buffer
bsdl_buf
of size
bsdl_bufLen
.
%::chipscope::csejtag_db parse_bsdl $handle “device.bsd” $bsdl_buf
$bsdl_bufLen
Back to list of all CseJtag Tcl Commands
Table 5-44:
Arguments for Subcommand ::chipscope::csejtag_db parse_bsdl
Argument
Type
Description
handle
Required
Handle to the session that is returned by
::chipscope::csejtag_session create
.
filename
Filename of local BSDL file (for debugging only)
buf
Buffer containing the contents of the entire BSDL file
bufLen
Size of the buffer
buf
(in bytes or characters)