Switching circuits, logic devices and circuit boards for testing and diagnostics
By designing a switching circuit for testing and diagnosis in the OAM server, and using configuration information to control the conduction between the JTAG interface circuit and the OAM processor, the problem of heavy connection workload when debugging multiple OAM processors is solved, and high efficiency is achieved. debugging process and automated testing.
Patent Information
- Application Number
- CN202410751765.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-12
AI Technical Summary
In the OAM server, during the debugging process of multiple OAM processors, each processor needs to be connected one by one, resulting in a heavy connection workload and reducing debugging efficiency.
Design a switching circuit for testing and diagnosis, including a JTAG interface circuit, a strobe switching circuit and a strobe control circuit. Through configuration information, the conduction of the upstream channel and the downlink channel is controlled, so that multiple OAM processors can share a JTAG interface connection. The debugging function of the device.
It saves the occupied area of the JTAG interface connector, reduces plugging and unplugging operations, improves the debugging efficiency of the OAM processor, reduces the risk of operational errors, and supports automated testing.
Smart Images

Figure CN118349410B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of servers, and in particular to a switching circuit, a logic device and a circuit board card for testing and diagnosis. Background Art
[0002] OAM (OCP Accelerator Module) is a hardware block for accelerating computing. It is part of the Open Compute Project (OCP). OCP is an open source hardware project that aims to promote innovation and standardization of data center hardware. OAM is a specification of OCP that defines a pluggable hardware module for accelerating specific computing tasks in data centers. It can be used with standard server architectures to provide higher computing performance and energy efficiency. OAM modules usually contain one or more accelerator chips, such as GPUs (Graphics Processing Units), coprocessors such as FPGAs (Field-Programmable Gate Arrays) or ASICs (Application-Specific Integrated Circuits), or other dedicated hardware. These accelerators can communicate with the main server through high-speed interfaces and assist in performing computationally intensive tasks such as machine learning, data analysis, image processing, etc.
[0003] In an OAM server, a circuit board usually includes multiple OAM processors. During debugging, each OAM processor that needs to be debugged needs to be connected one by one to complete the debugging work. When multiple OAM processors are included in a circuit board, the workload of connection is increased, which is not conducive to improving the debugging efficiency. Summary of the invention
[0004] In view of this, the present disclosure provides a switching circuit, a logic device, a circuit board card, a server and a test diagnosis system for testing and diagnosis to help improve the debug efficiency of the module under test. When the module under test is an OAM processor, it helps improve the debug efficiency of the OAM processor.
[0005] The technical solution of the present disclosure is achieved as follows:
[0006] According to one aspect of an embodiment of the present disclosure, a switching circuit for test diagnosis is provided, including:
[0007] JTAG interface circuit;
[0008] A gating switching circuit, wherein the gating switching circuit has an uplink channel and at least two downlink channels, wherein the uplink channel is connected to the JTAG interface circuit, and the at least two downlink channels are respectively connected to different modules under test, and wherein the uplink channel and the at least two downlink channels are selectively connected;
[0009] A gating control circuit is used to generate a level signal for the gating switching circuit according to externally written configuration information, and the level signal is used to determine a selected downlink channel among the at least two downlink channels that is currently connected to the uplink channel.
[0010] In a possible implementation, the gating control circuit includes a register group, the configuration information includes a register value in the register group, and the level state of the level signal is determined by the register value.
[0011] In a possible implementation manner, the configuration information is written into the strobe control circuit through the JTAG interface circuit.
[0012] In a possible implementation, the JTAG interface circuit includes a JTAG test access port and a command port, and the JTAG interface circuit obtains the configuration information according to a characteristic waveform of a signal received by the JTAG test access port, and writes the configuration information into the gating control circuit through the command port.
[0013] In a possible implementation manner, the JTAG interface circuit is connected to a JTAG debugger via a JTAG interface connector.
[0014] In a possible implementation manner, the switching circuit for test diagnosis further includes:
[0015] A serial interface circuit is used to receive the configuration information through a serial signal line and write the configuration information into the gating control circuit.
[0016] In a possible implementation manner, the serial signal line is connected to a baseboard management controller.
[0017] According to another aspect of an embodiment of the present disclosure, a logic device is provided, comprising: a switching circuit for test diagnosis as described in any one of the above items.
[0018] According to another aspect of the embodiments of the present disclosure, a circuit board card is provided, comprising: a module under test and a switching circuit for test diagnosis as described in any one of the above items, wherein the number of the modules under test is equal to the number of the downstream channels.
[0019] According to another aspect of an embodiment of the present disclosure, a server is provided, comprising: at least one circuit board card as described above.
[0020] According to another aspect of an embodiment of the present disclosure, a test diagnosis system is provided, comprising:
[0021] A switching circuit for test diagnosis as described in any one of the above items; and
[0022] A JTAG debugger is connected to the JTAG interface circuit via a JTAG interface connector.
[0023] It can be seen from the above scheme that the switching circuit, logic device and circuit board card for test diagnosis disclosed in the present invention use the gate control circuit and the gate switching circuit to control the conduction between the JTAG interface circuit and different modules under test, so that only one JTAG interface connector is needed to realize the debug work of at least two modules under test, and compared with setting a corresponding JTAG interface connector for each module under test, the occupied area of the JTAG interface connector is saved. Since the problems generated by the modules under test are usually random, no matter which one or several modules under test have problems, when the switching circuit, logic device and circuit board card for test diagnosis disclosed in the present invention are used, it is convenient to switch between different modules under test, and the JTAG debugger only needs to connect one JTAG interface connector. Compared with setting a corresponding JTAG interface connector for each module under test, the JTAG debugger does not need to be plugged in and out between each JTAG interface connector, eliminating multiple interface plug-in and pull-out operations, which helps to improve the debug efficiency and reduce the risk of operational errors that may be caused by plug-in and pull-out actions, for example, it can avoid plugging in the wrong JTAG interface connector. Using configuration information to conduct the uplink channel and select the downlink channel is conducive to the operation of the automated test program and the automated test of the module under test, and reduces the intervention of the manual plug-in and pull-out operations between different JTAG interface connectors in the automated test. In the case where the module under test is an OAM processor, the present disclosure helps to save the occupied area of the JTAG interface connector for OAM processor testing on the UBB, helps to switch between different OAM processors conveniently and quickly, helps to improve the debugging efficiency of the OAM processor, and helps to reduce the risk of operational errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a schematic diagram of a test structure of an OAM processor in a universal substrate;
[0025] Figure 2 is a schematic structural diagram of a switching circuit for test diagnosis according to an exemplary embodiment;
[0026] Figure 3Ais a timing diagram of a clock signal TCK_header and an output signal TDO_header in a data packet of a JTAG interface connector according to an exemplary embodiment;
[0027] Figure 3B is a schematic diagram of a first embodiment of a signal characteristic waveform according to an exemplary embodiment;
[0028] Figure 3C is a schematic diagram of a second embodiment of a signal characteristic waveform according to an exemplary embodiment;
[0029] Figure 3D is a schematic diagram of a third embodiment of a signal characteristic waveform according to an exemplary embodiment;
[0030] Figure 4 is a schematic structural diagram of another switching circuit for test diagnosis according to an exemplary embodiment;
[0031] Figure 5 is a schematic structural diagram of a circuit board card according to an exemplary embodiment;
[0032] Figure 6 is a schematic structural diagram of another circuit board card according to an exemplary embodiment;
[0033] Figure 7 is a structural schematic diagram of a test diagnosis system according to an exemplary embodiment;
[0034] Figure 8 It is a schematic diagram showing the structure of another test and diagnosis system according to an exemplary embodiment. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and examples.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0037] In the related art, in an OAM server, there are usually multiple OAM processors, such as OAM GPU (Graphics Processing Unit) integrated in the same UBB (Universal Base Board). When the GPU PCIe (Peripheral Component Interconnect Express) bus is link down or AER (Advanced Error Reporting) is reported due to other reasons, it is necessary to use the JTAG (Joint Test Action Group) interface to read some registers in the OAM processor or perform scan dump to provide debugging with ideas for analysis.
[0038] Figure 1 It is a schematic diagram of the test structure of an OAM processor in a universal substrate. Figure 1 In the example shown, a universal substrate UBB includes 8 OAM processors, such as a first OAM processor, a second OAM processor, a third OAM processor, a fourth OAM processor, a fifth OAM processor, a sixth OAM processor, a seventh OAM processor, and an eighth OAM processor, corresponding to these 8 OAM processors respectively. 8 JTAG interface connectors (JTAG headers) need to be set in the universal substrate UBB, namely, a first JTAG interface connector, a second JTAG interface connector, a third JTAG interface connector, a fourth JTAG interface connector, a fifth JTAG interface connector, a sixth JTAG interface connector, a seventh JTAG interface connector, and an eighth JTAG interface connector. The 8 JTAG interface connectors and the 8 OAM processors are connected one-to-one (the connection circuit is not shown). Figure 1It can be seen that in order to debug 8 OAM processors, 8 JTAG interface connectors need to be set in the universal substrate UBB. Each JTAG interface connector will occupy a part of the space of the universal substrate UBB. The 8 JTAG interface connectors lead to an increase in the space occupied in the universal substrate UBB, squeezing the space for circuit wiring in the universal substrate UBB. In addition, the repeated setting of JTAG interface connectors also causes excessive redundancy of JTAG interface connectors. In addition, the JTAG interface connector is only used for debugging of the OAM processor, and its utilization rate is very low. Too many JTAG interface connectors also cause a waste of hardware resources. In addition, when debugging, the JTAG debugger (JTAG BOX) needs to be selectively connected to different OAM processors for different OAM processors, which increases the number of plug-in times of each JTAG interface connector and reduces the debugging efficiency.
[0039] In view of this, the embodiments of the present disclosure provide a switching circuit, a logic device, a circuit board card and a server for test diagnosis, so as to reduce the number of JTAG interface connectors, realize connecting multiple OAM processors with one JTAG interface connector, and selectively connect the JTAG interface connector to any one of the multiple OAM processors, thereby saving the space occupied by the circuit board card, saving the hardware resources of the circuit board card, and helping to improve the debug efficiency of the OAM processor.
[0040] Figure 2 is a schematic diagram of a switching circuit for test diagnosis according to an exemplary embodiment. Figure 2 As shown, the switching circuit 1 for test diagnosis includes a JTAG interface circuit 11, a strobe switching circuit 12 and a strobe control circuit 13. The strobe switching circuit 12 has an uplink channel and at least two downlink channels, the uplink channel is connected to the JTAG interface circuit 11, the at least two downlink channels are respectively connected to different modules under test, and the uplink channel and the at least two downlink channels are selectively connected. The strobe control circuit 13 is used to generate a level signal for the strobe switching circuit 12 according to the configuration information written externally, and the level signal is used to determine the selected downlink channel currently connected to the uplink channel among the at least two downlink channels. Figure 2 As shown, the dotted lines in the gate switching circuit 12 are only used to indicate the possible connection relationship between each module under test and the JTAG interface circuit 11 in the gate switching circuit 12 , and do not indicate the uplink channel and the downlink channel in the gate switching circuit 12 .
[0041] In the exemplary embodiment, the number of downlink channels is equal to the number of modules under test, for example Figure 2In the illustrated embodiment, the number of the tested modules is 8, namely the first tested module 21, the second tested module 22, the third tested module 23, the fourth tested module 24, the fifth tested module 25, the sixth tested module 26, the seventh tested module 27, and the eighth tested module 28, and the downlink channels respectively connected to the 8 tested modules can be called the first downlink channel, the second downlink channel, the third downlink channel, the fourth downlink channel, the fifth downlink channel, the sixth downlink channel, the seventh downlink channel, and the eighth downlink channel. In the exemplary embodiment, the uplink channel is selectively connected to at least two downlink channels, which means that the uplink channel is connected to the first downlink channel, or the uplink channel is connected to the second downlink channel, or the uplink channel is connected to the third downlink channel, or the uplink channel is connected to the fourth downlink channel, or the uplink channel is connected to the fifth downlink channel, or the uplink channel is connected to the sixth downlink channel, or the uplink channel is connected to the seventh downlink channel, or the uplink channel is connected to the eighth downlink channel.
[0042] JTAG is an international standard test protocol, mainly used for testing, verifying and debugging integrated circuits, as well as emulating and programming electronic systems. The JTAG protocol allows external devices to communicate with internal circuits through a set of standard pins by implementing a circuit called TAP (Test Access Port) inside electronic devices. Based on the JTAG standard, the JTAG signal channel can include a clock signal (TCK) line, a status signal (TMS) line, an input signal (TDI) line, and an output signal (TDO) line. Based on this, Figure 2 As shown, in the exemplary embodiment, the uplink channel and each downlink channel include a clock signal, a state signal, an input signal and an output signal, for example Figure 2As shown, the upstream channel may include a clock signal TCK_SW, a state signal TMS_SW, an input signal TDI_SW, and an output signal TDO_SW, the first downstream channel may include a clock signal TCK0, a state signal TMS0, an input signal TDI0, and an output signal TDO0, the second downstream channel may include a clock signal TCK1, a state signal TMS1, an input signal TDI1, and an output signal TDO1, the third downstream channel may include a clock signal TCK2, a state signal TMS2, an input signal TDI2, and an output signal TDO2, and the fourth downstream channel may include a clock signal TCK3 , state signal TMS3, input signal TDI3 and output signal TDO3, the fifth downstream channel may include clock signal TCK4, state signal TMS4, input signal TDI4 and output signal TDO4, the sixth downstream channel may include clock signal TCK5, state signal TMS5, input signal TDI5 and output signal TDO5, the seventh downstream channel may include clock signal TCK6, state signal TMS6, input signal TDI6 and output signal TDO6, and the eighth downstream channel may include clock signal TCK7, state signal TMS7, input signal TDI7 and output signal TDO7.
[0043] In an exemplary embodiment, the gating control circuit 13 includes a register (REG) group, the configuration information includes register values in the register group, and the level state of the level signal is determined by the register value. Figure 2 In the illustrated embodiment, the level signal generated by the selection control circuit 13 includes three signals, namely, signal s0, signal s1, and signal s2. Signal s0, signal s1, and signal s2 are used to determine the selected downlink channel among the eight downlink channels that is currently connected to the uplink channel. The level states of signal s0, signal s1, and signal s2 are determined by register values, as shown in Table 1.
[0044] Table 1 Correspondence between register value, signal s0, signal s1, signal s2, and selected downlink channel
[0045]
[0046] Among them, the level state of 0 represents a low level, and the level state of 1 represents a high level. As shown in Table 1, when the register value is 000, the level state of the signal s0, the level state of the signal s1 and the level state of the signal s2 are all 0, and the gate control circuit 13 controls the gate switching circuit 12 to connect the uplink channel to the first downlink channel; when the register value is 001, the level state of the signal s0 is 1, the level state of the signal s1 and the level state of the signal s2 are 0, and the gate control circuit 13 controls the gate switching circuit 12 to connect the uplink channel to the second downlink channel; when the register value is 010, the level state of the signal s0 is 0, the level state of the signal s1 is 1, and the level state of the signal s2 is 0, and the gate control circuit 13 controls the gate switching circuit 12 to connect the uplink channel to the third downlink channel; when the register value is 011, the level state of the signal s0 and the level state of the signal s1 are 1, and the level state of the signal s2 is 0, and the gate control circuit 13 controls the gate switching circuit 12 to connect the uplink channel to the fourth downlink channel The uplink channel is turned on; when the register value is 100, the level state of the signal s0 and the level state of the signal s1 are 0, and the level state of the signal s2 is 1. At this time, the gating control circuit 13 controls the gating switching circuit 12 to turn on the uplink channel and the fifth downlink channel; when the register value is 101, the level state of the signal s0 is 1, the level state of the signal s1 is 0, and the level state of the signal s2 is 1. At this time, the gating control circuit 13 controls the gating switching circuit 12 to turn on the uplink channel and the sixth downlink channel; when the register value is 110, the level state of the signal s0 is 0, the level state of the signal s1 and the level state of the signal s2 are 1. At this time, the gating control circuit 13 controls the gating switching circuit 12 to turn on the uplink channel and the seventh downlink channel; when the register value is 111, the level state of the signal s0, the level state of the signal s1 and the level state of the signal s2 are all 1. At this time, the gating control circuit 13 controls the gating switching circuit 12 to turn on the uplink channel and the eighth downlink channel.
[0047] In an exemplary embodiment, Figure 2As shown, when the number of modules under test is 8, the register group may include one 3-bit register, and the JTAG signal channel of the module under test that needs to be debugged can be connected among the 8 modules under test by using one 3-bit register, wherein each binary bit in the 3-bit register controls one of the three level signals generated by the strobe control circuit 13. In an illustrative embodiment, when the number of modules under test is 8, the register group may include three 1-bit registers, and the JTAG signal channel of the module under test that needs to be debugged can be connected among the 8 modules under test by using three 1-bit registers, and each 1-bit register controls one of the three level signals generated by the strobe control circuit 13. In an illustrative embodiment, when the number of modules under test is 8, the register group may include 1 1-bit register and 1 2-bit register. The JTAG signal channel of the module under test that needs to be debugged can be connected among the 8 modules under test by using 1 1-bit register and 1 2-bit register, wherein the 1-bit register controls one of the three level signals generated by the selection control circuit 13, and the 2-bit register controls the other two of the three level signals generated by the selection control circuit 13.
[0048] In the illustrative embodiment, in the initial state, when the register group does not receive any configuration information, the register value is 000, the level state of signal s0, the level state of signal s1 and the level state of signal s2 are all 0, and thus in the initial state, the JTAG signal channel of the first module under test 21 is connected.
[0049] In the exemplary embodiment, the configuration information is written into the strobe control circuit 13 through the JTAG interface circuit 11. In this way, the JTAG interface circuit 11 can be used as an interface for debugging at least two modules under test, and can be used as an interface for obtaining configuration information, thereby realizing the forwarding of two types of information (configuration information and debug information) by one interface circuit, realizing the information forwarding multiplexing of the JTAG interface circuit 11, and being conducive to saving the occupation of wiring space by the interface.
[0050] In order to realize the forwarding of two types of information (configuration information and debug information) by an interface circuit, such as Figure 2 As shown, in the exemplary embodiment, the JTAG interface circuit 11 includes a JTAG test access port (JTAG TAP) 111 and a command port 112. The JTAG interface circuit 11 obtains configuration information according to the characteristic waveform of the signal received by the JTAG test access port 111, and writes it into the gating control circuit 13 through the command port 112.
[0051] In an exemplary embodiment, based on the JTAG standard, the signal characteristic waveform of the configuration information can be expressed by the clock signal TCK_header and the output signal TDO_header, wherein the clock signal TCK_header and the output signal TDO_header can be signals obtained from the JTAG interface connector 3. In addition, the signal obtained by the JTAG test access port 111 from the JTAG interface connector 3 may also include an input signal TDI_header and a status signal TDO_header.
[0052] In an exemplary embodiment, Figure 2 As shown, when the signal characteristic waveforms of the clock signal TCK_header and the output signal TDO_header received by the JTAG test access port 111 are the characteristic waveforms of the configuration information, the JTAG test access port 111 writes the configuration information into the strobe control circuit 13 through the command port 112, and the strobe control circuit 13 generates a level signal for the strobe switching circuit 12 according to the written configuration information. Under the control of the level signal generated by the strobe control circuit 13, the strobe switching circuit 12 conducts the uplink channel and the downlink channel (i.e., the selected downlink channel) specified by the configuration information. Since the uplink channel is connected to the JTAG interface circuit 11 and the downlink channel is connected to the corresponding module under test, the JTAG interface circuit 11 is connected to the module under test connected to the downlink channel (i.e., the selected downlink channel) specified by the configuration information according to the configuration information, and thereafter, the module under test connected to the downlink channel (i.e., the selected downlink channel) specified by the configuration information can be debugged through the JTAG interface circuit 11.
[0053] Take the fourth downlink channel as an example, the downlink channel specified by the configuration information (ie, the selected downlink channel) is Figure 2As shown, when the signal characteristic waveforms of the clock signal TCK_header and the output signal TDO_header received by the JTAG test access port 111 are the signal characteristic waveforms of the configuration information of the fourth downstream channel, the JTAG interface circuit 11 writes the configuration information of the fourth downstream channel into the strobe control circuit 13 through the command port 112, wherein the configuration information of the fourth downstream channel may be the register value "011" written into the register group of the strobe control circuit 13, and the strobe control circuit 13 generates a level signal for the strobe switching circuit 12 according to the register value "011", wherein the level state of the signal s0 and the level state of the signal s1 are 1, and the level state of the signal s2 is 0, and the strobe switching circuit 12 is controlled by the level signal generated by the strobe control circuit 13, and turns on the upstream channel and the fourth downstream channel. Since the upstream channel is connected to the JTAG interface circuit 11, and the fourth downstream channel is connected to the fourth module under test 24, the JTAG interface circuit 11 is connected to the fourth module under test 24 connected to the fourth downstream channel according to the configuration information of the fourth downstream channel, for example Figure 2 As shown, at this time, the links of clock signal TCK_header, clock signal TCK_SW and clock signal TCK3 are connected, and clock signal TCK_header is clock signal TCK3; the links of state signal TMS_header, state signal TMS_SW and state signal TMS3 are connected, and state signal TMS_header is state signal TMS3; the links of input signal TDI_header, input signal TDI_SW and input signal TDI3 are connected, and input signal TDI_header is input signal TDI3; the links of output signal TDO_header, output signal TDO_SW and output signal TDO3 are connected, and output signal TDO_header is output signal TDO3. After that, the fourth module under test 24 can be debugged through the JTAG interface circuit 11.
[0054] For the signal characteristic waveform that can obtain configuration information, see FIG. 3A to FIG. 3D The timing diagram of the signal characteristic waveform shown. Figure 3AIt is a timing diagram of the clock signal TCK_header and the output signal TDO_header in a data packet of a JTAG interface connector according to an illustrative embodiment, wherein the status signal TMS_header and the input signal TDI_header portion are omitted. In an illustrative embodiment, the signal characteristic waveform of the configuration information includes a level change characteristic waveform of the output signal in the data packet received by the JTAG interface circuit within a specific period of the clock signal. In an illustrative embodiment, the level change characteristic waveform of the output signal in the data packet received by the JTAG interface circuit within a specific period of the clock signal may, for example, be: a combination of a first level change characteristic waveform of the output signal in the first specific period of the clock signal and a second level change characteristic waveform of the output signal in the second specific period of the clock signal in the same data packet. Figure 3A As shown, in the exemplary embodiment, a data packet of the JTAG interface connector can be, for example, 66 bits wide, where each bit corresponds to a cycle of the clock signal TCK_header, wherein, in the embodiment of the data packet, the waveform (first level change characteristic waveform) of the output signal TDO_header in the 1st to 2nd cycle of the clock signal TCK_header (the first specific cycle of the clock signal) represents the operation mode specified by the data packet, and in the exemplary embodiment, when the output signal TDO_header in the 1st to 2nd cycle of the clock signal TCK_header is at a high level (that is, when the operation mode value expressed by the output signal TDO_header is "11"), it indicates that the configuration information is written to the register group of the gating control circuit 13, and the operation mode value is 2 bits. Figure 3A As shown, in the exemplary embodiment, the 3rd to 34th cycles of the clock signal TCK_header are the recording positions of the address value (32 bits) specified by the data packet, and the address value can be used to indicate the address of the register in the module under test; in the exemplary embodiment, the 35th to 66th cycles of the clock signal TCK_header (the second specific cycle of the clock signal) are the recording positions of the data value (32 bits) contained in the data packet, and the data value is the data carried in the data packet. In the exemplary embodiment, in addition to the operation mode value "11" expressed by the output signal TDO_header indicating that the configuration information is written to the register group of the gating control circuit 13, the operation mode value "01" expressed by the output signal TDO_header can be used to indicate that the data packet indicates to read data from the register of the module under test, and the operation mode value "10" expressed by the output signal TDO_header can be used to indicate that the data packet indicates to write data to the register of the module under test. In addition, the operation mode value "00" expressed by the output signal TDO_header can be used to indicate that no operation is performed.
[0055] Figure 3B is a schematic diagram of a first embodiment of a signal characteristic waveform according to an exemplary embodiment, such as Figure 3B Combined with Figure 3A As shown, in the first embodiment of the signal characteristic waveform, the output signal TDO_header is at a high level in the 1st to 2nd cycle of the clock signal TCK_header (that is, the first level change characteristic waveform is at a high level), that is, the operation mode value expressed by the output signal TDO_header is "11", and the output signal TDO_header is at a low level in the 35th to 66th cycle of the clock signal TCK_header (that is, the second level change characteristic waveform is at a low level), that is, the data carried in the data packet is 0x00000000 (hexadecimal), and the first embodiment of the signal characteristic waveform indicates that the register value written to the register group is "000", see Table 1 As shown, when the register value is 000, the level state of signal s0, the level state of signal s1 and the level state of signal s2 are all 0. At this time, the selection control circuit 13 controls the selection switching circuit 12 to connect the uplink channel and the first downlink channel. On this basis, other data packets after this data packet are all for debugging the first module under test 21 connected to the first downlink channel when the operation mode value expressed by the output signal TDO_header is not "11", until the operation mode value expressed by the output signal TDO_header of another data packet becomes "11", and then a new register value is written to the register group again according to the data carried in the other data packet.
[0056] Figure 3C is a schematic diagram of a second embodiment of a signal characteristic waveform according to an exemplary embodiment, such as Figure 3C And compare Figure 3BAs shown, different from the first embodiment of the signal characteristic waveform, in the second embodiment of the signal characteristic waveform, the output signal TDO_header is at a low level in the 35th to 65th cycles of the clock signal TCK_header, and the output signal TDO_header is at a high level in the 66th cycle of the clock signal TCK_header (that is, the second level change characteristic waveform is: low level in the 35th to 65th cycles of the clock signal TCK_header, and high level in the 66th cycle of the clock signal TCK_header), that is, the data carried in the data packet is 0x00000001 (hexadecimal), and the second embodiment of the signal characteristic waveform indicates that the register value written to the register group is "001". As shown in Table 1, when the register value is 001, the level state of the signal s0 is 1, and the level state of the signal s1 and the level state of the signal s2 are 0. At this time, the selection control circuit 13 controls the selection switching circuit 12 to connect the uplink channel with the second downlink channel.
[0057] Figure 3D is a schematic diagram of a third embodiment of a signal characteristic waveform according to an exemplary embodiment, such as Figure 3D And compare Figure 3B As shown, different from the first embodiment of the signal characteristic waveform, in the third embodiment of the signal characteristic waveform, the output signal TDO_header is at a low level in the 35th to 63rd cycles of the clock signal TCK_header, and the output signal TDO_header is at a high level in the 64th to 66th cycles (including the 64th, 65th, and 66th cycles) of the clock signal TCK_header (that is, the second level change characteristic waveform is: a low level in the 35th to 63rd cycles of the clock signal TCK_header, and a high level in the 64th to 66th cycles of the clock signal TCK_header), that is, the data carried in the data packet is 0x00000003 (hexadecimal), and the third embodiment of the signal characteristic waveform indicates that the register value written to the register group is "111". As shown in Table 1, when the register value is 111, the level state of the signal s0, the level state of the signal s1, and the level state of the signal s2 are all 1, and at this time, the selection control circuit 13 controls the selection switching circuit 12 to connect the uplink channel with the eighth downlink channel.
[0058] Referring to the first, second and third embodiments of the above-mentioned signal characteristic waveform, when the output signal TDO_header is at a high level during the 1st to 2nd cycles of the clock signal TCK_header, that is, when the operation mode value expressed by the output signal TDO_header is "11", other forms of the signal characteristic waveform are obtained by changing the high and low levels of the output signal TDO_header during the 64th to 66th cycles of the clock signal TCK_header, which will not be repeated here.
[0059] It should be noted that Figure 3A The output signal TDO_header in the operation mode, address, data value part, and Figure 3B , Figure 3C , Figure 3D The shape of the output signal TDO_header in the address part is a placeholder and does not represent a timing waveform.
[0060] In the exemplary embodiment, the JTAG interface circuit 11 is connected to the JTAG debugger through the JTAG interface connector 3. The JTAG debugger is used to debug each module under test. Based on the above embodiments of the present disclosure, the JTAG debugger is further used to generate a signal characteristic waveform corresponding to the configuration information before debugging. In this way, the JTAG debugger selects the downlink channel, and then selects the module under test to be debugged. The JTAG debugger is a hardware device used to test, program, simulate and debug electronic equipment.
[0061] In addition to the above embodiments, the configuration information may also be written into the gating control circuit 13 in other ways. Figure 4 is a schematic diagram of another structure of a switching circuit for test diagnosis according to an exemplary embodiment. Figure 4 As shown in FIG. 1 , in addition to having all the structures and functions of the above-mentioned embodiments, the switching circuit 1 for test diagnosis can further include a serial interface circuit 14. The serial interface circuit 14 is used to receive configuration information through a serial signal line and write the configuration information into the gating control circuit 13. In the exemplary embodiment, the serial signal can be based on I 2 C (Inter-Integrated Circuit, internal integrated circuit bus) serial bus standard serial signal, the serial interface circuit 14 can be I 2 C slave interface (I 2 C Slaver).
[0062] In the exemplary embodiment, the serial signal line is connected to the baseboard management controller (Baseboard Management Controller, BMC) 4. In the exemplary embodiment, the serial signal line can be connected to the SM bus (System Management Bus) interface of the baseboard management controller 4, and the baseboard management controller 4 sends configuration information to the gating control circuit 13 through the SM bus interface. Figure 4 As shown, the SM bus interface includes a clock signal SM_BUS_SCK and a data signal SM_BUS_DATA. The baseboard management controller 4 can send configuration information to the serial interface circuit 14 in the form of signal characteristic waveforms of the clock signal SM_BUS_SCK and the data signal SM_BUS_DATA, and the serial interface circuit 14 writes the configuration information into the register group of the strobe control circuit 13. Among them, the baseboard management controller 4 is a microcontroller or chipset specially designed for remote monitoring and management of server hardware. The baseboard management controller 4 is usually embedded in the motherboard of the server and provides an out-of-band (OOB) remote management function, allowing the administrator to remotely monitor and manage the system when the server operating system is shut down or unresponsive. The SM bus interface is a standard interface for the BMC to communicate with other hardware devices in the system. SM bus is a serial communication protocol used to connect BMC and other hardware devices in a computer system, such as sensors, fans, power supplies, etc. SM bus provides a simple and reliable way for BMC to monitor and control the status and behavior of these hardware devices. Through the SM bus interface, BMC can obtain sensor data such as temperature, voltage and fan speed. SMbus can also send commands to hardware devices, such as controlling fan speed or turning off power, which enables BMC to monitor the health of the system in real time and take necessary measures to protect the system.
[0063] and Figure 2 Compared with the embodiment shown, Figure 4 The switching circuit embodiment for test diagnosis adds a configuration information acquisition method and is compatible with more configuration devices.
[0064] In an illustrative embodiment, the module under test is an OAM processor. The OAM processor may be any one of a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a TPU (Tensor Processing Unit), a NPU (Neural Network Processing Unit), a DPU (Deep Learning Processing Unit), an APU (Accelerated Processing Unit), and a GPGPU (General-Purpose computing on Graphics Processing Unit) in an OAM module.
[0065] The switching circuit for test diagnosis of the embodiment of the present disclosure uses a gating control circuit and a gating switching circuit to control the conduction between the JTAG interface circuit and different modules under test, so that only one JTAG interface connector is needed to implement the debugging work of at least two modules under test, and compared with setting a corresponding JTAG interface connector for each module under test, the occupied area of the JTAG interface connector is saved. Since the problems (issues) generated by the modules under test are usually random, no matter which one or several modules under test have problems, when the switching circuit for test diagnosis of the embodiment of the present disclosure is adopted, it is convenient to switch between different modules under test, and the JTAG debugger only needs to connect one JTAG interface connector. Compared with setting a corresponding JTAG interface connector for each module under test, the JTAG debugger does not need to be plugged in and out between the various JTAG interface connectors, eliminating multiple interface plugging and unplugging operations, which helps to improve the debugging efficiency and reduces the risk of operational errors that may be caused by plugging and unplugging actions, for example, it can avoid plugging the wrong JTAG interface connector. Using configuration information to conduct the uplink channel and select the downlink channel is conducive to the operation of the automated test program and the automated testing of the module under test, and reduces the intervention of manual plug-in and unplug operations between different JTAG interface connectors in the automated testing. In the case where the module under test is an OAM processor, the embodiment of the present disclosure helps to save the area occupied by the JTAG interface connector for OAM processor testing on the UBB, helps to switch between different OAM processors conveniently and quickly, helps to improve the debugging efficiency of the OAM processor, and helps to reduce the risk of operational errors.
[0066] The embodiment of the present disclosure also provides a logic device, which includes a switching circuit for test diagnosis as in any of the embodiments described above. In an illustrative embodiment, the logic device can be any one of a CPLD (Complex Programmable Logic Device), an FPGA (Field-Programmable Gate Array), and an EPLD (Erasable Programmable Logic Device). When the embodiment of the present disclosure is applied to a UBB, the switching circuit for test diagnosis of the embodiment of the present disclosure can be implemented using the CPLD already existing on the UBB, so no additional cost is added.
[0067] Figure 5 is a schematic diagram showing the structure of a circuit board card according to an exemplary embodiment, such as Figure 5 As shown, the circuit board card 100 includes a module under test and the above description about Figure 2 In the switching circuit 1 for test diagnosis of the related embodiment, the number of tested modules is equal to the number of downstream channels. In the exemplary embodiment, the circuit board card 100 also includes a JTAG interface connector 3 for connecting a JTAG debugger, and the JTAG interface connector 3 is connected to the JTAG interface circuit 11 in the switching circuit 1 for test diagnosis.
[0068] Figure 6 is a schematic diagram of the structure of another circuit board card according to an exemplary embodiment. Figure 6 As shown, the circuit board card 100 includes a module under test and the above description about Figure 4 In the switching circuit 1 for test diagnosis of the related embodiment, the number of tested modules is equal to the number of downstream channels. In the exemplary embodiment, the circuit board card 100 also includes a JTAG interface connector 3 for connecting a JTAG debugger, and the JTAG interface connector 3 is connected to the JTAG interface circuit 11 in the switching circuit 1 for test diagnosis.
[0069] In an exemplary embodiment, Figure 5 The circuit board card 100 and Figure 6 The circuit board card 100 of the illustrated embodiment is a UBB.
[0070] The embodiment of the present disclosure also provides a server, which includes at least one circuit board card of each of the above embodiments. In an exemplary embodiment, the server may be an OAM server.
[0071] Figure 7is a schematic diagram of a test and diagnosis system according to an exemplary embodiment. Figure 7 As shown, the test diagnosis system 200 includes the above description about Figure 2 The switching circuit 1 and the JTAG debugger 5 for test diagnosis of the related embodiment, wherein the JTAG debugger 5 is connected to the JTAG interface circuit 11 through the JTAG interface connector 3 .
[0072] like Figure 7 As shown, in the exemplary embodiment, based on the JTAG standard, the signals of the JTAG debugger 5 include a clock signal TCK_box, a state signal TMS_box, an input signal TDI_box and an output signal TDO_box.
[0073] In an exemplary embodiment, Figure 7 As shown, when the signal characteristic waveforms of the clock signal TCK_box and the output signal TDO_box sent by the JTAG debugger 5 are the signal characteristic waveforms of the configuration information, the signal characteristic waveforms of the clock signal TCK_header and the output signal TDO_header received by the JTAG test access port 111 are the signal characteristic waveforms of the configuration information, and the JTAG interface circuit 11 writes the configuration information into the gating control circuit 13 through the command port 112. The gating control circuit 13 generates a level signal for the gating switching circuit 12 according to the written configuration information. The gating switching circuit 12 conducts the uplink channel and the downlink channel specified by the configuration information under the control of the level signal generated by the gating control circuit 13. After that, the JTAG debugger 5 can be used to debug the module under test connected to the downlink channel (i.e., the selected downlink channel) specified by the configuration information.
[0074] Take the fourth downlink channel as an example, the downlink channel specified by the configuration information (ie, the selected downlink channel) is Figure 7As shown, when the signal characteristic waveforms of the clock signal TCK_box and the output signal TDO_box sent by the JTAG debugger 5 are the signal characteristic waveforms of the configuration information of the fourth downstream channel, the signal characteristic waveforms of the clock signal TCK_header and the output signal TDO_header received by the JTAG test access port 111 are the signal characteristic waveforms of the configuration information of the fourth downstream channel, and the JTAG interface circuit 11 writes the configuration information of the fourth downstream channel into the enable control circuit 13 through the command port 112. Under the control of the level signal generated by the enable control circuit 13, the enable switching circuit 12 turns on the upstream channel and the fourth downstream channel. At this time, the links of clock signal TCK_box, clock signal TCK_header, clock signal TCK_SW and clock signal TCK3 are connected, and clock signal TCK_box is clock signal TCK3; the links of state signal TMS_box, state signal TMS_header, state signal TMS_SW and state signal TMS3 are connected, and state signal TMS_box is state signal TMS3; the links of input signal TDI_box, input signal TDI_header, input signal TDI_SW and input signal TDI3 are connected, and input signal TDI_box is input signal TDI3; the links of output signal TDO_box, output signal TDO_header, output signal TDO_SW and output signal TDO3 are connected, and output signal TDO_box is output signal TDO3. After that, the fourth module under test 24 can be debugged using JTAG debugger 5.
[0075] Figure 8 is a schematic diagram of the structure of another test and diagnosis system according to an exemplary embodiment. Figure 8 As shown, the test diagnosis system 200 includes the above description about Figure 4 The switching circuit 1 for test diagnosis, the baseboard management controller 4 and the JTAG debugger 5 of the related embodiment, wherein the JTAG debugger 5 is connected to the JTAG interface circuit 11 through the JTAG interface connector 3 .
[0076] It should be noted that Figure 2 , Figure 4 , Figure 5 , Figure 6 , Figure 7 and Figure 8For illustrative purposes only, the number of modules under test may not be limited to 8 in the embodiment of the present disclosure, and may be less than 8 or more than 8. In actual applications, the number of modules under test is set according to different application scenarios, and the number of registers in the register group and the signal characteristic waveform reflecting the configuration information can be set accordingly according to different application scenarios. These settings should all be included in the scope of protection of the present disclosure.
[0077] It should be noted that, in the embodiments of the present disclosure, Figure 2 , Figure 4 , Figure 5 , Figure 6 , Figure 7 and Figure 8 As shown, the directions of all input signals refer to the direction from the module under test to the JTAG interface connector (or JTAG debugger), and the directions of all output signals refer to the direction from the JTAG interface connector (or JTAG debugger) to the module under test.
[0078] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0079] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A switching circuit for test diagnosis, characterized in that: include: JTAG interface circuit; A gating switching circuit, wherein the gating switching circuit has an uplink channel and at least two downlink channels, wherein the uplink channel is connected to the JTAG interface circuit, the at least two downlink channels are respectively connected to different modules under test, and the uplink channel and the at least two downlink channels are selectively connected; A gating control circuit, the gating control circuit is used to generate a level signal for the gating switching circuit according to the configuration information written externally, the level signal is used to determine the selected downlink channel currently connected to the uplink channel among the at least two downlink channels; Wherein, the JTAG interface circuit includes a JTAG test access port and a command port, the JTAG interface circuit obtains the configuration information according to the signal characteristic waveform received by the JTAG test access port, and writes the configuration information into the gating control circuit through the command port, wherein the signal characteristic waveform of the configuration information includes a level change characteristic waveform of an output signal in a data packet received by the JTAG interface circuit within a specific period of a clock signal; Wherein, the gating switching circuit, under the control of the level signal generated by the gating control circuit, switches on the uplink channel and the downlink channel specified by the configuration information.
2. The switching circuit for test diagnosis according to claim 1, characterized in that: The gating control circuit includes a register group, the configuration information includes register values in the register group, and the level state of the level signal is determined by the register value.
3. The switching circuit for test diagnosis according to claim 1, characterized in that: The JTAG interface circuit is connected to a JTAG debugger via a JTAG interface connector.
4. The switching circuit for test diagnosis according to claim 1, characterized in that: The switching circuit for test diagnosis also includes: A serial interface circuit is used to receive the configuration information through a serial signal line and write the configuration information into the gating control circuit.
5. The switching circuit for test diagnosis according to claim 4, characterized in that: The serial signal line is connected to a baseboard management controller.
6. A logic device, characterized in that: include: A switching circuit for test diagnosis as claimed in any one of claims 1 to 5.
7. A circuit board card, characterized in that: include: A tested module and a switching circuit for test diagnosis according to any one of claims 1 to 5, wherein the number of the tested modules is equal to the number of the downlink channels.
8. A server, characterized in that: include: At least one circuit board card as claimed in claim 7.
9. A test and diagnosis system, characterized in that: include: A switching circuit for test diagnosis as claimed in any one of claims 1 to 5; as well as A JTAG debugger is connected to the JTAG interface circuit via a JTAG interface connector.
Citation Information
Patent Citations
JTAG switching interface, single board, JTAG interface conversion board and single board testing system
CN101581759A
Communication equipment and communication test method
CN102142911A
Device for testing chips
CN108646172A
Composite testing device and equipment interface testing method and system
CN113254285A
JTAG (Joint Test Action Group) connection system supporting multiple types of devices and server
CN113742275A
