A multi-PCB board JTAG cascade circuit and cascade method

By using multi-PCB board JTAG cascade circuits and switch circuits in the JTAG test of multiple PCB boards, it automatically opens or closes according to the detection signal of the JTAG cable, solving the complex and low-efficiency problems of traditional testing methods and achieving high efficiency. JTAG cascade debugging of multiple PCB boards, suitable for production and design maintenance.

CN112422113BActive Publication Date: 2024-10-15S2C
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011237606.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-09
Publication Date
2024-10-15
Estimated Expiration
2040-11-09

AI Technical Summary

Technical Problem

In the JTAG test of multiple PCB boards, the traditional test method results in complex test work, low work efficiency, and is inconvenient for production and design maintenance.

Method used

Using a multi-PCB board JTAG cascade circuit, through a PC, USB to JTAG module and multiple JTAG connectors, the switch circuit is used to automatically open or close according to the detection signal level change of the JTAG cable to realize the connection between multiple PCB boards. JTAG cascade debugging, and in the preferred embodiment, a buffer is added to improve signal quality.

Benefits of technology

It simplifies JTAG testing of multiple PCB boards, improves work efficiency, reduces test complexity, is suitable for maintenance needs of production and design, and supports JTAG cascading of up to 16 PCB boards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112422113B_ABST
    Figure CN112422113B_ABST
Patent Text Reader

Abstract

The present invention provides a multi-PCB board JTAG cascade circuit and a cascade method, which are used for JTAG cascade debugging of Xilinx FPGA between multiple PCB boards. The circuit includes a PC, a USB to JTAG module, and multiple JTAG connectors. The PC is connected to the USB to JTAG module. The TDI pin of the USB to JTAG module is connected to the input end of the first JTAG connector, and the output end is connected to the input end of the next JTAG connector. The output end of the last JTAG connector is connected to the TDO pin of the USB to JTAG module interface. The JTAG connector is used to connect the JTAG cable. Each JTAG connector is connected to a switch circuit for automatically disconnecting / closing according to the level change of the detection signal of the JTAG connector to the JTAG cable. The present invention determines whether the JTAG connector is inserted through the detection signal of the JTAG connector, thereby realizing the JTAG cascade of multiple PCB boards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a multi-PCB board JTAG cascade circuit and a cascade method. Background Art

[0002] JTAG (Joint Test Action Group) is an international standard test protocol (IEEE 1149.1 compatible), mainly used for internal chip testing. Most advanced devices now support the JTAG protocol, such as DSP, FPGA devices, etc. The standard JTAG interface is 4 lines: TMS, TCK, TDI, TDO, which are mode selection, clock, data input and data output lines respectively. JTAG was originally used to test chips. The basic principle of JTAG is to define a TAP (Test Access Port) inside the device to test internal nodes through a dedicated JTAG test tool. Today, the JTAG interface is also commonly used to implement ISP (In-System Programmer) to program devices such as FLASH.

[0003] JTAG testing allows multiple devices to be connected in series through the JTAG interface to form a JTAG chain, which can test each device separately. At present, the commonly used topology of the JTAG chain is to interconnect multiple devices on a single PCB board in the form of a daisy chain, so as to achieve separate testing of multiple devices on a single PCB board. As for the JTAG test of multiple PCB boards, the method of interconnecting multiple devices on each PCB board and testing each PCB board separately is still adopted. In the JTAG test application scenario of multiple PCB boards, the traditional testing method leads to complicated testing work, low work efficiency, and inconvenience for production and design maintenance. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a multi-PCB board JTAG cascade circuit and a cascade method. The method is mainly aimed at the JTAG debugging application of Xilinx FPGA, especially the JTAG cascade debugging of FPGA between multiple PCB boards, to solve the technical problems that the current JTAG testing of multiple PCB boards is complicated, the work efficiency is low, and it is not convenient for production and design maintenance.

[0005] In order to solve the above problems, the present invention provides the following technical solutions:

[0006] A multi-PCB board JTAG cascade circuit is used for JTAG cascade debugging of Xilinx FPGA between multiple PCB boards, comprising a PC, a USB to JTAG module, and multiple JTAG connectors, wherein the PC is connected to the USB to JTAG module, the TDI pin of the USB to JTAG module interface is connected to the input pin of the first JTAG connector, the output pin of the first JTAG connector is connected to the input pin of the next JTAG connector, so that multiple JTAG connectors are connected in sequence, and the output pin of the last JTAG connector is connected to the TDO pin of the USB to JTAG module interface; the multiple JTAG connectors are used to connect the JTAG cables of each PCB board;

[0007] Wherein, each of the JTAG connectors is connected to a switch circuit, and the switch circuit is used to automatically open / close according to the level change of the detection signal of the JTAG cable by the JTAG connector.

[0008] In a preferred embodiment, a buffer is also included, and the TMS pin and TCK pin of the USB to JTAG module interface are respectively connected to the TMS pins and TCK pins of multiple JTAG connectors, and the buffer is connected between the TMS pin and TCK pin of the USB to JTAG module interface and the JTAG connector.

[0009] In a preferred implementation, the buffer is of model SN74LVC162244A.

[0010] In a preferred embodiment, the PC is connected to the USB to JTAG module via a USB interface.

[0011] In a preferred implementation, the model of the USB to JTAG module is JTAG_SMT2.

[0012] In a preferred implementation, the model of the JTAG connector is 98424-G52B14.

[0013] In a preferred implementation, the number of the JTAG connectors is 16.

[0014] The present invention also provides a multi-PCB JTAG cascade method based on the multi-PCB JTAG cascade circuit, wherein pin 1 of each JTAG connector is pulled up as a detection signal, and the insertion state of the JTAG cable is judged according to the level change of the detection signal of the JTAG cable by the JTAG connector;

[0015] When no JTAG cable is inserted, the detection signal on the JTAG connector is at a high level, the switch circuit is closed, and the circuit bypasses the JTAG connector;

[0016] When the JTAG cable is inserted, pin 1 of the JTAG connector is pulled low, the detection signal on the JTAG connector is at a low level, the switch circuit is disconnected, and the JTAG connector is turned on; when each of the switch circuits is disconnected, multi-PCB board JTAG cascading is achieved.

[0017] The invention provides a multi-PCB board JTAG cascade circuit and cascade method, and its beneficial effect is that: the method of the invention is mainly aimed at the JTAG debugging application of Xlinx (Xilinx) FPGA, especially the JTAG cascade debugging of FPGA between multiple PCB boards, and judges whether the JTAG connector is inserted through the detection signal of the connector, thereby realizing the JTAG cascade of multiple PCB boards. The method of the invention is easy to implement, suitable for practical application, convenient for testing, reduces the complexity of testing, improves the working effect, and meets the needs of production maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A structural circuit diagram of a multi-PCB JTAG cascade according to an embodiment of the present invention;

[0020] Figure 2 A structural circuit diagram of a multi-PCB JTAG cascade according to another embodiment of the present invention;

[0021] Figure 3 A schematic diagram of the switch circuit structure of a multi-PCB JTAG cascade according to an embodiment of the present invention;

[0022] Figure 4 The diagram is a schematic diagram of the interface definition of a JTAG connector for JTAG cascading of multiple PCBs according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0024] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0025] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement a device and / or practice a method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0026] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0027] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0028] refer to Figure 1The embodiment of the present disclosure provides a multi-PCB board JTAG cascade circuit, which is used for JTAG cascade debugging of Xilinx FPGA between multiple PCB boards, including a PC, a USB to JTAG module, and multiple JTAG connectors, wherein the PC is connected to the USB to JTAG module via a USB interface, the TDI pin of the USB to JTAG module interface is connected to the input pin of the first JTAG connector, the output pin of the first JTAG connector is connected to the input pin of the next JTAG connector, so that multiple JTAG connectors are connected in sequence, and the output pin of the last JTAG connector is connected to the TDO pin of the USB to JTAG module interface; the multiple JTAG connectors are used to connect the JTAG cables of each PCB board;

[0029] Wherein, each of the JTAG connectors is connected to a switch circuit, and the switch circuit is used to automatically open / close according to the level change of the detection signal of the JTAG cable by the JTAG connector.

[0030] Based on the above multi-PCB JTAG cascade circuit, the multi-PCB JTAG cascade method is as follows: pull up the 1st pin of each JTAG connector as a detection signal, and judge the insertion status of the JTAG cable according to the level change of the detection signal of the JTAG cable by the JTAG connector;

[0031] When no JTAG cable is inserted, the detection signal on the JTAG connector is at a high level, the switch circuit is closed, and the circuit bypasses the JTAG connector;

[0032] When the JTAG cable is inserted, pin 1 of the JTAG connector is pulled low, the detection signal on the JTAG connector is at a low level, the switch circuit is disconnected, and the JTAG connector is turned on; when each of the switch circuits is disconnected, multi-PCB board JTAG cascading is achieved.

[0033] refer to Figure 2 In order to ensure the signal quality, in a preferred embodiment, a buffer is further included, the TMS pin and TCK pin of the USB to JTAG module interface are respectively connected to the TMS pin and TCK pin of the multiple JTAG connectors, and the buffer is connected between the TMS pin and TCK pin of the USB to JTAG module interface and the JTAG connector. The buffer can improve the signal quality and increase the signal driving capability.

[0034] Figure 3Schematic diagram of the switch circuit structure. It can be seen from the figure that the circuit is a single-pole single-throw switch. When the control signal OE is high, the switch circuit is turned on, and when the control signal OE is low, the switch circuit is turned off; Figure 4 This is a schematic diagram of the interface definition of the above-mentioned JTAG connector. In addition to the signals specified by the JTAG protocol, an OE signal is added in the figure. This signal is used to determine whether a JTAG cable is inserted. Since pin 1 of the JTAG connector on the PCB board is ground, when this signal is low, it can be determined that a cable is inserted.

[0035] The multi-PCB board JTAG cascade circuit and cascade method of the present invention are used for JTAG cascade debugging of Xilinx FPGA between multiple PCB boards. Therefore, the above-mentioned USB to JTAG module adopts the JTAG_SMT2 model USB to JTAG module of Digilent Inc.; the above-mentioned JTAG connector adopts the 98424-G52B14 model connector of FCI (Amphenol Corporation); and the above-mentioned buffer preferably adopts the model SN74LVC162244A.

[0036] According to the above-mentioned JTAG cascade circuit and cascade method of the present invention, the number of the JTAG connectors can reach 16. At this time, the test signal quality is good and the signal is stable. Therefore, the present invention can support JTAG cascade of up to 16 PCB boards.

[0037] Through the above-mentioned JTAG cascade circuit, IBERT testing between (Serdes) high-speed transceivers between up to 16 Xilinx FPGA modules is implemented.

[0038] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A multi-PCB board JTAG cascade circuit, used for JTAG cascade debugging of Xilinx FPGA between multiple PCB boards, characterized in that: The invention comprises a PC, a USB to JTAG module, and a plurality of JTAG connectors, wherein the PC is connected to the USB to JTAG module, the TDI pin of the interface of the USB to JTAG module is connected to the input pin of the first JTAG connector, the output pin of the first JTAG connector is connected to the input pin of the next JTAG connector, so that the plurality of JTAG connectors are connected in sequence, the output pin of the last JTAG connector is connected to the TDO pin of the interface of the USB to JTAG module, the 1 pin of each JTAG connector is pulled up as a detection signal, and the insertion state of the JTAG cable is judged according to the level change of the detection signal of the JTAG cable by the JTAG connector; The multiple JTAG connectors are used to connect the JTAG cables of each PCB board; Wherein, each of the JTAG connectors is connected to a switch circuit, and the switch circuit is used to automatically open / close according to the level change of the detection signal of the JTAG cable by the JTAG connector.

2. The multi-PCB board JTAG cascade circuit according to claim 1, characterized in that: It also includes a buffer, wherein the TMS pin and TCK pin of the USB to JTAG module interface are respectively connected to the TMS pins and TCK pins of multiple JTAG connectors, and the buffer is connected between the TMS pin and TCK pin of the USB to JTAG module interface and the JTAG connector.

3. The multi-PCB board JTAG cascade circuit according to claim 2, characterized in that: The model of the buffer is SN74LVC162244A.

4. The multi-PCB board JTAG cascade circuit according to any one of claims 1 to 3, characterized in that: The PC is connected to the USB to JTAG module via a USB interface.

5. The multi-PCB board JTAG cascade circuit according to claim 1, characterized in that: The model of the USB to JTAG module is JTAG_SMT2.

6. The multi-PCB board JTAG cascade circuit according to claim 1, characterized in that: The model number of the JTAG connector is 98424-G52B14.

7. The multi-PCB board JTAG cascade circuit according to claim 1, characterized in that: The number of the JTAG connectors is 16.

8. A multi-PCB board JTAG cascade method based on the multi-PCB board JTAG cascade circuit according to claim 1, characterized in that: Pull up pin 1 of each JTAG connector as a detection signal, and determine the insertion status of the JTAG cable according to the level change of the detection signal of the JTAG cable by the JTAG connector; When no JTAG cable is inserted, the detection signal on the JTAG connector is at a high level, the switch circuit is closed, and the circuit bypasses the JTAG connector; When the JTAG cable is inserted, pin 1 of the JTAG connector is pulled low, the detection signal on the JTAG connector is at a low level, the switch circuit is disconnected, and the JTAG connector is turned on; When each of the switch circuits is disconnected, multi-PCB board JTAG cascading is achieved.