JTAG
JTAG
JTAG
Introduction Hardware JTAG Programmer Tutorial Designing Boundary-Scan and ISP Systems Boundary Scan Basics JTAG Parallel Cable Schematic Troubleshooting Guide Error Messages Using the Command Line Interface Standard Methodologies for Instantiating the BSCAN Symbol
Printed in U.S.A.
The Xilinx logo shown above is a registered trademark of Xilinx, Inc. ASYL, FPGA Architect, FPGA Foundry, NeoCAD, NeoCAD EPIC, NeoCAD PRISM, NeoROUTE, Timing Wizard, TRACE, XACT, XILINX, XC2064, XC3090, XC4005, XC5210, and XC-DS501 are registered trademarks of Xilinx, Inc.
The shadow X shown above is a trademark of Xilinx, Inc. All XC-prefix product designations, A.K.A Speed, Alliance Series, AllianceCORE, BITA, CLC, Configurable Logic Cell, CoolRunner, CORE Generator, CoreLINX, Dual Block, EZTag, FastCLK, FastCONNECT, FastFLASH, FastMap, Fast Zero Power, Foundation, HardWire, IRL, LCA, LogiBLOX, Logic Cell, LogiCORE, LogicProfessor, MicroVia, MultiLINX, PLUSASM, PowerGuide, PowerMaze, QPro, RealPCI, RealPCI 64/66, SelectI/O, SelectRAM, SelectRAM+, Silicon Xpresso, Smartguide, Smart-IP, SmartSearch, Smartspec, SMARTSwitch, Spartan, TrueMap, UIM, VectorMaze, VersaBlock, VersaRing, Virtex, WebFitter, WebLINX, WebPACK, XABEL, XACTstep, XACTstep Advanced, XACTstep Foundry, XACT-Floorplanner, XACT-Performance, XAM, XAPP, XBLOX, X-BLOX plus, XChecker, XDM, XDS, XEPLD, Xilinx Foundation Series, XPP, XSI, and ZERO+ are trademarks of Xilinx, Inc. The Programmable Logic Company and The Programmable Gate Array Company are service marks of Xilinx, Inc. All other trademarks are the property of their respective owners. Xilinx, Inc. does not assume any liability arising out of the application or use of any product described or shown herein; nor does it convey any license under its patents, copyrights, or maskwork rights or any rights of others. Xilinx, Inc. reserves the right to make changes, at any time, in order to improve reliability, function or design and to supply the best product possible. Xilinx, Inc. will not assume responsibility for the use of any circuitry described herein other than circuitry entirely embodied in its products. Xilinx, Inc. devices and products are protected under one or more of the following U.S. Patents: 4,642,487; 4,695,740; 4,706,216; 4,713,557; 4,746,822; 4,750,155; 4,758,985; 4,820,937; 4,821,233; 4,835,418; 4,855,619; 4,855,669; 4,902,910; 4,940,909; 4,967,107; 5,012,135; 5,023,606; 5,028,821; 5,047,710; 5,068,603; 5,140,193; 5,148,390; 5,155,432; 5,166,858; 5,224,056; 5,243,238; 5,245,277; 5,267,187; 5,291,079; 5,295,090; 5,302,866; 5,319,252; 5,319,254; 5,321,704; 5,329,174; 5,329,181; 5,331,220; 5,331,226; 5,332,929; 5,337,255; 5,343,406; 5,349,248; 5,349,249; 5,349,250; 5,349,691; 5,357,153; 5,360,747; 5,361,229; 5,362,999; 5,365,125; 5,367,207; 5,386,154; 5,394,104; 5,399,924; 5,399,925; 5,410,189; 5,410,194; 5,414,377; 5,422,833; 5,426,378; 5,426,379; 5,430,687; 5,432,719; 5,448,181; 5,448,493; 5,450,021; 5,450,022; 5,453,706; 5,455,525; 5,466,117; 5,469,003; 5,475,253; 5,477,414; 5,481,206; 5,483,478; 5,486,707; 5,486,776; 5,488,316; 5,489,858; 5,489,866; 5,491,353; 5,495,196; 5,498,979; 5,498,989; 5,499,192; 5,500,608; 5,500,609; 5,502,000; 5,502,440; 5,504,439; 5,506,518; 5,506,523; 5,506,878; 5,513,124; 5,517,135; 5,521,835; 5,521,837; 5,523,963; 5,523,971; 5,524,097; 5,526,322; 5,528,169; 5,528,176; 5,530,378; 5,530,384; 5,546,018; 5,550,839; 5,550,843; 5,552,722; 5,553,001; 5,559,751; 5,561,367; 5,561,629; 5,561,631; 5,563,527; 5,563,528; 5,563,529; 5,563,827; 5,565,792; 5,566,123; 5,570,051; 5,574,634; 5,574,655; 5,578,946; 5,581,198; 5,581,199; 5,581,738; 5,583,450; 5,583,452; 5,592,105; 5,594,367; 5,598,424; 5,600,263; 5,600,264; 5,600,271; 5,600,597; 5,608,342; 5,610,536; 5,610,790; 5,610,829; 5,612,633; 5,617,021; 5,617,041; 5,617,327; 5,617,573; 5,623,387; 5,627,480; 5,629,637; 5,629,886; 5,631,577; 5,631,583; 5,635,851; 5,636,368; 5,640,106; 5,642,058; 5,646,545; 5,646,547; 5,646,564; 5,646,903; 5,648,732; 5,648,913; 5,650,672; 5,650,946; 5,652,904; 5,654,631; 5,656,950; 5,657,290; 5,659,484; 5,661,660; 5,661,685; 5,670,896; 5,670,897; 5,672,966; 5,673,198; 5,675,262; 5,675,270; 5,675,589; 5,677,638; 5,682,107; 5,689,133; 5,689,516; 5,691,907; 5,691,912; 5,694,047; 5,694,056; 5,724,276; 5,694,399; 5,696,454; 5,701,091; 5,701,441; 5,703,759; 5,705,932; 5,705,938; 5,708,597; 5,712,579; 5,715,197; 5,717,340; 5,719,506; 5,719,507; 5,724,276; 5,726,484; 5,726,584; 5,734,866; 5,734,868; 5,737,234; 5,737,235;
5,737,631; 5,742,178; 5,742,531; 5,744,974; 5,744,979; 5,744,995; 5,748,942; 5,748,979; 5,752,006; 5,752,035; 5,754,459; 5,758,192; 5,760,603; 5,760,604; 5,760,607; 5,761,483; 5,764,076; 5,764,534; 5,764,564; 5,768,179; 5,770,951; 5,773,993; 5,778,439; 5,781,756; 5,784,313; 5,784,577; 5,786,240; 5,787,007; 5,789,938; 5,790,479; 5,790,882; 5,795,068; 5,796,269; 5,798,656; 5,801,546; 5,801,547; 5,801,548; 5,811,985; 5,815,004; 5,815,016; 5,815,404; 5,815,405; 5,818,255; 5,818,730; 5,821,772; 5,821,774; 5,825,202; 5,825,662; 5,825,787; 5,828,230; 5,828,231; 5,828,236; 5,828,608; 5,831,448; 5,831,460; 5,831,845; 5,831,907; 5,835,402; 5,838,167; 5,838,901; 5,838,954; 5,841,296; 5,841,867; 5,844,422; 5,844,424; 5,844,829; 5,844,844; 5,847,577; 5,847,579; 5,847,580; 5,847,993; 5,852,323; 5,861,761; 5,862,082; 5,867,396; 5,870,309; 5,870,327; 5,870,586; 5,874,834; 5,875,111; 5,877,632; 5,877,979; 5,880,492; 5,880,598; 5,880,620; 5,883,525; 5,886,538; 5,889,411; 5,889,413; 5,889,701; 5,892,681; 5,892,961; 5,894,420; 5,896,047; 5,896,329; 5,898,319; 5,898,320; 5,898,602; 5,898,618; 5,898,893; 5,907,245; 5,907,248; 5,909,125; 5,909,453; 5,910,732; 5,912,937; 5,914,514; 5,914,616; 5,920,201; 5,920,202; 5,920,223; 5,923,185; 5,923,602; 5,923,614; 5,928,338; 5,931,962; 5,933,023; 5,933,025; 5,933,369; 5,936,415; 5,936,424; 5,939,930; 5,942,913; 5,944,813; 5,945,837; 5,946,478; 5,949,690; 5,949,712; 5,949,983; 5,949,987; 5,952,839; 5,952,846; 5,955,888; 5,956,748; 5,958,026; 5,959,821; 5,959,881; 5,959,885; 5,961,576; 5,962,881; 5,963,048; 5,963,050; 5,969,539; 5,969,543; 5,970,142; 5,970,372; 5,971,595; 5,973,506; 5,978,260; 5,986,958; 5,990,704; 5,991,523; 5,991,788; 5,991,880; 5,991,908; 5,995,419; 5,995,744; 5,995,988; 5,999,014; 5,999,025; 6,002,282; and 6,002,991; Re. 34,363, Re. 34,444, and Re. 34,808. Other U.S. and foreign patents pending. Xilinx, Inc. does not represent that devices shown or products described herein are free from patent infringement or from any other third party right. Xilinx, Inc. assumes no obligation to correct any errors contained herein or to advise any user of this text of any correction if such be made. Xilinx, Inc. will not assume any liability for the accuracy or correctness of any engineering or software support or assistance provided to a user. Xilinx products are not intended for use in life support appliances, devices, or systems. Use of a Xilinx product in such applications without the written consent of the appropriate Xilinx officer is prohibited. Copyright 1991-2000 Xilinx, Inc. All Rights Reserved.
Contents
Introduction chapter describes JTAG Programmer software. Hardware chapter provides information for connecting and using the XChecker Serial Cable or the Parallel Download Cable for system operation. JTAG Programmer Tutorial chapter documents the basic tasks needed to download programming to XC9500/XL/XV family devices in-system. Designing Boundary-Scan and ISP Systems chapter documents using the JTAG Programmer with FPGA devices. Boundary Scan Basics appendix contains reference information about boundary scan basics. JTAG Parallel Cable Schematic appendix has schematics for the XChecker Cable and the Parallel Download Cable. Troubleshooting Guide appendix contains troubleshooting information. Error Messages appendix provides a list of error messages that the JTAG Programmer may report. For most error messages a workaround is suggested.
JTAG Programmer Guide Using the Command Line Interface appendix documents the basics of using the JTAG Programmer from a command line in a workstation environment. Standard Methodologies for Instantiating the BSCAN Symbol appendix contains programming examples.
Additional Resources
For additional information, go to http://support.xilinx.com. The following table lists some of the resources you can access from this Web site. You can also directly access these resources using the provided URLs. Resource Tutorials Description/URL Tutorials covering Xilinx design flows, from design entry to verification and debugging http://support.xilinx.com/support/techsup/tutorials/ index.htm Current listing of solution records for the Xilinx software tools Search this database using the search function at http://support.xilinx.com/support/searchtd.htm Descriptions of device-specific design techniques and approaches http://support.xilinx.com/apps/appsweb.htm Pages from The Programmable Logic Data Book, which contain devicespecific information on Xilinx device characteristics, including readback, boundary scan, configuration, length count, and debugging http://support.xilinx.com/partinfo/databook.htm Quarterly journals for Xilinx programmable logic users http://support.xilinx.com/xcell/xcell.htm
Xcell Journals
Technical Tips Latest news, design tips, and patch information for the Xilinx design environment http://support.xilinx.com/support/techsup/journals/ index.htm
vi
Conventions
This manual uses the following conventions. An example illustrates each convention.
Typographical
The following conventions are used for all documents. Courier font indicates messages, prompts, and program files that the system displays. speed grade: - 100 Courier bold indicates literal commands that you enter in a syntactical statement. However, braces { } in Courier bold are not literal and square brackets [ ] in Courier bold are literal only in the case of bus specifications, such as bus [7:0].
rpt_del_net=
Courier bold also indicates commands that you select from a menu. File Open Italic font denotes the following items.
vii
JTAG Programmer Guide See the Development System Reference Guide for more information.
Emphasis in text If a wire is drawn so that it overlaps the pin of a symbol, the two nets are not connected.
Square brackets [ ] indicate an optional entry or parameter. However, in bus specifications, such as bus [7:0], they are required.
edif2ngd [option_name] design_name
Braces { } enclose a list of items from which you must choose one or more.
lowpwr ={on|off}
A vertical ellipsis indicates repetitive material that has been omitted. IOB #1: Name = QOUT IOB #2: Name = CLKIN . . .
A horizontal ellipsis . indicates that an item can be repeated one or more times. allow block block_name loc1 loc2locn;
Online Document
The following conventions are used for online documents. Red-underlined text indicates an interbook link, which is a crossreference to another book. Click the red-underlined text to open the specified cross-reference.
viii
Blue-underlined text indicates an intrabook link, which is a crossreference within a book. Click the blue-underlined text to open the specified cross-reference.
ix
Contents
About This Manual
Contents ........................................................................................v Additional Resources ....................................................................vi
Conventions
Typographical ................................................................................v Online Document ..........................................................................vi
Chapter 1
Introduction
Device operation options available to users are: ..........................1-1 Non-Volatile Device Data Security ...........................................1-2 User Feedback .........................................................................1-2 Required Files ...............................................................................1-3 JEDEC Files .............................................................................1-3 BSDL Summary .......................................................................1-3 BIT Files ...................................................................................1-3 MCS/EXO Prom Files ..............................................................1-4
Chapter 2
Hardware
Download Cables ..........................................................................2-1 XChecker Hardware (Serial) .........................................................2-2 Connecting for System Operation ............................................2-8 Cable Connections ...................................................................2-8 Baud Rates ..............................................................................2-10 Connecting the XChecker Cable ..............................................2-10 Connecting the XChecker Cable ........................................2-10 Connection to Your Target System .....................................2-10 Parallel Cable ................................................................................2-11 Connecting for System Operation ............................................2-15 Configuring the Parallel Download Cable ................................2-15
xi
JTAG Programmer Guide Flying Lead Connectors ...........................................................2-16 MultiLINX Cable ............................................................................2-18 MulitLINX Baud Rates ..............................................................2-19 MultiLINX Hardware Advantages .............................................2-19 MultiLINX Power Requirements ...............................................2-20 MultiLINX Signals .....................................................................2-20 Power Up Sequencing ..................................................................2-21
Chapter 3
Chapter 4
xii
Contents
xiii
JTAG Programmer Guide Help Online Help ............................................................E-8 Id_loop Idcode Looping ..................................................E-8 Opgroup Setup Group for Concurrent Operations .........E-8 Part Specify Device Chain .............................................E-9 Partinfo ...............................................................................E-9 Port Specify Download/Readback Port ..........................E-10 Program ..............................................................................E-10 Quit Terminate Session ..................................................E-11 Save Save Option Settings ............................................E-11 Settings Display Settings ...............................................E-12 Sys Temporarily Exit to Operating System .....................E-12 Verify Verify Target CPLD Bitstream ..............................E-12
xiv
Chapter 1
Introduction
This chapter introduces you to the basic concepts of Xilinx JTAG capabilities and Xilinx in-system programmable products. You can use JTAG Programmer to download, read back and verify design configuration data, to perform functional tests on any device, and to probe internal logic states of a Xilinx XC9500, XC9500XL, XC9500XV, Spartan or Virtex design. This chapter contains the following sections: Device operation options available to users are: Required Files
JTAG Programmer software uses sequences of JTAG instructions to perform the following programming and verification operations. The user need only select the desired operation; the software will execute all required JTAG commands transparently. For a description of JTAG instructions supported by Xilinx devices, see Appendix A.
1-1
JTAG Programmer Guide Readback Jedec. Reads back the contents of device programming registers and creates a new JEDEC/Prom file with the results. Get Device ID. Reads the contents of the JTAG IDCODE register. Displays contents for the user. Get Device Checksum. Reads back the contents of device programming registers and calculates a checksum for comparison against the expected value. Get Device Signature/Usercode. This value is selected by the user during fitting. The specified value is translated to binary values in the JEDEC file. During device programming these values are loaded into the JTAG USERCODE register. This function reads the contents of the USERCODE register and displays the result. For XC1800 Proms, 8 digit hex usercode can be specified at program time. Bypass. Ignores this device when addressing devices in the JTAG boundary scan chain. This option is only available through chain operations.
User Feedback
When using the graphical user interface, immediate feedback is provided by a scrolling log file and alert boxes. Detailed information regarding failure is located in the system log file, and is provided for both the PC and workstation based tool.
1-2
Introduction
Required Files
You need to provide JEDEC files for each XC9500/XL/XV CPLD device, BIT files for each Xilinx FPGA device (Virtex or Spartan) in the JTAG programming chain, and BSDL files for the remaining devices.
JEDEC Files
JEDEC files are XC9500/XL/XV CPLD programming files generated by the Xilinx fitter. They are ASCII text files containing programming information and, optionally, functional test vectors that can be used to verify the correct functional behavior of the programmed device. One JEDEC file is required for each XC9500/XL/XV device in the JTAG programming chain. Use the device properties (File Properties) dialog to specify the location of JEDEC files for each XC9500/XL/XV device. The name of the JEDEC file is assumed to be <design name>.jed, but can be specified exactly by the user.
BSDL Summary
The Boundary-Scan Description Language (BSDL) files use a subset of VHDL to describe the boundary scan features of a device. The JTAG Programmer automatically extracts the length of the instruction register from the BSDL file to place non-XC9500/XL/XV devices in bypass mode. XC9500/XL/XV BSDL files are located automatically by the JTAG Programmer. Use the device properties dialog to specify the location of BSDL files for non-XC9500/XL/XV devices. The name of the BSDL file is assumed to be <device name>.bsd.
BIT Files
Bit files are Xilinx FPGA configuration files generated by the Xilinx FPGA design software. They are proprietary format binary files containing configuration information. One BIT file is required for each Xilinx FPGA in the JTAG boundary-scan chain. Use the device properties (File Properties) dialog to specify the location of the BIT files for each Xilinx FPGA device. The required extension for BIT files is .bit.
1-3
1-4
Chapter 2
Hardware
This chapter gives specific information about using cables to download from the JTAG Programmer to devices in-system. This chapter contains the following sections: Download Cables XChecker Hardware (Serial) Parallel Cable MultiLINX Cable Power Up Sequencing
Download Cables
There are three cables available for use with the JTAG Programmer. The first is an RS232 serial cable known as the XChecker Cable. The second is the Parallel Download Cable which can be connected to a PCs parallel printer port. The third is the MultiLINX cable which can be connected to a USB port (Windows 98 only) or serial port. There are a few advantages to be considered in selecting a cable: The XChecker Cable or Multilinx Cable connects to the serial port of both workstations and PCs. The Parallel Cable has better drive capability. The Parallel Cable can drive up to 10 XC9500/XL/XV devices in a boundary-scan chain, and the XChecker Cable can drive up to 4 XC9500/XL/XV devices. The Parallel Cable is at least 5 times faster.
2-1
JTAG Programmer Guide If you have a MultiLINX Cable proceed to MultiLINX Cable.
2-2
Hardware
2-3
DB25 Adapter
GND
+5V
XChecker Cable
Test Fixture
Header 2 Header 1
VCC
X7248
2-4
2-5
2-6
Hardware
XChecker Cable
Top View
Header 2
Header 1
RT
Bottom View
X7249
2-7
Target System
X7976
Cable Connections
Connections between the cable assembly and the target system use only 6 of the sixteen leads. For connection to JTAG boundary-scan systems you need only ensure that the VCC, GND, TDI, TCK, TMS and RD (TDO) pins are connected. Once installed properly, the connectors provide power to the cable, allow download and readback of configuration data, and provide for logic probe of device pins.
2-8
Hardware XChecker Cable Connections and Definitions table describes the pin connections to the target circuit board Table 2-1 XChecker Cable Connections and Definitions Name VCC Function Connections
Power Supplies VCC (5 To target system VCC V, 100 mA, typically) to the cable. Use adapter HWXCH3V for 3V devices. Ground Supplies ground To target system reference to the cable. ground Read Data Read back data from the target system is read at this pin. Connect to system TDO pin.
GND RD (TDO)
TDI
Test Data In this signal is Connect to system TDI used to transmit serial test pin. instructions and data. Test Clock this clock drives the test logic for all devices on boundary-scan chain. Test Mode Select this signal is decoded by the TAP controller to control test operations. Not used. Not used. Not used. Not used. Not used. Not used. Not used. Not used. Not used. Not used. Connect to system TCK pin.
TCK
TMS
Unconnected. Unconnected. Unconnected. Unconnected. Unconnected. Unconnected. Unconnected. Unconnected. Unconnected. Unconnected.
2-9
Baud Rates
The XChecker Cable supports Baud rates as shown in Table 2-2. Table 2-2 Valid Baud Rates Platform IBM PC SUN HP 700 9600 X X X 19200 X X X 38400 X X X
2-10
Hardware 2. The XChecker cable draws its power from the target system through VCC and GND. Therefore, power to XChecker, as well as to the target system, must be stable. Do not connect any signals before connecting VCC and ground. If you are connecting the XCHecker Vcc to a 3V system, you will need an adapter. Xilinx carries an adapter, part number HWXCH3V. If your systems power is turned off before or during JTAG Programmer operations, the cable will not operate. Your systems power should be on during JTAG Programming operations. If the power has been momentarily interrupted, go to Output Cable Reset to reinitialize the XChecker cable. If you do not want to operate at maximum Baud rate, go to the Cable Communication Setup dialog box (Output Cable Setup...) and set a lower rate.
3.
4.
5.
Parallel Cable
The Parallel Download Cable consists of a cable assembly containing logic to protect your PCs parallel port and a set of headers to connect to your target system. Using the Parallel Download Cable requires a PC equipped with an AT compatible parallel port interface with a DB25 standard printer connector. Figure 2-4 shows the Parallel Download Cable.
2-11
Parallel Cable
X7251
Figure 2-4 Parallel Download Cable and Accessories The cable assembly contains logic designed to electrically isolate the target system from the parallel port of your PC host system. The parallel download cable can be used with a single CPLD or several connected in a boundary-scan chain to download and readback configuration and boundary-scan data. The transmission speed of the Parallel Download Cable is determined solely by the speed at which the host PC can transmit data through its parallel port interface. Figure 2-5 shows top and bottom view of the Parallel Download Cable.
2-12
Hardware
2-13
Parallel Cable
Top View
Parallel Cable III CAUTION Model DLC5 Power 5V 10mA Typ. Serial JT - 1 2 3 4 5
SENSITIVE ELECTRONIC Made in U.S.A DEVICE
JTAG
Bottom View
X7252
2-14
FPGA
Hardware Figure 2-5 Top and Bottom View of Parallel Download Cable
JTAG
Target System
Figure 2-6 Parallel Download Cable Connection to JTAG Boundary-scan TAP JTAG Parallel Cable Schematic appendix contains schematic diagrams of the Parallel Download Cable.
2-15
JTAG Programmer Guide 2. Select the Parallel box and match to the port you are using, then click on OK.
Table 2-3 Parallel Cable Connections and Definitions Name VCC Function Power Supplies VCC (5 V, 3.3V, or 2.5V, 10 mA, typically) to the cable. Connections To target system VCC
GND TCK
Ground Supplies ground To target system reference to the cable. ground Test Clock this clock drives the test logic for all devices on boundary-scan chain. Connect to system TCK pin.
2-16
Hardware Table 2-3 Parallel Cable Connections and Definitions Name TDO Function Read Data Read back data from the target system is read at this pin. Connections Connect to system TDO pin.
TDI
Test Data In this signal is Connect to system TDI used to transmit serial test pin. instructions and data. Test Mode Select this signal is decoded by the TAP controller to control test operations. Connect to system TMS pin.
TMS
2-17
Parallel Cable
X7251
MultiLINX Cable
You can use the MultiLINX Cable to download and verify. The MultiLINX Cable hardware communicates with the host over the Universal Serial Bus (USB) at up to 12M bits/sec, or at variable baud rates over an RS-232 interface at up to 57600 bits/sec. The MultiLINX Cable should be compatible in supporting Readback & Verify for all the FPGAs supported by the XChecker Cable. In addition to the supported devices, the MultiLINX Cable will support the
2-18
Hardware devices that were not supported by the XChecker Cable since the MultiLINX Cable has no RAM size limitations. These devices include those devices in 4000E, 4000XL, and SPARTAN whose bitfile size is more than 256K bits. The MultiLINX Cable will also support Readback & Verify functions in the new Virtex family. You can access the following mentioned application notes with descriptions of device-specific design techniques and approaches from the support page at (http://support.xilinx.com/support/ searchtd.htm). Getting Started with MultiLINX Guide application note is a quick reference to everything you need to know to use the MultiLINX Cable; using a USB device, Mixed Voltage environments, connections for all the supported Modes. Integrating MultiLINX Cable with Target System Design application note describes how to setup a Prototype application for use with the MultiLINX Cable. Xilinx Cable Overview and Roadmap application note describes all the cables, their capabilities, and associated software tools.
USB is currently not 1M-12M (Currently supported on the USB is supported only on Win98/95C.) WorkStation. 9600, 19200, 38400, and 57600 9600, 19200, and 38400
2-19
JTAG Programmer Guide Fast download, readback and debug using the USB port up to 12M bits/sec. More configuration modes are supported. Supports both RS-232 ports and USB ports. Compatible with the currently supported devices for Readback & Verify. Supports new devices that are not supported by XChecker due to RAM size limitation. Works at low voltages (3.3V). Supports both Slave Serial and SelectMAP configuration modes.
MultiLINX Signals
The MultiLINX Cable uses the following pin connections for use in JTAG programming: Name VCC Function Power Supplies VCC (5 V, 3.3V, or 2.5V, 10 mA, typically) to the cable. Connections To target system VCC
GND TCK
Ground Supplies ground To target system reference to the cable. ground Test Clock this clock drives the test logic for all devices on boundary-scan chain. Connect to system TCK pin.
2-20
Hardware
Name RD (TDO)
Function Read Data Read back data from the target system is read at this pin.
TDI
Test Data In this signal is Connect to system TDI used to transmit serial test pin. instructions and data. Test Mode Select this signal is decoded by the TAP controller to control test operations. Connect to system TMS pin.
TMS
Power Up Sequencing
The following considerations should be followed when powering up the JTAG Programmer. 1. 2. 3. Connect your cable to your host computer. Turn the power to your target system off, if possible. The power for the drivers is derived from the target system. Connect the cables GND wire to the corresponding signal on the target board. Next, connect VCC to the corresponding signal on the target board. Download cables will not operate if the target systems power is turned off before or during JTAG Programmer operations. Make certain that this power connection is on and stable. Your systems power should be on during JTAG Programmer operations. JTAG Programmer will always initiate operations using a JTAG TAP controlled reset sequence. This performs the exact same operation as the assertion of the TRST pin; it initializes all devices JTAG state machines and internal registers. Next connect the JTAG TAP inputs. Connect TCK, TDI, TMS and TDO to the target board. TRST is not supported by the XC9500/ XL/XV JTAG Download Cables. If any of your JTAG parts have a TRST pin, it should be connected to VCC. Power up the target system.
4.
5.
6.
7.
2-21
JTAG Programmer Guide 8. Cable protection ensures that the parallel port cannot be damaged through normal cable operation. For increased safety, please check that the power to the system controller is on before the target system is powered up.
2-22
Chapter 3
Cable Setup
To setup your system to download configurations in-system you must first connect the JTAG Programmer parallel download, MultiLINX, or the XChecker cable. Cable setups and power sequencing are described in chapter 2, Hardware.
3-1
Figure 3-1 Communications Dialog Box 3. Select the cable you are using and match to the port you are using, then click on OK. If you are using the XChecker Cable or the MultiLINX cable on the serial port you may also select a BAUD rate. See Table 2-2, Valid Baud Rates. Alternatively, you may use the Output Cable Auto Connect to allow the software to automatically identify and connect to whichever download cable is installed. Upon selecting any device operation, the JTAG Programmer will automatically connect to whichever cable is installed and powered up, with the following priority: Parallel, MultiLINX, XCHecker. If you accidentally or purposely power down your system while running JTAG Programmer, remember to select Output Cable Reset to reinitialize the cable after re-applying power.
4.
5.
6.
3-2
TCK TDI
U1 U2 Un
TDO
TMS TDO/RD
X8006
Figure 3-2 Device Chain The chain description must contain all devices in the order that they appear in the JTAG programming chain. Alternatively, you can use the Initialize Chain operation to automatically identify the devices in the system boundary-scan chain. You must then associate JEDEC files for XC9500/XL/XV CPLD devices, BIT files for Xilinx FPGA devices, MCS, HEX or EXO files for Xilinx Prom devices. Use BSDL files or specify the instruction register level for all other devices by using the device properties dialog box.
3-3
JTAG Programmer Guide Note You will need a bitstream/configuration file to continue. If you have not yet generated a bitstream, please refer to the Implementation Tools tutorial. 1. 2. Make sure the cable is attached properly and the target board is turned on. Invoke the JTAG Programmer Download Software menu by double-clicking the JTAG Programmer Download Software icon.
Figure 3-3 JTAG Programmer Icon The JTAG Programmer will appear.
Figure 3-4 JTAG Programmer 3. Add a device for each part in your boundary-scan chain.
3-4
JTAG Programmer Tutorial Edit Add Device Or, if you have the cable set up and connected to a boundary-scan chain, you can use the automatic device identification feature of the JTAG Programmer to display the entire chain. To do this: File Initialize Chain The programmer goes out and finds all the parts in the chain, identifies them, and displays them in the JTAG Programmer. If the programmer finds a device it cant identify, it displays the device as an unknown part and asks if you have a BSDL, BIT or JEDEC file or not.
Figure 3-5 Automatic Device Identification 4. You need to specify a JEDEC file for each XC9500/XL/XV device in the boundary-scan chain, a BIT file for each Xilinx FPGA device, an MCS, HEX, or EXO file for each Xilinx Prom device,
3-5
JTAG Programmer Guide and a BSDL file or appropriate template information for all other devices in the boundary-scan chain. Highlight the first device in the chain by clicking once on it and then select the JEDEC, BIT, EXO, HEX, MCS or BSDL file corresponding to the device. Edit Properties Alternatively, you may double-click on the device icon. The Device Properties dialog box appears
Figure 3-6 Device Properties 5. Type in the path name or click once on the browse key and find the appropriate file to assign to the highlighted part. Select JEDEC files for each XC9500/XL/XV device in the chain, MCS, HEX or EXO files for each Xilinx Prom device, BIT files for each Xilinx FPGA device, and BSDL files for the remaining devices. Repeat for each device in the chain. For an XC1800 prom, click OK after selecting the file. The programmer will display a list of available prom files (which will be larger than the configuration data). Select the desired part and click OK. This will complete the part selection.
3-6
To access the Define Device dialog click File Define Device. The following dialog will appear:
3-7
3-8
Concurrent Mode
The JTAG Programmer normally uses a sequential methodology when accessing Xilinx CPLDs for ISP operations. It selects a device to program and sets all other devices in the boundary-scan chain into BYPASS mode. Concurrent Mode erases, programs and verifies selected devices in the chain without placing these parts in BYPASS mode. This has the advantage of saving time by executing operations simultaneously. For example, it takes few seconds to completely erase all the sectors of a device. If you have several devices in a chain, these erase times can add up. In concurrent mode the erasures can take place simultaneously, saving time. Concurrent mode is applicable only to Xilinx CPLD devices. Since Xilinx FPGA devices are SRAM based; their access method precludes this kind of operation.
3-9
JTAG Programmer Guide If you decide to use HIGHZ instead of BYPASS you must be certain that your design can tolerate XC9500/XL/XV or Virtex device pins floating. If these pins connect to memory enable pins, for instance, their floating values may inadvertently cause the devices to turn on, potentially damaging their drivers or parts downstream from them.
Figure 3-10 Options 3. When the programming operation is complete, the programming status of each Xilinx programmable device is reported as shown:
3-10
Selecting Operations
There are two ways to set up the chain for JTAG Programmer operations. The first is to highlight a part and select an operation for it using the Operations menu. You select an operation from the menu, then highlight the next part and select an operation for it, or you may highlight all parts and select an operation for all parts. The other way is to use the Chain Operations dialog box. This presents you with a spreadsheet approach to boundary-scan chain. This method allows you select and execute operations for all the parts in the chain, all from the same dialog box. To access this dialog box: Operations Chain Operations...
3-11
Figure 3-12 Chain Operations The dialog box appears. In the Operations column you may change the operation of any part by clicking once on the current device to highlight it, then clicking once on the down arrow adjacent to Selected Device Operation. This will produce a pull-down menu showing the operations you can set for that part. Bypass is the only supported mode of Operation for non-Xilinx parts. These parts will appear under Device Type. Note that Bypass is selected as the default Operation of each foreign part. Select the Execute button. Download will begin. In either operation mode a pop-up menu appears and delivers processing messages. When processing has completed, a message log is available to examine the results of the execution.
Modifying a Chain
The Edit menu provides easy means for inserting and deleting parts from a chain, as well as the means to assign a new JEDEC file to a part.
3-12
Adding a Device
To insert a device into the chain, use the Add Device command. First make sure that the prompt is at the location in the chain where you want to insert the device. If it is not, use either the mouse or the arrow keys to move it. Then insert the device as follows: Edit Add Device
Changing a Part
To change the jedec file associated with a device in the chain, highlight the device and select: Edit Properties Use the browse key to select another jedec file or simply enter the path and filename of the file. The program will associate the new file with the device. Each jedec assigns a device type to the device in the chain. If the jedec file was not created for the actual device you have on your board, an error will result when you attempt to program the device. For an 1800 prom, clicking OK on the properties dialog displays a list of 1800 parts which can fit the specified prom file. Select the desired part name and click OK.
Deleting a Part
To delete an entry in the device chain, use the Cut command. All devices move up one entry in the chain. Edit Cut
3-13
Saving a File
Debugging a Chain
The debugger provides you with a method to apply boundary-scan test access port stimulus. This feature allows you to set TDI and TMS, then pulse TCK a specified number times. You can monitor TDO, TDI and TMS using an oscilloscope or logic probe to see if the boundaryscan chain is operating correctly. The debugger also displays the current TAP state and allows you to reset the chain to Run Test Idle.
3-14
JTAG Programmer Tutorial To access the debugger: File Debug Chain The Boundary-Scan Chain Debug dialog box appears as shown in Figure 3-13.
Figure 3-13 Debug The features of this dialog box operate as follows: The first selection box allows you to set a logic state for TDI. This state will not be set until you click on the Apply button. The second selection box allows you to set a logic state for TMS. This state will not be set until you click on the Apply button. The third selection box allows you to set a number of pulses to apply to TCK. These pulses will not be sent until you click on the Apply button. If you want to see the pulses again, click the Apply button as often as you want. The TAP State window displays the current state of the controller. The Return to RTI (Run Test Idle) button executes a Test Logic Reset, then returns to Run Test Idle.
3-15
Figure 3-14 Data Selection (Program Options) Data security operations can be overridden only by erasing the device. For Read Protection override, you simply erase the part. For Write Protection override, you must select the override write protect option from the Erase Options dialog box.
3-16
3-17
SVF Options By default, SVF files are generated with instructions to begin execution by transitioning to the Test-Logic-Reset Tap controller state. Some third part tools prefer that the SVF files not specify this transition, and always start in the Run-Test-Idle Tap controller state. You can select the appropriate option using this dialog box. Click OK. Then the Create a New SVF File dialog box will appear.
3-18
Figure 3-16 Create an SVF File Select a name and a directory to create the new file in, then click OK. To append your vectors to an existing SVF file, use: Output Append to SVF File... The Append to an Existing SVF File dialog box will appear.
Figure 3-17 Append to an SVF File Select a file to append to and click OK.
3-19
JTAG Programmer Guide Program, Verify, Erase, Functional Test, Get Device ID and Get Signature/Usercode are allowed operations in SVF mode. After identifying the SVF file to be used for collection of SVF data, operate on the devices in your boundary-scan chain in the manner described previously. Remember that in SVF mode, chain editing operations are not allowed to ensure that the resulting SVF file will be self-consistent. Xilinx provides software on the Xilinx Website that converts SVF files into ATE vectors. Visit our site at www.xilinx.com for more information.
3. 4.
3-20
JTAG Programmer Tutorial xc95108_v1.bsd xc95216.bsd xc95216_v1.bsd The BSDL files with the _v1 in their names describe the Version 1 silicon. Similarly, those with _v2 are for Version 2 devices. To get the software to use Version 1 BSDL files for all devices, you must trick the application by renaming files as follows: 1. 2. 3. 4. 5. Rename xc95108.bsd to xc95108_v0.bsd Rename xc95216.bsd to xc95216_v0.bsd Rename xc95108_v1.bsd to xc95108.bsd Rename xc95216_v1.bsd to xc95216.bsd Invoke the JTAG Programmer and set it to generate SVF files as described earlier in this section. When you use the JTAG Programmer, it will default to using the xc95216.bsd and xc95108.bsd files to describe the parts. This will allow access to all Version 1 features. When you are done programming, remember to change the file names back so that the software will work correctly in non-SVF modes: Rename xc95108.bsd to xc95108_v1.bsd Rename xc95216.bsd to xc95216_v1.bsd Rename xc95108_v0.bsd to xc95108.bsd
6.
7. 8. 9.
3-21
3-22
Chapter 4
TDO
TMS TDO/RD
X8006
Figure 4-1 Single Port Serial Boundary-Scan Chain The boundary-scan standard requires pull-up resistance to be supplied internally to the TDI and TMS pins by the chips, but no
4-1
JTAG Programmer Guide particular value is required. This allows vendors to supply whatever they choose and still remain in full compliance. Because of this, very long boundary-scan chains, or chains using parts from multiple vendors, may present significant loading to the ISP drive cable. In these cases: Use the latest Xilinx download cables (parallel cables with serial numbers greater than 5000, any X-Checker cable or MultiLINX cable). Consider including buffers on TMS or TCK signals interleaved at various points on your JTAG circuitry to account for unknown device impedance. Some users have noted that their designs appear to experience erase time or programming time extension as the design progresses, particularly for long chains. This is probably due to switching noise. Put the rest of the JTAG chain into HIGHZ mode by selecting the HIGHZ preference on JTAG Programmer when programming a troublesome part. If free running clocks are delivered into boundary-scan devices, it may be necessary to disconnect or disable their entry into these devices during ISP or boundary-scan operations. Charge pumps, the heart of the XC9500/XL/XV ISP circuitry, require a modest amount of care. The voltages to which the pumps must rise are directly derived from the external voltage supplied to the VCCINT pins on the XC9500/XL/XV parts. Because these elevated voltages must be within their prescribed values to properly program the CPLD, it is vital that they be provided with very clean (noise free) voltage within the correct range. This suggests the first two key rules: Make sure VCC is within the rated value for the devices you are using. Provide both 0.1 and 0.01 uF capacitors at every VCC point of the chip, and attached directly to the nearest ground.
4-2
Designing Boundary-Scan and ISP Systems enable boundary-scan-based configuration capabilities for FPGA devices, you must design your systems and prepare your configuration bitstreams in the following manner.
Bitstream Considerations
JTAG Programmer only accepts FPGA configuration files in the binary bitstream format (.bit). It does not allow configuration using the ASCII raw bits (.rbt) format. Express mode bitstreams cannot be used to configure devices via boundary-scan. If you are using XC4000, Spartan or SpartanXL, make certain that the boundary-scan (BSCAN) symbol has been included in your design. If it has not then the bitstream will also not be usable for boundary-scan based configuration. Standard examples for instantiating the BSCAN symbol in FPGAs are included in Appendix F. Keep your device bitstream files separate for each device in the boundary-scan chain. JTAG Programmer requires you to assign a single bit file to each device. It cannot manipulate composite bit files.
Virtex Considerations
When generating bitstreams for Virtex devices, always select the option to choose the JTAG clock as the startup clock. XC4KXLA, XV, Spartan XL Considerations When generating bitstreams for these devices, always select the option to enable BSCAN status.
Device Set-up
Xilinx recommends that all the mode pins of the devices be tied low before starting the configuration. This is recommended for all XC4000, XC5000 and Spartan device families. In order to enable the boundary-scan circuitry in the device, you must install a pull down resistor on the INIT pin. The value of the pull down should be selected so as to draw the INIT pin to approximately 0.5V. Typically a pull down of approximately 1KOhm should accomplish this.
4-3
2.
3.
4-4
Appendix A
A-1
JTAG Programmer Guide tions of the standard and some optional ones) in the FastFLASH family.
A-2
instruction held in the instruction register determines which register is fed by TDI for a specific operation. TDI has an internal pull-up resistor on it to provide a logic 1 to the system if the pin is not driven. TDI is sampled into the JTAG registers on the rising edge of TCK. TDO - this pin is the serial data output for all JTAG instruction and data registers. The state of the TAP controller as well as the particular instruction held in the instruction register determines which register feeds TDO for a specific operation. Only one register (instruction or data) is allowed to be the active connection between TDI and TDO for any given operation. TDO changes state on the falling edge of TCK and is only active during the shifting of data through the device. This pin is three-stated at all other times
A-3
JTAG Programmer Guide Select-IR-Scan. This is a temporary state entered prior to performing a scan operation on the instruction register or in returning to the TestLogic-Reset state. Capture-DR. This state allows data to be loaded from parallel inputs into the data register selected by the current instruction on the rising edge of TCK. If the selected data register does not have parallel inputs, the register retains its state. Shift-DR. This state shifts the data, in the currently selected register, towards TDO by one stage on each rising edge of TCK after entering this state. Exit1-DR. This is a temporary state that allows the option of passing on to the Pause-DR state or transitioning directly to the Update-DR state. Pause-DR. This is a wait state that allows shifting of data to be temporarily halted. Exit2-DR. This is a temporary state that allows the option of passing on to the Update-DR state or returning to the Shift-DR state to continue shifting in data. Update-DR. This state causes the data contained in the currently selected data register to be loaded into a latched parallel output (for registers that have such a latch) on the falling edge of TCK after entering this state. The parallel latch prevents changes at the parallel output of these registers from occurring during the shifting process. Capture-IR. This state allows data to be loaded from parallel inputs into the instruction register on the rising edge of TCK. The least two significant bits of the parallel inputs must have the value 01 as defined by IEEE Std. 1149.1, and the remaining 6 bits are either hardcoded or used for monitoring of the security and data protect bits. Shift-IR. This state shifts the values in the instruction register towards TDO by one stage on each rising edge of TCK after entering this state. Exit1-IR. This is a temporary state that allows the option of passing on to the Pause-IR state or transitioning directly to the Update-IR state. Pause-IR. This is a wait state that allows shifting of the instruction to be temporarily halted.
A-4
Exit2-IR. This is a temporary state that allows the option of passing on to the Update-IR state or returning to the Shift-IR state to continue shifting in data. Update-IR. This state causes the values contained in the instruction register to be loaded into a latched parallel output on the falling edge of TCK after entering this state. The parallel latch prevents changes at the parallel output of the instruction register from occurring during the shifting process.
A-5
JTAG Programmer Guide USERCODE. The USERCODE instruction allows a user-programmable identification code to be shifted out for examination. This allows the programmed function of the component to be determined.
A-6
Appendix B
B-1
JTAG Header
1N5817 15 VCC SENSE 100 100 13 DONE 100 1 2 3 U1 1 6 PROG 300 2 DIN 300 5 U1 6 4 100pF TMS_IN 300 12 11 13 100pF 5 CTRL 300 2 3 CLK 300 GND GND D6 BUSY PE SHIELD U1 = 74HC125 U1 = 74HC125 6 4 8 10 11 13 9 U2 12 U2 9 7 8 DIN PROG U2 5 5 6 D/P 9 U1 8 10 100pF 20 25 8 11 12 100 4 3 GND CCLK 1 VCC 100 100 8 9 TMS 100pF 6 7 TDO TDI 100 5 U2 2 5.1K 14 U2 7 14 U1 7 1K .01uF 2 3 4 TCK GND 1N5817 1 VCC
U1
FPGA Header
X7557
B-2
Appendix C
Troubleshooting Guide
This chapter is a simple guide to understanding the more common issues you might encounter when configuring CPLDs with JTAG Programmer. These issues are likely to fall into three groups; communication, improper connections, and improper or unstable VCC. Communication This section describes several issues that involve the integrity of the bitstream that JTAG Programmer transmits to the target CPLDs, and the correct connection of the boundary-scan chain. Improper Connections This section involves assigning configuration pins to invalid signals or voltage levels. Improper or Unstable VCC This section describes several causes of incorrect configuration sequences and incorrect responses from the target system. Boundary Scan Chain Errors If you experience a consistent error that identifies a break in your boundary-scan chain, go to this section. System Noise If you experience intermittant problems characteristic of system noise, go to this section.
Communication
Observing the following guidelines should minimize the communication difficulties that can occur between the cable hardware and the target system.
C-1
JTAG Programmer Guide Do not attach extension cables to the target system side of the cable; this can compromise configuration data integrity and cause checksum errors. Attach the cable configuration leads firmly to the target system. After connecting the target system, specify the chain configuration using the part command. Then use the "partinfo -id part_name" command to read the IDCODE from each part in the system. This will verify the integrity of the boundary-scan chain. If you are using the Graphical User Interface: Operations Get Device ID Use the verify feature to assure integrity of the configuration data. You can do this from the command line with the v option or in the interactive mode by specifying the verify command. When using the JTAG Programmer software with the cable on a PC to download, the process may stop with data communications errors. This is caused by serial port communication inefficiencies in the Windows environment. To set your PC to better handle serial communications at 38400 baud, add (or modify) the following lines to the 386Enh section of your SYSTEM.INI file. This file is located in the Windows directory of your system. COM1Buffer=32768 COM2Buffer=32768 COMBoostTime=10240
Improper Connections
Check the following: Always make sure that cable leads are connected properly. Connecting the cable leads to the wrong signal will cause permanent damage to cable internal hardware. On a parallel cable, you must connect VCC to +5 V, +3.3V or +2.5V, and GND to ground. On an XCHecker cable, you can connect VCC directly to 5V and GND to ground, but need an adapter to connect VCC to 3.3V or 2.5V. The part number is HW-XCH3V. For workstations, you must have read and write permissions to the port to which you connect the cable. JTAG Programmer might
C-2
issue a message stating that the cable is not connected to port ttyx. When you see this message, follow the check list below: The board must have the power on, since the cable uses power from the board. Check the device driver using the following command string: ls l /dev/ttya /dev/ttyb The result should be the following: crw-rw-rw- 1 root12,0 month date time /dev/ttya crw-rw-rw- 1 root12,1 month date time /dev/ttyb Reconnect the cable to another valid port. Read the /etc/ttytab file. There should be two lines, as follows: ttya/usr/etc/getty std.9600 unknown off local secure ttyb/usr/etc/getty std.9600 unknown off local secure If you use a port to connect a modem or a remote login, you cannot use that port. The port must be on. Consult your System Administrator if the information the /etc/ttytab file is different than what is listed in the aforementioned list.
C-3
C-4
the 1 on TDO after the falling edge of the 4th TCK pulse after the TRST sequence. On the next TCK pulse TDO should return to zero. The CAPTURE -IR sequence consists of the following (starting from RunTest/Idle), as illustrated in Figure C-1. TMS set to 1; TCK pulsed twice. TMS set to 0; TCK pulsed twice. TCK pulsed (number of bits in instruction register -1) times. TMS set to 1; TCK pulsed twice. TMS set to 0; TCK pulsed once.
1 TCK 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8
TMS
TD0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
X8083
Figure C-1 Sample Expected Waveform Check for the following: The expected number of TCK pulses occur. The same TMS sequence occurs for each part. The TDO is not shorted or floating between parts, or floating at the system interconnect point. Make certain that all 4 TAP signals are getting into each part (Note that both TDI and TMS have internal pull-ups on them which could keep the device in TRST mode if TMS is not properly connected). You may also use the Debug Chain dialog and a logic probe or oscilloscope to transition the TAP state machine directly and observe results.
C-5
System Noise
You can check for system noise by running the IDCODE looping instruction. The IDCODE should read correctly 100% of the time. If by test you find that the instruction is working less than 100% of the time, you may be experiencing system noise. To use IDCODE looping: Operations Idcode looping This will display the Edit window. Enter the number of loops you desire and click OK. To remedy a problem with system noise, select Use HIGHZ instead of BYPASS from the Preferences dialog box. This places devices into tristate mode and reduces susceptibility to system noise. To find this box use: File Preferences The Preferences dialog box will appear. Place a check in the box adjacent to Use HIGHZ instead of BYPASS.
C-6
Appendix D
Error Messages
This section describes the error messages that JTAG Programmer may generate. Following each error message, there is a suggested workaround.
Error Messages
Command file bat file.cmd is not found. Make sure that the command file you specified is in the current directory or the environment search path. Make sure that the command file has the ".cmd" extension Internal Error Command table syntax error Cmd=valid_command. This is an internal program error that normally should not occur. Try entering the command sequence again. If the error persists, try reinstalling your JTAG Programmer software. If the error reappears, call Xilinx Technical Support. Be prepared to duplicate the error and reference specific files or examples. Cannot open output file file_name. Check available disk space. Current directory or file must have write permission. Cannot create output file file_name. Check available disk space. Current directory or file must have write permission. Cannot open input file file_name. Make sure the file_name file exists in your working directory or in the environment search path. Current directory or file must have write permission.
D-1
JTAG Programmer Guide File file_name is not found. The file_name file does not exist in the current directory or search path. Make sure that the file_name file exists in your working directory or in the environment search path. Help file jtagprog.hlp is not accessible Make sure that the XILINX environment variable points to the installation directory in the PC. Also make sure that jtagprog.hlp is in the installation\MSG directory. If you cannot find jtagprog.hlp in the installation\MSG directory, you must reinstall the JTAG Programmer software. No help for command command entered. Help is not available for the specified command. Refer to the Interactive Mode Commands section in Appendix E for help. Cannot save configuration to file_name.pro. Check available disk space. Current directory or file must have write permission. Invalid command at line line number. Check the file xchecker.pro in your current directory for illegal commands. Delete the xchecker.pro file. JTAG Programmer creates a new profile when you exit from the session. Ambiguous command. Enter the minimum unique characters that identify the command or enter complete commands with no abbreviations. Invalid command. The command you entered is illegal. Refer to the Interactive Mode Commands section in Appendix E for help. Invalid number of arguments. Refer to the Interactive Mode Commands section in Appendix E for help. Invalid option selected option. Refer to the Command-Line Options and the Interactive Mode Commands sections in Appendix E for help. Invalid value given to parameter.
D-2
Refer to the Command-Line Options and the Interactive Mode Commands sections in Appendix E for help. Value is required for command entered. Refer to the Interactive Mode Commands section in Appendix E for help. System Error Messages System error codes are usually a string of messages generated by your operating system. System file error code. System error codes are usually a string of messages generated by your operating system. Cable is not initialized. Reissue the Reset command with the c option, or cycle power to the XChecker cable and then issue the Reset command with the c option. See the Improper or Unstable VCC section in Appendix E. Cable is not located. No cable has been recognized at any port. Make sure there is power to your board and to the XChecker cable. If you are using the test fixture, you must connect VCC and ground to it. The XChecker cable draws power from your target system, not from your host computer. Also make sure the RS-232 connector is firmly attached. Invalid port name. Refer to the XChecker Hardware section in Appendix E for help. Invalid baud specified. Refer to the XChecker Hardware section in Appendix E for help. Cable is not reset. Cycle power to the cable. Use the Reset command with the c option. Communication line is broken. Run the Reset command with the c option. Also make sure there is power to your board and to the XChecker cable. Check all power and port connections. Communication checksum error.
D-3
JTAG Programmer Guide Check for induced noise in your target system or from your target system into the XChecker connections. Do not use cable extensions. The XChecker cable length is tested to produce minimal noise levels. Remember that a logic High must be 80-100% of VCC and a Logic Low must be 0-25% of VCC. Cable has no power. Make sure there is power from your target system to the XChecker cable. The cable draws power from an external source, not from the host computer. Communication time-out. JTAG Programmer has not received an expected signal; for example, a system trigger to initiate readback or data coming from readback. Make sure that the selected options for trigger and readback are what you intended. Check all connections. Cannot communicate to the cable. Run the Reset command with the c option. Also, ensure that there is power to your board and to the XChecker cable. Check all connections. Make sure the RS-232 connector is firmly attached. Cable datafile file_name is empty. Run the Reset command with the c option. Make sure that the XILINX environment variable points to the installation directory on the PC. No XChecker cable is connected to the port portname. Ensure that there is power to your board and to the XChecker cable. You must connect VCC and ground to the test fixture, if you are using it. The cable draws power from your target system, not from the host computer. Ensure that the RS-232 connector is firmly attached. No XChecker cable is connected to the system. Ensure that there is power to your board and to the cable. You must connect VCC and ground to the test fixture, if you are using it. XChecker draws power from your target system, not from the host computer. Ensure that the RS-232 connector is firmly attached. Fail reading cable status. Try using the Reset command with the cable option. Ensure that there is power to your board and to the cable. Check all connections.
D-4
Unsupported command for this cable. See the Interactive Mode Commands section for valid with the XChecker cable. If you are using the previous parallel or serial download cables, you can only use the Load command to download. Read only number of bits received. Check all connections. Check for noise that may be induced into your target system or from your target system into the XChecker connections. Do not use cable extensions. The XChecker cable length is tested to produce minimal noise levels. Remember that a logic High must be 80-100% of VCC and a Logic Low must be 0-25% of VCC. Invalid baud rate. Current baud rate is baud rate. See Table 2-1 for the valid baud rates for your computer. Missing baud rate. Current baud rate is baud rate. See the Interactive Mode Commands section in Appendix E for correct command usage. Cannot communicate with port port name. Check this manual for supported ports. See the Port command. Datafile file_name is empty. The specified datafile is either empty or contains invalid data. JTAG Programmer supports only JEDEC 3-C format. Datafile file_name is not found. The file_name file does not exits in the current directory or search path. Check your environment search path to make sure that it contains the directory where file_name is. Cant open datafile file_name. The file file_name does not exits in the current directory or search path. Check your environment search path to make sure that it contains the directory where file_name is located. No part type is defined. The part type specified in your design or by you (using the Part command) is invalid. Check the The Programmable Logic Data Book for valid part types and packages. Unable to execute erase command at address string of instance string.
D-5
JTAG Programmer Guide The specified device instance could not be erased. Check if data protect is enabled as this disables the erase functionality. Also check for the integrity of the cable connections. Unable to program all addresses of instance string. The specified device instance could not be programmed. Check if data protect or data security is enabled as this disables the programming functionality. If data security is enabled, first issue an erase command then execute the program command. Also check for the integrity of the cable connections. Verification of instance string against program file string failed. The specified device instance could not be verified. Check if data security is enabled as this disables the readback functionality. If this is not the case, check for the integrity of the cable connections. If error persists you may have a bad part and Xilinx customer service should be contacted. Unable to program address string of instance string with data string. The specified device instance could not be programmed. Check if data protect or data security is enabled as this disables the programming functionality. If data security is enabled, first issue an erase command then execute the program command. Also check for the integrity of the cable connections. Unable to verify address string of instance string against data string. The specified device instance could not be verified. Check if data security is enabled as this disables the readback functionality. If this is not the case, check for the integrity of the cable connections. If error persists you may have a bad part and Xilinx customer service should be contacted. Verification failed at address value of instance string. Expected: value. Read: value. The specified device instance could not be verified. Check if data security is enabled as this disables the readback functionality. If this is not the case, check for the integrity of the cable connections. If error persists you may have a bad part and Xilinx customer service should be contacted. A description for a device named string has not been supplied. Please make sure that a BSDL description was loaded for this device.
D-6
A description for an instance named string of any device has not been supplied. Please make sure that a JTAG connection description was supplied for this device. Check that the specified part exists in the boundary-scan chain that you declared in your part command. A new part command will override the previously specified one. The current part database can be displayed by typing part followed by a carriage return. The boundary scan chain instruction register bit sequence is incorrect at bit value. This corresponds to a scan chain break at or near part string. Verification of the integrity of the boundary-scan chain failed. Check cable connections and part command specification The current part database can be displayed by typing part followed by a carriage return. In a multi-part boundary scan chain, the name of the particular boundary scan part instance on which to operate must be specified. Please retry this command with an instance name specified. You must specify a particular instance upon which to operated. Respecify the command with that information. That is, specify erase instanceName and not erase. Unable to execute erase command for instance string The specified device instance could not be erased. Check if data protect is enabled as this disables the erase functionality. Also check for the integrity of the cable connections. Unable to execute functional test command using vectors in JEDEC file string. Functional test vectors failed for instance string. Functional test vector value failed for instance string at pin number value. Expected output value: value Actual output value: value When running functional test using the INTEST instruction, the applied functional vectors mismatched the predicted values. This can be either a functional error in the design or an error in the vectors specified. This will also occur when vectors targetted for a different design are applied. Re-check the integrity of your design database information.
D-7
JTAG Programmer Guide Mismatched address values during verification of instance string. Check JEDEC file and cable connections. Expected addressvalue: value. Read: value. The specified device instance could not be verified. Check if data security is enabled as this disables the readback functionality. If this is not the case, check for the integrity of the cable connections. If error persists you may have a bad part and Xilinx customer service should be contacted. Illegal IDCODE read from device identification register on instance string. IDCODE value: string The IDCODE read from the specified part does not conform to the 1149.1 standard. This is often the result of a bad cable connection. Check the integrity of the cable connection. Error reading data value from address string on device string while calculating checksum. Data integrity errors while reading data values from device string will result in an incorrect checksum. While reading back data to calculate the checksum, errors occured. Check if data security is enabled as this disables the readback functionality. If this is not the case, check for the integrity of the cable connections. If error persists you may have a bad part and Xilinx customer service should be contacted. Unable to program data protect bit at address string on device string. Programming failures when programming data protect bits of device string. Unable to program data security bit at address string on device string. Programming failures when programming data security bits of device string. The specified device instance could not be programmed. Check if data protect or data security is already enabled as this disables the programming functionality. If data security is enabled, first issue an erase command then execute the program command. Also check for the integrity of the cable connections. Error reading data value from address string on device string while generating JEDEC file.
D-8
Data integrity errors while reading data values from device string will result in an incorrect or incomplete JEDEC file. While reading back data to generate a JEDEC file, errors occured. Check if data security is enabled as this disables the readback functionality. If this is not the case, check for the integrity of the cable connections. If error persists you may have a bad part and Xilinx customer service should be contacted. Xchecker configuration file for boundary-scan TAP driver not found. Check XILINX path setting and locate file named xckjtag.sys. When the Xchecker reconfiguration file xckjtag.sys is not found or loaded correctly the above messages are displayed. Check that your XILINX path includes the release data directory and that the file xckjtag.sys exists in it. Also, check the integrity of the connections to the xchecker cable both at the serial port and to the target system. Data protection is enabled in instance string (NOTE: device programming contents cannot be altered). This is the warning message issued when data protect is enabled. It is displayed with each operation addressing this device. Data security is enabled in instance string (NOTE: device programming contents cannot be read). This is the warning message issued when data security is enabled. It is displayed with each operation addressing this device. The device string is not a Xilinx part (IDCODE: string) The device string is not a XC9500 part (IDCODE: string) Please verify the specification of the order of the parts in the boundary-scan chain. The device string is not an XC95108 part (IDCODE: string). Please verify the specification of the order of the parts in the boundary-scan chain. The device string is not a currently supported XC9500 part (IDCODE: string) Please verify the specification of the order of the parts in the boundary-scan chain. These messages are displayed when the software identifies that the specified operation is targetting an improper device. Check that the specified part exists in the boundary-scan chain that you declared in your part command. A new part command will override the
D-9
JTAG Programmer Guide previously specified one. The current part database can be displayed by typing part followed by a carriage return. The JEDEC file string is for a device of type string. The specified part string is actually a string device. Please re-generate your JEDEC file. The specified part string is of type string for which JEDEC files cannot yet be generated. These messages are displayed when the software identifies that the specified JEDEC file associated with an instance is not a supported device or does not match the specified device. Check that the specified part exists in the boundary-scan chain that you declared in your part command. A new part command will override the previously specified one. The current part database can be displayed by typing part followed by a carriage return. The checksum calculated by reading the programmed device values differs from the expected result. While reading back data to calculate the checksum, errors occured. Check if data security is enabled as this disables the readback functionality. If this is not the case, check for the integrity of the cable connections. If error persists you may have a bad part and Xilinx customer service should be contacted. Xchecker re-configuration file for boundary-scan TAP driver was not completed. Check XILINX path setting, cable connections and version of file named xckjtag.sys. When the Xchecker reconfiguration file xckjtag.sys is not found or loaded correctly the above message is displayed. Check that your XILINX path includes the release data directory and that the file xckjtag.sys exists in it. Also, check the integrity of the connections to the xchecker cable both at the serial port and to the target system. The device string is not an XC95216 part (IDCODE: string) Please verify the specification of the order of the parts in the boundary-scan chain. This message is displayed when the software identifies that the specified operation is targetting an improper device. Check that thespecified part exists in the boundary-scan chain that you declared in your part command. A new part command will override the previously specified one. The current part database can be displayed by typing part followed by a carriage return.
D-10
Appendix E
This appendix contains the following sections: Using JTAG Programmer Batch Version Software Command-Line Options Interactive Mode Commands
E-1
Downloading
You can download a design after connecting the cable to the host system and target system. To download a design, enter the following command at the operating system prompt. jtagprog
E-2
When you do not specify any options, the JTAG Programmer software selects the port where the cable is connected and sets the baud rate to the maximum allowed by the platform. You can modify the communication port and baud rate by changing the appropriate settings in the xchecker.pro file. To download in an interactive mode, enter the following command at the system prompt. jtagprog You see the following message on the screen: JTAGProgrammer: version x1_1.0 Copyright: 1991-1996 Cable ID type is XCHECKER Cable is connected to /dev/ttya Baud rate is 38400 To specify the number, type, names and order of devices in the boundary-scan chain: part part_type:design_name To erase and program the a design, enter this command string: program design_name
Verifying
After you have properly configured a device, you can verify its configuration and compare it to your original design. In most applications, verification is not needed, but this feature can be helpful with designs that experience extremely unstable or noisy VCC conditions. To execute a readback after the device has been in operation, use the interactive commands, as follows: jtagprog This command invokes the interactive mode, and the [JTAGProgrammer::(#)] > prompt appears (the # in the prompt string is the current command number). [JTAGProgrammer::(#)] > part part_type:design_name
E-3
JTAG Programmer Guide The part commands identifies the number the number, type, name and order of devices in the boundary-scan chain. In this case there is one device only. Then to program the device, enter: [JTAGProgrammer::(#)] > program design_name The program command downloads design.jed to the target device. If you want a readback after the target device is in operation, you can execute the Verify command. [JTAGProgrammer::(#)] > verify design_name This command initiates a readback, and compares the data to the design.jed file. You may also execute the program and verify operations in one step by typing: [JTAGProgrammer::(#)] > program -v design_name
Command-Line Options
This section describes the JTAG Programmer command-line options. The data files are configuration bitstream files in JEDEC format. When you do not specify any options or data files, the system defaults to the interactive mode. The command-line syntax is as follows: jtagprog options You can abbreviate all options to the minimum number of distinctive characters in the option name. Commands and options are not case-sensitive. batch Batch Mode Operation Syntax: batch bat_file.cmd Abbreviation: b The Batch option executes commands in batch mode. The bat_file must have a ".cmd" extension and contain valid JTAG Programmer commands, including interactive commands. You can add comments to files by using the # symbol, either on the command line or on a new line. h The Help Option
E-4
Syntax: help Abbreviation: h The Help option displays command line usage information. -log Specify Log File Name Syntax: log filename.log Abbreviation: -l Captures all output to the specified log file. port Specify Port Name Syntax: port portname Abbreviation: po The Specify Port Name option identifies the port connection for the XChecker cable. If you do not specify this option, the default option AUTO, searches for the cable connected to any port, parallel or serial. Valid ports for supported platforms are listed in Table E-1. Valid Ports for the XChecker Cable Platform IBM PC Sun HP Communication Ports com1 /dev/tty00 com2 /dev/tty01 lpt1* lpt2* /dev/ttya** /dev/ttyb**
*Use with the parallel download cable only. **ttya and ttyb must be readable and writable to ensure a proper connection.
E-5
E-6
Valid Baud Rates Platform IBM PC Sun HP 700 Baud Rate 9600 X X X 19200 X X X 38400 X X X
Dump
Syntax: dump [-h] part_name -j file_name The dump command will read the contents of a part and create a JEDEC file with the results. The file created will default to part_name.jed. Optionally, you may specify your own name using the -j flag. The part_name must have been specified with the part command. The -h flag specifies that all untargeted parts should use HIGHZ mode as the BYPASS method. This will float all untargeted device output pins and can reduce system noise in active environments.
Erase
Syntax: erase [-f] [-h] part_name This command erases the programmed contents of the specified part. The part_name must have been specified with the part command. The option -f is used to reset write-protect. The -h flag specifies that all untargeted parts should use HIGHZ mode as the BYPASS method. This will float all untargeted device output pins and can reduce system noise in active environments.
E-7
Functest
Syntax: functest [-h] part_name [-j file_name] The functest command will run the functional vectors in the associated JEDEC file (file_name) on the specified device (part_name) using the intest command. If the part_name is the same as the JEDEC file_name, then the file_name does not need to be specified. The part_name must have been specified with the part command. The -h flag specifies that all untargeted parts should use HIGHZ mode as the BYPASS method. This will float all untargeted device output pins and can reduce system noise in active environments.
E-8
The groupname designated in the opgroup command can be used in place of the partname in the erase, program or verify commands to execute concurrent operations on all devices in that group.
Partinfo
Syntax: partinfo [-h] -id -signature -checksum part_name -j jedec_file_name The partinfo command returns the manufacturers identification (id), the user signature (-signature) or the device checksum (-checksum) for a particular part_name. Any or all of the three switches may be specified in a single command. The part_name must have been specified in the part command. When calculating the checksum the JEDEC file should be specified as well to indicate the expected checksum. The -h flag specifies that all untargeted parts should use HIGHZ mode as the BYPASS method. This will float all untargeted device output pins and can reduce system noise in active environments. If you use the partinfo command with the -signature option when generating an SVF file, use the -u option to specify the expected usercode.
E-9
*Use with the parallel download cable only. **ttya and ttyb must be readable and writable to ensure a proper connection. ***only on Win98 Systems
Program
Syntax: program [-v] [-t] [-s] [-p] [-h] [-i] [-l] [-m] part_name [-j file_name] This command programs the specified part. If the part_name is the same as the JEDEC file_name, then the file_name does not need to be specified. The part_name must have been set in the part command. There are four options that may be specified (individually or together): -v after programming the device reads back the contents and verifies that they agree with the associated JEDEC file. -t executes a functional test after programming using the vectors contained in the associated JEDEC file. -s sets data security in the device. This disables readback of the devices programmed contents. The device must be erased to reprogram it.
E-10
-p sets data protect in the device. This disables over-write of the devices programmed contents. The device cannot be erased or reprogrammed. -b skips the erase of the device prior to programming. -h specifies that all untargeted parts should use HIGHZ mode as the BYPASS method. This will float all untargeted device output pins and can reduce system noise in active environments. -i specifies info only. This is used with proms and indicates that only info bits are being programmed. -l loads FPGA. This is used to load FPGA at the end of configuration. -m selects map/parallel mode. This is used to configure the prom to seek out data in parallel mode.
E-11
E-12
Appendix F
F-1
JTAG Programmer Guide port(tdi, tms, tck: in bit; tdo: out bit); end component; component tck port ( i : out bit ); end component; component tdi port ( i : out bit ); end component; component tms port ( i : out bit ); end component; component tdo port ( o : in bit ); end component; component ibuf port (i: in bit; o: out bit); end component; component obuf port(i: in bit; o: out bit); end component; signal tck_net, tck_net_in : bit; signal tdi_net, tdi_net_in : bit; signal tms_net, tms_net_in : bit; signal tdo_net, tdo_net_out : bit; begin u1: bscan port map (tdi=>tdi_net, tms=>tms_net, tck=>tck_net, tdo=>tdo_net_out); u2: ibuf port map(i=>tck_net_in, o=>tck_net);
F-2
u3: ibuf port map(i=>tdi_net_in, o=>tdi_net); u4: ibuf port map(i=>tms_net_in, o=>tms_net); u5: obuf port map(i=>tdo_net_out, o=>tdo_net); u6: tck port map (i=>tck_net_in); u7: tdi port map (i=>tdi_net_in); u8: tms port map (i=>tms_net_in); u9: tdo port map (o=>tdo_net); process(c) begin if(c'event and c='1') then d <= a; end if; end process; end xilinx;
F-3
JTAG Programmer Guide port ( i : out bit ); end component; component tms port ( i : out bit ); end component; component tdo port ( o : in bit ); end component; signal tck_net : bit; signal tdi_net : bit; signal tms_net : bit; signal tdo_net : bit; begin u1: bscan port map (tdi=>tdi_net, tms=>tms_net, tck=>tck_net, tdo=>tdo_net); u2: tck port map (i=>tck_net); u3: tdi port map (i=>tdi_net); u4: tms port map (i=>tms_net); u5: tdo port map (o=>tdo_net); process(c) begin if(c'event and c='1') then d <= a; end if; end process; end xilinx;
F-4
F-5
JTAG Programmer Guide module TDO(o) /*synthesis black_box .noprune=1 */; input o /*synthesis .ispad=1*/; endmodule module BSCAN(TDO, TCK, TDI, TMS) /* synthesis black_box */; output TDO; input TCK, TDI, TMS; endmodule #-- TCL Script #device options set_option -technology XC5200 set_option -part XC5202 set_option -package PC84 set_option -speed_grade -3 #add_file options add_file -verilog "bnd_scan.v" #compilation/mapping options set_option -default_enum_encoding onehot set_option -symbolic_fsm_compiler true #map options set_option -frequency 0.000 set_option -fanout_limit 100 set_option -force_gsr true set_option -disable_io_insertion false set_option -xilinx_m1 true #set result format/file last project -result_file "bnd_scan.xnf" project -run #end TCL
F-6
F-7
JTAG Programmer Guide TMS U4 (.i (TMS_P)); TDO U5 (.o (TDO_P)); always@ (posedge c) d<=a; endmodule #-- TCL scipt #device options set_option -technology XC4000E set_option -part XC4003E set_option -package PC84 set_option -speed_grade -1 #add_file options add_file -verilog "/products/synplify.ver3_0/lib/xilinx/xc4000.v" add_file -verilog "bnd_scan.v" #map options set_option -frequency 0.000 set_option -fanout_limit 100 set_option -force_gsr true set_option -disable_io_insertion false set_option -xilinx_m1 true #set result format/file last project -result_file "bnd_scan.xnf" project -run #end TCL
F-8
use IEEE.std_logic_1164.all; library xc4000; use xc4000.components.all; entity bnd_scan is port ( a, b, c: in bit; d: out bit ); end bnd_scan; architecture xilinx of bnd_scan is signal TCK_P : STD_LOGIC; signal TDI_P : STD_LOGIC; signal TMS_P : STD_LOGIC; signal TDO_P : STD_LOGIC; begin U0: BSCAN port map (TDO => TDO_P, TDI => TDI_P, TMS => TMS_P, TCK => TCK_P, DRCK => open, IDLE => open, SEL1 => open, SEL2 => open, TDO1 => '0', TDO2 => '0'); U1: TDI port map (I =>TDI_P); U2: TCK port map (I =>TCK_P); U3: TMS port map (I =>TMS_P);
F-9
JTAG Programmer Guide U4: TDO port map (O =>TDO_P); process (c) begin if (c'event and c='1') then d <= a; end if; end process; end xilinx; #-- TCL script #device options set_option -technology XC4000E set_option -part XC4003E set_option -package PC84 set_option -speed_grade -1 #add_file options add_file -vhdl -lib work "bnd_scan.vhd" add_file -_include "/products/synplify.ver3_0/lib/xilinx/ xc4000.vhd" #compilation/mapping options set_option -default_enum_encoding onehot set_option -symbolic_fsm_compiler false #map options set_option -frequency 0.000 set_option -fanout_limit 100 set_option -force_gsr true set_option -disable_io_insertion false set_option -xilinx_m1 true #set result format/file last project -result_file "bnd_scan.xnf"
F-10
project -run #end TCL If you experience problems instantiating, the simplest workaround for you would be to replace the VHDL "open" statements with actual signal names. All you have to do is declare 4 signals of type std_logic and connect the DRCK, IDLE, SEL1 and SEL2 ports of BSCAN to these signals. Another solution that would work requires a change in the BSCAN component declaration in the xc4000.vhd file located in your SYNPLCTY\LIB\xilinx directory. Please change the BSCAN component to be component BSCAN port( TDO DRCK IDLE SEL1 SEL2 TDI TMS TCK TDO1 TDO2 end component; Notice that the initialization for the output ports have been removed. : out STD_LOGIC ; : out STD_LOGIC ; : out STD_LOGIC ; : out STD_LOGIC ; : out STD_LOGIC ; : in : in : in : in : in STD_LOGIC; STD_LOGIC; STD_LOGIC; STD_LOGIC; STD_LOGIC);
F-11
JTAG Programmer Guide port (a, b, c: in bit; d: out bit); end bnd_scan; architecture xilinx of bnd_scan is attribute black_box : boolean; attribute black_box_pad_pin : string; attribute synthesis_noprune : boolean; component BSCAN port (TDI, TMS, TCK : in STD_LOGIC; TDO : out STD_LOGIC); end component; attribute black_box of BSCAN : component is true; component TDI port (I : out STD_LOGIC); end component; attribute black_box_pad_pin of TDI : component is "I"; component TCK port (I : out STD_LOGIC); end component; attribute black_box_pad_pin of TCK : component is "I"; component TMS port (I : out STD_LOGIC); end component; attribute black_box_pad_pin of TMS : component is "I"; component TDO port (O : in STD_LOGIC); end component; attribute black_box_pad_pin of TDO : component is "O";
F-12
attribute synthesis_noprune of TDO : component is true; signal TCK_P : STD_LOGIC; signal TDI_P : STD_LOGIC; signal TMS_P : STD_LOGIC; signal TDO_P : STD_LOGIC; begin U0: BSCAN port map (TDO => TDO_P, TDI => TDI_P, TMS => TMS_P, TCK => TCK_P); U1: TDI port map (I =>TDI_P); U2: TCK port map (I =>TCK_P); U3: TMS port map (I =>TMS_P); U4: TDO port map (O =>TDO_P); process (c) begin if (c'event and c='1') then d <= a; end if; end process; end xilinx; #-- TCL Script #device options set_option -technology XC5200 set_option -part XC5202 set_option -package PC84 set_option -speed_grade -3 #add_file options
F-13
JTAG Programmer Guide add_file -vhdl -lib work "bnd_scan.vhd" #compilation/mapping options set_option -default_enum_encoding onehot set_option -symbolic_fsm_compiler false #map options set_option -frequency 0.000 set_option -fanout_limit 100 set_option -force_gsr true set_option -disable_io_insertion false set_option -xilinx_m1 true #set result format/file last project -result_file "bnd_scan.xnf" project -run #end TCL
F-14
component tck port ( i : out bit ); end component; component tdi port ( i : out bit ); end component; component tms port ( i : out bit ); end component; component tdo port ( o : in bit ); end component; component ibuf port (i: in bit; o: out bit); end component; component obuf port(i: in bit; o: out bit); end component; signal tck_net, tck_net_in : bit; signal tdi_net, tdi_net_in : bit; signal tms_net, tms_net_in : bit; signal tdo_net, tdo_net_out : bit; begin u1: bscan port map (tdi=>tdi_net, tms=>tms_net, tck=>tck_net, tdo=>tdo_net_out); u2: ibuf port map(i=>tck_net_in, o=>tck_net); u3: ibuf port map(i=>tdi_net_in, o=>tdi_net); u4: ibuf port map(i=>tms_net_in, o=>tms_net);
F-15
JTAG Programmer Guide u5: obuf port map(i=>tdo_net_out, o=>tdo_net); u6: tck port map (i=>tck_net_in); u7: tdi port map (i=>tdi_net_in); u8: tms port map (i=>tms_net_in); u9: tdo port map (o=>tdo_net); process(c) begin if(c'event and c='1') then d<= a; end if; end process; end xilinx; Runscript for compiling XC5200 BSCAN VHDL Example: PART = 5202PC84-5 TOP = example analyze -format vhdl "bscan5k.vhd" elaborate TOP set_port_is_pad "*" insert_pads set_dont_touch u1 set_dont_touch u2 set_dont_touch u3 set_dont_touch u4 set_dont_touch u5 set_dont_touch u6 set_dont_touch u7 set_dont_touch u8 set_dont_touch u9
F-16
compile set_attribute TOP "part" -type string PART write -f xnf -h -o "bscan5k.sxnf"
F-17
JTAG Programmer Guide read -format verilog "bscan4k.v" set_port_is_pad "*" insert_pads set_dont_touch u1 set_dont_touch u2 set_dont_touch u3 set_dont_touch u4 set_dont_touch u5 compile replace_fpga set_attribute TOP "part" -type string PART write -f xnf -h -o "bscan4k.sxnf"
F-18
TDO u5 (.O(tdo_net_out)); IBUF u6 (.I(tdi_net_in), .O(tdi_net)); IBUF u7 (.I(tms_net_in), .O(tms_net)); IBUF u8 (.I(tck_net_in), .O(tck_net)); OBUF u9 (.I(tdo_net), .O(tdo_net_out)); always@(posedge c) d<=a; endmodule Runscript for compiling XC5200 BSCAN Verilog Example: PART = 5202PC84-5 TOP = example read -format verilog "bscan5k.v" set_port_is_pad "*" insert_pads set_dont_touch u1 set_dont_touch u2 set_dont_touch u3 set_dont_touch u4 set_dont_touch u5 set_dont_touch u6 set_dont_touch u7 set_dont_touch u8 set_dont_touch u9 compile set_attribute TOP "part" -type string PART write -f xnf -h -o "bscan5k.sxnf"
F-19
F-20
tdo=>tdo_net); u2: tck port map (i=>tck_net); u3: tdi port map (i=>tdi_net); u4: tms port map (i=>tms_net); u5: tdo port map (o=>tdo_net); process(c) begin if(c'event and c='1') then d<= a; end if; end process; end xilinx; Runscript for compiling XC4000 BSCAN VHDL Example: PART = 4025EHQ240-3 TOP = example analyze -format vhdl "bscan4k.vhd" elaborate TOP set_dont_touch u1 set_dont_touch u2 set_dont_touch u3 set_dont_touch u4 set_dont_touch u5 set_port_is_pad "*" insert_pads compile replace_fpga set_attribute TOP "part" -type string PART write -f xnf -h -o "bscan4k.sxnf"
F-21
JTAG Programmer Guide set_dont_touch/dont_touch are case-sensitive with respect to instance names.
F-22