System-on-chip access method and device, equipment and medium

Through the high-speed serial computer expansion bus standard to the joint test working group interface controller, the data packets are parsed and managed to achieve access to the on-chip system, which solves the problems of limited resource access and JTAG pin dependence in the existing technology, and improves the efficiency Reliability of chip debugging.

CN118656323APending Publication Date: 2024-09-17SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410865397.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing system-on-chip debugging methods rely on external tools, resulting in limited access to resources, complicated debugging, and the inability to access chip internal data through JTAG pins after productization, which limits the use of external debugging tools.

Method used

Use the high-speed serial computer expansion bus standard to convert the joint test working group interface controller, connect the high-speed serial computer expansion bus standard controller and the on-chip network through the advanced scalable interface bus, parse the transaction layer data packets, and construct and manage the joint testing working group Data package to achieve access to the system on chip.

Benefits of technology

It increases the reliability of chip debugging and positioning, avoids dependence on the external joint test working group interface, and solves the limitation of traditional debugging tools relying on JTAG pins.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656323A
    Figure CN118656323A
Patent Text Reader

Abstract

The invention discloses a system-on-chip access method, device and equipment and a medium, and relates to the technical field of chip access. According to the scheme, the high-speed serial computer expansion bus standard-to-joint test working group interface controller is adopted as an access basis of the system on chip, so that the high-speed serial computer expansion bus standard is merged into the debugging tracking network of the system on chip, and the problem that the data access mode of an external joint test working group interface is single is solved; and the chip debugging and positioning reliability is improved. On the other hand, access to the system-on-chip is realized based on the transaction layer data packet sent by the host, so that an external joint test work group interface is not used any more; therefore, the method is not influenced by the pins which do not retain the debugging purpose after the product is packaged any more, and the problem that a traditional debugging tool depends on a joint test working group to debug the pins and has limitation is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip access technology, and in particular to a method, device, equipment and medium for accessing a system on a chip. Background Art

[0002] As the integration and design difficulty of System On Chip (SOC) chips increase, it is necessary to use an external analyzer to observe the data and instruction flow in the chip during the debugging process. Therefore, a trace and debug (TND) system is integrated into the SOC chip to solve the problem of real-time detection of chip status at the expense of chip area. Among them, most SOC chips provide a separate set of Joint Test Action Group (JTAG) ports for debugging functions.

[0003] However, the current typical on-chip system debug trace (Coresight) network JTAG path relies on external analysis tools to access on-chip system data, resulting in limited access to on-chip resources. Debuggers need to strictly follow JTAG timing and be familiar with the Coresight component register configuration, which increases the risk and complexity of system debugging. Secondly, after the chip is commercialized, the debug pins are usually removed to save costs and ensure safety. This makes it impossible to access the internal data of the chip through the JTAG pins after commercialization, which increases the difficulty of system problem analysis and limits the use of external debugging tools.

[0004] In view of the above problems, how to solve the problem that the current external interface access method for accessing the on-chip system is single and the external interface tools have limitations is an issue that needs to be urgently resolved by those skilled in the art. Summary of the invention

[0005] The purpose of the present invention is to provide a method, device, equipment and medium for accessing a system on a chip to solve the problem that the current external interface access method for accessing the system on a chip is single and the external interface tools have limitations.

[0006] In order to solve the above technical problems, the present invention provides a system on chip access method, which is applied to a high-speed serial computer expansion bus standard to joint test working group interface controller set in the system on chip; the high-speed serial computer expansion bus standard to joint test working group interface controller connects the high-speed serial computer expansion bus standard controller and the on-chip network through an advanced extensible interface bus, and connects the system on chip debugging and tracing network through the joint test working group interface bus; the method comprises:

[0007] Receiving a transaction layer data packet sent by the high-speed serial computer expansion bus standard controller;

[0008] Parsing the transaction layer data packet to determine the type of the transaction layer data packet;

[0009] When the transaction layer data packet is a non-message data packet, sending the non-message data packet to the on-chip network;

[0010] When the transaction layer data packet is a message data packet, constructing a joint test working group data packet according to the message data packet, and performing access management on the joint test working group data packet;

[0011] The access-managed joint test workgroup data packet is sent to the on-chip system debugging and tracing network to access the on-chip system.

[0012] On the one hand, the receiving of a transaction layer data packet sent by the high-speed serial computer expansion bus standard controller comprises:

[0013] Receiving the transaction layer data packet through the advanced extensible interface of the receiving direction of the debugging packet filtering module;

[0014] Correspondingly, parsing the transaction layer data packet to determine the type of the transaction layer data packet includes:

[0015] Parsing the target field of the header information in the transaction layer data packet by the debugging packet filtering module;

[0016] The type of the transaction layer data packet is determined according to the target field.

[0017] On the other hand, when the transaction layer data packet is a non-message data packet, sending the non-message data packet to the on-chip network includes:

[0018] Sending the non-message data packet to the advanced extensible interface forwarding module through the advanced extensible interface of the receiving direction of the debugging packet filtering module;

[0019] The non-message data packet is sent to the on-chip network through the master interface of the advanced extensible interface bus in the receiving direction of the advanced extensible interface forwarding module.

[0020] On the other hand, when the transaction layer data packet is a message data packet, constructing a joint test working group data packet according to the message data packet, and performing access management on the joint test working group data packet, including:

[0021] Sending the message data packet to the joint test working group bus controller through the advanced extensible interface of the receiving direction of the debugging packet filtering module;

[0022] Determine the specific type of the message data packet by the joint test working group bus controller;

[0023] When the type of the message data packet is a non-debugging message data packet, sending the non-debugging message data packet to the advanced extensible interface forwarding module through the master interface of the advanced extensible interface bus in the receiving direction of the joint test working group bus controller;

[0024] Sending the non-debugging message data packet to the on-chip network through the master interface of the advanced extensible interface bus in the receiving direction of the advanced extensible interface forwarding module;

[0025] When the type of the message data packet is a debugging message data packet, parsing the address, data and operation type in the debugging message data packet;

[0026] configuring a control access component of the system-on-chip debug tracing network according to the operation type;

[0027] Constructing the joint test working group data packet according to the debugging message data packet;

[0028] According to the joint test workgroup access timing, the joint test workgroup data packet is sent to the joint test workgroup selection module through the joint test workgroup interface of the receiving direction of the joint test workgroup bus controller.

[0029] On the other hand, sending the access-managed joint test workgroup data packet to the on-chip system debugging and tracing network includes:

[0030] Selecting a receiving source of the joint test working group data packet through the joint test working group selection module;

[0031] When the joint test workgroup selection module confirms that the receiving source is an off-chip joint test workgroup interface, sending the joint test workgroup data packet received through the off-chip joint test workgroup interface to the on-chip system debugging and tracing network;

[0032] When the joint test workgroup selection module confirms that the receiving source is the joint test workgroup bus controller, the joint test workgroup selection module sends the access-managed joint test workgroup data packet to the on-chip system debugging and tracing network.

[0033] On the other hand, configuring the control access component of the on-chip system debug tracing network according to the operation type includes:

[0034] When the operation type is a write operation, configuring the advanced extensible interface data channel component or the advanced peripheral bus data channel component to a write mode, and controlling the corresponding component to issue a write operation;

[0035] When the operation type is a read operation, the advanced extensible interface data channel component or the advanced peripheral bus data channel component is configured to a read mode, and the corresponding component is controlled to issue a read operation.

[0036] On the other hand, after the control corresponding component issues a read operation, the method further includes:

[0037] receiving feedback data corresponding to the read operation sent by the on-chip network through a slave interface of the advanced extensible interface bus in the sending direction of the advanced extensible interface forwarding module;

[0038] Sending the feedback data to the debugging packet filtering module through the main interface of the advanced extensible interface bus in the sending direction of the advanced extensible interface forwarding module;

[0039] Generate a transaction layer feedback data packet according to the feedback data;

[0040] The transaction layer feedback data packet is sent to the high-speed serial computer expansion bus standard controller through the main interface of the advanced extensible interface bus in the sending direction of the debugging packet filtering module.

[0041] In order to solve the above technical problems, the present invention also provides a system-on-chip access device, which is applied to a high-speed serial computer expansion bus standard to joint test working group interface controller set in the system-on-chip; the high-speed serial computer expansion bus standard to joint test working group interface controller connects the high-speed serial computer expansion bus standard controller and the on-chip network through an advanced extensible interface bus, and connects the system-on-chip debugging and tracing network through the joint test working group interface bus; the device comprises:

[0042] A receiving module, used for receiving a transaction layer data packet sent by the high-speed serial computer expansion bus standard controller;

[0043] A parsing module, used for parsing the transaction layer data packet to determine the type of the transaction layer data packet;

[0044] A first sending module, configured to send the non-message data packet to the on-chip network when the transaction layer data packet is a non-message data packet;

[0045] A second sending module is used for constructing a joint test working group data packet according to the message data packet when the transaction layer data packet is a message data packet, and performing access management on the joint test working group data packet;

[0046] The third sending module is used to send the access-managed joint test workgroup data packet to the on-chip system debugging and tracing network to access the on-chip system.

[0047] In order to solve the above technical problems, the present invention further provides a system-on-chip access device, comprising:

[0048] Memory for storing computer programs;

[0049] The processor is used to implement the steps of the above-mentioned on-chip system access method when executing the computer program.

[0050] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned on-chip system access method are implemented.

[0051] The system-on-chip access method provided by the present invention is applied to a high-speed serial computer expansion bus standard to a joint test working group interface controller set in the system-on-chip; the high-speed serial computer expansion bus standard to the joint test working group interface controller connects the high-speed serial computer expansion bus standard controller and the on-chip network through an advanced extensible interface bus, and connects the on-chip system debugging and tracing network through the joint test working group interface bus; specifically receives a transaction layer data packet sent by the high-speed serial computer expansion bus standard controller; parses the transaction layer data packet to determine the type of the transaction layer data packet; when the transaction layer data packet is a non-message data packet, sends the non-message data packet to the on-chip network; when the transaction layer data packet is a message data packet, constructs a joint test working group data packet according to the message data packet, and performs access management on the joint test working group data packet; sends the access-managed joint test working group data packet to the on-chip system debugging and tracing network to access the system-on-chip. The beneficial effect of the present invention is that the high-speed serial computer expansion bus standard to the joint test working group interface controller is used as the access basis of the system-on-chip, thereby incorporating the high-speed serial computer expansion bus standard into the on-chip system debugging and tracing network, solving the problem of a single external joint test working group interface data access method, and increasing the reliability of chip debugging and positioning. On the other hand, this solution implements access to the on-chip system based on transaction layer data packets sent by the host, thereby no longer using an external joint test working group interface; therefore, it is no longer affected by pins that are not retained for debugging purposes after product packaging, solving the problem of limitations of traditional debugging tools that rely on joint test working group debugging pins.

[0052] In the specific implementation, the reception of transaction layer data packets and the determination of the types of transaction layer data packets are realized through the debug packet filtering module, so as to facilitate the subsequent corresponding processing of isolated message data packets and non-message data packets. The non-message data packets are forwarded to the on-chip network through the advanced extensible interface forwarding module, so that the on-chip network can process the non-message data packets. The type of message data packet is specifically judged through the joint test working group bus controller, and corresponding processing methods are adopted for different types of message data packets, so as to better realize the access to the on-chip system. According to the operation type of the debug data packet, the configuration of the advanced extensible interface data channel component or the advanced peripheral bus data channel component is set, and the corresponding component is controlled to issue the operation, thereby realizing the configuration of the control access component of the Coresight network under different operation types.

[0053] In addition, the present invention also provides a system-on-chip access device, equipment and medium, with the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0055] Figure 1 A schematic diagram of a system on chip provided by an embodiment of the present invention;

[0056] Figure 2 A flowchart of a method for accessing a system on a chip provided by an embodiment of the present invention;

[0057] Figure 3 A schematic diagram of a PCIE to JTAG Controller provided by an embodiment of the present invention;

[0058] Figure 4 A schematic diagram of a system-on-chip access device provided by an embodiment of the present invention;

[0059] Figure 5 A schematic diagram of a system-on-chip access device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] The core of the present invention is to provide a method, device, equipment and medium for accessing a system on a chip to solve the problem that the current external interface access method for accessing the system on a chip is single and the external interface tools have limitations.

[0062] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0063] At present, the typical Coresight network JTAG path relies on external analysis tools to access on-chip system data, resulting in limited access to on-chip resources. Debuggers need to strictly follow the JTAG timing operation and be familiar with the Coresight component register configuration, which increases the risk and complexity of system debugging. Secondly, after the chip is commercialized, in order to save costs and ensure safety, the debugging pins are usually removed. This makes it impossible to access the internal data of the chip through the JTAG pins after commercialization, increases the difficulty of system problem analysis, and limits the use of external debugging tools. In order to solve the above problems, the present invention provides a method for accessing a system on a chip.

[0064] It should be noted that the method provided by the present invention is applied to a high-speed serial computer expansion bus standard to joint test group interface controller (PCIE to JTAG Controller) arranged in a system on chip. Figure 1 Schematic diagram of a system on chip provided by an embodiment of the present invention. Figure 1 As shown in the figure, in the system on chip, the high-speed serial computer expansion bus standard to joint test working group interface controller connects the high-speed serial computer expansion bus standard controller (PCIE Controller) and the network on chip (Network On Chip, NOC) through the Advanced eXtensible Interface (AXI) bus, and connects to the Coresight network through the JTAG interface bus. On this basis, there is also a local configuration register connected to the PCIE to JTAG Controller, the PCIE Controller is connected to the general input and output port (PHY) through the high-speed serial computer expansion bus standard physical layer (Physical Interface for PCI Express, PIPE) interface, and the Coresight network is connected to the NOC through the Advanced Peripheral Bus (APB).

[0065] Figure 2 A flowchart of a method for accessing a system on a chip provided by an embodiment of the present invention. Figure 2As shown, the method includes:

[0066] S10: Receive a transaction layer data packet sent by a high-speed serial computer expansion bus standard controller.

[0067] First, receive the transaction layer packet (Transaction Layer Packet, TLP) sent by the PCIE Controller. It should be noted that the TLP packet sent by the PCIE Controller is actually sent by the host to the PCIE Controller, and then sent by the PCIE Controller. The TLP packet is the data packet for accessing the on-chip system.

[0068] S11: Parse the transaction layer data packet to determine the type of the transaction layer data packet.

[0069] Further, the transaction layer data packet is parsed to determine the specific type of the transaction layer data packet. It is understandable that the types of transaction layer data packets include message data packets and non-message data packets. It is necessary to determine the specific type of the transaction layer data packet and then adopt the corresponding data packet processing method. In this embodiment, there is no limitation on the specific method for determining the type of the transaction layer data packet, which depends on the specific implementation situation.

[0070] S12: When the transaction layer data packet is a non-message data packet, the non-message data packet is sent to the on-chip network.

[0071] S13: When the transaction layer data packet is a message data packet, a joint test working group data packet is constructed according to the message data packet, and access management is performed on the joint test working group data packet.

[0072] S14: Send the access-managed joint test workgroup data packet to the on-chip system debugging and tracing network to access the on-chip system.

[0073] Furthermore, when it is determined that the transaction layer data packet is a non-message data packet, the non-message data packet is directly sent to the NOC. When the transaction layer data packet is a message data packet, a JTAG data packet is constructed according to the message data packet, and access management is performed on the JTAG data packet. It should be noted that the specific process of JTAG data packet access management is not limited in this embodiment, and it depends on the specific implementation situation. Finally, the JTAG data packet after access management is sent to the Coresight network to access the system on chip.

[0074] It should be noted that the above steps are all completed by specific module units in the PCIE to JTAG Controller. In this embodiment, there is no restriction on the specific type of the module unit in the PCIE to JTAG Controller, which depends on the specific implementation situation.

[0075] In this embodiment, a high-speed serial computer expansion bus standard to a joint test working group interface controller is used as the access basis for the system on chip, thereby incorporating the high-speed serial computer expansion bus standard into the system on chip debugging and tracing network, solving the problem of a single data access method for the external joint test working group interface, and increasing the reliability of chip debugging and positioning. On the other hand, this solution implements access to the system on chip based on the transaction layer data packet sent by the host, thereby no longer using the external joint test working group interface; therefore, it is no longer affected by the pins that are not retained for debugging purposes after the product is packaged, solving the problem of the limitations of traditional debugging tools that rely on the joint test working group debugging pins.

[0076] Figure 3 A schematic diagram of a PCIE to JTAG Controller provided by an embodiment of the present invention. Based on the above embodiments, in some embodiments, such as Figure 3 As shown, receiving a transaction layer data packet sent by a high-speed serial computer expansion bus standard controller includes:

[0077] S101: receiving a transaction layer data packet through a high-level extensible interface of a receiving direction of a debugging packet filtering module.

[0078] Specifically, the transaction layer data packet is received through the AXI interface of the receiving direction of the debugging packet filtering module (MSG SEL).

[0079] It should be noted that MSG SEL has a receiving direction and a sending direction. The main function of the receiving direction is to receive the TLP packet sent from the PCIE Controller, while the main function of the sending direction is to receive the data from the NOC and process it and send it to the downstream logic unit.

[0080] Correspondingly, the transaction layer data packet is parsed to determine the type of the transaction layer data packet, including:

[0081] S111: parsing the target field of the header information in the transaction layer data packet through the debugging packet filtering module.

[0082] S112: Determine the type of the transaction layer data packet according to the target field.

[0083] In a specific implementation, after receiving the TLP packet sent by the PCIE Controller, the MSG SEL parses the target field of the header information in the TLP packet, and then determines and isolates the type of the transaction layer data packet according to the target field, specifically determining whether it is a message data packet or a non-message data packet.

[0084] In this embodiment, the reception of transaction layer data packets and the determination of the types of transaction layer data packets are implemented through the debugging packet filtering module, so as to facilitate the subsequent corresponding processing of the isolated message data packets and non-message data packets.

[0085] Based on the above embodiments, in some embodiments, such as Figure 3 As shown, when the transaction layer data packet is a non-message data packet, the non-message data packet is sent to the on-chip network, including:

[0086] S121: Sending a non-message data packet to an advanced extensible interface forwarding module through an advanced extensible interface of a receiving direction of the debugging packet filtering module;

[0087] S122: Sending a non-message data packet to the on-chip network through the master interface of the AE bus in the receiving direction of the AE forwarding module.

[0088] In a specific implementation, when it is determined that the transaction layer data packet is a non-message data packet, the non-message data packet is sent to an advanced extensible interface forwarding module (AXI 2to1) through an AXI interface in a receiving direction of the MSG SEL.

[0089] It should be noted that AXI 2to1 has a receiving direction and a sending direction. The main function of the receiving direction is to collect TLP packets from MSG SEL, specifically, to receive TLP packets from MSGSEL through a slave interface (Slave) of the AXI bus in the receiving direction; the main function of the sending direction is to forward the TLP packets sent by NOC to MSG SEL. In this embodiment, AXI2to1 plays a forwarding role. Specifically, after receiving the non-message data packet sent by MSG SEL, the master interface (Master) of the AXI bus in the receiving direction of AXI 2to1 sends the non-message data packet to NOC, so that NOC can process the non-message data packet.

[0090] In this embodiment, the non-message data packet is forwarded to the on-chip network through the advanced extensible interface forwarding module, so that the on-chip network can process the non-message data packet.

[0091] Based on the above embodiments, in some embodiments, such as Figure 3As shown, when the transaction layer data packet is a message data packet, a joint test working group data packet is constructed according to the message data packet, and access management is performed on the joint test working group data packet, including:

[0092] S131: Sending a message data packet to the joint test working group bus controller through the advanced extensible interface of the receiving direction of the debugging packet filtering module.

[0093] S132: Determine the specific type of the message data packet through the joint test working group bus controller.

[0094] S133: When the type of the message data packet is a non-debugging message data packet, the non-debugging message data packet is sent to the advanced extensible interface forwarding module through the master interface of the advanced extensible interface bus in the receiving direction of the joint test working group bus controller.

[0095] S134: Sending a non-debugging message data packet to the on-chip network through the master interface of the AE bus in the receiving direction of the AE forwarding module.

[0096] S135: When the type of the message data packet is a debugging message data packet, parsing the address, data and operation type in the debugging message data packet.

[0097] S136: Configure the control access component of the on-chip system debugging and tracing network according to the operation type.

[0098] S137: Construct a joint test workgroup data packet according to the debugging message data packet.

[0099] S138: Sending a joint test workgroup data packet to the joint test workgroup selection module through the joint test workgroup interface of the receiving direction of the joint test workgroup bus controller according to the joint test workgroup access timing.

[0100] In a specific implementation, when the transaction layer data packet is a message data packet, the message data packet is specifically sent to a joint test team bus controller (JTAG bus controller) through an AXI port in a receiving direction of MSG SEL.

[0101] It should be noted that the JTAG bus controller has a receiving direction and a sending direction. The main function of the receiving direction is to parse the debug message data packet and convert it into JTAG timing to transmit it to the Coresight network for access to the on-chip system; the main function of the sending direction is to read back the data to form a debug message data packet operation and send it to MSG SEL through the AXI master interface.

[0102] In this embodiment, the JTAG bus controller receives the message data packet through the slave interface of the AXI bus in the receiving direction, and further determines the specific type of the message data packet. It can be understood that the types of message data packets include non-debug message data packets (non-Debug Message data packets) and debug message data packets (Debug Message data packets).

[0103] When the type of the message data packet is a non-Debug Message data packet, the non-Debug Message data packet is sent to AXI 2to1 through the master interface of the AXI bus in the receiving direction of the JTAG bus controller, so that the non-Debug Message data packet is sent to the NOC through the master interface of the AXI bus in the receiving direction of the AXI 2to1 for processing by the NOC.

[0104] When the type of the message data packet is a Debug Message data packet, the JTAG bus controller parses the address, data and operation type in the Debug Message data packet, and further configures the control access component of the Coresight network according to the operation type. In this embodiment, there is no restriction on the specific configuration process, which depends on the specific implementation situation. Further, the JTAG bus controller constructs a JTAG data packet according to the Debug Message data packet.

[0105] Finally, according to the JTAG access timing, the JTAG data packet is sent to the joint test workgroup selection module (JTAG MUX) through the JTAG interface in the receiving direction of the JTAG bus controller, so that the JTAG MUX can select the JTAG data path.

[0106] In this embodiment, the type of the message data packet is specifically determined by the joint test working group bus controller, and corresponding processing methods are adopted for different types of message data packets, so as to better implement the access to the on-chip system.

[0107] Based on the above embodiments, in some embodiments, such as Figure 3 As shown, the access-managed joint test workgroup data packet is sent to the on-chip system debug trace network, including:

[0108] S141: Selecting a receiving source of a joint test working group data packet through a joint test working group selection module.

[0109] S142: When the joint test workgroup selection module confirms that the receiving source is the off-chip joint test workgroup interface, the joint test workgroup data packet received through the off-chip joint test workgroup interface is sent to the on-chip system debugging and tracing network.

[0110] S143: When the joint test workgroup selection module confirms that the receiving source is the joint test workgroup bus controller, the joint test workgroup selection module sends the access-managed joint test workgroup data packet to the on-chip system debugging and tracing network.

[0111] In the specific implementation, the receiving source of the JTAG data packet is selected through the JTAG MUX. It should be noted that the main function of the JTAG MUX is to select an external JTAG data path or an internal JTAG data path to connect to the Coresight network, and send the JTAG data packet received by the off-chip JTAG port or the JTAG data packet received from the JTAG bus controller to the JTAG port of the Coresight network according to the configuration selection.

[0112] Therefore, in this embodiment, when JTAG MUX confirms that the receiving source is the off-chip JTAG interface, the JTAG data packet received through the off-chip JTAG interface is sent to the Coresight network; when JTAG MUX confirms that the receiving source is the JTAG bus controller, the JTAG data packet after access management is sent to the Coresight network through JTAG MUX.

[0113] In addition, JTAG MUX can also transmit the readback data transmitted by the Coresight network back to the JTAG bus controller, and transmit the readback data to MSG SEL through the master interface of the AXI bus in the sending direction of the JTAG bus controller, and transmit the readback data to the PCIE Controller through the master interface of the AXI bus in the sending direction of MSGSEL, and finally transmit it back to the host, so that the host can determine the access status of this on-chip system based on the readback data.

[0114] In this embodiment, the JTAG data path of the Coresight network is switched through the JTAG MUX; when it is confirmed that the receiving source of the JTAG data packet is the JTAG bus controller, the JTAG data packet received from the JTAG bus controller is sent to the JTAG port of the Coresight network, thereby not using the external JTAG port and avoiding the limitations brought by relying on the JTAG debugging pins.

[0115] Based on the above embodiments, in some embodiments, the control access component of the on-chip system debugging and tracing network is configured according to the operation type, including:

[0116] S151: When the operation type is a write operation, configure the advanced extensible interface data channel component or the advanced peripheral bus data channel component to a write mode, and control the corresponding component to issue a write operation.

[0117] S152: When the operation type is a read operation, configure the advanced extensible interface data channel component or the advanced peripheral bus data channel component to a read mode, and control the corresponding component to issue a read operation.

[0118] In a specific implementation, the operation type specifically includes a write operation and a read operation. Therefore, the control access component of the Coresight network is configured according to the operation type. Specifically, when the operation type of the debug data packet is a write operation, the Advanced eXtensible Interface Data Channel (AXI-DP) component or the Advanced Peripheral Bus Data Channel (APB-DP) component is configured to a write mode, and the corresponding component is controlled to issue a write operation.

[0119] When the operation type of the debug data packet is a read operation, the Advanced Extensible Interface Data Channel component (AXI-DP) or the Advanced Peripheral Bus Data Channel (APB-DP) component is configured to read mode, and the corresponding component is controlled to issue a read operation, thereby realizing the configuration of the control access component of the Coresight network under different operation types.

[0120] Correspondingly, after controlling the corresponding component to issue a read operation, the method further includes:

[0121] S153: receiving feedback data corresponding to the read operation sent by the on-chip network through the slave interface of the advanced extensible interface bus in the sending direction of the advanced extensible interface forwarding module.

[0122] S154: Send the feedback data to the debugging packet filtering module through the main interface of the advanced extensible interface bus in the sending direction of the advanced extensible interface forwarding module.

[0123] S155: Generate a transaction layer feedback data packet according to the feedback data.

[0124] S156: Sending a transaction layer feedback data packet to a high-speed serial computer expansion bus standard controller via a master interface of the advanced extensible interface bus in the sending direction of the debugging packet filtering module.

[0125] In a specific implementation, after the corresponding component is controlled to issue a read operation, feedback data corresponding to the read operation sent by the NOC can be further received through the slave interface of the AXI bus in the sending direction of AXI 2to1. The feedback data is sent to MSG SEL through the master interface of the AXI bus in the sending direction of AXI 2to1. MSG SEL generates a transaction layer feedback data packet based on the feedback data, and sends the transaction layer feedback data packet to PCIEController through the master interface of the AXI bus in the sending direction of MSG SEL, so as to be finally transmitted back to the host.

[0126] In the above embodiments, the system-on-chip access method is described in detail. The present invention also provides a corresponding embodiment of the system-on-chip access device.

[0127] Figure 4 A schematic diagram of a system-on-chip access device provided by an embodiment of the present invention. The device is applied to a high-speed serial computer expansion bus standard to joint test working group interface controller set in the system-on-chip; the high-speed serial computer expansion bus standard to joint test working group interface controller connects the high-speed serial computer expansion bus standard controller and the on-chip network through the advanced extensible interface bus, and connects the system-on-chip debugging and tracing network through the joint test working group interface bus; Figure 4 As shown, the device comprises:

[0128] The receiving module 10 is used to receive the transaction layer data packet sent by the high-speed serial computer expansion bus standard controller;

[0129] The parsing module 11 is used to parse the transaction layer data packet to determine the type of the transaction layer data packet;

[0130] A first sending module 12, configured to send the non-message data packet to the on-chip network when the transaction layer data packet is a non-message data packet;

[0131] The second sending module 13 is used to construct a joint test working group data packet according to the message data packet when the transaction layer data packet is a message data packet, and perform access management on the joint test working group data packet;

[0132] The third sending module 14 is used to send the access-managed joint test workgroup data packet to the on-chip system debugging and tracing network to access the on-chip system.

[0133] In some embodiments, the receiving module 10 includes:

[0134] A first receiving submodule, configured to receive a transaction layer data packet through an advanced extensible interface of a receiving direction of a debugging packet filtering module;

[0135] Correspondingly, the parsing module 11 includes:

[0136] The first parsing submodule is used to parse the target field of the header information in the transaction layer data packet through the debugging packet filtering module;

[0137] The first determination submodule is used to determine the type of the transaction layer data packet according to the target field.

[0138] In some embodiments, the first sending module 12 includes:

[0139] A first sending submodule, used for sending a non-message data packet to an advanced extensible interface forwarding module through an advanced extensible interface of a receiving direction of the debugging packet filtering module;

[0140] The second sending submodule is used to send the non-message data packet to the on-chip network through the main interface of the AE bus in the receiving direction of the AE forwarding module.

[0141] In some embodiments, the third sending module 14 includes:

[0142] A third sending submodule is used to send a message data packet to the joint test working group bus controller through the advanced extensible interface of the receiving direction of the debugging packet filtering module;

[0143] A second determination submodule is used to determine the specific type of the message data packet through the joint test working group bus controller;

[0144] The fourth sending submodule is used for sending the non-debugging message data packet to the advanced extensible interface forwarding module through the main interface of the advanced extensible interface bus in the receiving direction of the joint test working group bus controller when the type of the message data packet is a non-debugging message data packet;

[0145] A fifth sending submodule, configured to send a non-debugging message data packet to the on-chip network through a master interface of the advanced extensible interface bus in a receiving direction of the advanced extensible interface forwarding module;

[0146] A second parsing submodule, for parsing the address, data and operation type in the debug message data packet when the type of the message data packet is a debug message data packet;

[0147] A first configuration submodule, configured to configure a control access component of a system-on-chip debug tracing network according to an operation type;

[0148] The first construction submodule is used to construct a joint test workgroup data packet according to the debugging message data packet;

[0149] The sixth sending submodule is used to send the joint test working group data packet to the joint test working group selection module through the joint test working group interface of the receiving direction of the joint test working group bus controller according to the joint test working group access timing.

[0150] In some embodiments, the third sending module 14 includes:

[0151] A first selection submodule, used for selecting a receiving source of a joint test working group data packet through a joint test working group selection module;

[0152] a seventh sending submodule, configured to send the joint test working group data packet received through the off-chip joint test working group interface to the on-chip system debugging and tracing network when the joint test working group selection module confirms that the receiving source is the off-chip joint test working group interface;

[0153] The eighth sending submodule is used to send the access-managed joint test working group data packet to the on-chip system debugging and tracing network through the joint test working group selection module when the joint test working group selection module confirms that the receiving source is the joint test working group bus controller.

[0154] In some embodiments, the first configuration submodule includes:

[0155] The first component configuration submodule is used to configure the advanced extensible interface data channel component or the advanced peripheral bus data channel component to a write mode when the operation type is a write operation, and control the corresponding component to issue a write operation;

[0156] The second component configuration submodule is used to configure the advanced extensible interface data channel component or the advanced peripheral bus data channel component to a read mode when the operation type is a read operation, and control the corresponding component to issue a read operation.

[0157] In some embodiments, it also includes:

[0158] A second receiving submodule, configured to receive feedback data corresponding to the read operation sent by the on-chip network through a slave interface of the advanced extensible interface bus in the sending direction of the advanced extensible interface forwarding module;

[0159] A ninth sending submodule, configured to send feedback data to the debugging packet filtering module through a main interface of the advanced extensible interface bus in a sending direction of the advanced extensible interface forwarding module;

[0160] A first generating submodule, used to generate a transaction layer feedback data packet according to the feedback data;

[0161] The tenth sending submodule is used to send the transaction layer feedback data packet to the high-speed serial computer expansion bus standard controller through the main interface of the advanced extensible interface bus in the sending direction of the debugging packet filtering module.

[0162] In this embodiment, the system-on-chip access device includes a receiving module, a parsing module, a first sending module, a second sending module and a third sending module. The system-on-chip access device can implement all the steps of the above-mentioned system-on-chip access method when running. Specifically, a high-speed serial computer expansion bus standard to a joint test working group interface controller is used as the access basis of the system-on-chip, thereby incorporating the high-speed serial computer expansion bus standard into the system-on-chip debugging and tracing network, solving the problem of a single data access method of the external joint test working group interface, and increasing the reliability of chip debugging and positioning. On the other hand, this solution implements access to the system-on-chip based on the transaction layer data packet sent by the host, thereby no longer using the external joint test working group interface; therefore, it is no longer affected by the pins that are not retained for debugging purposes after the product is packaged, solving the problem of the limitations of traditional debugging tools relying on the debugging pins of the joint test working group.

[0163] In addition, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned on-chip system access method when executed by a processor.

[0164] Figure 5 A schematic diagram of a system-on-chip access device provided by an embodiment of the present invention. Figure 5 As shown, the on-chip system access device includes:

[0165] A memory 20, for storing computer programs;

[0166] The processor 21 is used to implement the steps of the on-chip system access method mentioned in the above embodiment when executing a computer program.

[0167] The system-on-chip access device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0168] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0169] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the on-chip system access method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to data involved in the on-chip system access method.

[0170] In some embodiments, the system-on-chip access device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0171] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the on-chip system access device, and may include more or less components than those shown in the figure.

[0172] In this embodiment, the system-on-chip access device includes a memory and a processor. The memory is used to store computer programs; the processor is used to implement the steps of the system-on-chip access method mentioned in the above embodiment when executing the computer program. Specifically, a high-speed serial computer expansion bus standard to a joint test working group interface controller is used as the access basis of the system-on-chip, thereby incorporating the high-speed serial computer expansion bus standard into the system-on-chip debugging and tracing network, solving the problem of a single data access method of the external joint test working group interface, and increasing the reliability of chip debugging and positioning. On the other hand, this solution implements access to the system-on-chip based on the transaction layer data packet sent by the host, thereby no longer using the external joint test working group interface; therefore, it is no longer affected by the pins that are not retained for debugging purposes after the product is packaged, solving the problem of the limitations of traditional debugging tools relying on the debugging pins of the joint test working group.

[0173] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0174] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.

[0175] In this embodiment, a computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, the steps described in the above method embodiment are implemented. Specifically, a high-speed serial computer expansion bus standard to a joint test working group interface controller is used as the access basis for the system on chip, thereby incorporating the high-speed serial computer expansion bus standard into the system on chip debugging and tracing network, solving the problem of a single data access method for the external joint test working group interface, and increasing the reliability of chip debugging and positioning. On the other hand, this solution implements access to the system on chip based on transaction layer data packets sent by the host, thereby no longer using an external joint test working group interface; therefore, it is no longer affected by the pins that are not retained for debugging purposes after product packaging, solving the problem of the limitations of traditional debugging tools that rely on the joint test working group debugging pins.

[0176] The above is a detailed introduction to a system-on-chip access method, device, equipment and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in several ways, and these improvements and modifications also fall within the scope of protection of the present invention.

[0177] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for accessing a system on a chip, characterized in that: A high-speed serial computer expansion bus standard to joint test working group interface controller is applied to a system on chip; the high-speed serial computer expansion bus standard to joint test working group interface controller is connected to the high-speed serial computer expansion bus standard controller and the on-chip network through an advanced extensible interface bus, and is connected to the on-chip system debugging and tracing network through the joint test working group interface bus; the method comprises: Receiving a transaction layer data packet sent by the high-speed serial computer expansion bus standard controller; Parsing the transaction layer data packet to determine the type of the transaction layer data packet; When the transaction layer data packet is a non-message data packet, sending the non-message data packet to the on-chip network; When the transaction layer data packet is a message data packet, constructing a joint test working group data packet according to the message data packet, and performing access management on the joint test working group data packet; The access-managed joint test workgroup data packet is sent to the on-chip system debugging and tracing network to access the on-chip system.

2. The method for accessing a system on a chip according to claim 1, characterized in that: The receiving of the transaction layer data packet sent by the high-speed serial computer expansion bus standard controller comprises: Receiving the transaction layer data packet through the advanced extensible interface of the receiving direction of the debugging packet filtering module; Correspondingly, parsing the transaction layer data packet to determine the type of the transaction layer data packet includes: Parsing the target field of the header information in the transaction layer data packet by the debugging packet filtering module; The type of the transaction layer data packet is determined according to the target field.

3. The method for accessing a system on a chip according to claim 2, wherein: When the transaction layer data packet is a non-message data packet, sending the non-message data packet to the on-chip network includes: Sending the non-message data packet to the advanced extensible interface forwarding module through the advanced extensible interface of the receiving direction of the debugging packet filtering module; The non-message data packet is sent to the on-chip network through the master interface of the advanced extensible interface bus in the receiving direction of the advanced extensible interface forwarding module.

4. The method for accessing a system on a chip according to claim 3, characterized in that: When the transaction layer data packet is a message data packet, constructing a joint test workgroup data packet according to the message data packet, and performing access management on the joint test workgroup data packet, including: Sending the message data packet to the joint test working group bus controller through the advanced extensible interface of the receiving direction of the debugging packet filtering module; Determine the specific type of the message data packet by the joint test working group bus controller; When the type of the message data packet is a non-debugging message data packet, sending the non-debugging message data packet to the advanced extensible interface forwarding module through the master interface of the advanced extensible interface bus in the receiving direction of the joint test working group bus controller; Sending the non-debugging message data packet to the on-chip network through the master interface of the advanced extensible interface bus in the receiving direction of the advanced extensible interface forwarding module; When the type of the message data packet is a debugging message data packet, parsing the address, data and operation type in the debugging message data packet; configuring a control access component of the system-on-chip debug tracing network according to the operation type; Constructing the joint test working group data packet according to the debugging message data packet; According to the joint test workgroup access timing, the joint test workgroup data packet is sent to the joint test workgroup selection module through the joint test workgroup interface of the receiving direction of the joint test workgroup bus controller.

5. The method for accessing a system on a chip according to claim 4, characterized in that: The step of sending the access-managed joint test workgroup data packet to the on-chip system debugging and tracing network includes: Selecting a receiving source of the joint test working group data packet through the joint test working group selection module; When the joint test workgroup selection module confirms that the receiving source is an off-chip joint test workgroup interface, sending the joint test workgroup data packet received through the off-chip joint test workgroup interface to the on-chip system debugging and tracing network; When the joint test workgroup selection module confirms that the receiving source is the joint test workgroup bus controller, the joint test workgroup selection module sends the access-managed joint test workgroup data packet to the on-chip system debugging and tracing network.

6. The method for accessing a system on chip according to claim 4 or 5, characterized in that: The configuring the control access component of the on-chip system debugging and tracing network according to the operation type includes: When the operation type is a write operation, configuring the advanced extensible interface data channel component or the advanced peripheral bus data channel component to a write mode, and controlling the corresponding component to issue a write operation; When the operation type is a read operation, the advanced extensible interface data channel component or the advanced peripheral bus data channel component is configured to a read mode, and the corresponding component is controlled to issue a read operation.

7. The method for accessing a system on a chip according to claim 6, characterized in that: After the control corresponding component issues a read operation, the method further includes: receiving feedback data corresponding to the read operation sent by the on-chip network through a slave interface of the advanced extensible interface bus in the sending direction of the advanced extensible interface forwarding module; Sending the feedback data to the debugging packet filtering module through the main interface of the advanced extensible interface bus in the sending direction of the advanced extensible interface forwarding module; Generate a transaction layer feedback data packet according to the feedback data; The transaction layer feedback data packet is sent to the high-speed serial computer expansion bus standard controller through the main interface of the advanced extensible interface bus in the sending direction of the debugging packet filtering module.

8. A system-on-chip access device, characterized in that: A high-speed serial computer expansion bus standard to joint test working group interface controller for a system on chip; the high-speed serial computer expansion bus standard to joint test working group interface controller connects the high-speed serial computer expansion bus standard controller and the network on chip through an advanced extensible interface bus, and connects the system on chip debugging and tracing network through the joint test working group interface bus; the device comprises: A receiving module, used for receiving a transaction layer data packet sent by the high-speed serial computer expansion bus standard controller; A parsing module, used for parsing the transaction layer data packet to determine the type of the transaction layer data packet; A first sending module, configured to send the non-message data packet to the on-chip network when the transaction layer data packet is a non-message data packet; A second sending module is used for constructing a joint test working group data packet according to the message data packet when the transaction layer data packet is a message data packet, and performing access management on the joint test working group data packet; The third sending module is used to send the access-managed joint test workgroup data packet to the on-chip system debugging and tracing network to access the on-chip system.

9. A system-on-chip access device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the on-chip system access method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the on-chip system access method according to any one of claims 1 to 7 are implemented.