CN115629926B - Control system, method and device based on joint test working group interface - Google Patents
Control system, method and device based on joint test working group interface Download PDFInfo
- Publication number
- CN115629926B CN115629926B CN202211520792.6A CN202211520792A CN115629926B CN 115629926 B CN115629926 B CN 115629926B CN 202211520792 A CN202211520792 A CN 202211520792A CN 115629926 B CN115629926 B CN 115629926B
- Authority
- CN
- China
- Prior art keywords
- jtag
- interface
- processing device
- control
- input interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2284—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及计算机领域,具体而言,涉及一种基于联合测试工作组JTAG接口的控制系统、方法及装置。The embodiments of the present application relate to the computer field, and in particular, relate to a control system, method and device based on the Joint Test Working Group JTAG interface.
背景技术Background technique
FPGA(Field Programmable Gate Array,现场可编程门阵列)芯片具有可定制性、低延迟和高性能功耗比,被广泛应用于机器学习推理、图像语音识别、大数据分析、存储虚拟化等等领域。FPGA芯片往往要求不同的电源满足一定的上电时序要求。FPGA (Field Programmable Gate Array, Field Programmable Gate Array) chip has customizability, low latency and high performance per power ratio, and is widely used in machine learning reasoning, image speech recognition, big data analysis, storage virtualization, etc. . FPGA chips often require different power supplies to meet certain power-on sequence requirements.
现有技术中,往往采用CPLD(Complex Programmable Logic Device,复杂可编程逻辑器件)芯片控制FPGA的上电时序,并且往往是将FPGA与CPLD的JTAG(Joint TestAction Group,联合测试工作组)接口采用菊花链的连接方式实现单个JTAG连接器接口对多片JTAG逻辑器件进行控制和调试。这样的方式,可能会导致在CPLD中没有程序或者程序错误的时候,FPGA不能正常上电,进而导致CPLD和FPGA之间的JTAG链就不通,JTAG连接器也就连接不上CPLD,进而不能更新CPLD的程序。In the prior art, a CPLD (Complex Programmable Logic Device) chip is often used to control the power-on sequence of the FPGA, and the JTAG (Joint Test Action Group) interface between the FPGA and the CPLD is often used in a chrysanthemum The connection mode of the chain realizes the control and debugging of multiple JTAG logic devices by a single JTAG connector interface. This method may cause the FPGA to fail to power on normally when there is no program in the CPLD or the program is wrong, which will cause the JTAG link between the CPLD and FPGA to fail, and the JTAG connector will not be able to connect to the CPLD, and thus cannot be updated. CPLD program.
针对相关技术中,在CPLD芯片控制FPGA芯片的上电时序且FPGA上电未完成的情况下,CPLD无法与JTAG连接器连接的技术问题,尚未提出有效的解决方案。In the related art, when the power-on sequence of the FPGA chip is controlled by the CPLD chip and the power-on of the FPGA chip is not completed, the technical problem that the CPLD cannot be connected to the JTAG connector has not yet been proposed.
发明内容Contents of the invention
本申请实施例提供了一种基于联合测试工作组JTAG接口的控制系统、方法及装置,以至少解决相关技术中在CPLD芯片控制FPGA芯片的上电时序且FPGA上电未完成的情况下,CPLD无法与JTAG连接器连接的问题。The embodiment of the present application provides a control system, method and device based on the JTAG interface of the joint test working group, to at least solve the problem of CPLD chip controlling the power-on sequence of the FPGA chip and the power-on sequence of the FPGA chip in the related art. Problem with not being able to connect with the JTAG connector.
根据本申请的一个实施例,提供了一种基于联合测试工作组JTAG接口的控制系统,包括:JTAG连接器,所述JTAG连接器包括第一JTAG接口和第二JTAG接口,其中,所述第一JTAG接口用于发送数据,所述第二JTAG接口用于接收数据;第一处理器件,所述第一处理器件包括第一JTAG输入接口和第一JTAG输出接口;第一控制器件,所述第一控制器件包括第二JTAG输入接口和第二JTAG输出接口,所述第二JTAG输出接口与所述第二JTAG接口连接,其中,所述第一控制器件用于控制所述第一处理器件的上电;第一选通模块,分别与所述第一JTAG接口、所述第一JTAG输出接口以及所述第二JTAG输入接口连接,其中,所述第一选通模块用于在所述第一处理器件未上电完成的情况下,将所述第一JTAG接口与所述第二JTAG输入接口连接,在所述第一处理器件上电完成的情况下,断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将所述第一JTAG输出接口与所述第二JTAG输入接口连接。According to one embodiment of the present application, a control system based on the Joint Test Working Group JTAG interface is provided, including: a JTAG connector, the JTAG connector includes a first JTAG interface and a second JTAG interface, wherein the first A JTAG interface is used to send data, and the second JTAG interface is used to receive data; the first processing device, the first processing device includes a first JTAG input interface and a first JTAG output interface; the first control device, the The first control device includes a second JTAG input interface and a second JTAG output interface, the second JTAG output interface is connected to the second JTAG interface, wherein the first control device is used to control the first processing device the power-on; the first gating module is respectively connected with the first JTAG interface, the first JTAG output interface and the second JTAG input interface, wherein the first gating module is used for the When the first processing device is not powered on, connect the first JTAG interface to the second JTAG input interface, and when the first processing device is powered on, disconnect the first JTAG The interface is connected to the second JTAG input interface, and the first JTAG output interface is connected to the second JTAG input interface.
在一个示例性实施例中,还包括:第一电源,与所述第一控制器件、所述第一选通模块以及所述第一处理器件连接,其中,所述第一电源用于在所述第一处理器件未上电完成的情况下,向所述第一选通模块输出第一控制信号,并在所述第一处理器件上电完成的情况下,向所述第一选通模块输出第二控制信号,其中,所述第一控制信号用于控制所述第一选通模块将所述第一JTAG接口与所述第二JTAG输入接口连接,所述第二控制信号用于控制所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将所述第一JTAG输出接口与所述第二JTAG输入接口连接;其中,所述第一控制器件用于通过所述第一电源控制所述第一处理器件的上电。In an exemplary embodiment, it further includes: a first power supply connected to the first control device, the first gating module and the first processing device, wherein the first power supply is used for When the first processing device is not powered on, output the first control signal to the first gating module, and when the first processing device is powered on, output the first control signal to the first gating module Outputting a second control signal, wherein the first control signal is used to control the first gating module to connect the first JTAG interface to the second JTAG input interface, and the second control signal is used to control The first gating module disconnects the connection between the first JTAG interface and the second JTAG input interface, and connects the first JTAG output interface to the second JTAG input interface; wherein, the first A control device is used to control the power-on of the first processing device through the first power supply.
在一个示例性实施例中,所述第一控制器件用于在所述第一处理器件上电完成的情况下,向所述第一电源输出第三控制信号,其中,所述第三控制信号用于控制所述第一电源向所述第一处理器件供电。In an exemplary embodiment, the first control device is configured to output a third control signal to the first power supply when the first processing device is powered on, wherein the third control signal It is used to control the first power supply to supply power to the first processing device.
在一个示例性实施例中,所述第一电源包括:第一上电检测模块,其中,所述第一上电检测模块用于检测所述第一处理器件是否上电完成;第一控制信号输出模块,与所述第一上电检测模块连接,其中,所述第一控制信号输出模块用于在所述第一上电检测模块检测到所述第一处理器件未上电完成的情况下,向所述第一选通模块输出所述第一控制信号,并在所述第一上电检测模块检测到所述第一处理器件上电完成的情况下,向所述第一选通模块输出所述第二控制信号。In an exemplary embodiment, the first power supply includes: a first power-on detection module, wherein the first power-on detection module is used to detect whether the first processing device is powered on; the first control signal An output module, connected to the first power-on detection module, wherein the first control signal output module is used to detect that the first processing device has not been powered on when the first power-on detection module detects , outputting the first control signal to the first gating module, and sending the first control signal to the first gating module when the first power-on detection module detects that the first processing device is powered on outputting the second control signal.
在一个示例性实施例中,所述第一JTAG输入接口与所述第一JTAG接口连接。In an exemplary embodiment, the first JTAG input interface is connected to the first JTAG interface.
在一个示例性实施例中,还包括:第二处理器件,其中,所述第一JTAG接口与所述第二处理器件的JTAG输入接口连接,所述第一JTAG输入接口与所述第二处理器件的JTAG输出接口连接;或者第二处理器件和第三处理器件,其中,所述第一JTAG接口与所述第二处理器件的JTAG输入接口连接,所述第二处理器件的JTAG输出接口与所述第三处理器件的JTAG输入接口连接,所述第一JTAG输入接口与所述第三处理器件的JTAG输出接口连接;或者N个处理器件,其中,N为大于2的正整数,所述第一JTAG接口与所述N个处理器件中的第1个处理器件的JTAG输入接口连接,所述N个处理器件中的第i个处理器件的JTAG输入接口与所述N个处理器件中的第i-1个处理器件的JTAG输出接口连接,所述N个处理器件中的第i个处理器件的JTAG输出接口与所述N个处理器件中的第i+1个处理器件的JTAG输入接口连接,所述第一JTAG输入接口与所述N个处理器件中的第N个处理器件的JTAG输出接口连接,i为大于或等于2、且小于N的正整数。In an exemplary embodiment, it also includes: a second processing device, wherein the first JTAG interface is connected to the JTAG input interface of the second processing device, and the first JTAG input interface is connected to the second processing device The JTAG output interface of the device is connected; or the second processing device and the third processing device, wherein, the first JTAG interface is connected with the JTAG input interface of the second processing device, and the JTAG output interface of the second processing device is connected with The JTAG input interface of the third processing device is connected, and the first JTAG input interface is connected to the JTAG output interface of the third processing device; or N processing devices, wherein N is a positive integer greater than 2, and the The first JTAG interface is connected to the JTAG input interface of the first processing device in the N processing devices, and the JTAG input interface of the i-th processing device in the N processing devices is connected to the JTAG input interface of the N processing devices. The JTAG output interface of the i-1th processing device is connected, the JTAG output interface of the i-th processing device in the N processing devices is connected to the JTAG input interface of the i+1-th processing device in the N processing devices connected, the first JTAG input interface is connected to the JTAG output interface of the Nth processing device among the N processing devices, and i is a positive integer greater than or equal to 2 and less than N.
在一个示例性实施例中,还包括:第二处理器件,所述第二处理器件包括第三JTAG输入接口和第三JTAG输出接口,所述第三JTAG输入接口与所述第一JTAG接口连接;第二选通模块,分别与所述第一JTAG接口、所述第三JTAG输出接口以及所述第一JTAG输入接口连接,其中,所述第二选通模块用于在所述第二处理器件未上电完成的情况下,将所述第一JTAG接口与所述第一JTAG输入接口连接,在所述第二处理器件上电完成的情况下,断开所述第一JTAG接口与所述第一JTAG输入接口的连接,并将所述第三JTAG输出接口与所述第一JTAG输入接口连接。In an exemplary embodiment, it also includes: a second processing device, the second processing device includes a third JTAG input interface and a third JTAG output interface, and the third JTAG input interface is connected to the first JTAG interface ; The second gating module is respectively connected with the first JTAG interface, the third JTAG output interface and the first JTAG input interface, wherein the second gating module is used to process the When the device is not powered on, connect the first JTAG interface to the first JTAG input interface, and when the second processing device is powered on, disconnect the first JTAG interface from the first JTAG input interface. The first JTAG input interface is connected, and the third JTAG output interface is connected to the first JTAG input interface.
在一个示例性实施例中,还包括:第二电源,与所述第一控制器件、所述第二选通模块以及所述第二处理器件连接,其中,所述第二电源用于在所述第二处理器件未上电完成的情况下,向所述第二选通模块输出第四控制信号,并在所述第二处理器件上电完成的情况下,向所述第二选通模块输出第五控制信号,其中,所述第四控制信号用于控制所述第二选通模块将所述第一JTAG接口与所述第一JTAG输入接口连接,所述第五控制信号用于控制所述第二选通模块断开所述第一JTAG接口与所述第一JTAG输入接口的连接,并将所述第三JTAG输出接口与所述第一JTAG输入接口连接;其中,所述第一控制器件用于通过所述第二电源控制所述第二处理器件的上电。In an exemplary embodiment, it further includes: a second power supply connected to the first control device, the second gating module and the second processing device, wherein the second power supply is used for When the second processing device is not powered on, output a fourth control signal to the second gating module, and when the second processing device is powered on, output the fourth control signal to the second gating module Outputting a fifth control signal, wherein the fourth control signal is used to control the second gating module to connect the first JTAG interface to the first JTAG input interface, and the fifth control signal is used to control The second gating module disconnects the connection between the first JTAG interface and the first JTAG input interface, and connects the third JTAG output interface to the first JTAG input interface; wherein, the first A control device is used to control the power-on of the second processing device through the second power supply.
在一个示例性实施例中,所述第一控制器件用于在所述第二处理器件上电完成的情况下,向所述第二电源输出第六控制信号,其中,所述第六控制信号用于控制所述第二电源向所述第二处理器件供电。In an exemplary embodiment, the first control device is configured to output a sixth control signal to the second power supply when the second processing device is powered on, wherein the sixth control signal It is used to control the second power supply to supply power to the second processing device.
在一个示例性实施例中,所述第二电源包括:第二上电检测模块,其中,所述第二上电检测模块用于检测所述第二处理器件是否上电完成;第二控制信号输出模块,与所述第二上电检测模块连接,其中,所述第二控制信号输出模块用于在所述第二上电检测模块检测到所述第二处理器件未上电完成的情况下,向所述第二选通模块输出所述第四控制信号,并在所述第二上电检测模块检测到所述第二处理器件上电完成的情况下,向所述第二选通模块输出所述第五控制信号。In an exemplary embodiment, the second power supply includes: a second power-on detection module, wherein the second power-on detection module is used to detect whether the second processing device is powered on; the second control signal An output module connected to the second power-on detection module, wherein the second control signal output module is used to detect that the second processing device has not been powered on when the second power-on detection module detects , outputting the fourth control signal to the second gating module, and sending the fourth control signal to the second gating module when the second power-on detection module detects that the second processing device is powered on outputting the fifth control signal.
在一个示例性实施例中,所述第一JTAG输入接口和所述第一JTAG输出接口与所述第二JTAG输入接口和所述第二JTAG输出接口所要求的接口电平相同。In an exemplary embodiment, the interface level required by the first JTAG input interface and the first JTAG output interface is the same as that required by the second JTAG input interface and the second JTAG output interface.
在一个示例性实施例中,所述第一处理器件是现场可编程门阵列FPGA器件,所述第一控制器件是复杂可编程逻辑器件CPLD。In an exemplary embodiment, the first processing device is a field programmable gate array FPGA device, and the first control device is a complex programmable logic device CPLD.
在一个示例性实施例中,所述第一选通模块包括以下之一:开关控制器件、三极管开关控制电路。In an exemplary embodiment, the first gating module includes one of the following: a switch control device, and a triode switch control circuit.
在一个示例性实施例中,所述JTAG连接器还包括第三JTAG接口和第四JTAG接口,其中,所述第三JTAG接口用于传输时钟信号,所述第四JTAG接口用于传输模式选择信号,所述第一处理器件与所述第三JTAG接口和所述第四JTAG接口连接,所述第一控制器件与所述第三JTAG接口和所述第四JTAG接口连接。In an exemplary embodiment, the JTAG connector further includes a third JTAG interface and a fourth JTAG interface, wherein the third JTAG interface is used to transmit a clock signal, and the fourth JTAG interface is used for transmission mode selection signal, the first processing device is connected to the third JTAG interface and the fourth JTAG interface, and the first control device is connected to the third JTAG interface and the fourth JTAG interface.
根据本申请的另一个实施例,提供了一种基于联合测试工作组JTAG接口的控制方法,包括:在基于JTAG链的控制系统中的第一处理器件未上电完成的情况下,通过所述控制系统中的第一选通模块将第一JTAG接口与第二JTAG输入接口连接;在所述第一处理器件上电完成的情况下,通过所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将第一JTAG输出接口与所述第二JTAG输入接口连接;其中,所述控制系统包括:JTAG连接器,所述JTAG连接器包括所述第一JTAG接口和第二JTAG接口;所述第一处理器件,所述第一处理器件包括第一JTAG输入接口和所述第一JTAG输出接口;第一控制器件,所述第一控制器件包括所述第二JTAG输入接口和第二JTAG输出接口,所述第二JTAG输出接口与所述第二JTAG接口连接,其中,所述第一控制器件用于控制所述第一处理器件的上电;所述第一选通模块,分别与所述第一JTAG接口、所述第一JTAG输出接口以及所述第二JTAG输入接口连接。According to another embodiment of the present application, a control method based on the JTAG interface of the joint test working group is provided, including: when the first processing device in the control system based on the JTAG chain is not powered on, through the The first gating module in the control system connects the first JTAG interface with the second JTAG input interface; when the first processing device is powered on, disconnect the first JTAG interface through the first gating module. JTAG interface and the connection of described second JTAG input interface, and the first JTAG output interface is connected with described second JTAG input interface; Wherein, described control system comprises: JTAG connector, and described JTAG connector comprises described The first JTAG interface and the second JTAG interface; the first processing device, the first processing device includes a first JTAG input interface and the first JTAG output interface; a first control device, the first control device includes The second JTAG input interface and the second JTAG output interface, the second JTAG output interface is connected to the second JTAG interface, wherein the first control device is used to control the power-on of the first processing device ; The first gating module is respectively connected to the first JTAG interface, the first JTAG output interface and the second JTAG input interface.
在一个示例性实施例中,所述在基于JTAG链的控制系统中的第一处理器件未上电完成的情况下,通过所述控制系统中的第一选通模块将第一JTAG接口与第二JTAG输入接口连接,包括:在所述第一处理器件未上电完成的情况下,通过第一电源向所述第一选通模块输出第一控制信号,其中,所述第一控制信号用于控制所述第一选通模块将所述第一JTAG接口与所述第二JTAG输入接口连接;响应于所述第一控制信号,通过所述第一选通模块将所述第一JTAG接口与所述第二JTAG输入接口连接;所述在所述第一处理器件上电完成的情况下,通过所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将第一JTAG输出接口与所述第二JTAG输入接口连接,包括:在所述第一处理器件上电完成的情况下,通过所述第一电源向所述第一选通模块输出第二控制信号,其中,所述第二控制信号用于控制所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将所述第一JTAG输出接口与所述第二JTAG输入接口连接;响应于所述第二控制信号,通过所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将所述第一JTAG输出接口与所述第二JTAG输入接口连接;其中,所述控制系统还包括:所述第一电源,与所述第一控制器件、所述第一选通模块以及所述第一处理器件连接;其中,所述第一控制器件用于通过所述第一电源控制所述第一处理器件的上电。In an exemplary embodiment, when the first processing device in the control system based on the JTAG chain has not been powered on, the first JTAG interface and the second Two JTAG input interface connections, including: when the first processing device is not powered on, output a first control signal to the first gating module through the first power supply, wherein the first control signal is used Controlling the first gating module to connect the first JTAG interface to the second JTAG input interface; in response to the first control signal, connecting the first JTAG interface to the first JTAG input interface through the first gating module Connected to the second JTAG input interface; when the first processing device is powered on, disconnect the first JTAG interface and the second JTAG input interface through the first gating module connection, and connecting the first JTAG output interface with the second JTAG input interface, including: when the first processing device is powered on, sending the first gating module through the first power supply Outputting a second control signal, wherein the second control signal is used to control the first gating module to disconnect the first JTAG interface from the second JTAG input interface, and connect the first JTAG The output interface is connected to the second JTAG input interface; in response to the second control signal, the connection between the first JTAG interface and the second JTAG input interface is disconnected through the first gating module, and the The first JTAG output interface is connected to the second JTAG input interface; wherein, the control system further includes: the first power supply, the first control device, the first gating module and the The first processing device is connected; wherein, the first control device is configured to control power-on of the first processing device through the first power supply.
在一个示例性实施例中,还包括:在所述第一处理器件上电完成的情况下,通过所述第一控制器件向所述第一电源输出第三控制信号,其中,所述第三控制信号用于控制所述第一电源向所述第一处理器件供电;响应于所述第三控制信号,通过所述第一电源向所述第一处理器件供电。In an exemplary embodiment, the method further includes: when the first processing device is powered on, outputting a third control signal to the first power supply through the first control device, wherein the third The control signal is used to control the first power supply to supply power to the first processing device; in response to the third control signal, the first power supply supplies power to the first processing device.
在一个示例性实施例中,所述方法还包括:通过所述第一电源中的第一上电检测模块检测所述第一处理器件是否上电完成;在所述第一上电检测模块检测到所述第一处理器件未上电完成的情况下,通过所述第一电源中的第一控制信号输出模块向所述第一选通模块输出所述第一控制信号;在所述第一上电检测模块检测到所述第一处理器件上电完成的情况下,通过所述第一控制信号输出模块向所述第一选通模块输出所述第二控制信号。In an exemplary embodiment, the method further includes: using a first power-on detection module in the first power supply to detect whether the first processing device is powered on; When the first processing device is not powered on, output the first control signal to the first gating module through the first control signal output module in the first power supply; When the power-on detection module detects that the first processing device is powered on, the second control signal is output to the first gating module through the first control signal output module.
根据本申请的又一个实施例,提供了一种基于联合测试工作组JTAG接口的控制装置,包括:第一连接模块,用于在基于JTAG链的控制系统中的第一处理器件未上电完成的情况下,通过所述控制系统中的第一选通模块将第一JTAG接口与第二JTAG输入接口连接;第二连接模块,用于在所述第一处理器件上电完成的情况下,通过所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将第一JTAG输出接口与所述第二JTAG输入接口连接;其中,所述控制系统包括:JTAG连接器,所述JTAG连接器包括所述第一JTAG接口和第二JTAG接口;所述第一处理器件,所述第一处理器件包括第一JTAG输入接口和所述第一JTAG输出接口;第一控制器件,所述第一控制器件包括所述第二JTAG输入接口和第二JTAG输出接口,所述第二JTAG输出接口与所述第二JTAG接口连接,其中,所述第一控制器件用于控制所述第一处理器件的上电;所述第一选通模块,分别与所述第一JTAG接口、所述第一JTAG输出接口以及所述第二JTAG输入接口连接。According to yet another embodiment of the present application, a control device based on the joint test working group JTAG interface is provided, including: a first connection module, which is used to complete the first processing device in the control system based on the JTAG chain without being powered on In the case of the first gating module in the control system, the first JTAG interface is connected to the second JTAG input interface; the second connection module is used to complete the power-on of the first processing device, Disconnect the connection between the first JTAG interface and the second JTAG input interface through the first gating module, and connect the first JTAG output interface to the second JTAG input interface; wherein, the control system Including: a JTAG connector, the JTAG connector includes the first JTAG interface and a second JTAG interface; the first processing device, the first processing device includes a first JTAG input interface and the first JTAG output Interface; a first control device, the first control device includes the second JTAG input interface and the second JTAG output interface, the second JTAG output interface is connected to the second JTAG interface, wherein the first The control device is used to control the power-on of the first processing device; the first gating module is respectively connected to the first JTAG interface, the first JTAG output interface and the second JTAG input interface.
根据本申请的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to perform any one of the above-mentioned methods when running Steps in the examples.
根据本申请的又一个实施例,还提供了一种电子设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.
通过本申请实施例,由于CPLD器件(即第一控制器件)控制FPGA器件(即第一处理器件)的上电时序,在FPGA器件的上电过程中,可以通过第一选通模块实现与JTAG连接器连接的器件的切换;并且不论FPGA器件是否上电完成,通过第一选通模块可以实现CPLD器件与JTAG连接器连接。因此,可以解决在CPLD芯片控制FPGA芯片的上电时序且FPGA上电未完成的情况下,CPLD无法与JTAG连接器连接的问题,进而达到在了CPLD芯片控制FPGA芯片的上电时序且FPGA上电未完成的情况下,保证CPLD与JTAG连接器之间的连接的效果。Through the embodiment of this application, since the CPLD device (ie, the first control device) controls the power-on sequence of the FPGA device (ie, the first processing device), during the power-on process of the FPGA device, the first gating module can be used to realize the connection with JTAG The switching of the device connected with the connector; and regardless of whether the FPGA device is powered on or not, the connection between the CPLD device and the JTAG connector can be realized through the first gating module. Therefore, it can solve the problem that the CPLD cannot be connected to the JTAG connector when the CPLD chip controls the power-on sequence of the FPGA chip and the power-on of the FPGA chip is not completed, and then achieves the control of the power-on sequence of the FPGA chip by the CPLD chip and the power-on sequence of the FPGA chip. In the case that the electricity is not completed, the effect of the connection between the CPLD and the JTAG connector is guaranteed.
附图说明Description of drawings
图1是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图一;Fig. 1 is a kind of block diagram one based on the control system of joint test working group JTAG interface according to the embodiment of the application;
图2是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图二;Fig. 2 is the structural block diagram two of a kind of control system based on joint test working group JTAG interface according to the embodiment of the application;
图3是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图三;Fig. 3 is the structural block diagram three of a kind of control system based on joint test working group JTAG interface according to the embodiment of the application;
图4是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图四;Fig. 4 is a structural block diagram four of a control system based on a JTAG interface of a joint test working group according to an embodiment of the present application;
图5是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图五;Fig. 5 is a structural block diagram five of a control system based on the joint test working group JTAG interface according to an embodiment of the present application;
图6是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图六;Fig. 6 is a structural block diagram six of a control system based on a joint test working group JTAG interface according to an embodiment of the present application;
图7是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图七;Fig. 7 is a structural block diagram seven of a control system based on a joint test working group JTAG interface according to an embodiment of the present application;
图8是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图八;Fig. 8 is a structural block diagram eight of a control system based on a joint test working group JTAG interface according to an embodiment of the present application;
图9是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图九;FIG. 9 is a structural block diagram nine of a control system based on a joint test working group JTAG interface according to an embodiment of the present application;
图10是根据本申请实施例的一种FPGA加速卡的结构框图;Fig. 10 is a structural block diagram of an FPGA accelerator card according to an embodiment of the present application;
图11是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图十;Fig. 11 is a structural block diagram ten of a control system based on a joint test working group JTAG interface according to an embodiment of the present application;
图12是根据本申请实施例的一种CPLD与FPGA与JTAG连接器的连接示意图一;12 is a schematic diagram of a connection between a CPLD and an FPGA and a JTAG connector according to an embodiment of the present application;
图13是根据本申请实施例的一种JTAG连接器与CPLD之间的连接示意图;13 is a schematic diagram of a connection between a JTAG connector and a CPLD according to an embodiment of the present application;
图14是根据本申请实施例的一种CPLD与FPGA与JTAG连接器的连接示意图二;14 is a second schematic diagram of a connection between a CPLD, an FPGA, and a JTAG connector according to an embodiment of the present application;
图15是根据本申请实施例的一种CPLD与FPGA与JTAG连接器的连接示意图三;FIG. 15 is a schematic diagram of a connection between a CPLD, an FPGA, and a JTAG connector according to an embodiment of the present application;
图16是本申请实施例的一种基于联合测试工作组JTAG接口的控制方法的移动终端的硬件结构框图;FIG. 16 is a block diagram of the hardware structure of a mobile terminal based on the control method of the joint test working group JTAG interface according to the embodiment of the present application;
图17是根据本申请实施例的基于联合测试工作组JTAG接口的控制方法的流程图;Fig. 17 is the flow chart of the control method based on joint test working group JTAG interface according to the embodiment of the present application;
图18是根据本申请实施例的基于联合测试工作组JTAG接口的控制装置的结构框图。Fig. 18 is a structural block diagram of a control device based on a joint test working group JTAG interface according to an embodiment of the present application.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本申请的实施例。Embodiments of the present application will be described in detail below with reference to the drawings and in combination with the embodiments.
需要说明的是,本申请实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the embodiments of the present application and the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence order.
在本申请实施例中提供了一种基于联合测试工作组JTAG接口的控制系统,图1是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图一,如图1所示,该控制系统包括:JTAG连接器102,所述JTAG连接器102包括TDI(Test Data Input,测试数据输入)接口102-1(即第一JTAG接口)、TDO(Test Data Output,测试数据输出)接口102-2(即第二JTAG接口)TCK(Test Clock,测试时钟)接口和TMS(Test Mode Select,测试模式选择)接口,其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据;第一处理器件108,所述第一处理器件108包括TDI接口108-1(即第一JTAG输入接口)和TDO接口108-2(即第一JTAG输出接口);第一控制器件104,所述第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,所述第一控制器件104用于控制第一处理器件108的上电;第一选通模块106包括引脚1、引脚2和引脚3,引脚1、引脚2和引脚3分别与TDI接口104-1、TDI接口102-1以及TDO接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接(即将引脚1和引脚2连接),在所述第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将所述TDO接口108-2与TDI接口104-1连接(即将引脚1和引脚3连接)。In the embodiment of the present application, a control system based on the joint test working group JTAG interface is provided. FIG. 1 is a structural block diagram one of a control system based on the joint test working group JTAG interface according to the embodiment of the present application, as shown in FIG. 1 As shown, the control system includes:
需要说明的是,在图1中仅以包括开关器件的选通模块对本申请实施例中的基于联合测试工作组JTAG接口的控制系统的结构进行解释说明,本申请实施例对选通模块的结构和所包括的器件不作限定。在本申请实施例中的选通模块可以参考图1中的选通模块进行理解。It should be noted that, in Fig. 1, the structure of the control system based on the joint test working group JTAG interface in the embodiment of the present application is explained only with the gating module including the switching device, and the embodiment of the present application only uses the gating module structure and the devices included are not limited. The gating module in the embodiment of the present application can be understood with reference to the gating module in FIG. 1 .
在一个示范性实施例中,上述控制系统还包括:第一电源,与所述第一控制器件、所述第一选通模块以及所述第一处理器件连接,其中,所述第一电源用于在所述第一处理器件未上电完成的情况下,向所述第一选通模块输出第一控制信号,并在所述第一处理器件上电完成的情况下,向所述第一选通模块输出第二控制信号,其中,所述第一控制信号用于控制所述第一选通模块将所述第一JTAG接口与所述第二JTAG输入接口连接,所述第二控制信号用于控制所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将所述第一JTAG输出接口与所述第二JTAG输入接口连接;其中,所述第一控制器件用于通过所述第一电源控制所述第一处理器件的上电。In an exemplary embodiment, the above control system further includes: a first power supply connected to the first control device, the first gating module, and the first processing device, wherein the first power supply uses Outputting a first control signal to the first gating module when the power-on of the first processing device is not completed, and outputting a first control signal to the first gate module when the power-on of the first processing device is completed The gating module outputs a second control signal, wherein the first control signal is used to control the first gating module to connect the first JTAG interface to the second JTAG input interface, and the second control signal Used to control the first gating module to disconnect the first JTAG interface from the second JTAG input interface, and connect the first JTAG output interface to the second JTAG input interface; wherein, The first control device is configured to control power-on of the first processing device through the first power supply.
可选的,在本实施例中,图2是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图二,如图2所示,上述控制系统包括:JTAG连接器102,JTAG连接器102包括TDI接口102-1(即第一JTAG接口)和TDO接口102-2(即第二JTAG接口),其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据;第一处理器件108,第一处理器件108包括TDI接口108-1(即第一JTAG输入接口)和TDO接口108-2(即第一JTAG输出接口);第一控制器件104,第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,第一控制器件104用于控制第一处理器件108的上电;第一选通模块106,与TDI接口104-1、TDI接口102-1以及TDO接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接,在第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将TDO接口108-2与TDI接口104-1连接;第一电源110,与第一控制器件104、第一选通模块106以及第一处理器件108连接。Optionally, in this embodiment, Fig. 2 is a structural block diagram two of a control system based on a joint test working group JTAG interface according to an embodiment of the present application. As shown in Fig. 2, the above-mentioned control system includes: a
在一个示范性实施例中,所述第一控制器件用于在所述第一处理器件上电完成的情况下,向所述第一电源输出第三控制信号,其中,所述第三控制信号用于控制所述第一电源向所述第一处理器件供电。In an exemplary embodiment, the first control device is configured to output a third control signal to the first power supply when the first processing device is powered on, wherein the third control signal It is used to control the first power supply to supply power to the first processing device.
可选的,在本实施例中,可以但不限于在第一控制器件上电完成的情况下,通过向第一电源输出第三控制信号,进而控制第一电源向第一处理器件供电的时间和顺序,实现了第一控制器件对第一处理器件的上电时序的控制。Optionally, in this embodiment, but not limited to, when the first control device is powered on, outputting a third control signal to the first power supply can further control the time for the first power supply to supply power to the first processing device and the sequence realize the control of the power-on sequence of the first processing device by the first control device.
在一个示范性实施例中,所述第一电源包括:第一上电检测模块,其中,所述第一上电检测模块用于检测所述第一处理器件是否上电完成;第一控制信号输出模块,与所述第一上电检测模块连接,其中,所述第一控制信号输出模块用于在所述第一上电检测模块检测到所述第一处理器件未上电完成的情况下,向所述第一选通模块输出所述第一控制信号,并在所述第一上电检测模块检测到所述第一处理器件上电完成的情况下,向所述第一选通模块输出所述第二控制信号。In an exemplary embodiment, the first power supply includes: a first power-on detection module, wherein the first power-on detection module is used to detect whether the first processing device is powered on; the first control signal An output module, connected to the first power-on detection module, wherein the first control signal output module is used to detect that the first processing device has not been powered on when the first power-on detection module detects , outputting the first control signal to the first gating module, and sending the first control signal to the first gating module when the first power-on detection module detects that the first processing device is powered on outputting the second control signal.
在一个示范性实施例中,所述第一JTAG输入接口与所述第一JTAG接口连接。In an exemplary embodiment, the first JTAG input interface is connected to the first JTAG interface.
可选的,在本实施例中,图3是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图三,如图3所示,上述控制系统包括:JTAG连接器102,JTAG连接器102包括TDI接口102-1(即第一JTAG接口)和TDO接口102-2(即第二JTAG接口),其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据;第一处理器件108,第一处理器件108包括TDI接口108-1(即第一JTAG输入接口)和TDO接口108-2(即第一JTAG输出接口),第一JTAG输入接口108-1与第一JTAG接口102-1连接;第一控制器件104,第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,第一控制器件104用于控制第一处理器件108的上电;第一选通模块106,与TDI接口104-1、TDI接口102-1以及TDO接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接,在第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将TDO接口108-2与TDI接口104-1连接;第一电源110,与第一控制器件104、第一选通模块106以及第一处理器件108连接,第一电源110包括第一上电检测模块110-1和第一控制信号输出模块110-2,其中,第一上电检测模块110-1与第一控制信号输出模块110-2连接,第一控制信号输出模块110-2与第一选通模块106连接,第一上电检测模块110-1与第一处理器件108连接。Optionally, in this embodiment, FIG. 3 is a structural block diagram three of a control system based on a joint test working group JTAG interface according to an embodiment of the present application. As shown in FIG. 3, the above-mentioned control system includes: a
在一个示范性实施例中,上述控制装置还可以包括以下情形之一:In an exemplary embodiment, the above-mentioned control device may also include one of the following situations:
情形一:第二处理器件,其中,所述第一JTAG接口与所述第二处理器件的JTAG输入接口连接,所述第一JTAG输入接口与所述第二处理器件的JTAG输出接口连接。Case 1: the second processing device, wherein the first JTAG interface is connected to the JTAG input interface of the second processing device, and the first JTAG input interface is connected to the JTAG output interface of the second processing device.
可选的,在本实施例中,图4是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图四,如图4所示,该控制系统包括:JTAG连接器102,所述JTAG连接器102包括TDI接口102-1(即第一JTAG接口)和TDO接口102-2(即第二JTAG接口),其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据;第一处理器件108,所述第一处理器件108包括TDI接口108-1(即第一JTAG输入接口)和TDO接口108-2(即第一JTAG输出接口);第二处理器件112,所述第二处理器件112包括JTAG输入接口112-1和JTAG输出接口112-2;JTAG输入接口112-1与TDI接口102-1连接,JTAG输出接口112-2与TDI接口108-1连接;第一控制器件104,所述第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,所述第一控制器件104用于控制第一处理器件108的上电;第一选通模块106分别与TDI接口104-1、TDI接口102-1以及TDO接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接,在所述第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将所述TDO接口108-2与TDI接口104-1连接。Optionally, in this embodiment, FIG. 4 is a structural block diagram four of a control system based on a joint test working group JTAG interface according to an embodiment of the present application. As shown in FIG. 4, the control system includes: a JTAG connector 102, the JTAG connector 102 includes a TDI interface 102-1 (i.e. the first JTAG interface) and a TDO interface 102-2 (i.e. the second JTAG interface), wherein the TDI interface 102-1 is used to send data, and the TDO interface 102 -2 is used to receive data; the first processing device 108, the first processing device 108 includes a TDI interface 108-1 (ie the first JTAG input interface) and a TDO interface 108-2 (ie the first JTAG output interface); the first Two processing devices 112, the second processing device 112 includes a JTAG input interface 112-1 and a JTAG output interface 112-2; the JTAG input interface 112-1 is connected to the TDI interface 102-1, and the JTAG output interface 112-2 is connected to the TDI interface 108-1 connection; the first control device 104, the first control device 104 includes a TDI interface 104-1 (ie the second JTAG input interface) and a TDO interface 104-2 (ie the second JTAG output interface), the TDO interface 104 -2 is connected to the TDO interface 102-2, wherein the first control device 104 is used to control the power-on of the first processing device 108; the first gating module 106 is connected to the TDI interface 104-1 and the TDI interface 102-1 respectively And the TDO interface 108-2 connection, wherein the first gating module 106 is used to connect the TDI interface 102-1 to the TDI interface 104-1 when the first processing device 108 has not been powered on. When the processing device is powered on, the connection between the TDI interface 102-1 and the TDI interface 104-1 is disconnected, and the TDO interface 108-2 is connected to the TDI interface 104-1.
情形二:第二处理器件和第三处理器件,其中,所述第一JTAG接口与所述第二处理器件的JTAG输入接口连接,所述第二处理器件的JTAG输出接口与所述第三处理器件的JTAG输入接口连接,所述第一JTAG输入接口与所述第三处理器件的JTAG输出接口连接。Situation 2: a second processing device and a third processing device, wherein the first JTAG interface is connected to the JTAG input interface of the second processing device, and the JTAG output interface of the second processing device is connected to the third processing device connected to the JTAG input interface of the device, and the first JTAG input interface is connected to the JTAG output interface of the third processing device.
可选的,在本实施例中,图5是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图五,如图5所示,该控制系统包括:JTAG连接器102,所述JTAG连接器102包括TDI接口102-1(即第一JTAG接口)和TDO接口102-2(即第二JTAG接口),其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据;第一处理器件108、第二处理器件112和第三处理器件114,所述第一处理器件108包括TDI接口108-1(即第一JTAG输入接口)和TDO接口108-2(即第一JTAG输出接口);第二处理器件112包括JTAG输入接口112-1和JTAG输出接口112-2;第三处理器件114包括JTAG输入接口114-1和JTAG输出接口114-2;所述第一JTAG接口102-1与所述第二处理器件112的JTAG输入接口112-1连接,所述第二处理器件112的JTAG输出接口112-2与所述第三处理器件114的JTAG输入接口114-1连接,所述第一JTAG输入接口108-1与所述第三处理器件114的JTAG输出接口114-2连接。Optionally, in this embodiment, FIG. 5 is a structural block diagram five of a control system based on a joint test working group JTAG interface according to an embodiment of the present application. As shown in FIG. 5, the control system includes: a JTAG connector 102, the JTAG connector 102 includes a TDI interface 102-1 (i.e. the first JTAG interface) and a TDO interface 102-2 (i.e. the second JTAG interface), wherein the TDI interface 102-1 is used to send data, and the TDO interface 102 -2 for receiving data; the first processing device 108, the second processing device 112 and the third processing device 114, the first processing device 108 includes a TDI interface 108-1 (ie the first JTAG input interface) and a TDO interface 108 -2 (ie the first JTAG output interface); the second processing device 112 includes a JTAG input interface 112-1 and a JTAG output interface 112-2; the third processing device 114 includes a JTAG input interface 114-1 and a JTAG output interface 114-2 The first JTAG interface 102-1 is connected to the JTAG input interface 112-1 of the second processing device 112, and the JTAG output interface 112-2 of the second processing device 112 is connected to the JTAG output interface 112 of the third processing device 114; The JTAG input interface 114 - 1 is connected, and the first JTAG input interface 108 - 1 is connected to the JTAG output interface 114 - 2 of the third processing device 114 .
第一控制器件104,所述第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,所述第一控制器件104用于控制第一处理器件108的上电;第一选通模块106分别与TDI接口104-1、TDI接口102-1以及TDO接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接,在所述第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将所述TDO接口108-2与TDI接口104-1连接。The
情形三:N个处理器件,其中,N为大于2的正整数,所述第一JTAG接口与所述N个处理器件中的第1个处理器件的JTAG输入接口连接,所述N个处理器件中的第i个处理器件的JTAG输入接口与所述N个处理器件中的第i-1个处理器件的JTAG输出接口连接,所述N个处理器件中的第i个处理器件的JTAG输出接口与所述N个处理器件中的第i+1个处理器件的JTAG输入接口连接,所述第一JTAG输入接口与所述N个处理器件中的第N个处理器件的JTAG输出接口连接,i为大于或等于2、且小于N的正整数。Situation 3: N processing devices, wherein N is a positive integer greater than 2, the first JTAG interface is connected to the JTAG input interface of the first processing device in the N processing devices, and the N processing devices The JTAG input interface of the i-th processing device in the N processing device is connected to the JTAG output interface of the i-1 processing device in the N processing devices, and the JTAG output interface of the i-th processing device in the N processing devices Connected to the JTAG input interface of the i+1th processing device among the N processing devices, the first JTAG input interface is connected to the JTAG output interface of the Nth processing device among the N processing devices, i It is a positive integer greater than or equal to 2 and less than N.
可选的,在本实施例中,可以但不限于以N等于5进行解释说明,图6是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图六,如图6所示,该控制系统包括:JTAG连接器102,JTAG连接器102包括TDI接口102-1(即第一JTAG接口)和TDO接口102-2(即第二JTAG接口),其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据。Optionally, in this embodiment, it may be explained but not limited to that N is equal to 5. FIG. 6 is a structural block diagram 6 of a control system based on the joint test working group JTAG interface according to an embodiment of the present application, as shown in FIG. 6, the control system includes: a
第1个处理器件118、第2个处理器件120、第3个处理器件122,第4个处理器件124和第5个处理器件126,第1个处理器件118的JTAG输入接口118-1与第一JTAG接口102-1连接,第1个处理器件118的JTAG输出接口118-2与第2个处理器件120的JTAG输入接口120-1连接,第2个处理器件120的JTAG输出接口120-2与第3个处理器件122的JTAG输入接口122-1连接,第3个处理器件122的JTAG输出接口122-2与第4个处理器件124的JTAG输入接口124-1连接,第4个处理器件124的JTAG输出接口124-2与第5个处理器件126的JTAG输入接口126-1连接,第5个处理器件126的JTAG输出接口126-2与第一处理器件108的第一JTAG输入接口108-1连接。The
第一控制器件104,第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,第一控制器件104用于控制第一处理器件108的上电。The
第一选通模块106分别与TDI接口104-1、TDI接口102-1以及第一处理器件108的第一JTAG输出接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接,在第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将TDO接口108-2与第二JTAG输入接口104-1连接。The
在一个示范性实施例中,上述控制系统,还包括:第二处理器件,所述第二处理器件包括第三JTAG输入接口和第三JTAG输出接口,所述第三JTAG输入接口与所述第一JTAG接口连接;第二选通模块,分别与所述第一JTAG接口、所述第三JTAG输出接口以及所述第一JTAG输入接口连接,其中,所述第二选通模块用于在所述第二处理器件未上电完成的情况下,将所述第一JTAG接口与所述第一JTAG输入接口连接,在所述第二处理器件上电完成的情况下,断开所述第一JTAG接口与所述第一JTAG输入接口的连接,并将所述第三JTAG输出接口与所述第一JTAG输入接口连接。In an exemplary embodiment, the above-mentioned control system further includes: a second processing device, the second processing device includes a third JTAG input interface and a third JTAG output interface, and the third JTAG input interface is connected to the first JTAG input interface. A JTAG interface is connected; the second gating module is respectively connected with the first JTAG interface, the third JTAG output interface and the first JTAG input interface, wherein the second gating module is used to When the second processing device is not powered on, connect the first JTAG interface to the first JTAG input interface, and when the second processing device is powered on, disconnect the first JTAG interface. The JTAG interface is connected to the first JTAG input interface, and the third JTAG output interface is connected to the first JTAG input interface.
可选的,在本实施例中,图7是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图七,如图7所示,该控制系统包括:JTAG连接器102,JTAG连接器102包括TDI接口102-1(即第一JTAG接口)和TDO接口102-2(即第二JTAG接口),其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据。Optionally, in this embodiment, FIG. 7 is a structural block diagram seven of a control system based on a joint test working group JTAG interface according to an embodiment of the present application. As shown in FIG. 7, the control system includes: a
第一处理器件108,第一处理器件108包括TDI接口108-1(即第一JTAG输入接口)和TDO接口108-2(即第一JTAG输出接口);第二处理器件112,第二处理器件112包括JTAG输入接口112-1(即第三JTAG输入接口)和JTAG输出接口112-2(即第三JTAG输出接口);JTAG输入接口112-1与TDI接口102-1连接,JTAG输出接口112-2与TDI接口108-1连接;第一控制器件104,第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,第一控制器件104用于控制第一处理器件108的上电;第一选通模块106分别与TDI接口104-1、TDI接口102-1以及TDO接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接,在第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将TDO接口108-2与TDI接口104-1连接。第二选通模块202,分别与第一JTAG接口102-1、第三JTAG输出接口JTAG输出接口112-2以及第一JTAG输入接口108-1连接。The first processing device 108, the first processing device 108 includes a TDI interface 108-1 (ie, the first JTAG input interface) and a TDO interface 108-2 (ie, the first JTAG output interface); the second processing device 112, the second processing device 112 includes a JTAG input interface 112-1 (ie the third JTAG input interface) and a JTAG output interface 112-2 (ie the third JTAG output interface); the JTAG input interface 112-1 is connected to the TDI interface 102-1, and the JTAG output interface 112 -2 is connected to the TDI interface 108-1; the first control device 104, the first control device 104 includes a TDI interface 104-1 (ie, the second JTAG input interface) and a TDO interface 104-2 (ie, the second JTAG output interface), The TDO interface 104-2 is connected to the TDO interface 102-2, wherein the first control device 104 is used to control the power-on of the first processing device 108; the first gating module 106 is respectively connected to the TDI interface 104-1 and the TDI interface 102- 1 and the TDO interface 108-2, wherein the first gating module 106 is used to connect the TDI interface 102-1 to the TDI interface 104-1 when the first processing device 108 has not been powered on. When the processing device is powered on, disconnect the TDI interface 102-1 from the TDI interface 104-1, and connect the TDO interface 108-2 to the TDI interface 104-1. The second gating module 202 is respectively connected to the first JTAG interface 102-1, the third JTAG output interface JTAG output interface 112-2 and the first JTAG input interface 108-1.
在一个示范性实施例中,上述控制系统还包括:第二电源,与所述第一控制器件、所述第二选通模块以及所述第二处理器件连接,其中,所述第二电源用于在所述第二处理器件未上电完成的情况下,向所述第二选通模块输出第四控制信号,并在所述第二处理器件上电完成的情况下,向所述第二选通模块输出第五控制信号,其中,所述第四控制信号用于控制所述第二选通模块将所述第一JTAG接口与所述第一JTAG输入接口连接,所述第五控制信号用于控制所述第二选通模块断开所述第一JTAG接口与所述第一JTAG输入接口的连接,并将所述第三JTAG输出接口与所述第一JTAG输入接口连接;其中,所述第一控制器件用于通过所述第二电源控制所述第二处理器件的上电。In an exemplary embodiment, the above control system further includes: a second power supply connected to the first control device, the second gating module, and the second processing device, wherein the second power supply uses Outputting a fourth control signal to the second gating module when the second processing device is not powered on, and outputting a fourth control signal to the second gate module when the second processing device is powered on The gating module outputs a fifth control signal, wherein the fourth control signal is used to control the second gating module to connect the first JTAG interface to the first JTAG input interface, and the fifth control signal Used to control the second gating module to disconnect the first JTAG interface from the first JTAG input interface, and connect the third JTAG output interface to the first JTAG input interface; wherein, The first control device is used to control the power-on of the second processing device through the second power supply.
可选的,在本实施例中,图8是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图八,如图8所示,该控制系统包括:JTAG连接器102,JTAG连接器102包括TDI接口102-1(即第一JTAG接口)和TDO接口102-2(即第二JTAG接口),其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据。Optionally, in this embodiment, FIG. 8 is a structural block diagram eight of a control system based on a joint test working group JTAG interface according to an embodiment of the present application. As shown in FIG. 8, the control system includes: a
第一处理器件108,第一处理器件108包括TDI接口108-1(即第一JTAG输入接口)和TDO接口108-2(即第一JTAG输出接口);第二处理器件112,第二处理器件112包括JTAG输入接口112-1(即第三JTAG输入接口)和JTAG输出接口112-2(即第三JTAG输出接口);JTAG输入接口112-1与TDI接口102-1连接,JTAG输出接口112-2与TDI接口108-1连接。The first processing device 108, the first processing device 108 includes a TDI interface 108-1 (ie, the first JTAG input interface) and a TDO interface 108-2 (ie, the first JTAG output interface); the second processing device 112, the second processing device 112 includes a JTAG input interface 112-1 (ie the third JTAG input interface) and a JTAG output interface 112-2 (ie the third JTAG output interface); the JTAG input interface 112-1 is connected to the TDI interface 102-1, and the JTAG output interface 112 -2 is connected to the TDI interface 108-1.
第一控制器件104,第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,第一控制器件104用于控制第一处理器件108的上电。The
第一选通模块106分别与TDI接口104-1、TDI接口102-1以及TDO接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接,在第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将TDO接口108-2与TDI接口104-1连接。第二选通模块202,分别与第一JTAG接口102-1、第三JTAG输出接口JTAG输出接口112-2以及第一JTAG输入接口108-1连接。The
第一电源110,与第一控制器件104、第一选通模块106以及第一处理器件108连接。第二电源204,与第一控制器件104、第二选通模块202以及第二处理器件112连接。The first power supply 110 is connected to the
在一个示范性实施例中,所述第一控制器件用于在所述第二处理器件上电完成的情况下,向所述第二电源输出第六控制信号,其中,所述第六控制信号用于控制所述第二电源向所述第二处理器件供电。In an exemplary embodiment, the first control device is configured to output a sixth control signal to the second power supply when the second processing device is powered on, wherein the sixth control signal It is used to control the second power supply to supply power to the second processing device.
可选的,在本实施例中,可以但不限于通过同一个控制器件实现对多个处理器件的上电时序的控制。Optionally, in this embodiment, the same control device may be used to control the power-on sequence of multiple processing devices, but is not limited to.
在一个示范性实施例中,所述第二电源包括:第二上电检测模块,其中,所述第二上电检测模块用于检测所述第二处理器件是否上电完成;第二控制信号输出模块,与所述第二上电检测模块连接,其中,所述第二控制信号输出模块用于在所述第二上电检测模块检测到所述第二处理器件未上电完成的情况下,向所述第二选通模块输出所述第四控制信号,并在所述第二上电检测模块检测到所述第二处理器件上电完成的情况下,向所述第二选通模块输出所述第五控制信号。In an exemplary embodiment, the second power supply includes: a second power-on detection module, wherein the second power-on detection module is used to detect whether the second processing device is powered on; the second control signal An output module connected to the second power-on detection module, wherein the second control signal output module is used to detect that the second processing device has not been powered on when the second power-on detection module detects , outputting the fourth control signal to the second gating module, and sending the fourth control signal to the second gating module when the second power-on detection module detects that the second processing device is powered on outputting the fifth control signal.
可选的,在本实施例中,图9是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图九,如图9所示,该控制系统包括:JTAG连接器102,JTAG连接器102包括TDI接口102-1(即第一JTAG接口)和TDO接口102-2(即第二JTAG接口),其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据。Optionally, in this embodiment, FIG. 9 is a structural block diagram nine of a control system based on a joint test working group JTAG interface according to an embodiment of the present application. As shown in FIG. 9, the control system includes: a
第一处理器件108,第一处理器件108包括TDI接口108-1(即第一JTAG输入接口)和TDO接口108-2(即第一JTAG输出接口)。第二处理器件112,第二处理器件112包括JTAG输入接口112-1(即第三JTAG输入接口)和JTAG输出接口112-2(即第三JTAG输出接口);JTAG输入接口112-1与TDI接口102-1连接,JTAG输出接口112-2与TDI接口108-1连接。The first processing device 108, the first processing device 108 includes a TDI interface 108-1 (ie, the first JTAG input interface) and a TDO interface 108-2 (ie, the first JTAG output interface). The second processing device 112, the second processing device 112 includes a JTAG input interface 112-1 (ie the third JTAG input interface) and a JTAG output interface 112-2 (ie the third JTAG output interface); the JTAG input interface 112-1 and the TDI The interface 102-1 is connected, and the JTAG output interface 112-2 is connected to the TDI interface 108-1.
第一控制器件104,第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,第一控制器件104用于控制第一处理器件108的上电。The
第一选通模块106,分别与TDI接口104-1、TDI接口102-1以及TDO接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接,在第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将TDO接口108-2与TDI接口104-1连接。第二选通模块202,分别与第一JTAG接口102-1、第三JTAG输出接口JTAG输出接口112-2以及第一JTAG输入接口108-1连接。The
第一电源110,与第一控制器件104、第一选通模块106以及第一处理器件108连接,其中,第一电源110包括第一控制信号输出模块110-2和第一上电检测模块110-1,第一控制信号输出模块110-2与第一选通模块106连接,第一上电检测模块110-1与第一处理器件108连接。第二电源204,与第一控制器件104、第二选通模块202以及第二处理器件112连接,第二电源204包括第二控制信号输出模块204-2和第二上电检测模块204-1,第二控制信号输出模块204-2与第二选通模块202连接,第二上电检测模块204-1与第二处理器件112连接。The first power supply 110 is connected to the
在一个示范性实施例中,所述第一JTAG输入接口和所述第一JTAG输出接口与所述第二JTAG输入接口和所述第二JTAG输出接口所要求的接口电平相同。In an exemplary embodiment, the interface level required by the first JTAG input interface and the first JTAG output interface is the same as that required by the second JTAG input interface and the second JTAG output interface.
可选的,在本实施例中,在JTAG接口电平相同的情况下,可以将处理器件和控制器件放入同一个JTAG链中,进而可以通过相同的JTAG连接器对挂载到JTAG链中的器件进行控制与调试。Optionally, in this embodiment, when the JTAG interface level is the same, the processing device and the control device can be put into the same JTAG chain, and then can be mounted in the JTAG chain through the same JTAG connector pair The device is controlled and debugged.
在一个示范性实施例中,所述第一处理器件是现场可编程门阵列FPGA器件,所述第一控制器件是复杂可编程逻辑器件CPLD。In an exemplary embodiment, the first processing device is a field programmable gate array FPGA device, and the first control device is a complex programmable logic device CPLD.
可选的,在本实施例中,第一处理器件和第一控制器件可以但不限于包括允许支持JTAG接口的芯片等等。可以但不限于将CPLD和FPGA部署在同一个加速卡上,图10是根据本申请实施例的一种FPGA加速卡的结构框图,如图10所示,JTAG连接器可以但不限于与FPGA和CPLD连接(需要说明的是,FPGA也可以和其它的连接器(Other CON)连接),CPLD与异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)连接。该FPGA加速卡可以但不限为X16 PCIe(peripheral component interconnect express,高速串行计算机扩展总线标准)卡,支持4路DDR(Double Data Rate,双倍速率同步动态随机存储器)4(可以但不限于包括DDR4 Channel-A/B和DDR4 Channel-C/D),2路QSFP(Quad Small Form-factor Pluggable,四通道可插拔光模块连接器)(可以但不限于包括QSFP_1,QSFP_2)。通过CPLD控制FPGA上电时序,同时充当FPGA加速卡的BMC(base-board managementcontroller,基板管理控制器)功能,管理监控整板功耗、温度、报警等信息,同时与Host端(服务器端)的BMC通过SMBUS(System Management Bus,系统管理总线)通信。该板卡的FPGA和CPLD的JTAG信号电压相同,将FPGA和CPLD挂载到同一个JTAG链,使用一个JTAG连接器对逻辑器件FPGA和CPLD进行控制,这样可以节省板卡空间。FPGA和CPLD之间可以但不限于通过I2C(Inter-Integrated Circuit,两线式串行总线)进行时钟发生器(clock generator)和温度传感器(temperature sensor)的通信,可以但不限于通过电源管理总线(PowerManagement Bus,PMBus)完成VRM(Voltage Regulator Module,电压调节模块)和eFuse(一次性可编程存储器)的通信和连接。Optionally, in this embodiment, the first processing device and the first control device may include, but are not limited to, chips that are allowed to support a JTAG interface. It is possible but not limited to deploying CPLD and FPGA on the same accelerator card. Figure 10 is a structural block diagram of an FPGA accelerator card according to an embodiment of the present application. As shown in Figure 10, the JTAG connector can be but not limited to be connected with FPGA and CPLD connection (it should be noted that FPGA can also be connected with other connectors (Other CON)), and CPLD is connected with Universal Asynchronous Receiver/Transmitter (UART). The FPGA accelerator card can be, but is not limited to, an X16 PCIe (peripheral component interconnect express, high-speed serial computer expansion bus standard) card, and supports 4 channels of DDR (Double Data Rate, double-rate synchronous dynamic random access memory) 4 (can be, but is not limited to Including DDR4 Channel-A/B and DDR4 Channel-C/D), 2-way QSFP (Quad Small Form-factor Pluggable, four-channel pluggable optical module connector) (can but not limited to include QSFP_1, QSFP_2). The FPGA power-on sequence is controlled by the CPLD, and at the same time acts as the BMC (base-board management controller) function of the FPGA accelerator card to manage and monitor the power consumption, temperature, alarm and other information of the entire board, and at the same time communicate with the host (server) BMC communicates through SMBUS (System Management Bus, system management bus). The JTAG signal voltage of the FPGA and CPLD of the board is the same, mount the FPGA and CPLD to the same JTAG chain, and use a JTAG connector to control the logic device FPGA and CPLD, which can save board space. The communication between FPGA and CPLD can be, but not limited to, the clock generator (clock generator) and the temperature sensor (temperature sensor) through I2C (Inter-Integrated Circuit, two-wire serial bus), and can be, but not limited to, through the power management bus (PowerManagement Bus, PMBus) completes the communication and connection between VRM (Voltage Regulator Module, voltage regulation module) and eFuse (one-time programmable memory).
在一个示范性实施例中,所述第一选通模块包括以下之一:开关控制器件、三极管开关控制电路。In an exemplary embodiment, the first gating module includes one of the following: a switch control device, and a triode switch control circuit.
可选的,在本实施例中,三极管开关控制电路可以但不限于包括PMOS(positivechannel Metal Oxide Semiconductor)管、N MOS(N-Metal-Oxide-Semiconductor,N型金属-氧化物-半导体)管的开关控制电路等等。Optionally, in this embodiment, the triode switch control circuit may include, but is not limited to, a PMOS (positivechannel Metal Oxide Semiconductor) tube, an N MOS (N-Metal-Oxide-Semiconductor, N-type metal-oxide-semiconductor) tube switch control circuit and so on.
在一个示范性实施例中,所述JTAG连接器还包括第三JTAG接口和第四JTAG接口,其中,所述第三JTAG接口用于传输时钟信号,所述第四JTAG接口用于传输模式选择信号,所述第一处理器件与所述第三JTAG接口和所述第四JTAG接口连接,所述第一控制器件与所述第三JTAG接口和所述第四JTAG接口连接。In an exemplary embodiment, the JTAG connector further includes a third JTAG interface and a fourth JTAG interface, wherein the third JTAG interface is used for transmitting clock signals, and the fourth JTAG interface is used for transmission mode selection signal, the first processing device is connected to the third JTAG interface and the fourth JTAG interface, and the first control device is connected to the third JTAG interface and the fourth JTAG interface.
图11是根据本申请实施例的一种基于联合测试工作组JTAG接口的控制系统的结构框图十,如图11所示,上述控制系统包括:JTAG连接器102,JTAG连接器102包括TDI接口102-1(即第一JTAG接口)、TDO接口102-2(即第二JTAG接口),TCK接口102-3(即第三JTAG接口)和TMS接口102-4(即第四JTAG接口)其中,TDI接口102-1用于发送数据,TDO接口102-2用于接收数据。Fig. 11 is a structural block diagram ten of a control system based on the JTAG interface of the joint test working group according to the embodiment of the present application. -1 (i.e. the first JTAG interface), TDO interface 102-2 (i.e. the second JTAG interface), TCK interface 102-3 (i.e. the third JTAG interface) and TMS interface 102-4 (i.e. the fourth JTAG interface) wherein, The TDI interface 102-1 is used for sending data, and the TDO interface 102-2 is used for receiving data.
第一处理器件108,第一处理器件108包括TDI接口108-1(即第一JTAG输入接口)和TDO接口108-2(即第一JTAG输出接口);所述第一处理器件108与TCK接口102-3和TMS接口102-4连接,所述第一控制器件104与所述第三JTAG接口TCK接口102-3和所述TMS接口102-4连接。The first processing device 108, the first processing device 108 includes a TDI interface 108-1 (ie the first JTAG input interface) and a TDO interface 108-2 (ie the first JTAG output interface); the first processing device 108 is connected to the TCK interface 102-3 is connected to the TMS interface 102-4, and the
第一控制器件104,第一控制器件104包括TDI接口104-1(即第二JTAG输入接口)和TDO接口104-2(即第二JTAG输出接口),TDO接口104-2与TDO接口102-2连接,其中,第一控制器件104用于控制第一处理器件108的上电。The
第一选通模块106,与TDI接口104-1、TDI接口102-1以及TDO接口108-2连接,其中,第一选通模块106用于在第一处理器件108未上电完成的情况下,将TDI接口102-1与TDI接口104-1连接,在第一处理器件上电完成的情况下,断开TDI接口102-1与TDI接口104-1的连接,并将TDO接口108-2与TDI接口104-1连接。The
第一电源110,与第一控制器件104、第一选通模块106以及第一处理器件108连接,第一电源110包括第一上电检测模块110-1和第一控制信号输出模块110-2,其中,第一上电检测模块110-1与第一控制信号输出模块110-2连接,第一控制信号输出模块110-2与第一选通模块106连接,第一上电检测模块110-1与第一处理器件108连接。The first power supply 110 is connected to the
为了更好的理解上述的基于联合测试工作组JTAG接口的控制系统,下面结合可选的实施例对本申请实施例中的基于联合测试工作组JTAG接口的控制系统进行解释说明,可以但不限于适用于本申请实施例。In order to better understand the above-mentioned control system based on the JTAG interface of the joint test working group, the control system based on the JTAG interface of the joint test working group in the embodiment of the application is explained below in conjunction with optional embodiments, which can be but not limited to applicable In the embodiment of this application.
可选的,在本实施例中,图12是根据本申请实施例的一种CPLD与FPGA与JTAG连接器的连接示意图一,如图12所示,JTAG CONN(connector,连接器)(即上述的JTAG连接器)包括TCK接口,TMS接口、TDI接口(即上述的第一JTAG接口)和TDO接口(即上述的第二JTAG接口),CPLD(即第一控制器件)包括TCK接口,TMS接口、TDI接口(即上述的第二JTAG输入接口)和TDO接口(即上述的第二JTAG输出接口),FPGA(即第一处理器件)包括TCK接口,TMS接口、TDI接口(即上述的第一JTAG输入接口)和TDO接口(即上述的第一JTAG输出接口)。第一选通模块可以但不限于包括引脚1、引脚2和引脚3以及引脚4。电源(power)A可以但不限于为JTAG连接器和CPLD进行供电,CPLD通过控制电源进而控制FPGA的上电时序(PowerSequence)。Optionally, in this embodiment, FIG. 12 is a schematic diagram of a connection between a CPLD, an FPGA, and a JTAG connector according to an embodiment of the present application. As shown in FIG. 12, JTAG CONN (connector, connector) (that is, the above-mentioned JTAG connector) includes TCK interface, TMS interface, TDI interface (that is, the first JTAG interface mentioned above) and TDO interface (that is, the second JTAG interface mentioned above), CPLD (that is, the first control device) includes TCK interface, TMS interface , TDI interface (ie the above-mentioned second JTAG input interface) and TDO interface (ie the above-mentioned second JTAG output interface), FPGA (ie the first processing device) includes a TCK interface, TMS interface, TDI interface (ie the above-mentioned first JTAG input interface) and TDO interface (that is, the first JTAG output interface mentioned above). The first gating module may but is not limited to include
JTAG CONN的TCK接口、TMS接口与CPLD的TCK接口、TMS接口连接,JTAG CONN的TCK接口、TMS接口与FPGA的TCK接口、TMS接口连接,JTAG CONN的TDI接口与引脚2、FPGA的TDI接口连接,FPGA的TDO接口与引脚3连接,引脚4与FPGA的电源连接,引脚1与CPLD的TDI接口连接。The TCK interface and TMS interface of JTAG CONN are connected with the TCK interface and TMS interface of CPLD, the TCK interface and TMS interface of JTAG CONN are connected with the TCK interface and TMS interface of FPGA, and the TDI interface of JTAG CONN is connected with
引脚4的高低是由FPGA电源VR(Voltage Regulator,电压调节)输出的Power Good信号控制,在FPGA未完成上电的情况下,VR的Power Good(电源正常)信号输出为低电平,在FPGA上电完成的情况下,VR的Power Good信号输出为高电平。The level of
在引脚4是低电平信号的情况下,引脚1和引脚2连接,此时CPLD完整的挂载到JTAG链中,FPGA的TDO是断开的,不能对FPGA进行JTAG控制。在这样的情况下,图13是根据本申请实施例的一种JTAG连接器与CPLD之间的连接示意图,如图13所示,在引脚1和引脚2连接的情况下,仅有CPLD完整的挂载到JTAG链中。When
在引脚4是高电平的情况下,引脚1和引脚3连接,此时CPLD和FPGA完整的挂载到JTAG链,在这样的情况下,图14是根据本申请实施例的一种CPLD与FPGA与JTAG连接器的连接示意图二,如图14所示,在引脚1和引脚3连接的情况下,CPLD和FPGA完整的挂载到JTAG链中。When the
通过这样的方式,在FPGA的上电时序是由CPLD控制的情况下,当CPLD里面没有程序或者程序错误的时候,FPGA不能正常上电。在这样的情况下,CPLD和FPGA之间的JTAG链就不通,JTAG连接器也就连接不上CPLD,也就不能更新CPLD的程序。通过在FPGA和CPLD之间加入第一选通模块,实现了在FPGA上电的过程中,根据FPGA是否完成上电,自动切换连接到JTAG连接器的器件,无论FPGA是否上电,都不会影响CPLD与JTAG连接器的通信。避免了通过增设Rework(返工)板卡的方式,手动断开CPLD的TDI引脚与FPGA的TDO接口之间的连接,然后CPLD的TDI引脚连接到JTAG CONN上的TDI接口,保证了CPLD与JTAG连接器之间的通信顺畅。In this way, when the power-on sequence of the FPGA is controlled by the CPLD, when there is no program or a program error in the CPLD, the FPGA cannot be powered on normally. In such a case, the JTAG chain between the CPLD and the FPGA is blocked, and the JTAG connector cannot be connected to the CPLD, and the program of the CPLD cannot be updated. By adding the first gating module between the FPGA and the CPLD, during the power-on process of the FPGA, according to whether the FPGA is powered on, the device connected to the JTAG connector is automatically switched, regardless of whether the FPGA is powered on or not. Affects communication between CPLD and JTAG connector. Avoid manually disconnecting the connection between the TDI pin of the CPLD and the TDO interface of the FPGA by adding a Rework (rework) board, and then connect the TDI pin of the CPLD to the TDI interface on the JTAG CONN, ensuring that the CPLD and Communication between JTAG connectors is smooth.
另外,在本申请实施例中一个CPLD可以用于控制多个FPGA的上电,图15是根据本申请实施例的一种CPLD与FPGA与JTAG连接器的连接示意图三,如图15所示,JTAG CONN(即上述的JTAG连接器)包括TCK接口,TMS接口、TDI接口(即上述的第一JTAG接口)和TDO接口(即上述的第二JTAG接口),CPLD(即第一控制器件)包括TCK接口,TMS接口、TDI接口(即上述的第二JTAG输入接口)和TDO接口(即上述的第二JTAG输出接口),FPGA1(即第一处理器件)包括TCK接口,TMS接口、TDI接口(即上述的第一JTAG输入接口)和TDO接口(即上述的第一JTAG输出接口),FPGA2(即第二处理器件)包括TCK接口,TMS接口、TDI接口(即上述的第二处理器件的JTAG输入接口)和TDO接口(即上述的第二处理器件的JTAG输出接口)。In addition, in the embodiment of the present application, one CPLD can be used to control the power-on of multiple FPGAs. FIG. 15 is a schematic diagram of the connection between a CPLD, FPGA and JTAG connector according to the embodiment of the present application. As shown in FIG. 15, JTAG CONN (that is, the above-mentioned JTAG connector) includes TCK interface, TMS interface, TDI interface (that is, the above-mentioned first JTAG interface) and TDO interface (that is, the above-mentioned second JTAG interface), and CPLD (that is, the first control device) includes TCK interface, TMS interface, TDI interface (ie the second JTAG input interface mentioned above) and TDO interface (ie the second JTAG output interface mentioned above), FPGA1 (ie the first processing device) includes TCK interface, TMS interface, TDI interface ( That is, the above-mentioned first JTAG input interface) and TDO interface (that is, the above-mentioned first JTAG output interface), FPGA2 (that is, the second processing device) includes a TCK interface, a TMS interface, and a TDI interface (that is, the JTAG interface of the above-mentioned second processing device) input interface) and TDO interface (that is, the JTAG output interface of the above-mentioned second processing device).
第一选通模块可以但不限于包括引脚1、引脚2和引脚3以及引脚4。第二选通模块可以但不限于包括引脚1、引脚2和引脚3以及引脚4。CPLD通过控制FPGA1的电源1进而控制FPGA1的上电时序(Power Sequence),CPLD通过控制FPGA1的电源2进而控制FPGA2的上电时序(Power Sequence)。The first gating module may but is not limited to include
JTAG CONN的TCK接口、TMS接口与CPLD的TCK接口、TMS接口连接,JTAG CONN的TCK接口、TMS接口与FPGA1的TCK接口、TMS接口连接,JTAG CONN的TCK接口、TMS接口与FPGA2的TCK接口、TMS接口连接。The TCK interface and TMS interface of JTAG CONN are connected with the TCK interface and TMS interface of CPLD, the TCK interface and TMS interface of JTAG CONN are connected with the TCK interface and TMS interface of FPGA1, and the TCK interface and TMS interface of JTAG CONN are connected with the TCK interface and TMS interface connection.
JTAG CONN的TDI接口与第一选通模块的引脚2,第二选通模块的引脚2、FPGA2的TDI接口连接,FPGA2的TDO接口与第二选通模块的引脚3连接,第二选通模块的引脚4与FPGA2的电源2连接,第二选通模块的引脚1与FPGA1的TDI接口连接,FPGA1的TDO接口与第一选通模块的引脚3连接,第一选通模块的引脚4与FPGA1的电源1连接,第一选通模块的引脚1与CPLD的TDI接口连接,CPLD的TDO接口与JTAG CONN的TDI接口连接。The TDI interface of JTAG CONN is connected with the
通过这样的连接方式,可以在FPGA1和FPGA2的上电过程中,根据FPGA1和FPGA2的上电情况,自动切换与JTAG连接器连接的器件,并且可以始终保证JTAG连接器与CPLD之间的通信。详细来说,在第一选通模块的引脚4是低电平信号的情况下,第一选通模块的引脚1和引脚2连接,此时CPLD完整的挂载到JTAG链中,FPGA的TDO是断开的,不能对FPGA进行JTAG控制。在第一选通模块的引脚4是高电平的情况下,第一选通模块的引脚1和引脚3连接,此时CPLD和FPGA完整的挂载到JTAG链。或者,在第二选通模块的引脚4是低电平信号的情况下,第二选通模块的引脚1和引脚2连接,此时CPLD完整的挂载到JTAG链中,FPGA2的TDO接口是断开的,不能对FPGA2进行JTAG控制。在第二选通模块的引脚4是高电平的情况下,第二选通模块的引脚1和引脚3连接,此时CPLD和FPGA2完整的挂载到JTAG链。Through such a connection method, during the power-on process of FPGA1 and FPGA2, the device connected to the JTAG connector can be automatically switched according to the power-on situation of FPGA1 and FPGA2, and the communication between the JTAG connector and CPLD can always be guaranteed. In detail, when
需要说明的是,在图15中以两个选通模块对上述基于联合测试工作组JTAG接口的控制系统进行解释说明,选通模块的数量可以根据实际需求进行调整,比如:在图15中可以通过同一个选通模块对FPGA1和FPGA2是否连接至JTAG连接器进行控制。本申请对此不做限制。It should be noted that, in Figure 15, two gating modules are used to explain the above-mentioned control system based on the JTAG interface of the joint test working group, and the number of gating modules can be adjusted according to actual needs, for example: in Figure 15, it can be Whether FPGA1 and FPGA2 are connected to the JTAG connector is controlled by the same gating block. This application does not limit this.
本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图16是本申请实施例的一种基于联合测试工作组JTAG接口的控制方法的移动终端的硬件结构框图,如图16所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器1602(处理器1602可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器1604,其中,上述移动终端还可以包括用于通信功能的传输设备1606以及输入输出设备1608。本领域普通技术人员可以理解,图16所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图16中所示更多或者更少的组件,或者具有与图16所示不同的配置。The method embodiments provided in the embodiments of the present application may be executed in mobile terminals, computer terminals or similar computing devices. Taking running on a mobile terminal as an example, FIG. 16 is a block diagram of the hardware structure of a mobile terminal based on a control method of a joint test working group JTAG interface according to an embodiment of the present application. As shown in FIG. 16 , the mobile terminal may include one or more (only one is shown in FIG. 1 ) processor 1602 (the processor 1602 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 1604 for storing data, wherein the above mobile The terminal may also include a
存储器1604可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本申请实施例中的基于联合测试工作组JTAG接口的控制方法对应的计算机程序,处理器1602通过运行存储在存储器1604内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器1604可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器1604可进一步包括相对于处理器1602远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 1604 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method based on the Joint Test Working Group JTAG interface in the embodiment of the present application, and the processor 1602 is stored in the memory 1604 by running A computer program to perform various functional applications and data processing, that is, to realize the above-mentioned method. The memory 1604 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1604 may further include memory that is remotely located relative to the processor 1602, and these remote memories may be connected to the mobile terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输设备1606用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输设备1606包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备1606可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。
在本申请实施例中提供了一种运行于上述移动终端的基于联合测试工作组JTAG接口的控制方法,图17是根据本申请实施例的基于联合测试工作组JTAG接口的控制方法的流程图,如图17所示,该流程包括如下步骤:In the embodiment of the present application, a control method based on the joint test working group JTAG interface running on the above-mentioned mobile terminal is provided. FIG. 17 is a flow chart of the control method based on the joint test working group JTAG interface according to the embodiment of the present application. As shown in Figure 17, the process includes the following steps:
步骤S1702,在基于JTAG链的控制系统中的第一处理器件未上电完成的情况下,通过所述控制系统中的第一选通模块将第一JTAG接口与第二JTAG输入接口连接;Step S1702, when the first processing device in the control system based on the JTAG chain has not been powered on, connect the first JTAG interface to the second JTAG input interface through the first gating module in the control system;
步骤S1704,在所述第一处理器件上电完成的情况下,通过所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将第一JTAG输出接口与所述第二JTAG输入接口连接;Step S1704, when the power-on of the first processing device is completed, disconnect the connection between the first JTAG interface and the second JTAG input interface through the first gating module, and output the first JTAG The interface is connected to the second JTAG input interface;
其中,所述控制系统包括:JTAG连接器,所述JTAG连接器包括所述第一JTAG接口和第二JTAG接口;所述第一处理器件,所述第一处理器件包括第一JTAG输入接口和所述第一JTAG输出接口;第一控制器件,所述第一控制器件包括所述第二JTAG输入接口和第二JTAG输出接口,所述第二JTAG输出接口与所述第二JTAG接口连接,其中,所述第一控制器件用于控制所述第一处理器件的上电;所述第一选通模块,分别与所述第一JTAG接口、所述第一JTAG输出接口以及所述第二JTAG输入接口连接。Wherein, the control system includes: a JTAG connector, the JTAG connector includes the first JTAG interface and the second JTAG interface; the first processing device, the first processing device includes the first JTAG input interface and The first JTAG output interface; the first control device, the first control device includes the second JTAG input interface and the second JTAG output interface, the second JTAG output interface is connected to the second JTAG interface, Wherein, the first control device is used to control the power-on of the first processing device; the first gating module is respectively connected to the first JTAG interface, the first JTAG output interface and the second JTAG input interface connection.
通过上述步骤,由于CPLD器件(即第一控制器件)控制FPGA器件(即第一处理器件)的上电时序,在FPGA器件的上电过程中,可以通过第一选通模块实现与JTAG连接器连接的器件的切换;并且不论FPGA器件是否上电完成,通过第一选通模块可以实现CPLD器件与JTAG连接器连接。因此,可以解决在CPLD芯片控制FPGA芯片的上电时序且FPGA上电未完成的情况下,CPLD无法与JTAG连接器连接的问题,进而达到在了CPLD芯片控制FPGA芯片的上电时序且FPGA上电未完成的情况下,保证CPLD与JTAG连接器之间的连接的效果。Through the above steps, since the CPLD device (that is, the first control device) controls the power-on sequence of the FPGA device (that is, the first processing device), during the power-on process of the FPGA device, the connection with the JTAG connector can be realized through the first gating module. Switching of connected devices; and regardless of whether the FPGA device is powered on or not, the connection between the CPLD device and the JTAG connector can be realized through the first gating module. Therefore, it can solve the problem that the CPLD cannot be connected to the JTAG connector when the CPLD chip controls the power-on sequence of the FPGA chip and the power-on of the FPGA chip is not completed, and then achieves the control of the power-on sequence of the FPGA chip by the CPLD chip and the power-on sequence of the FPGA chip. In the case that the electricity is not completed, the effect of the connection between the CPLD and the JTAG connector is guaranteed.
其中,上述步骤的执行主体可以为终端等,但不限于此。Wherein, the execution subject of the above steps may be a terminal, etc., but is not limited thereto.
步骤S1702和步骤S1704的执行顺序是可以互换的,即可以先执行步骤S1704,然后再执行S1702。The execution order of step S1702 and step S1704 can be interchanged, that is, step S1704 can be executed first, and then S1702 can be executed.
在上述步骤S1702提供的技术方案中,可以但不限于通过第一控制器件控制第一处理器件的上电时序(可以但不限为上电时间和上电顺序),在第一处理器件开始上电直至上电完成之前,或者FPGA未能正常上电的情况下,第一JTAG接口与第二JTAG输入接口连接,也就是说,此时只有第一控制器件与JTAG连接器连接。通过这样的方式,避免了因为第一处理器件未完成上电而导致的第一控制器件与JTAG连接器之间的通信中断。In the technical solution provided by the above step S1702, the first control device may be used to control the power-on sequence of the first processing device (it may be but not limited to the power-on time and power-on sequence). Before the power-on is completed, or when the FPGA fails to be powered on normally, the first JTAG interface is connected to the second JTAG input interface, that is, only the first control device is connected to the JTAG connector at this time. In this way, communication interruption between the first control device and the JTAG connector caused by the first processing device not being powered on is avoided.
在一个示范性实施例中,可以但不限于通过以下方式将第一JTAG接口与第二JTAG输入接口连接:在所述第一处理器件未上电完成的情况下,通过第一电源向所述第一选通模块输出第一控制信号,其中,所述第一控制信号用于控制所述第一选通模块将所述第一JTAG接口与所述第二JTAG输入接口连接;响应于所述第一控制信号,通过所述第一选通模块将所述第一JTAG接口与所述第二JTAG输入接口连接。In an exemplary embodiment, the first JTAG interface may be connected to the second JTAG input interface in the following manner: when the first processing device is not powered on, the The first gating module outputs a first control signal, wherein the first control signal is used to control the first gating module to connect the first JTAG interface to the second JTAG input interface; in response to the The first control signal connects the first JTAG interface with the second JTAG input interface through the first gating module.
可选的,在本实施例中,在第一处理器件开始上电直至上电完成之前的过程中,可以通过与第一电源向第一选通模块输出第一控制信号,第一选通模块可以但不限于响应第一控制信号,将第一JTAG接口与第二JTAG输入接口连接。Optionally, in this embodiment, when the first processing device starts to be powered on until the power-on is completed, the first control signal may be output to the first gating module through the first power supply, and the first gating module The first JTAG interface may be connected to the second JTAG input interface in response to the first control signal, but not limited to.
在一个示范性实施例中,可以但不限于通过以下方式将第一JTAG输出接口与所述第二JTAG输入接口连接:在所述第一处理器件上电完成的情况下,通过所述第一电源向所述第一选通模块输出第二控制信号,其中,所述第二控制信号用于控制所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将所述第一JTAG输出接口与所述第二JTAG输入接口连接;响应于所述第二控制信号,通过所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将所述第一JTAG输出接口与所述第二JTAG输入接口连接;其中,所述控制系统还包括:所述第一电源,与所述第一控制器件、所述第一选通模块以及所述第一处理器件连接;其中,所述第一控制器件用于通过所述第一电源控制所述第一处理器件的上电。In an exemplary embodiment, the first JTAG output interface may be connected to the second JTAG input interface in the following manner: when the first processing device is powered on, through the first The power supply outputs a second control signal to the first gating module, wherein the second control signal is used to control the first gating module to disconnect the first JTAG interface and the second JTAG input interface Connect, and connect the first JTAG output interface with the second JTAG input interface; in response to the second control signal, disconnect the first JTAG interface and the second JTAG interface through the first gating module Two JTAG input interfaces are connected, and the first JTAG output interface is connected to the second JTAG input interface; wherein, the control system also includes: the first power supply, the first control device, the first control device, and the second JTAG input interface; The first gating module is connected to the first processing device; wherein, the first control device is configured to control power-on of the first processing device through the first power supply.
可选的,在本实施例中,在第一处理器件开始上电直至上电完成的情况下,可以通过与第一电源向第一选通模块输出第二控制信号,第一选通模块可以但不限于响应第二控制信号,断开第一JTAG接口与第二JTAG输入接口的连接,并将第一JTAG输出接口与第二JTAG输入接口连接。Optionally, in this embodiment, when the first processing device starts to be powered on until the power-on is completed, the first gating module can output the second control signal to the first gating module through the first power supply, and the first gating module can But not limited to responding to the second control signal, disconnecting the first JTAG interface from the second JTAG input interface, and connecting the first JTAG output interface to the second JTAG input interface.
在上述步骤S1704提供的技术方案中,在第一处理器件上电完成的情况下,将第一JTAG输出接口与所述第二JTAG输入接口连接,也就是说,此时第一控制器件和第一处理器件均与JTAG连接器连接。实现了根据第一处理器件的上电情况,自动切换与JTAG连接器连接的器件,避免了通过增设Rework板卡来进行手动切换,极大地提升了切换与JTAG连接器连接的器件的效率。In the technical solution provided by the above step S1704, when the first processing device is powered on, the first JTAG output interface is connected to the second JTAG input interface, that is, at this time, the first control device and the second JTAG input interface A processing device is connected to the JTAG connector. According to the power-on status of the first processing device, the device connected to the JTAG connector is automatically switched, which avoids manual switching by adding a Rework board, and greatly improves the efficiency of switching devices connected to the JTAG connector.
在一个示范性实施例中,可以但不限于通过以下方式向第一处理器件供电:在所述第一处理器件上电完成的情况下,通过所述第一控制器件向所述第一电源输出第三控制信号,其中,所述第三控制信号用于控制所述第一电源向所述第一处理器件供电;响应于所述第三控制信号,通过所述第一电源向所述第一处理器件供电。In an exemplary embodiment, power may be supplied to the first processing device in the following manner, but not limited to: when the power-on of the first processing device is completed, output to the first power supply through the first control device A third control signal, wherein the third control signal is used to control the first power supply to supply power to the first processing device; in response to the third control signal, supply power to the first processing device through the first power supply Processing device power supply.
可选的,在本实施例中,在第一控制器件控制第一处理器件的上电时序之前,第一控制器件可以但不限于先上电完成,即第一控制器件需要先正常运行,才能保证才能完成对第一处理器件的上电时序的控制。Optionally, in this embodiment, before the first control device controls the power-on sequence of the first processing device, the first control device may, but is not limited to, be powered on first, that is, the first control device needs to run normally before it can It is guaranteed that the control of the power-on sequence of the first processing device can be completed.
在一个示范性实施例中,可以但不限于通过以下方式检测第一处理器件是否上电完成:通过所述第一电源中的第一上电检测模块检测所述第一处理器件是否上电完成;在所述第一上电检测模块检测到所述第一处理器件未上电完成的情况下,通过所述第一电源中的第一控制信号输出模块向所述第一选通模块输出所述第一控制信号;在所述第一上电检测模块检测到所述第一处理器件上电完成的情况下,通过所述第一控制信号输出模块向所述第一选通模块输出所述第二控制信号。In an exemplary embodiment, it may be but not limited to detect whether the first processing device is powered on in the following manner: through the first power-on detection module in the first power supply to detect whether the first processing device is powered on ; when the first power-on detection module detects that the first processing device has not been powered on, outputting the first control signal output module to the first gating module through the first control signal output module in the first power supply The first control signal; when the first power-on detection module detects that the first processing device is powered on, output the first control signal output module to the first gating module. Second control signal.
可选的,在本实施例中,第一电源中的第一上电检测模块可以检测第一电源是否上电完成,并输出对应的控制信号。可以但不限于在第一上电检测模块检测到第一处理器件未上电完成的情况下,通过第一电源中的第一控制信号输出模块向第一选通模块输出低电平信号(即上述的第一控制信号),可以但不限于在第一上电检测模块检测到第一处理器件上电完成的情况下,通过第一电源中的第一控制信号输出模块向第一选通模块输出高电平信号(即上述的第二控制信号)。Optionally, in this embodiment, the first power-on detection module in the first power supply may detect whether the first power supply is powered on and output a corresponding control signal. It may be but not limited to output a low-level signal to the first gating module through the first control signal output module in the first power supply when the first power-on detection module detects that the first processing device has not been powered on. The above-mentioned first control signal) may, but not limited to, be sent to the first gating module through the first control signal output module in the first power supply when the first power-on detection module detects that the first processing device is powered on Outputting a high-level signal (that is, the above-mentioned second control signal).
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the essence of the technical solutions of the embodiments of the present application or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic CD, CD), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
在本实施例中还提供了一种基于联合测试工作组JTAG接口的控制装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a control device based on the joint test working group JTAG interface is also provided, and the device is used to implement the above embodiments and preferred implementation modes, and those that have already been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
图18是根据本申请实施例的基于联合测试工作组JTAG接口的控制装置的结构框图,如图18所示,该装置包括:Fig. 18 is a structural block diagram of a control device based on a joint test working group JTAG interface according to an embodiment of the present application. As shown in Fig. 18, the device includes:
第一连接模块1802,用于在基于JTAG链的控制系统中的第一处理器件未上电完成的情况下,通过所述控制系统中的第一选通模块将第一JTAG接口与第二JTAG输入接口连接;The first connection module 1802 is used to connect the first JTAG interface with the second JTAG through the first gating module in the control system when the first processing device in the control system based on the JTAG chain has not been powered on. Input interface connection;
第二连接模块1804,用于在所述第一处理器件上电完成的情况下,通过所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将第一JTAG输出接口与所述第二JTAG输入接口连接;The second connection module 1804 is configured to disconnect the connection between the first JTAG interface and the second JTAG input interface through the first gating module when the first processing device is powered on, and Connecting the first JTAG output interface with the second JTAG input interface;
其中,所述控制系统包括:JTAG连接器,所述JTAG连接器包括所述第一JTAG接口和第二JTAG接口;所述第一处理器件,所述第一处理器件包括第一JTAG输入接口和所述第一JTAG输出接口;第一控制器件,所述第一控制器件包括所述第二JTAG输入接口和第二JTAG输出接口,所述第二JTAG输出接口与所述第二JTAG接口连接,其中,所述第一控制器件用于控制所述第一处理器件的上电;所述第一选通模块,分别与所述第一JTAG接口、所述第一JTAG输出接口以及所述第二JTAG输入接口连接。Wherein, the control system includes: a JTAG connector, the JTAG connector includes the first JTAG interface and the second JTAG interface; the first processing device, the first processing device includes the first JTAG input interface and The first JTAG output interface; the first control device, the first control device includes the second JTAG input interface and the second JTAG output interface, the second JTAG output interface is connected to the second JTAG interface, Wherein, the first control device is used to control the power-on of the first processing device; the first gating module is respectively connected to the first JTAG interface, the first JTAG output interface and the second JTAG input interface connection.
通过上述装置,由于CPLD器件(即第一控制器件)控制FPGA器件(即第一处理器件)的上电时序,在FPGA器件的上电过程中,可以通过第一选通模块实现与JTAG连接器连接的器件的切换;并且不论FPGA器件是否上电完成,通过第一选通模块可以实现CPLD器件与JTAG连接器连接。因此,可以解决在CPLD芯片控制FPGA芯片的上电时序且FPGA上电未完成的情况下,CPLD无法与JTAG连接器连接的问题,进而达到在了CPLD芯片控制FPGA芯片的上电时序且FPGA上电未完成的情况下,保证CPLD与JTAG连接器之间的连接的效果。Through the above device, since the CPLD device (that is, the first control device) controls the power-on sequence of the FPGA device (that is, the first processing device), during the power-on process of the FPGA device, the connection with the JTAG connector can be realized through the first gating module. Switching of connected devices; and regardless of whether the FPGA device is powered on or not, the connection between the CPLD device and the JTAG connector can be realized through the first gating module. Therefore, it can solve the problem that the CPLD cannot be connected to the JTAG connector when the CPLD chip controls the power-on sequence of the FPGA chip and the power-on of the FPGA chip is not completed, and then achieves the control of the power-on sequence of the FPGA chip by the CPLD chip and the power-on sequence of the FPGA chip. In the case that the electricity is not completed, the effect of the connection between the CPLD and the JTAG connector is guaranteed.
可选的,所述第一连接模块,用于:在所述第一处理器件未上电完成的情况下,通过第一电源向所述第一选通模块输出第一控制信号,其中,所述第一控制信号用于控制所述第一选通模块将所述第一JTAG接口与所述第二JTAG输入接口连接;响应于所述第一控制信号,通过所述第一选通模块将所述第一JTAG接口与所述第二JTAG输入接口连接;所述第二连接模块,用于:在所述第一处理器件上电完成的情况下,通过所述第一电源向所述第一选通模块输出第二控制信号,其中,所述第二控制信号用于控制所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将所述第一JTAG输出接口与所述第二JTAG输入接口连接;响应于所述第二控制信号,通过所述第一选通模块断开所述第一JTAG接口与所述第二JTAG输入接口的连接,并将所述第一JTAG输出接口与所述第二JTAG输入接口连接;其中,所述控制系统还包括:所述第一电源,与所述第一控制器件、所述第一选通模块以及所述第一处理器件连接;其中,所述第一控制器件用于通过所述第一电源控制所述第一处理器件的上电。Optionally, the first connection module is configured to: output a first control signal to the first gating module through a first power supply when the first processing device is not powered on, wherein the The first control signal is used to control the first gating module to connect the first JTAG interface to the second JTAG input interface; in response to the first control signal, the first gating module will The first JTAG interface is connected to the second JTAG input interface; the second connection module is configured to: when the first processing device is powered on, send the first power supply to the second JTAG input interface. A gating module outputs a second control signal, wherein the second control signal is used to control the first gating module to disconnect the first JTAG interface from the second JTAG input interface, and connect the The first JTAG output interface is connected to the second JTAG input interface; in response to the second control signal, disconnect the first JTAG interface and the second JTAG input interface through the first gating module Connect, and connect the first JTAG output interface with the second JTAG input interface; wherein, the control system also includes: the first power supply, the first control device, the first gating The module is connected to the first processing device; wherein the first control device is used to control the power-on of the first processing device through the first power supply.
可选的,所述装置还包括:第一输出模块,用于在所述第一处理器件上电完成的情况下,通过所述第一控制器件向所述第一电源输出第三控制信号,其中,所述第三控制信号用于控制所述第一电源向所述第一处理器件供电;供电模块,用于响应于所述第三控制信号,通过所述第一电源向所述第一处理器件供电。Optionally, the apparatus further includes: a first output module, configured to output a third control signal to the first power supply through the first control device when the first processing device is powered on, Wherein, the third control signal is used to control the first power supply to supply power to the first processing device; the power supply module is used to supply power to the first processing device through the first power supply in response to the third control signal. Processing device power supply.
可选的,所述装置还包括:检测模块,用于通过所述第一电源中的第一上电检测模块检测所述第一处理器件是否上电完成;第二输出模块,用于在所述第一上电检测模块检测到所述第一处理器件未上电完成的情况下,通过所述第一电源中的第一控制信号输出模块向所述第一选通模块输出所述第一控制信号;在所述第一上电检测模块检测到所述第一处理器件上电完成的情况下,通过所述第一控制信号输出模块向所述第一选通模块输出所述第二控制信号。Optionally, the device further includes: a detection module, configured to detect whether the first processing device is powered on through the first power-on detection module in the first power supply; a second output module, configured to When the first power-on detection module detects that the first processing device has not been powered on, output the first control signal output module to the first gating module through the first control signal output module in the first power supply. Control signal; when the first power-on detection module detects that the first processing device is powered on, output the second control signal to the first gating module through the first control signal output module Signal.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
本申请的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any one of the above method embodiments when running.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
本申请的实施例还提供了一种电子设备,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
在一个示例性实施例中,上述电子设备还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details will not be repeated here in this embodiment.
显然,本领域的技术人员应该明白,上述的本申请实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请实施例不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computing devices, and they can be concentrated on a single computing device, or distributed among multiple computing devices. They may be implemented in program code executable by a computing device, stored in a storage device, executed by a computing device, and in some cases executed in an order different from that described herein. The steps shown or described are realized by making them into respective integrated circuit modules, or making multiple modules or steps among them into a single integrated circuit module. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请实施例,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请实施例的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请实施例的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the embodiments of the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.
Claims (20)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211520792.6A CN115629926B (en) | 2022-11-30 | 2022-11-30 | Control system, method and device based on joint test working group interface |
| PCT/CN2023/103398 WO2024113816A1 (en) | 2022-11-30 | 2023-06-28 | Control system, method, and apparatus based on joint test action group interface |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211520792.6A CN115629926B (en) | 2022-11-30 | 2022-11-30 | Control system, method and device based on joint test working group interface |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115629926A CN115629926A (en) | 2023-01-20 |
| CN115629926B true CN115629926B (en) | 2023-03-31 |
Family
ID=84910518
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211520792.6A Active CN115629926B (en) | 2022-11-30 | 2022-11-30 | Control system, method and device based on joint test working group interface |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN115629926B (en) |
| WO (1) | WO2024113816A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115629926B (en) * | 2022-11-30 | 2023-03-31 | 苏州浪潮智能科技有限公司 | Control system, method and device based on joint test working group interface |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6102963A (en) * | 1997-12-29 | 2000-08-15 | Vantis Corporation | Electrically erasable and reprogrammable, nonvolatile integrated storage device with in-system programming and verification (ISPAV) capabilities for supporting in-system reconfiguring of PLD's |
| CN101782626B (en) * | 2010-03-11 | 2012-03-14 | 苏州国芯科技有限公司 | JTAG port controller |
| CN102142911A (en) * | 2010-08-31 | 2011-08-03 | 华为技术有限公司 | Communication equipment and communication test method |
| CN108431788B (en) * | 2016-01-28 | 2020-09-25 | 华为技术有限公司 | A single board, electronic equipment and method for gating |
| CN110083560A (en) * | 2019-04-03 | 2019-08-02 | 杭州迪普科技股份有限公司 | A kind of more jtag interfaces switching chip, method and debugging single board system |
| CN112596743B (en) * | 2020-12-09 | 2024-04-02 | 北京时代民芯科技有限公司 | Military FPGA general reconstruction circuit based on JTAG interface |
| CN115629926B (en) * | 2022-11-30 | 2023-03-31 | 苏州浪潮智能科技有限公司 | Control system, method and device based on joint test working group interface |
-
2022
- 2022-11-30 CN CN202211520792.6A patent/CN115629926B/en active Active
-
2023
- 2023-06-28 WO PCT/CN2023/103398 patent/WO2024113816A1/en not_active Ceased
Also Published As
| Publication number | Publication date |
|---|---|
| WO2024113816A1 (en) | 2024-06-06 |
| CN115629926A (en) | 2023-01-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102508533B (en) | Reset control device and method | |
| CN106680698B (en) | Multi-station rapid configuration device for FPGA test and configuration method thereof | |
| CN115599191B (en) | Smart network card power-on method and power-on device | |
| CN107832078B (en) | FPGA program online updating circuit based on DSP | |
| CN113268386B (en) | A debugging system for system software and identification-level principle prototypes | |
| CN115629926B (en) | Control system, method and device based on joint test working group interface | |
| CN109901664B (en) | Method, apparatus, system, device and readable storage medium for providing clock signal | |
| US9424220B2 (en) | Method and apparatus for setting working mode of multi-processor system | |
| US20150186317A1 (en) | Method and apparatus for detecting the initiator/target orientation of a smart bridge | |
| US5214423A (en) | Random number generation using volatile RAM | |
| US12267152B2 (en) | Synchronization circuit and synchronization chip | |
| CN113608935B (en) | Method, system, equipment and medium for testing network card | |
| US7039839B2 (en) | Method and apparatus for enhanced parallel port JTAG interface | |
| CN113986809A (en) | Depth computation processor board card and interconnection system for depth computation processor board cards | |
| CN115827342A (en) | Test fixture, test system and OCP network card test method | |
| TW202347137A (en) | Module for adapter card and a server including the module | |
| CN112783814B (en) | Clock circuit, electronic device and method for multi-mode PCIE spread spectrum | |
| CN113849355A (en) | I2C rate adaptive adjustment method, system, terminal and storage medium | |
| US10803008B2 (en) | Flexible coupling of processor modules | |
| TWI612424B (en) | Switch system | |
| US7114017B2 (en) | Programmable peripheral switch | |
| CN119903012B (en) | Multi-core processor module, starting method, interconnection system and method | |
| CN114721478B (en) | A kind of BMC board card and memory controller motherboard | |
| CN118733370B (en) | Core particle, chip and chip adjusting and measuring method | |
| US20240303066A1 (en) | Server system and firmware updating method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address |
Address after: 215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd. Country or region after: China Address before: 215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before: China |