CN116881185A - JTAG interface signal switching method, system, equipment, device and medium - Google Patents
JTAG interface signal switching method, system, equipment, device and medium Download PDFInfo
- Publication number
- CN116881185A CN116881185A CN202310706362.1A CN202310706362A CN116881185A CN 116881185 A CN116881185 A CN 116881185A CN 202310706362 A CN202310706362 A CN 202310706362A CN 116881185 A CN116881185 A CN 116881185A
- Authority
- CN
- China
- Prior art keywords
- interface
- core
- signal
- user
- jtag 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000004044 response Effects 0.000 claims description 21
- 238000012545 processing Methods 0.000 claims description 16
- 230000005540 biological transmission Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 5
- 238000010276 construction Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000006467 substitution reaction Methods 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 101100482081 Agrobacterium vitis (strain S4 / ATCC BAA-846) iaaM gene Proteins 0.000 description 1
- 102100029647 Apoptosis-associated speck-like protein containing a CARD Human genes 0.000 description 1
- 101100170834 Arabidopsis thaliana ERDJ3A gene Proteins 0.000 description 1
- 101100110004 Homo sapiens PYCARD gene Proteins 0.000 description 1
- 101100095608 Mus musculus Serinc3 gene Proteins 0.000 description 1
- 101100509792 Oncorhynchus mykiss tck1 gene Proteins 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 101150116154 tms1 gene Proteins 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0745—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in an input/output transactions management context
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0796—Safety measures, i.e. ensuring safe condition in the event of error, e.g. for controlling element
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/1608—Error detection by comparing the output signals of redundant hardware
- G06F11/1625—Error detection by comparing the output signals of redundant hardware in communications, e.g. transmission, interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
技术领域Technical field
本申请涉及芯片驱动技术领域,尤其是一种JTAG接口信号切换方法、系统、设备、装置与存储介质。The present application relates to the field of chip driver technology, especially a JTAG interface signal switching method, system, equipment, device and storage medium.
背景技术Background technique
随着芯片的复杂度核集成度的不断提高,存在着大量使用IP核的情况,大部分IP核都提供有JTAG接口,为了节省芯片管脚,需要多个IP核共同服用一个JTAG接口,以方便继承JTAG控制器接口互联复用。As the complexity of chips and the degree of core integration continue to increase, a large number of IP cores are used. Most IP cores provide a JTAG interface. In order to save chip pins, multiple IP cores need to share a JTAG interface. It is convenient to inherit and reuse the JTAG controller interface.
在当前的技术中,用一个JTAG接口复用连接多个IP核往往时通过一个复用装置,将多路IP核的四线JTAG按相同线序接到复用JTAG接口中。这样会造成以下问题:当共用JTAG接口中的一个或两个PIN脚出现问题时,会导致所有的IP核均无法访问。因此,相关技术中仍存在需要改进的技术问题。In the current technology, multiplexing multiple IP cores with one JTAG interface is usually through a multiplexing device, and the four-wire JTAG of multiple IP cores are connected to the multiplexed JTAG interface in the same line sequence. This will cause the following problems: when there is a problem with one or two PIN pins in the shared JTAG interface, all IP cores will be inaccessible. Therefore, there are still technical problems that need to be improved in related technologies.
发明内容Contents of the invention
本申请的目的在于至少一定程度上解决现有技术中存在的技术问题之一。The purpose of this application is to solve, at least to a certain extent, one of the technical problems existing in the prior art.
为此,本申请实施例的一个目的在于提供一种JTAG接口信号切换方法、系统、装置与存储介质,该方法可以提高JTAG接口的实用性,提高数据传输的效率。To this end, one purpose of the embodiments of the present application is to provide a JTAG interface signal switching method, system, device and storage medium, which method can improve the practicality of the JTAG interface and improve the efficiency of data transmission.
为了达到上述技术目的,本申请实施例所采取的技术方案包括:构建JTAG接口切换系统;所述JTAG接口切换系统包括上位机、JTAG接口以及第一IP核以及第二IP核;所述上位机通过所述JTAG接口与所述第一IP核以及所述第二IP核连接;所述JTAG接口包括四线信号接口或者两线信号接口;响应于用户的第一操作,确定所述上位机通过所述四线信号接口与所述第一IP核建立信号连接;响应于用户的第二操作,确定所述上位机通过所述四线信号接口与所述第二IP核建立信号连接;响应于用户的第三操作,确定所述上位机通过所述两线信号接口与所述第一IP核和/或所述第二IP核建立信号连接。In order to achieve the above technical objectives, the technical solutions adopted by the embodiments of the present application include: constructing a JTAG interface switching system; the JTAG interface switching system includes a host computer, a JTAG interface, a first IP core and a second IP core; the host computer The JTAG interface is connected to the first IP core and the second IP core; the JTAG interface includes a four-wire signal interface or a two-wire signal interface; in response to the user's first operation, it is determined that the host computer passes The four-wire signal interface establishes a signal connection with the first IP core; in response to the user's second operation, it is determined that the host computer establishes a signal connection with the second IP core through the four-wire signal interface; in response to The user's third operation is to determine that the host computer establishes a signal connection with the first IP core and/or the second IP core through the two-wire signal interface.
另外,根据本发明中上述实施例的一种JTAG接口信号切换的方法,还可以有以下附加的技术特征:In addition, according to the method for switching JTAG interface signals in the above embodiments of the present invention, the following additional technical features may also be provided:
进一步地,本申请实施例中,所述响应于用户的第一操作,通过所述四线信号接口与所述第一IP核建立信号连接这一步骤,具体包括:响应于用户在用户界面将寄存器配置设置为第一预设值,通过所述四线信号接口与所述第一IP核建立信号连接。Further, in the embodiment of the present application, the step of establishing a signal connection with the first IP core through the four-wire signal interface in response to the user's first operation specifically includes: in response to the user placing the The register configuration is set to a first preset value, and a signal connection is established with the first IP core through the four-wire signal interface.
进一步地,本申请实施例中,所述响应于用户的第二操作,确定所述上位机通过所述四线信号接口与所述第二IP核建立信号连接这一步骤,具体包括:响应于用户在所述用户界面将所述寄存器配置从所述第一预设值切换为第二预设值,确定所述上位机通过所述四线信号接口与所述第二I P核建立信号连接。Further, in the embodiment of the present application, the step of determining that the host computer establishes a signal connection with the second IP core through the four-wire signal interface in response to the user's second operation specifically includes: responding to The user switches the register configuration from the first preset value to the second preset value on the user interface, and determines that the host computer establishes a signal connection with the second IP core through the four-wire signal interface.
进一步地,本申请实施例中,所述响应于用户的第三操作,确定所述上位机通过所述两线信号接口同时与所述第一I P核以及所述第二I P核建立信号连接这一步骤,具体包括:响应于用户在所述用户界面将所述寄存器配置从所述第二预设值切换为第三预设值,确定所述上位机通过所述四线信号接口与所述第二I P核建立信号连接。Further, in the embodiment of the present application, in response to the user's third operation, it is determined that the host computer simultaneously establishes a signal connection with the first IP core and the second IP core through the two-wire signal interface. A step specifically includes: in response to the user switching the register configuration from the second preset value to the third preset value on the user interface, determining whether the host computer communicates with the host computer through the four-wire signal interface. The second IP core establishes the signal connection.
进一步地,本申请实施例中,所述切换方法还包括:当用户界面的寄存器配置为第四预设值,确定所述四线信号接口出现故障。Further, in this embodiment of the present application, the switching method further includes: when the register of the user interface is configured as a fourth preset value, determining that the four-wire signal interface is faulty.
另一方面,本申请实施例还提供一种JTAG接口信号切换系统,包括:构建单元,用于构建JTAG接口切换系统;所述JTAG接口切换系统包括上位机、JTAG接口以及第一I P核以及第二I P核;所述上位机通过所述JTAG接口与所述第一I P核以及所述第二I P核连接;所述JTAG接口包括四线信号接口或者两线信号接口;第一处理单元,用于响应于用户的第一操作,确定所述上位机通过所述四线信号接口与所述第一I P核建立信号连接;第二处理单元,用于响应于用户的第二操作,确定所述上位机通过所述四线信号接口与所述第二I P核建立信号连接;第三处理单元,用于响应于用户的第三操作,确定所述上位机通过所述两线信号接口与所述第一I P核和/或所述第二I P核建立信号连接。On the other hand, embodiments of the present application also provide a JTAG interface signal switching system, including: a construction unit for constructing a JTAG interface switching system; the JTAG interface switching system includes a host computer, a JTAG interface, a first IP core, and a third IP core. Two IP cores; the host computer is connected to the first IP core and the second IP core through the JTAG interface; the JTAG interface includes a four-wire signal interface or a two-wire signal interface; a first processing unit, In response to the user's first operation, it is determined that the host computer establishes a signal connection with the first IP core through the four-wire signal interface; a second processing unit is configured to respond to the user's second operation, determine that the The host computer establishes a signal connection with the second IP core through the four-wire signal interface; a third processing unit is configured to respond to the user's third operation and determine that the host computer communicates with the second IP core through the two-wire signal interface. The first IP core and/or the second IP core establishes a signal connection.
进一步地,本申请实施例中,所述系统还包括第四处理单元,所述第四处理单元用于当用户界面的寄存器配置为第四预设值,确定所述四线信号接口出现故障。Furthermore, in this embodiment of the present application, the system further includes a fourth processing unit, which is configured to determine that a fault occurs in the four-wire signal interface when the register of the user interface is configured as a fourth preset value.
另一方面,本申请实施例还提供一种电子设备,包括上述方面任一项所述的JTAG接口信号切换系统。On the other hand, embodiments of the present application also provide an electronic device, including the JTAG interface signal switching system described in any one of the above aspects.
另一方面,本申请还提供一种JTAG接口信号切换装置,包括:On the other hand, this application also provides a JTAG interface signal switching device, including:
至少一个处理器;at least one processor;
至少一个存储器,用于存储至少一个程序;At least one memory for storing at least one program;
当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如发明内容中任一项所述一种JTAG接口信号切换方法。When the at least one program is executed by the at least one processor, the at least one processor implements a JTAG interface signal switching method as described in any one of the contents of the invention.
此外,本申请还提供一种存储介质,其中存储有处理器可执行的指令,所述处理器可执行的指令在由处理器执行时用于执行如上述任一项所述一种JTAG接口信号切换方法。In addition, the present application also provides a storage medium in which processor-executable instructions are stored. When executed by the processor, the processor-executable instructions are used to execute a JTAG interface signal as described in any one of the above. Switch method.
本申请的优点和有益效果将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到:The advantages and beneficial effects of the application will be set forth in part in the description below, and in part will be obvious from the description, or learned through practice of the application:
本申请可以根据用户不同的操作,实现上位机与不同的I P核之间四线信号连接的切换或者实现上位机与两个I P核的同时或者分别建立两线信号连接,可以实现分时复用四线信号连接的同时,上位机与I P核之间的信号连接在JTAG接口出现故障时还可以切换为两线信号连接。本申请可以避免JTAG接口的四线信号接口出现故障时,所有I P核均与上位机无法进行信号连接的缺陷,可以提高JTAG接口的实用性,提高数据传输的效率。This application can realize the switching of the four-wire signal connection between the host computer and different IP cores according to the different operations of the user, or the establishment of two-wire signal connections between the host computer and two IP cores at the same time or separately, and can realize time-sharing multiplexing. At the same time as the four-wire signal connection, the signal connection between the host computer and the IP core can also be switched to a two-wire signal connection when the JTAG interface fails. This application can avoid the defect that when the four-wire signal interface of the JTAG interface fails, all IP cores cannot make signal connections with the host computer, and can improve the practicality of the JTAG interface and improve the efficiency of data transmission.
附图说明Description of the drawings
图1为本发明中一种具体实施例中一种JTAG接口信号切换方法的步骤示意图;Figure 1 is a schematic diagram of the steps of a JTAG interface signal switching method in a specific embodiment of the present invention;
图2为本发明中一种具体实施例中一种JTAG接口切换系统的结构示意图;Figure 2 is a schematic structural diagram of a JTAG interface switching system in a specific embodiment of the present invention;
图3为本发明中一种具体实施例中一种JTAG接口的四线信号接口出现故障时的上位机的界面显示图;Figure 3 is an interface display diagram of the host computer when the four-wire signal interface of a JTAG interface fails in a specific embodiment of the present invention;
图4为本发明中一种具体实施例中一种JTAG接口正常运行时的上位机的界面显示图;Figure 4 is an interface display diagram of a host computer when a JTAG interface is operating normally in a specific embodiment of the present invention;
图5为本发明中一种具体实施例中一种使上位机通过四线信号接口与I P核1建立信号连接的上位机的界面显示图;Figure 5 is an interface display diagram of a host computer that enables the host computer to establish a signal connection with the IP core 1 through a four-wire signal interface in a specific embodiment of the present invention;
图6为本发明中一种具体实施例中一种使上位机通过四线信号接口与I P核2建立信号连接的上位机的界面显示图;Figure 6 is an interface display diagram of a host computer that enables the host computer to establish a signal connection with the IP core 2 through a four-wire signal interface in a specific embodiment of the present invention;
图7为本发明中一种具体实施例中一种使上位机通过两线线信号接口同时与I P核1以及I P核2建立信号连接的上位机的界面显示图;Figure 7 is an interface display diagram of a host computer that allows the host computer to simultaneously establish signal connections with IP core 1 and IP core 2 through a two-wire signal interface in a specific embodiment of the present invention;
图8为本发明中一种具体实施例中一种JTAG接口信号切换系统的结构示意图;Figure 8 is a schematic structural diagram of a JTAG interface signal switching system in a specific embodiment of the present invention;
图9为本发明中一种具体实施例中一种JTAG接口信号切换装置的结构示意图。Figure 9 is a schematic structural diagram of a JTAG interface signal switching device in a specific embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图详细描述本发明的实施例对本发明实施例中的JTAG接口信号切换方法、系统、装置和存储介质的原理和过程作以下说明。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and the principles and processes of the JTAG interface signal switching method, system, device and storage medium in the embodiments of the present invention will be described below.
参照图1,本发明一种JTAG接口信号切换方法,方法可以包括以下步骤:Referring to Figure 1, a JTAG interface signal switching method of the present invention may include the following steps:
S1、构建JTAG接口切换系统;所述JTAG接口切换系统包括上位机、JTAG接口、第一IP核以及第二I P核;所述上位机通过所述JTAG接口与所述第一I P核以及所述第二I P核连接;所述JTAG接口包括四线信号接口或者两线信号接口。S1. Construct a JTAG interface switching system; the JTAG interface switching system includes a host computer, a JTAG interface, a first IP core and a second IP core; the host computer communicates with the first IP core and the second IP core through the JTAG interface The second IP core is connected; the JTAG interface includes a four-wire signal interface or a two-wire signal interface.
在本步骤中,本实施例可以通过仿真软件或者是电路设计软件设计出JTAG接口切换系统。也可以用户搭建JTAG接口切换系统。具体地,参照图2,该JTAG接口切换系统可以至少包括上位机1、JTAG接口2、第一I P核3以及第二I P核4。其中上位机1可以与JTAG接口2通过线路实现电气连接,第一I P核3可以通过线路与JTAG接口2实现电气连接,第二I P核4可以通过线路与JTAG接口2实现电气连接。其中,第一I P核3与第二I P核4并联与JTAG接口2连接。其中,JTAG接口2可以包括四线信号接口或者两线信号接口。In this step, this embodiment can design a JTAG interface switching system through simulation software or circuit design software. Users can also build a JTAG interface switching system. Specifically, referring to FIG. 2 , the JTAG interface switching system may include at least a host computer 1 , a JTAG interface 2 , a first IP core 3 and a second IP core 4 . The host computer 1 can be electrically connected to the JTAG interface 2 through lines, the first IP core 3 can be electrically connected to the JTAG interface 2 through lines, and the second IP core 4 can be electrically connected to the JTAG interface 2 through lines. Among them, the first IP core 3 and the second IP core 4 are connected to the JTAG interface 2 in parallel. Among them, the JTAG interface 2 may include a four-wire signal interface or a two-wire signal interface.
S2、响应于用户的第一操作,确定所述上位机通过所述四线信号接口与所述第一IP核建立信号连接。S2. In response to the user's first operation, determine that the host computer establishes a signal connection with the first IP core through the four-wire signal interface.
在本步骤中,完成JTAG接口切换系统的搭建后,上位机可以烧录对应的运行或者是检测程序,当程序进行运行时,用户可以通过上位机的界面对寄存器配置进行修改,使上位机与系统中任意一个I P核实现4线的信号连接。In this step, after completing the construction of the JTAG interface switching system, the host computer can burn the corresponding running or detection program. When the program is running, the user can modify the register configuration through the host computer interface so that the host computer can communicate with the host computer. Any IP core in the system implements a 4-wire signal connection.
S3、响应于用户的第二操作,确定所述上位机通过所述四线信号接口与所述第二IP核建立信号连接。S3. In response to the user's second operation, determine that the host computer establishes a signal connection with the second IP core through the four-wire signal interface.
在本步骤中,当程序进行运行时,用户可以通过上位机的界面对寄存器配置进行修改,使上位机与系统中另一个I P核实现4线的信号连接;其中切换后的I P核与之前进行信号连接的I P核不同。In this step, when the program is running, the user can modify the register configuration through the interface of the host computer so that the host computer can achieve a 4-wire signal connection with another IP core in the system; the switched IP core is connected to the previous one. The IP cores to which the signals are connected are different.
S4、响应于用户的第三操作,确定所述上位机通过所述两线信号接口与所述第一IP核和/或所述第二I P核建立信号连接。S4. In response to the user's third operation, determine that the host computer establishes a signal connection with the first IP core and/or the second IP core through the two-wire signal interface.
在本在步骤中,当程序进行运行时,用户可以通过上位机的界面对寄存器配置进行修改,使上位机同时与系统中两个I P核实现2线的信号连接;或者可以通过上位机的界面对寄存器配置进行修改,使上位机与系统中任意一个I P核实现2线的信号连接。In this step, when the program is running, the user can modify the register configuration through the interface of the host computer, so that the host computer can achieve a 2-wire signal connection with the two IP cores in the system at the same time; or the user can modify the register configuration through the interface of the host computer. Modify the register configuration to enable a 2-wire signal connection between the host computer and any IP core in the system.
进一步地,在本申请的一些实施例中,响应于用户的第一操作,通过所述四线信号接口与所述第一I P核建立信号连接这一步骤,具体可以包括:响应于用户在用户界面将寄存器配置设置为第一预设值,通过所述四线信号接口与所述第一I P核建立信号连接。Further, in some embodiments of the present application, in response to the user's first operation, the step of establishing a signal connection with the first IP core through the four-wire signal interface may specifically include: in response to the user's The interface sets the register configuration to a first preset value, and establishes a signal connection with the first IP core through the four-wire signal interface.
进一步地,在本申请的一些实施例中,响应于用户的第二操作,确定所述上位机通过所述四线信号接口与所述第二I P核建立信号连接这一步骤,具体包括:响应于用户在所述用户界面将所述寄存器配置从所述第一预设值切换为第二预设值,确定所述上位机通过所述四线信号接口与所述第二I P核建立信号连接。Further, in some embodiments of the present application, in response to the user's second operation, determining that the host computer establishes a signal connection with the second IP core through the four-wire signal interface specifically includes: responding After the user switches the register configuration from the first preset value to the second preset value in the user interface, it is determined that the host computer establishes a signal connection with the second IP core through the four-wire signal interface. .
进一步地,在本申请的一些实施例中,所述响应于用户的第三操作,确定所述上位机通过所述两线信号接口同时与所述第一I P核以及所述第二I P核建立信号连接这一步骤,具体包括:响应于用户在所述用户界面将所述寄存器配置从所述第二预设值切换为第三预设值,确定所述上位机通过所述四线信号接口与所述第二I P核建立信号连接。Further, in some embodiments of the present application, in response to the user's third operation, it is determined that the host computer simultaneously establishes a connection with the first IP core and the second IP core through the two-wire signal interface. The step of signal connection specifically includes: in response to the user switching the register configuration from the second preset value to the third preset value in the user interface, determining that the host computer passes the four-wire signal interface Establish a signal connection with the second IP core.
进一步地,在本申请的一些实施例中,JTAG接口信号切换方法还包括:当用户界面的寄存器配置为第四预设值,确定所述四线信号接口出现故障。Further, in some embodiments of the present application, the JTAG interface signal switching method also includes: when the register of the user interface is configured as a fourth preset value, determining that the four-wire signal interface is faulty.
下面结合附图4-图7,说明本实施例的切换方法。The switching method in this embodiment will be described below with reference to Figures 4-7.
在本实施例中,第一预设值为“00001111”、第二预设值为“00002222”、第三预设值为“00002211”、第四预设值为“????????”,本申请的I P核均支持两线信号传输以及四线信号传输模式。In this embodiment, the first preset value is "00001111", the second preset value is "00002222", the third preset value is "00002211", and the fourth preset value is "????????? ?”, the IP core of this application supports two-wire signal transmission and four-wire signal transmission modes.
首先,搭建好JTAG接口切换系统;JTAG接口切换系统包括上位机、JTAG接口、第一IP核以及第二I P核;上位机通过JTAG接口与第一I P核以及第二I P核连接;JTAG接口有四根连接线,JTAG接口包括四线信号接口或者两线信号接口,四线接口模式时每一条线分别是TMS、TCK、TDI以及TDO,两线接口模式时可以有两个两线接口,两线接口分别是TMS0和TCK0,以及TMS1和TCK1。First, set up the JTAG interface switching system; the JTAG interface switching system includes the host computer, JTAG interface, the first IP core and the second IP core; the host computer is connected to the first IP core and the second IP core through the JTAG interface; the JTAG interface has Four connecting lines, the JTAG interface includes a four-wire signal interface or a two-wire signal interface. In the four-wire interface mode, each line is TMS, TCK, TDI and TDO. In the two-wire interface mode, there can be two two-wire interfaces, two The line interfaces are TMS0 and TCK0, and TMS1 and TCK1 respectively.
然后运行预设的程序,系统进入四线接口通信模式,如图3所示,当上位机的界面上的寄存器配置栏显示第四预设值为“????????”时,则可以确定JTAG接口的四线信号接口出现故障,则需要停止运行程序,然后进一步对JTAG接口进行检测,通过现有设备排除其故障。Then run the preset program, and the system enters the four-wire interface communication mode, as shown in Figure 3. When the register configuration column on the host computer interface displays the fourth preset value as "??????????", Then it can be determined that the four-wire signal interface of the JTAG interface is faulty, and the running program needs to be stopped, and then the JTAG interface is further tested and the fault is eliminated through the existing equipment.
当JTAG接口的四线信号接口没有故障,正常运行预设的程序.如图4-图7所示,上位机的界面上的寄存器配置栏显示为“00000000”。当用户将“00000000”改为“00001111”,可以使上位机通过四线信号接口与第一个I P核建立信号连接。当用户将“00001111”改为“00002222”,使上位机通过四线信号接口与第二个I P核建立信号连接,当用户将“00002222”改为“00002211”,使上位机通过两线信号接口同时与第一个I P核以及第二个IP核建立信号连接。当用户将“00000000”改为“00000011”则可以使上位机通过两线信号接口与第一个I P核建立信号连接,当用户将“00000000”改为“00000022”则可以使上位机通过两线信号接口与第二个I P核建立信号连接。When there is no fault in the four-wire signal interface of the JTAG interface, the preset program runs normally. As shown in Figure 4-Figure 7, the register configuration column on the host computer interface displays "00000000". When the user changes "00000000" to "00001111", the host computer can establish a signal connection with the first IP core through the four-wire signal interface. When the user changes "00001111" to "00002222", the host computer establishes a signal connection with the second IP core through the four-wire signal interface. When the user changes "00002222" to "00002211", the host computer establishes a signal connection through the two-wire signal interface. At the same time, signal connections are established with the first IP core and the second IP core. When the user changes "00000000" to "00000011", the host computer can establish a signal connection with the first IP core through the two-wire signal interface. When the user changes "00000000" to "00000022", the host computer can establish a signal connection with the first IP core through the two-wire signal interface. The signal interface establishes a signal connection with the second IP core.
此外、参照图8,与图1的方法相对应,本申请的实施例中还提供一种JTAG接口信号切换系统,可以包括:构建单元101、第一处理单元102、第二处理单元103以及第三处理单元104。构建单元101可以用于构建JTAG接口切换系统;所述JTAG接口切换系统包括上位机、JTAG接口以及第一I P核以及第二I P核;所述上位机通过所述JTAG接口与所述第一I P核以及所述第二I P核连接;所述JTAG接口包括四线信号接口或者两线信号接口。第一处理单元102,用于响应于用户的第一操作,确定所述上位机通过所述四线信号接口与所述第一IP核建立信号连接。第二处理单元103,用于响应于用户的第二操作,确定所述上位机通过所述四线信号接口与所述第二I P核建立信号连接。第三处理单元104,用于响应于用户的第三操作,确定所述上位机通过所述两线信号接口与所述第一I P核和/或所述第二I P核建立信号连接。In addition, referring to Figure 8, corresponding to the method of Figure 1, embodiments of the present application also provide a JTAG interface signal switching system, which may include: a construction unit 101, a first processing unit 102, a second processing unit 103 and a third Three processing units 104. The construction unit 101 can be used to build a JTAG interface switching system; the JTAG interface switching system includes a host computer, a JTAG interface, a first IP core and a second IP core; the host computer communicates with the first IP core through the JTAG interface The core is connected to the second IP core; the JTAG interface includes a four-wire signal interface or a two-wire signal interface. The first processing unit 102 is configured to respond to the user's first operation and determine that the host computer establishes a signal connection with the first IP core through the four-wire signal interface. The second processing unit 103 is configured to respond to the user's second operation and determine that the host computer establishes a signal connection with the second IP core through the four-wire signal interface. The third processing unit 104 is configured to respond to the user's third operation and determine that the host computer establishes a signal connection with the first IP core and/or the second IP core through the two-wire signal interface.
进一步地,在本申请的一些实施例中,JTAG接口信号切换系统还可以包括第四处理单元105,第四处理单元105可以用于当用户界面的寄存器配置为第四预设值,确定四线信号接口出现故障。Further, in some embodiments of the present application, the JTAG interface signal switching system may also include a fourth processing unit 105. The fourth processing unit 105 may be used to determine the four-wire The signal interface is faulty.
上述的JTAG接口信号切换方法实施例中的内容均适用于本JTAG接口信号切换系统实施例中,本JTAG接口信号切换系统实施例所具体实现的功能与上述的JTAG接口信号切换方法实施例相同,并且达到的有益效果与上述的JTAG接口信号切换方法实施例所达到的有益效果也相同。The contents in the above-mentioned JTAG interface signal switching method embodiment are applicable to this JTAG interface signal switching system embodiment. The specific functions implemented by this JTAG interface signal switching system embodiment are the same as the above-mentioned JTAG interface signal switching method embodiment. Moreover, the beneficial effects achieved are also the same as those achieved by the above-mentioned JTAG interface signal switching method embodiments.
进一步地,本申请实施例还提供一种电子设备,该电子设备可以包括至少一个上述实施例任一项所述JTAG接口信号切换系统。Furthermore, embodiments of the present application also provide an electronic device, which may include at least one JTAG interface signal switching system described in any one of the above embodiments.
与图1的方法相对应,本申请实施例还提供了一种JTAG接口信号切换装置,其具体结构可参照图9,包括:Corresponding to the method in Figure 1, embodiments of the present application also provide a JTAG interface signal switching device, the specific structure of which can be referred to Figure 9, including:
至少一个处理器;at least one processor;
至少一个存储器,用于存储至少一个程序;At least one memory for storing at least one program;
当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现所述的JTAG接口信号切换方法。When the at least one program is executed by the at least one processor, the at least one processor implements the JTAG interface signal switching method.
上述方法实施例中的内容均适用于本装置实施例中,本装置实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。The contents of the above method embodiments are applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
与图1的方法相对应,本申请实施例还提供了一种存储介质,其中存储有处理器可执行的指令,所述处理器可执行的指令在由处理器执行时用于执行所述的JTAG接口信号切换方法。Corresponding to the method in Figure 1, an embodiment of the present application also provides a storage medium in which processor-executable instructions are stored. When executed by the processor, the processor-executable instructions are used to execute the JTAG interface signal switching method.
上述的JTAG接口信号切换方法实施例中的内容均适用于本存储介质实施例中,本存储介质实施例所具体实现的功能与上述的JTAG接口信号切换方法实施例相同,并且达到的有益效果与上述的JTAG接口信号切换方法实施例所达到的有益效果也相同。The content in the above-mentioned JTAG interface signal switching method embodiment is applicable to this storage medium embodiment. The specific functions implemented by this storage medium embodiment are the same as the above-mentioned JTAG interface signal switching method embodiment, and the beneficial effects achieved are the same as The beneficial effects achieved by the above embodiments of the JTAG interface signal switching method are also the same.
在一些可选择的实施例中,在方框图中提到的功能/操作可以不按照操作示图提到的顺序发生。例如,取决于所涉及的功能/操作,连续示出的两个方框实际上可以被大体上同时地执行或所述方框有时能以相反顺序被执行。此外,在本申请的流程图中所呈现和描述的实施例以示例的方式被提供,目的在于提供对技术更全面的理解。所公开的方法不限于本文所呈现的操作和逻辑流程。可选择的实施例是可预期的,其中各种操作的顺序被改变以及其中被描述为较大操作的一部分的子操作被独立地执行。In some alternative embodiments, the functions/operations noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending on the functionality/operations involved. Furthermore, the embodiments presented and described in the flowcharts of this application are provided by way of example for the purpose of providing a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logical flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of a larger operation are performed independently.
此外,虽然在功能性模块的背景下描述了本申请,但应当理解的是,除非另有相反说明,功能和/或特征中的一个或多个可以被集成在单个物理装置和/或软件模块中,或者一个或多个功能和/或特征可以在单独的物理装置或软件模块中被实现。还可以理解的是,有关每个模块的实际实现的详细讨论对于理解本申请是不必要的。更确切地说,考虑到在本文中公开的装置中各种功能模块的属性、功能和内部关系的情况下,在工程师的常规技术内将会了解该模块的实际实现。因此,本领域技术人员运用普通技术就能够在无需过度试验的情况下实现在权利要求书中所阐明的本申请。还可以理解的是,所公开的特定概念仅仅是说明性的,并不意在限制本申请的范围,本申请的范围由所附权利要求书及其等同方案的全部范围来决定。Furthermore, although the present application is described in the context of functional modules, it should be understood that, unless stated to the contrary, one or more of the functions and/or features may be integrated in a single physical device and/or software module , or one or more functions and/or features may be implemented in separate physical devices or software modules. It will also be understood that a detailed discussion regarding the actual implementation of each module is not necessary for understanding the present application. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be within the ordinary skill of an engineer, taking into account the properties, functions and internal relationships of the modules. Therefore, a person skilled in the art using ordinary skills will be able to implement the application as set forth in the claims without undue experimentation. It will also be understood that the specific concepts disclosed are illustrative only and are not intended to limit the scope of the application, which is to be determined by the full scope of the appended claims and their equivalents.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干程序用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-On ly Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several programs are used to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc. that can store program code. medium.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行程序的定序列表,可以具体实现在任何计算机可读介质中,以供程序执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从程序执行系统、装置或设备取程序并执行程序的系统)使用,或结合这些程序执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供程序执行系统、装置或设备或结合这些程序执行系统、装置或设备而使用的装置。The logic and/or steps represented in flowcharts or otherwise described herein, for example, may be considered a sequenced listing of an executable program for implementing the logical functions, which may be embodied in any computer-readable medium, For use with or in combination with program execution systems, devices or devices (such as computer-based systems, systems including processors or other systems that can retrieve programs from program execution systems, devices or devices and execute programs) or equipment. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with a program execution system, apparatus, or device.
计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wires (electronic device), portable computer disk cartridges (magnetic device), random access memory (RAM), Read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, and subsequently edited, interpreted, or otherwise suitable as necessary. process to obtain the program electronically and then store it in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的程序执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present application can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable program execution system. For example, if it is implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following technologies known in the art: a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
在本说明书的上述描述中,参考术语“一个实施方式/实施例”、“另一实施方式/实施例”或“某些实施方式/实施例”等的描述意指结合实施方式或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。In the above description of this specification, reference to the description of the terms "one embodiment/example", "another embodiment/example" or "certain embodiments/examples" etc. is meant to be described in connection with the embodiment or example A specific feature, structure, material, or characteristic is included in at least one embodiment or example of this application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管已经示出和描述了本申请的实施方式,本领域的普通技术人员可以理解:在不脱离本申请的原理和宗旨的情况下可以对这些实施方式进行多种变化、修改、替换和变型,本申请的范围由权利要求及其等同物限定。Although the embodiments of the present application have been shown and described, those of ordinary skill in the art will understand that various changes, modifications, substitutions and modifications can be made to these embodiments without departing from the principles and purposes of the present application. The scope of the application is defined by the claims and their equivalents.
以上是对本申请的较佳实施进行了具体说明,但本申请并不限于所述实施例,熟悉本领域的技术人员在不违背本申请精神的前提下还可做作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a detailed description of the preferred implementation of the present application, but the present application is not limited to the embodiments. Those skilled in the art can also make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310706362.1A CN116881185A (en) | 2023-06-14 | 2023-06-14 | JTAG interface signal switching method, system, equipment, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310706362.1A CN116881185A (en) | 2023-06-14 | 2023-06-14 | JTAG interface signal switching method, system, equipment, device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116881185A true CN116881185A (en) | 2023-10-13 |
Family
ID=88261270
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310706362.1A Pending CN116881185A (en) | 2023-06-14 | 2023-06-14 | JTAG interface signal switching method, system, equipment, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116881185A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030163773A1 (en) * | 2002-02-26 | 2003-08-28 | O'brien James J. | Multi-core controller |
US20060277436A1 (en) * | 2005-04-27 | 2006-12-07 | Mcgowan Robert A | Apparatus and method for coupling a plurality of test access ports to external test and debug facility |
CN105182221A (en) * | 2015-10-09 | 2015-12-23 | 天津国芯科技有限公司 | JTAG multipath selector and connection method in SoC |
CN105550119A (en) * | 2016-01-29 | 2016-05-04 | 中国人民解放军国防科学技术大学 | Simulation device based on JTAG protocol |
CN107301144A (en) * | 2017-06-22 | 2017-10-27 | 湖南国科微电子股份有限公司 | A kind of jtag interface multiplexing method and device |
US20210335435A1 (en) * | 2019-05-31 | 2021-10-28 | Micron Technology, Inc. | Jtag based architecture allowing multi-core operation |
WO2022063255A1 (en) * | 2020-09-28 | 2022-03-31 | 上海商汤智能科技有限公司 | Chip system |
CN114461479A (en) * | 2020-11-09 | 2022-05-10 | 哲库科技(上海)有限公司 | Method, device, storage medium and electronic device for debugging multimedia processing chip |
-
2023
- 2023-06-14 CN CN202310706362.1A patent/CN116881185A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030163773A1 (en) * | 2002-02-26 | 2003-08-28 | O'brien James J. | Multi-core controller |
US20060277436A1 (en) * | 2005-04-27 | 2006-12-07 | Mcgowan Robert A | Apparatus and method for coupling a plurality of test access ports to external test and debug facility |
CN105182221A (en) * | 2015-10-09 | 2015-12-23 | 天津国芯科技有限公司 | JTAG multipath selector and connection method in SoC |
CN105550119A (en) * | 2016-01-29 | 2016-05-04 | 中国人民解放军国防科学技术大学 | Simulation device based on JTAG protocol |
CN107301144A (en) * | 2017-06-22 | 2017-10-27 | 湖南国科微电子股份有限公司 | A kind of jtag interface multiplexing method and device |
US20210335435A1 (en) * | 2019-05-31 | 2021-10-28 | Micron Technology, Inc. | Jtag based architecture allowing multi-core operation |
WO2022063255A1 (en) * | 2020-09-28 | 2022-03-31 | 上海商汤智能科技有限公司 | Chip system |
CN114461479A (en) * | 2020-11-09 | 2022-05-10 | 哲库科技(上海)有限公司 | Method, device, storage medium and electronic device for debugging multimedia processing chip |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101736196B1 (en) | Determination of physical connectivity status of devices based on electrical measurement | |
US7694029B2 (en) | Detecting miscabling in a storage area network | |
CN116501681A (en) | CXL data transmission board card and method for controlling data transmission | |
CN106909752B (en) | Simulation System for External Interface Test of High-speed Railway Computer Interlocking System | |
CN112118158A (en) | Test method, test device, test equipment and storage medium for switch | |
CN101778007B (en) | System and method for automatically testing I/O pin of CAN bus control module | |
CN113434355A (en) | Module verification method, UVM verification platform, electronic device and storage medium | |
CN107273258A (en) | Method of testing and system are restarted in the automation of interchanger built in a kind of blade server | |
CN101236544A (en) | Method and device for sharing USB slave end device by multiple USB master end devices | |
CN100459530C (en) | Testing adopter and testing tool system and detecting method | |
CN105843718A (en) | Test board card as well as management card test system and method | |
CN103647710A (en) | Path configuration method and device | |
CN100427964C (en) | A Boundary Scan Test Method for Circuit Board | |
CN114996069A (en) | A motherboard testing method, device and medium | |
CN114967641A (en) | A method and system for automatic testing of vehicle controller diagnostic function | |
CN108646172A (en) | A kind of apparatus for testing chip | |
CN100568204C (en) | Systems and methods for increasing availability of input-output drawers | |
CN116881185A (en) | JTAG interface signal switching method, system, equipment, device and medium | |
CN101963933B (en) | Static instrument matching method adapting to multi-communication protocols in instrument test | |
CN114448828A (en) | Storage active-active function test method, system, terminal and storage medium | |
CN112637010B (en) | Equipment checking method and device | |
CN118606117A (en) | A four-controller interconnected mirroring system, data transmission method, device and medium | |
CN112866061A (en) | NCSI (network control information system) testing method, device, equipment and medium of onboard network port | |
CN111722149A (en) | A cable detection device, method, system and computer-readable storage medium | |
CN112306775B (en) | Method, device, equipment and medium for testing communication link between two-way CPUs (central processing unit) |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20231013 |