Protocol controller, protocol control method, chip, system on chip and electronic device

By designing a protocol controller that supports peripheral protocols and inter-chip interconnection protocols in the chip, and utilizing the resource reuse of the bus interface, the hardware resources caused by separately implementing peripherals and interconnection protocol controllers in the existing technology are solved. It solves the problems of high occupancy and design complexity, and achieves resource saving and design simplification.

CN117453596BActive Publication Date: 2024-10-11HYGON INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311459482.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-03
Publication Date
2024-10-11
Estimated Expiration
2043-11-03

AI Technical Summary

Technical Problem

In chip design, existing technology requires the implementation of peripheral protocol controllers and inter-chip interconnection protocol controllers respectively, resulting in high hardware resource usage, increased costs, and increased design complexity.

Method used

Design a protocol controller that supports peripheral protocols and inter-chip interconnection protocols through one protocol controller, uses the same bus interface to share the two protocols, and configures sub-protocols through different bus interfaces to achieve resource reuse.

Benefits of technology

The hardware resources occupied by the protocol controller are reduced, the area and cost of the chip are saved, the chip design is simplified, and the design difficulty is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117453596B_ABST
    Figure CN117453596B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a protocol controller, a protocol control method, a core particle, a system on chip, and an electronic device, wherein the protocol controller includes a first bus interface connected to a system bus, the first bus interface implements an inter-chip interconnection protocol, and a first part of a sub-protocol of a peripheral protocol; and a second bus interface connected to the system bus, the second bus interface implements a second part of a sub-protocol of a peripheral protocol, the first part of the sub-protocol and the second part of the sub-protocol are configured to be implemented by different bus interfaces; wherein the core particle uses one of the inter-chip interconnection protocol and the peripheral protocol at the same time. The embodiment of the present application can reduce the hardware resources occupied by the protocol controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of chip technology, and specifically to a protocol controller, a protocol control method, a core particle, a system on chip, and an electronic device. Background Art

[0002] A chiplet is a unit chip that can realize certain functions, such as a processor chiplet (such as a CPU chiplet) that realizes data processing. Multiple chiplets can be interconnected to form a chip such as a SOC (System On Chip).

[0003] The protocol controller is a component in the chip that manages and executes the communication protocol. Based on the need for the chip to be interconnected with peripherals (short for external devices) and other chiplets, the protocol controller in the chip can be divided into a peripheral protocol controller and an inter-chip interconnection protocol controller. Among them, the peripheral protocol controller is used to manage and execute the peripheral protocol to achieve the interconnection between the chip and the peripheral. The inter-chip interconnection protocol controller is used to manage and execute the inter-chip interconnection protocol to achieve the interconnection between the chip and other chiplets.

[0004] Under the above background, how to provide a protocol controller to reduce the hardware resources occupied by the protocol controller has become a technical problem that those skilled in the art need to solve urgently. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a protocol controller, a protocol control method, a core particle, a system on chip and an electronic device, which support peripheral protocols and inter-chip interconnection protocols through a protocol controller, avoid separately implementing peripheral protocol controllers and interconnection protocol controllers to occupy higher hardware resources, and can reduce the hardware resources occupied by the protocol controller.

[0006] To achieve the above objectives, the embodiments of the present application provide the following technical solutions.

[0007] In a first aspect, an embodiment of the present application provides a protocol controller, applied to a chiplet, the protocol controller comprising:

[0008] A first bus interface connected to the system bus, the first bus interface implementing an inter-chip interconnection protocol and a first partial sub-protocol of a peripheral protocol;

[0009] and, a second bus interface connected to the system bus, the second bus interface implementing a second partial sub-protocol of the peripheral protocol, the first partial sub-protocol and the second partial sub-protocol being configured to be implemented by different bus interfaces;

[0010] The core particle uses one of an inter-chip interconnection protocol and a peripheral protocol at the same time.

[0011] In a second aspect, an embodiment of the present application provides a protocol control method, which is applied to the protocol controller described in the first aspect above, and the method includes:

[0012] Determine the protocol currently used by the protocol controller;

[0013] If the protocol currently used by the protocol controller is a peripheral protocol, the module configured separately for the inter-chip interconnection protocol in the protocol controller is closed;

[0014] If the protocol currently used by the protocol controller is an inter-chip interconnection protocol, the module in the protocol controller that is separately configured for the peripheral protocol is closed.

[0015] In a third aspect, an embodiment of the present application provides a core particle, comprising the protocol controller as described in the first aspect above.

[0016] In a fourth aspect, an embodiment of the present application provides a system on chip, comprising a plurality of interconnected core particles, wherein the core particles are the core particles described in the first aspect above.

[0017] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising the core particle as described in the first aspect above, or the system on chip as described in the fourth aspect above.

[0018] The protocol controller provided in the embodiment of the present application can be applied to a core particle, and the protocol controller may include a first bus interface connected to the system bus, and a second bus interface connected to the system bus; since the core particle uses one of the inter-chip interconnection protocol and the peripheral protocol at the same time, when the first part of the sub-protocol and the second part of the sub-protocol of the peripheral protocol are configured to be implemented by different bus interfaces, the protocol controller provided in the embodiment of the present application can implement the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol on the first bus interface, and implement the second part of the sub-protocol of the peripheral protocol on the second bus interface, so that the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol that the core particle needs to support can share the first bus interface of the protocol controller, thereby reducing the hardware resources occupied by the protocol controller; and the second part of the sub-protocol that needs to be configured separately from the first part of the sub-protocol is implemented on the second bus interface of the protocol controller, so that the protocol controller of the core particle can support the peripheral protocol and the inter-chip interconnection protocol through these two groups of interfaces, the first bus interface and the second bus interface.

[0019] It can be seen that the embodiment of the present application can support peripheral protocols and inter-chip interconnection protocols in the core particle through a protocol controller, and the inter-chip interconnection protocol and the first part of the sub-protocols of the peripheral protocol can share a set of bus interfaces (i.e., the first bus interface) of the protocol controller, thereby improving the reusability of hardware resources; further, different from the method of separately implementing the peripheral protocol controller and the interconnection protocol controller in the core particle, the embodiment of the present application can reduce the hardware resources occupied by the protocol controller, thereby saving the hardware resources of the core particle. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0021] Figure 1A An example diagram of the interconnection between a core and peripherals and other cores.

[0022] Figure 1B Another example diagram of interconnecting a core particle with peripherals and other core particles.

[0023] Figure 2A This is a connection example diagram of the protocol controller provided in an embodiment of the present application.

[0024] Figure 2B Another example connection diagram of the protocol controller provided in an embodiment of the present application.

[0025] Figure 3 An example diagram of interconnecting core particles provided in an embodiment of the present application.

[0026] Figure 4 An example diagram of a protocol controller provided in an embodiment of the present application.

[0027] Figure 5 This is an example diagram of a bus interface module provided in an embodiment of the present application.

[0028] Fig. 6A An example diagram of a transport layer module provided in an embodiment of the present application.

[0029] Figure 6B Another example diagram of the transport layer module provided in an embodiment of the present application.

[0030] Figure 6C This is an example diagram of the interaction process between the protocol controller and the system bus provided in an embodiment of the present application.

[0031] Fig.6DThis is another example diagram of the interaction process between the protocol controller and the system bus provided in an embodiment of the present application.

[0032] Figure 7 An example diagram of a data link layer module provided in an embodiment of the present application.

[0033] Figure 8 An example diagram of a physical layer module provided in an embodiment of the present application.

[0034] Fig. 9 Another example diagram of a protocol controller provided in an embodiment of the present application.

[0035] Fig.10 A flowchart of a protocol control method provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0037] Limited by the chip process technology and cost, multiple chiplets can be combined into a chip system (such as a system on a chip) through inter-chip interconnection technology to achieve chip performance improvement and function increase; among them, the inter-chip interconnection technology can realize the interconnection of multiple chiplets based on the inter-chip interconnection protocol.

[0038] At the same time, in order to enable processor cores (such as CPU cores) and other cores to be interconnected with peripherals, the cores and peripherals can be interconnected through peripheral protocols. For example, with the increase in the computing power requirements of computer systems, in order to reduce the impact of the storage wall problem, peripheral protocols such as the CXL (Compute Express Link) protocol have been introduced to improve the data exchange efficiency between CPU cores and other cores and peripherals. Therefore, CPU cores and other cores can be interconnected with peripherals through peripheral protocols such as the CXL protocol. It should be noted that the storage wall problem refers to the problem that when a large amount of memory data needs to be accessed, the performance of the computer system cannot be effectively improved due to limitations such as memory bandwidth, latency or cache consistency. The emergence of the storage wall problem is accompanied by the bottleneck of memory bandwidth.

[0039] It can be seen that the chiplet needs to be interconnected with peripherals and other chiplets. Therefore, when designing the chiplet, it is necessary to make the chiplet support the peripheral protocol and the inter-chip interconnection protocol, so that the chiplet can be interconnected with the peripherals through the peripheral protocol and can be interconnected with other chiplets through the inter-chip interconnection protocol.

[0040] For ease of understanding, Figure 1A An example diagram showing the interconnection between a core particle and peripherals and other core particles is shown as follows: Figure 1A As shown, the core particles 111 and 112 can be interconnected through an inter-chip interconnection protocol, and the core particle 111 and the peripheral device 120 can be interconnected through a peripheral device protocol.

[0041] Among them, the core particles 111 and the core particles 112 can be two core particles in a chip such as a SOC, for example, the core particles 111 and the core particles 112 are two processor core particles in the SOC, and the embodiment of the present application does not limit the number of core particles in a chip such as a SOC. The core particles 111 and the core particles 112 can be interconnected through an inter-chip interconnection protocol; wherein the inter-chip interconnection protocol is a communication protocol for connecting different core particles to achieve high-speed data transmission and communication between core particles, and the inter-chip interconnection protocol may include a three-layer protocol of a transport layer, a data link layer, and a physical layer.

[0042] The peripheral device 120 may be any external device such as a network device, an accelerator device, a storage device, etc. connected to the chiplet 111. The chiplet 111 and the peripheral device 120 may be interconnected via a peripheral device protocol; wherein the peripheral device protocol is a communication protocol for the chiplet to connect and control an external device or a peripheral device, such as the CXL protocol.

[0043] It should be noted that the CXL protocol is a high-performance open interconnect protocol designed to connect computing, storage and acceleration devices to support high-bandwidth, low-latency data transmission and resource sharing. It should be further noted that the peripheral protocol is not limited to the CXL protocol, but can also be the CCIX (Cache Coherent Interconnect for Accelerators) protocol, or other protocols that connect processors (such as graphics processors) and acceleration devices to support high-performance computing and data transmission.

[0044] In order to enable the chip to support the peripheral protocol and the inter-chip interconnection protocol, the chip needs to implement the protocol controllers that support the peripheral protocol and the inter-chip interconnection protocol respectively. Figure 1B Another example diagram showing the interconnection between a core particle and a peripheral device and other core particles is shown. Figure 1A and Figure 1B As shown, the chiplet 111 implements a peripheral protocol controller 131 and an inter-chip interconnection protocol controller 132. The chiplet 111 can use the peripheral protocol controller 131 to interconnect with the peripheral 120 through the peripheral protocol; the chiplet 111 can use the inter-chip interconnection protocol controller 132 to interconnect with the chiplet 112 through the inter-chip interconnection protocol.

[0045] By implementing a peripheral protocol controller and an inter-chip interconnect protocol controller in the chiplet, the chiplet can select the protocol controller to be used according to the actual application scenario, thereby interconnecting with the peripherals through the peripheral protocol, or interconnecting with other chiplets through the inter-chip interconnect protocol, thereby meeting the needs of the chiplet in various application scenarios.

[0046] However, the chip may not be interconnected with peripherals and other chiplets at the same time, that is, the chip is interconnected with peripherals or other chiplets at the same time. At this time, the chip uses one of the peripheral protocol controllers and the inter-chip interconnection protocol controller, and the other unused protocol controller needs to be turned off to reduce power consumption.

[0047] For example, in an application scenario where a chiplet is interconnected with a peripheral device, the chiplet may choose to use a peripheral protocol controller to interconnect with the peripheral device through a peripheral protocol, and to reduce power consumption, the chiplet may shut down a currently unused inter-chip interconnect protocol controller. For another example, in an application scenario where a chiplet is interconnected with other chiplets, the chiplet may choose to use an inter-chip interconnect protocol controller to interconnect with other chiplets through an inter-chip interconnect protocol, and to reduce power consumption, the chiplet may shut down a currently unused peripheral protocol controller.

[0048] It can be seen that based on the mechanism that the chiplet may use one of the peripheral protocol and the inter-chip interconnection protocol at the same time, while the other protocol is not used, if both the peripheral protocol controller and the inter-chip interconnection protocol controller are implemented in the chiplet at the same time, this may cause the following problems:

[0049] Since the chip may use one of the peripheral protocol controllers and the inter-chip interconnect protocol controller at the same time, the other unused protocol controller needs to be turned off. Therefore, if the peripheral protocol controller and the inter-chip interconnect protocol controller are implemented in the chip at the same time, it will occupy a larger hardware resource of the chip, resulting in an increase in the area of ​​the chip and an increase in the cost. At the same time, the increase in the number of protocol controllers in the chip will lead to an increase in the design complexity of the system bus and an increase in the occupied hardware resources, resulting in an increase in the design difficulty of the chip and an increase in the cost.

[0050] In addition, when both the peripheral protocol controller and the inter-chip interconnect protocol controller are implemented in the chip, a complex low-power design scheme is required to reduce the power consumption of the protocol controller that needs to be turned off as much as possible, which further increases the complexity of the chip design.

[0051] Based on this, the embodiment of the present application provides an improved design scheme of the protocol controller, which supports the peripheral protocol and the inter-chip interconnection protocol by designing a protocol controller in the core particle, thereby avoiding the problems caused by separately implementing the peripheral protocol controller and the interconnection protocol controller in the core particle, for example, it can avoid the high hardware resources occupied by the separately implemented peripheral protocol controller and the interconnection protocol controller, can save the hardware resources occupied by the protocol controller, reduce the area of ​​the core particle, reduce the cost of the chip, and reduce the difficulty of the core particle design. Furthermore, by performing low-power control for the protocol that needs to be turned off in a protocol controller, the complexity of the control logic can be simplified, and the complexity of the core particle design can be further reduced.

[0052] Based on the above ideas, as an optional implementation, Figure 2A An exemplary diagram of a connection example of a protocol controller provided in an embodiment of the present application is shown, as shown in FIG. Figure 2A As shown, the core particle may include: a protocol controller 200. The protocol controller 200 may include: a first bus interface 210 and a second bus interface 220; wherein the first bus interface 210 and the second bus interface 220 are respectively connected to the system bus, that is, the first bus interface 210 is connected to the system bus, and the second bus interface 220 is connected to the system bus.

[0053] It should be noted that the system bus can be a communication channel set in a chip (such as a SOC chip) for connecting different functional modules of the chip and is a medium for realizing data transmission and coordinated operation between functional modules. As an optional implementation, the system bus can be an internal bus or an on-chip bus of the SOC chip.

[0054] In the embodiment of the present application, the first bus interface 210 and the second bus interface 220 are two sets of bus interfaces in the core particle. The first bus interface 210 can implement the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol, thereby supporting the interface-related functions of the inter-chip interconnection protocol and the interface-related functions of the first part of the sub-protocol of the peripheral protocol.

[0055] In the embodiment of the present application, the second bus interface 220 can implement the second part of the sub-protocol of the peripheral protocol, thereby supporting the interface-related functions of the second part of the sub-protocol of the peripheral protocol.

[0056] In an embodiment of the present application, the first part sub-protocol and the second part sub-protocol of the peripheral protocol are configured to be implemented by different bus interfaces, that is, the peripheral protocol can be divided into the first part sub-protocol and the second part sub-protocol that need to be configured to different bus interfaces, so that the first part sub-protocol and the second part sub-protocol of the peripheral protocol can be implemented on different bus interfaces.

[0057] On this basis, since the core particle may use one of the peripheral protocol and the inter-chip interconnection protocol at the same time (that is, the core particle does not use the inter-chip interconnection protocol when using the peripheral protocol, and does not use the peripheral protocol when using the inter-chip interconnection protocol), the embodiment of the present application can configure the inter-chip interconnection protocol and the first part of the sub-protocols of the peripheral protocol to share a set of bus interfaces (that is, the first bus interface) of the core particle when designing the protocol controller of the core particle, so that when the core particle supports the inter-chip interconnection protocol and the first part of the sub-protocols of the peripheral protocol, the inter-chip interconnection protocol and the first part of the sub-protocols of the peripheral protocol can be reused for the first bus interface, thereby reducing the hardware resources occupied by the protocol controller.

[0058] At the same time, when the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol are implemented on the first bus interface, the second part of the sub-protocol of the peripheral protocol is implemented on a set of bus interfaces (i.e., the second bus interface) different from the first bus interface, so that the protocol controller of the core particle can support the peripheral protocol and the inter-chip interconnection protocol through two bus interfaces (i.e., the first bus interface and the second bus interface).

[0059] The protocol controller provided in the embodiment of the present application can be applied to a core particle, and the protocol controller may include a first bus interface connected to the system bus, and a second bus interface connected to the system bus; since the core particle uses one of the inter-chip interconnection protocol and the peripheral protocol at the same time, when the first part of the sub-protocol and the second part of the sub-protocol of the peripheral protocol are configured to be implemented by different bus interfaces, the protocol controller provided in the embodiment of the present application can implement the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol on the first bus interface, and implement the second part of the sub-protocol of the peripheral protocol on the second bus interface, so that the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol that the core particle needs to support can share the first bus interface of the protocol controller, thereby reducing the hardware resources occupied by the protocol controller; and the second part of the sub-protocol that needs to be configured separately from the first part of the sub-protocol is implemented on the second bus interface of the protocol controller, so that the protocol controller of the core particle can support the peripheral protocol and the inter-chip interconnection protocol through these two groups of interfaces, the first bus interface and the second bus interface.

[0060] It can be seen that the embodiment of the present application can support peripheral protocols and inter-chip interconnection protocols in the core particle through a protocol controller, and the inter-chip interconnection protocol and the first part of the sub-protocols of the peripheral protocol can share a set of bus interfaces (i.e., the first bus interface) of the protocol controller, thereby improving the reusability of hardware resources; further, different from the method of separately implementing the peripheral protocol controller and the interconnection protocol controller in the core particle, the embodiment of the present application can reduce the hardware resources occupied by the protocol controller, thereby saving the hardware resources of the core particle.

[0061] In an implementation example, taking the CXL protocol as an example, the first part of the sub-protocols of the peripheral protocol may include the memory and cache sub-protocol of the CXL protocol, so that the memory and cache sub-protocol of the CXL protocol and the inter-chip interconnection protocol can be implemented on the first bus interface of the protocol controller, so that the memory and cache sub-protocol of the CXL protocol and the inter-chip interconnection protocol share the first bus interface of the protocol controller. It should be noted that the memory and cache sub-protocol of the CXL protocol can be regarded as the sub-protocol related to memory and cache in the CXL protocol, for example, the CXL.MEM (memory) sub-protocol and the CXL.CACHE (cache) sub-protocol of the CXL protocol, where MEM is the abbreviation of MEMORY (memory).

[0062] In an implementation example, taking the CXL protocol as an example, the second part of the sub-protocol of the peripheral protocol may include an input and output sub-protocol of the CXL protocol, so that the input and output sub-protocol of the CXL protocol can be implemented on the second bus interface of the protocol controller. The input and output sub-protocol of the CXL protocol is, for example, a CXL.IO (input and output) sub-protocol of the CXL protocol.

[0063] It should be noted that the CXL protocol may include the CXL.IO subprotocol, the CXL.CACHE subprotocol, and the CXL.MEM subprotocol. The CXL.IO subprotocol is a subprotocol in the CXL protocol, used to implement high-performance input and output communications, and is the input and output subprotocol of the CXL protocol. The CXL.CACHE subprotocol is a subprotocol in the CXL protocol, used to support high-performance caching and shared data, and is the cache subprotocol of the CXL protocol. The CXL.MEM subprotocol is a subprotocol in the CXL protocol, used to support high-performance memory access and memory sharing, and is the memory subprotocol of the CXL protocol. As subprotocols related to memory and cache in the CXL protocol, the CXL.CACHE subprotocol and the CXL.MEM subprotocol may be referred to as the memory and cache subprotocols of the CXL protocol.

[0064] As an optional implementation, taking the CXL protocol as an example, Figure 2B Another example diagram of the connection of the protocol controller provided in the embodiment of the present application is shown in FIG. Figure 2A and Figure 2B As shown, the first bus interface 210 can implement the CXL.CACHE sub-protocol, the CXL.MEM sub-protocol and the inter-chip interconnection protocol, so that the core particle can be connected to the system bus through the first bus interface to implement the memory and cache related functions of the CXL protocol, as well as the related functions of the inter-chip interconnection protocol; the second bus interface can implement the CXL.IO sub-protocol, so that the core particle can be connected to the system bus through the second bus interface to implement the input and output related functions of the CXL protocol.

[0065] In a further optional implementation, Figure 3 An exemplary diagram of interconnection of core particles provided in an embodiment of the present application is shown, combined with Figure 2A and Figure 3 As shown, the core grain may further include: a physical coding sublayer 310 connected to the protocol controller 200, and a physical layer interface 320 connected to the physical coding sublayer 310. At the same time, the protocol controller 200 may further include: a third bus interface 230; the protocol controller 200 may realize connection with the physical coding sublayer 310 through the third bus interface 230.

[0066] It should be noted that, in the core particle, the physical layer (PHY) interface 320 is a part of the physical layer of the core particle, and is used to process the physical layer connection of data transmission, for example, transmitting the data of the core particle to the physical channel, and receiving data from the physical channel and transmitting it to the core particle. In one example, the physical layer interface can be, for example, a high-speed PHY interface, which is used to process the physical layer connection of high-speed data transmission.

[0067] The physical coding sublayer 310 may also be a part of the physical layer of the core particle, and is used to implement the functions of the physical layer in the core particle, such as data coding, physical layer information addition and processing, etc.

[0068] As an optional implementation, the protocol controller provided in the embodiment of the present application can connect the system bus of the chip (such as the SOC chip) and the physical coding sublayer of the core particle, for example, the protocol controller is connected between the system bus of the chip (such as the SOC chip) and the physical coding sublayer of the core particle. Among them, the protocol controller is connected to the system bus through two groups of bus interfaces (i.e., the first bus interface and the second bus interface) to access the internal bus or on-chip bus of the chip (such as the SOC chip); at the same time, it is connected to the physical coding sublayer of the core particle through a group of bus interfaces (i.e., the third bus interface) to connect to other core particles or peripherals through the physical coding sublayer of the core particle and the physical layer interface of the core particle. In other words, the core particle is connected to the system bus of the chip (such as the SOC chip) through the bus interface of the protocol controller, and is connected to other core particles or peripherals through the physical layer interface.

[0069] In an optional implementation, the protocol used by the system bus can be called a system bus protocol, and the system bus protocol can be a standard system bus protocol, such as an AXI (Advanced eXtensible Interface) protocol, or a customized system bus protocol. In an optional implementation, the third bus interface of the protocol controller and the physical coding sublayer can be connected using a physical layer bus, and the physical layer bus can use a standard bus protocol such as a PIPE (PHY Interface for PCI Express, PCIE physical layer interface) protocol, or a customized bus protocol. For example, taking the CXL protocol as an example, the physical layer adopts the interface standard of the PCIE (Peripheral Component Interconnect Express, Peripheral Interconnect Express) bus, then based on the CXL protocol and the PCIE protocol, the physical layer bus connected to the physical coding sublayer of the third bus interface of the protocol controller can be implemented based on the PIPE protocol.

[0070] As an optional implementation, the protocol can have multiple layers such as the transport layer, data link layer and physical layer. The physical layer of the protocol as the bottom layer can be used to define electrical characteristics, transmission media and connection interfaces, ensure the correct connection of devices, and transmit data; the data link layer is responsible for managing data transmission, such as data grouping, error detection and correction, etc. The transport layer is responsible for controlling data transmission to ensure reliable data transmission. Based on this, Figure 4 An exemplary diagram of the protocol controller provided in the embodiment of the present application is shown, in combination with Figure 3 and Figure 4 As shown, the protocol controller 200 in the core particle may include: a bus interface module 410 , a transport layer module 420 , a data link layer module 430 and a physical layer module 440 .

[0071] The bus interface module 410 can implement the connection management of the bus interface between the protocol controller 200 and the system bus. Based on the fact that the protocol controller is provided with a first bus interface and a second bus interface respectively connected to the system bus, the bus interface module can respectively implement the connection management of the first bus interface and the second bus interface. As an optional implementation, Figure 5 An exemplary diagram of a bus interface module provided in an embodiment of the present application is shown as follows: Figure 5 As shown, the bus interface module 410 may include a first interface management module 411 and a second interface management module 412 .

[0072] Among them, the first interface management module 411 is used for connection management between the first bus interface 210 and the system bus, that is, when the first bus interface 210 implements the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol, the connection management between the first bus interface 210 and the system bus can be implemented by the first interface management module 411.

[0073] It should be noted that the first bus interface 210 corresponds to the bus corresponding to the inter-chip interconnection protocol and the bus corresponding to the first part of the sub-protocol of the peripheral protocol. Therefore, the first interface management module 411 performs connection management between the first bus interface 210 and the system bus, which can be regarded as: the first interface management module 411 performs connection management between the bus corresponding to the inter-chip interconnection protocol and the bus corresponding to the first part of the sub-protocol of the peripheral protocol and the system bus. In an implementation example, taking the peripheral protocol as the CXL protocol and the first part of the sub-protocol of the peripheral protocol as the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol as an example, the first interface management module 411 can implement connection management between the bus corresponding to the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol and the system bus, and connection management between the bus corresponding to the inter-chip interconnection protocol and the system bus.

[0074] The second interface management module 412 is used for connection management between the second bus interface 220 and the system bus, that is, when the second bus interface 220 implements the second part of the sub-protocol of the peripheral protocol, the connection management between the second bus interface 220 and the system bus can be implemented by the second interface management module 412. The second bus interface 220 corresponds to the bus corresponding to the second part of the sub-protocol of the peripheral protocol, so the connection management between the second bus interface 220 and the system bus performed by the second interface management module 412 can be regarded as: the second interface management module 412 performs connection management between the bus corresponding to the second part of the sub-protocol of the peripheral protocol and the system bus. In an implementation example, taking the peripheral protocol as the CXL protocol and the second part of the sub-protocol of the peripheral protocol as the CXL.IO sub-protocol, the second interface management module 412 can implement the connection management between the bus corresponding to the CXL.IO sub-protocol and the system bus.

[0075] In an optional implementation, the interface management module in the bus interface module can manage the connection and disconnection between the corresponding bus interface and the system bus by counting the internal state of the protocol controller and the state of the corresponding bus interface in the system bus, so as to realize the connection management of the corresponding bus interface. That is to say, the connection or disconnection between the first bus interface and the system bus and the connection or disconnection between the second bus interface and the system bus are managed by the corresponding interface management module based on the internal state of the protocol controller for the protocol and the state of the corresponding bus interface in the system bus.

[0076] As an optional implementation, the internal state of the protocol controller for the protocol, for example, the processing state of the internal modules of the protocol controller for the protocol, such as the processing state of the sub-modules related to the protocol in the transport layer module 420 and the data link layer module 430 of the protocol controller.

[0077] In an optional implementation, the first interface management module can manage the connection and disconnection between the first bus interface and the system bus based on the internal status of the protocol controller for the inter-chip interconnect protocol and the first partial sub-protocol of the peripheral protocol, as well as the status of the first bus interface.

[0078] In an implementation example, taking the connection management of the first bus interface as an example, the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol are implemented based on the first bus interface. If the processing status of the internal modules of the protocol controller for the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol are all in an idle state (for example, the sub-modules related to the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol in the transport layer module 420 and the data link layer module 430 of the protocol controller are all in an idle state), and the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol are also in an idle state in the first bus interface corresponding to the system bus, the connection between the first bus interface and the system bus can be disconnected; if any internal module of the protocol controller has a data processing operation for the inter-chip interconnection protocol or the first part of the sub-protocol of the peripheral protocol (for example, any sub-module related to the inter-chip interconnection protocol or the first part of the sub-protocol of the peripheral protocol in the transport layer module 420 and the data link layer module 430 of the protocol controller has a data processing operation), the connection between the first bus interface and the system bus is restored.

[0079] Taking the case where the peripheral protocol is the CXL protocol and the first part of the sub-protocols of the peripheral protocol are the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol as an example, if it is determined statistically that the sub-modules related to the CXL.CACHE sub-protocol, the CXL.MEM sub-protocol, and the inter-chip interconnection protocol in the transport layer module 420 and the data link layer module 430 are all in an idle state, and the CXL.CACHE sub-protocol, the CXL.MEM sub-protocol, and the inter-chip interconnection protocol in the first bus interface corresponding to the system bus are also in an idle state, the first interface management module can disconnect the first bus interface from the system bus; if it is determined statistically that any sub-module related to the CXL.CACHE sub-protocol, the CXL.MEM sub-protocol, and the inter-chip interconnection protocol in the transport layer module 420 and the data link layer module 430 has a data processing operation, the connection between the first bus interface and the system bus can be restored.

[0080] In an optional implementation, the second interface management module may manage connection and disconnection between the second bus interface and the system bus based on the internal state of the protocol controller for the second partial sub-protocol of the peripheral protocol and the state of the second bus interface.

[0081] In an implementation example, taking the connection management of the second bus interface as an example, the second part of the sub-protocol of the peripheral protocol is implemented based on the second bus interface. If the processing status of the internal modules of the protocol controller for the second part of the sub-protocol of the peripheral protocol is in an idle state (for example, the sub-modules related to the second part of the sub-protocol of the peripheral protocol in the transport layer module 420 and the data link layer module 430 of the protocol controller are all in an idle state), and the second part of the sub-protocol of the peripheral protocol is also in an idle state in the second bus interface corresponding to the system bus, the second interface management module can disconnect the connection between the second bus interface and the system bus; if any internal module of the protocol controller has a data processing operation for the second part of the sub-protocol of the peripheral protocol (for example, any sub-module related to the second part of the sub-protocol of the peripheral protocol in the transport layer module 420 and the data link layer module 430 of the protocol controller has a data processing operation), the second interface management module can restore the connection between the second bus interface and the system bus.

[0082] Taking the CXL.IO subprotocol as an example, if the interface management module statistically determines that the submodules related to the CXL.IO subprotocol in the transport layer module 420 and the data link layer module 430 are all in an idle state, and the second bus interface corresponding to the CXL.IO subprotocol on the system bus is also in an idle state, the connection between the second bus interface and the system bus can be disconnected; if any submodule related to the CXL.IO subprotocol in the transport layer module 420 and the data link layer module 430 has a data processing operation, the second interface management module can restore the connection between the second bus interface and the system bus.

[0083] It should be noted that the interface management module can realize the connection management between the first bus interface and the system bus, and the connection management between the second bus interface and the system bus respectively through hardware monitoring and statistics of the internal state of the protocol controller for the protocol and the state of the corresponding bus interface in the system bus; the embodiments of the present application do not limit the hardware implementation method of the interface management module monitoring and statistics of the internal state of the protocol controller for the protocol and the state of the corresponding bus interface in the system bus.

[0084] Back to Figure 4As shown, the transport layer module 420 is responsible for the data transmission control of the protocol controller. Based on the need for the protocol controller to support the inter-chip interconnection protocol and the peripheral protocol, and being provided with a first bus interface for implementing the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol, and a second bus interface for implementing the second part of the sub-protocol of the peripheral protocol, the transport layer module 420 can implement the inter-chip interconnection protocol, the data transmission control of the first part of the sub-protocol of the peripheral protocol, and the data transmission control of the second part of the sub-protocol of the peripheral protocol, that is, the embodiment of the present application can implement the transport layer design of the inter-chip interconnection protocol, the first part of the sub-protocol of the peripheral protocol (such as CXL.CACHE sub-protocol, CXL.MEM sub-protocol), and the second part of the sub-protocol of the peripheral protocol (such as CXL.IO sub-protocol) in the transport layer module 420.

[0085] In an optional implementation, the transport layer module 420 can be connected to the system bus through the bus interface of the protocol controller and the system bus. That is, the transport layer module 420 connects the system bus and the data link layer module 430. In an optional implementation in which the transport layer module is connected to the system bus, the transport layer interface of the transport layer module 420 is connected to the system bus through the bus interface of the protocol controller and the system bus. For example, the transport layer interface of the transport layer module 420 is connected to the system bus through the first bus interface and the second bus interface, respectively.

[0086] As an optional implementation, Fig. 6A An example diagram of a transport layer module provided in an embodiment of the present application is shown as follows: Fig. 6A As shown, the transport layer module 420 is provided with two transport layer submodules, which are divided into a first transport layer submodule 601 and a second transport layer submodule 602; wherein the first transport layer submodule 601 implements the data transmission control of the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol; the second transport layer submodule 602 implements the data transmission control of the second part of the sub-protocol of the peripheral protocol. For example, the first transport layer submodule can implement the data transmission control of the inter-chip interconnection protocol, the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol, and the second transport layer submodule can implement the data transmission control of the CXL.IO sub-protocol.

[0087] In an optional implementation, in order to reduce the hardware resource usage of the transport layer module, the transport layer module may have multiple sub-modules shared by two transport layer sub-modules (a first transport layer sub-module and a second transport layer sub-module), and the multiple sub-modules may be partial sub-modules within the transport layer module, that is, the two transport layer sub-modules (a first transport layer sub-module and a second transport layer sub-module) set in the transport layer module 420 may share some modules within the transport layer.

[0088] In an optional implementation, Figure 6BAnother example diagram of the transport layer module provided in the embodiment of the present application is shown as follows: Figure 6B As shown, the multiple submodules shared by the first transport layer submodule and the second transport layer submodule in the transport layer module 420 can be divided into at least: a first transport layer submodule set and a second transport layer submodule set.

[0089] The first submodule set of the transport layer is used to process requests from peripherals or other core particles to be sent to the system bus, and responses from the system bus to be sent to peripherals or other core particles;

[0090] The second submodule set of the transport layer is used to process requests from the system bus that need to be sent to peripherals or other core particles, and responses from peripherals or other core particles that need to be sent to the system bus.

[0091] That is to say, the first sub-module set of the transport layer has multiple sub-modules, which are used to process requests from peripherals or other core particles that need to be sent to the system bus, and responses from the system bus that need to be sent to peripherals or other core particles, and can be shared by the first transport layer sub-module and the second transport layer sub-module; the second sub-module set of the transport layer has multiple sub-modules, which are used to process requests from the system bus that need to be sent to peripherals or other core particles, and responses from peripherals or other core particles that need to be sent to the system bus, and can be shared by the first transport layer sub-module and the second transport layer sub-module.

[0092] In a further optional implementation, in combination with Figure 6B As shown, the sub-modules within the transport layer module 420 may include: a sending request queue 421, a receiving response queue 422, a receiving request queue 423, a sending response queue 424, a sending data cache 425, a receiving data cache 426, a queue scheduling module 427, and multiple protocol parsing modules 428.

[0093] Among them, the sending request queue 421 and the receiving response queue 422 can be regarded as optional forms of the first sub-module set of the transport layer, and the receiving request queue 423 and the sending response queue 424 can be regarded as optional forms of the second sub-module set of the transport layer.

[0094] Furthermore, the multiple sub-modules shared by the first transport layer sub-module and the second transport layer sub-module in the transport layer module 420 may include a send data cache 425, a receive data cache 426, and a queue scheduling module 427 in addition to a transport layer first sub-module set (for example, a send request queue 421 and a receive response queue 422) and a transport layer second sub-module set (for example, a receive request queue 423 and a send response queue 424).

[0095] As an optional implementation, in the present implementation example, a sending request queue 421, a receiving response queue 422, a receiving request queue 423, a sending response queue 424, a sending data cache 425, a receiving data cache 426, and a queue scheduling module 427 are multiple sub-modules within the transport layer module 420 that are shared by the first transport layer sub-module and the second transport layer sub-module; thus, the first transport layer sub-module and the second transport layer sub-module can share the above multiple sub-modules to implement hardware resource sharing of the inter-chip interconnection protocol, the first part of the sub-protocol of the peripheral protocol, and the second part of the sub-protocol at the transport layer, thereby reducing the occupation of hardware resources.

[0096] The plurality of protocol parsing modules 428 correspond to the number of protocols that require independent configuration of protocol parsing modules, and one protocol parsing module is used to parse the request and response of the corresponding protocol. In an implementation example, the plurality of protocol parsing modules may include a protocol parsing module corresponding to the inter-chip interconnection protocol, a protocol parsing module corresponding to the first part of the sub-protocol of the peripheral protocol, and a protocol parsing module corresponding to the second part of the sub-protocol of the peripheral protocol; wherein the protocol parsing module corresponding to the inter-chip interconnection protocol is used to parse the request and response of the inter-chip interconnection protocol, the protocol parsing module corresponding to the first part of the sub-protocol of the peripheral protocol is used to parse the request and response of the first part of the sub-protocol, and the protocol parsing module corresponding to the second part of the sub-protocol of the peripheral protocol is used to parse the request and response of the second part of the sub-protocol.

[0097] Taking the CXL protocol as an example, the protocol parsing module corresponding to the first part of the sub-protocol of the peripheral protocol may include the protocol parsing module corresponding to the CXL.CACHE sub-protocol and the protocol parsing module corresponding to the CXL.MEM sub-protocol; the protocol parsing module corresponding to the second part of the sub-protocol of the peripheral protocol may include the protocol parsing module corresponding to the CXL.IO sub-protocol. In other words, the CXL.IO sub-protocol, the CXL.CACHE sub-protocol, the CXL.MEM sub-protocol and the inter-chip interconnection protocol need to implement the protocol parsing module separately to parse the requests and responses of their respective protocols.

[0098] In an implementation example, if the protocol controller is used as an inter-chip interconnection protocol controller, the requests transmitted by the protocol controller are all inter-chip interconnection requests, and the responses transmitted by the protocol controller are all inter-chip interconnection responses. At this time, the protocol parsing module corresponding to the inter-chip interconnection protocol can be used to parse the requests and responses.

[0099] If the protocol controller is used as a CXL protocol controller, the request transmitted by the protocol controller may be a request using the CXL.IO subprotocol, or a request using the CXL.CACHE subprotocol, or a request using the CXL.MEM subprotocol, and the response transmitted by the protocol controller may be a response using the CXL.IO subprotocol, or a response using the CXL.CACHE subprotocol, or a response using the CXL.MEM subprotocol. At this time, it is necessary to select a protocol parsing module to parse the request and response according to the specific situation. For example, the request and response of data reading and writing are mainly implemented through the CXL.CACHE subprotocol and the CXL.MEM subprotocol (i.e., the memory and cache subprotocol of the CXL protocol). When it comes to the request and response of data reading and writing of the CXL protocol, it can be parsed by the protocol parsing module corresponding to the CXL.CACHE subprotocol and the protocol parsing module corresponding to the CXL.MEM subprotocol. Among them, the request and response of cache-related data reading and writing can be parsed by the protocol parsing module corresponding to the CXL.CACHE subprotocol; the request and response of memory-related data reading and writing can be parsed by the protocol parsing module corresponding to the CXL.MEM subprotocol. For another example, the input and output configuration management of the CXL protocol is mainly implemented through the CXL.IO sub-protocol. When the requests and responses of the input and output configuration management of the CXL protocol are involved, they can be parsed through the protocol parsing module corresponding to the CXL.IO sub-protocol.

[0100] As an optional implementation, the inter-chip interconnection protocol and the data transmission control of the first part of the sub-protocol of the peripheral protocol are implemented based on the first transport layer sub-module, and the protocol parsing module corresponding to the inter-chip interconnection protocol and the protocol parsing module corresponding to the first part of the sub-protocol of the peripheral protocol can be set in the first transport layer sub-module; the data transmission control of the second part of the sub-protocol of the peripheral protocol is implemented based on the second transport layer sub-module, and the protocol parsing module corresponding to the second part of the sub-protocol of the peripheral protocol can be set in the second transport layer sub-module.

[0101] In an optional implementation, the sending request queue, receiving response queue, receiving request queue, sending response queue, sending data cache, receiving data cache, and queue scheduling module in the transport layer module can be set as shared resources, shared by the first transport layer sub-module and the second transport layer sub-module. The embodiment of the present application does not limit the setting position of the above-mentioned shared sub-modules, which can be set in any one of the first transport layer sub-module and the second transport layer sub-module, or in a shared resource area set in the transport layer module.

[0102] The following is an introduction to the common sub-modules within the transport layer module.

[0103] Combination Figure 6BAs shown, the sending request queue 421 is at least used to store the waiting requests of the core particles. The waiting requests of the core particles can be requests that the core particles want to send to the system bus; the waiting requests can come from peripherals or other core particles connected to the core particles, and need to be sent to the system bus; the waiting requests can be request information for requesting data reading and writing, requesting interruption, etc. In one example, when the core particle uses a peripheral protocol (such as a CXL protocol), the waiting requests can come from a peripheral connected to the core particle (such as a CPU core particle), and the core particle needs to send the waiting requests to the system bus; in another example, when the core particle uses an inter-chip interconnection protocol, the waiting requests can come from other core particles (such as other CPU core particles) connected to the core particle (such as a CPU core particle), and the core particle needs to send the waiting requests to the system bus.

[0104] In an optional implementation, combined with Figure 3 and Figure 4 As shown, the request to be sent from the peripheral or other core particles can be transmitted to the protocol controller through the physical layer interface and physical coding sublayer of the core particle, and then transmitted to the transport layer module through the physical layer module and data link layer module in the protocol controller.

[0105] It can be seen that the embodiments of the present application can save the pending requests from peripherals and other core particles in the sending request queue, that is, the pending requests corresponding to the peripheral protocol (such as the CXL protocol) and the pending requests corresponding to the inter-chip interconnection protocol can both be saved in the sending request queue, that is, the peripheral protocol (such as the CXL protocol) and the inter-chip interconnection protocol can share the sending request queue of the transport layer, thereby reducing the hardware resource occupancy involved in the storage of the pending requests corresponding to the peripheral protocol (such as the CXL protocol) and the inter-chip interconnection protocol at the transport layer.

[0106] As an optional implementation, when the data link layer module 430 parses a to-be-sent request from another core or peripheral device, the to-be-sent request may be stored in the send request queue 421 , so as to store the to-be-sent request in the send request queue 421 .

[0107] The receiving response queue 422 is at least used to store the to-be-sent responses marked corresponding to the sent requests to be sent in the sending request queue, wherein the sent requests to be sent refer to the sent requests in the sending request queue (the requests need to be sent to the system bus), and the sent requests to be sent are dequeued and cleared from the sending request queue. As an optional implementation, when the data sending condition for sending data to the system bus is met, the to-be-sent requests in the sending request queue 421 can be sent to the system bus; for example, when the bus interface used by the protocol corresponding to the to-be-sent request is in a state of being connected to the system bus, and the system bus has the ability to receive requests (for example, the system bus has space for receiving requests), it can be regarded as meeting the data sending condition for sending data to the system bus, so that the transport layer module can dequeue and clear the to-be-sent requests in the sending request queue 421, and send the dequeued to-be-sent requests to the bus system, and at the same time, mark the to-be-sent responses for the to-be-sent requests (i.e., the sent to-be-sent requests) sent to the system bus in the receiving response queue 422.

[0108] In an implementation example, if the request to be sent is a request to be sent corresponding to a peripheral protocol (such as a CXL protocol), when the data sending condition for sending data to the system bus is met, the request to be sent corresponding to the peripheral protocol (such as the CXL protocol) can be dequeued from the sending request queue and sent to the system bus, and at the same time, the receiving response queue can save the response to be received with the corresponding mark of the request to be sent corresponding to the peripheral protocol (such as the CXL protocol); if the request to be sent is a request to be sent corresponding to an inter-chip interconnection protocol, when the data sending condition for sending data to the system bus is met, the request to be sent corresponding to the inter-chip interconnection protocol can be dequeued from the sending request queue and sent to the system bus, and at the same time, the receiving response queue can save the response to be received with the corresponding mark of the request to be sent corresponding to the inter-chip interconnection protocol. In other words, the response to be received with the corresponding mark of the request to be sent corresponding to the peripheral protocol (such as the CXL protocol) sent to the system bus and the response to be received with the corresponding mark of the request to be sent corresponding to the inter-chip interconnection protocol sent to the system bus can be saved in the receiving response queue, so that the peripheral protocol (such as the CXL protocol) and the inter-chip interconnection protocol can share the receiving response queue of the transport layer, reducing the occupation of hardware resources.

[0109] It should be noted that, when the pending requests corresponding to the inter-chip interconnection protocol are sent to the system bus, they can be transmitted to the first bus interface connected to the system bus through the transport layer interface of the transport layer module, so as to be transmitted to the system bus through the first bus interface; when the pending requests corresponding to the first part of the sub-protocols of the peripheral protocol (such as the pending requests corresponding to the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol) are sent to the system bus, they can be transmitted to the first bus interface connected to the system bus through the transport layer interface, so as to be transmitted to the system bus through the first bus interface; when the pending requests corresponding to the second part of the sub-protocols of the peripheral protocol (such as the pending requests corresponding to the CXL.IO sub-protocol) are sent to the system bus, they can be transmitted to the second bus interface connected to the system bus through the transport layer interface, so as to be transmitted to the system bus through the second bus interface.

[0110] In a further optional implementation, if the transport layer module receives a response returned by the system bus (for ease of explanation, the response returned by the system bus may be referred to as the first response), the transport layer module may compare the request to which the first response of the system bus is directed with the request to be sent to which the response to be received is directed stored in the receive response queue; if the comparison result is consistent, the first response of the system bus may be saved to the receive response queue; if the comparison result is inconsistent, the first response of the system bus is discarded and an error is reported. It should be noted that the consistent comparison result indicates that the first response is the response of the system bus to the request to be sent from the peripheral device or other core particles, so the first response and the data corresponding to the first response need to be fed back to the peripheral device or other core particles. At this time, the transport layer module may save the first response to the receive response queue, and when the data sending conditions for sending data to the data link layer are met, the first response and the data corresponding to the first response are sent to the data link layer module, and then fed back to the peripheral device or other core particles.

[0111] It can be seen that in a further optional implementation, the receive response queue can further save the first response of the system bus, and the request targeted by the saved first response of the system bus is consistent with the request to be sent targeted by the response to be received saved by the receive response queue.

[0112] In an implementation example, the response to be received may carry an identifier of the corresponding request to be sent, and the first response of the system bus may also carry an identifier of the request to be sent, so that the embodiment of the present application can compare the identifier carried by the response to be received with the identifier carried by the first response of the system bus to see whether they are consistent, so as to compare whether the request to be sent to which the first response of the system bus is consistent with the request to be sent to which the response to be received is consistent. It should be noted that the embodiment of the present application can assign an independent identifier (such as an identification number) to each request to distinguish different requests.

[0113] It should be further explained that the request to which the first response of the system bus is directed may be a request to be sent corresponding to a peripheral protocol (such as a CXL protocol), or may be a request to be sent corresponding to an inter-chip interconnection protocol. The responses corresponding to the requests to be sent of different protocols can be passed to the transport layer module through the bus interface corresponding to the protocol. For example, if the first response of the system bus is directed to a request of an inter-chip interconnection protocol, the first response of the system bus is passed to the transport layer module by the system bus, the first bus interface of the protocol controller, and the transport layer interface; if the first response of the system bus is directed to a request of the first part of the sub-protocol of the peripheral protocol (such as the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol), the first response of the system bus is passed to the transport layer module by the system bus, the first bus interface of the protocol controller, and the transport layer interface; if the first response of the system bus is directed to a request of the second part of the sub-protocol of the peripheral protocol (such as the CXL.IO sub-protocol), the first response of the system bus is passed to the transport layer module by the system bus, the second bus interface of the protocol controller, and the transport layer interface.

[0114] In a further optional implementation, when the data transmission conditions for sending data to the data link layer are met, the first response is dequeued and cleared from the receive response queue, and the first response and the data corresponding to the first response are sent to the data link layer module, and then passed to other core particles or peripherals. In one example, when the data transmission conditions for sending data to the data link layer are met, the first response in the receive response queue and the data corresponding to the first response (the data corresponding to the first response can be stored in the receive data cache) can be passed to the physical coding sublayer of the core particle through the data link layer module and the physical layer module of the protocol controller, and then passed to the physical layer interface of the core particle, and passed to other core particles or peripherals by the physical layer interface of the core particle.

[0115] As an optional implementation, the data sending conditions for sending data to the data link layer may be, for example, that the data link layer module and the physical layer module of the protocol controller are in a connected state, and the bandwidth between the data link layer module and the physical layer module supports the transmission of required data (for example, the bandwidth supports the transmission of the above-mentioned first response and the data corresponding to the first response).

[0116] To facilitate understanding of the process of the transport layer module of the protocol controller sending a request to the system bus and receiving a response from the system bus, as an optional implementation, Figure 6C The example diagram of the interaction process between the protocol controller and the system bus provided in the embodiment of the present application is exemplarily shown. The optional implementation content of the interaction process described below can refer to the description of the corresponding part of the previous text. Figure 6C , the interaction process may include the following steps.

[0117] In step S610, the data link layer module saves the request to be sent to a sending request queue.

[0118] In an optional implementation, the data link layer module parses the to-be-sent request from the peripheral device or other core particles, and can save the to-be-sent request to the send request queue of the transport layer module.

[0119] In step S611, when the data transmission condition for sending data to the system bus is met, the transport layer module dequeues and clears the request to be sent from the sending request queue, and sends the request to be sent and the data corresponding to the request to be sent to the system bus.

[0120] In step S612, the transport layer module saves in the receiving response queue the to-be-received responses marked corresponding to the to-be-sent requests that have been sent in the sending request queue.

[0121] When the data transmission condition for transmitting data to the system bus is met, the transport layer module may synchronously execute step S611 and step S612.

[0122] In step S613, the system bus transmits the first response to the transport layer module.

[0123] Based on the protocol corresponding to the first response of the system bus, the first response of the system bus can be transmitted to the transport layer interface through the bus interface corresponding to the protocol of the protocol controller, thereby entering the transport layer module.

[0124] In step S614, the transport layer module compares the request to which the first response of the system bus is directed with the request to be sent to which the response to be received is directed.

[0125] In step S615, if the comparison result is inconsistent, the transport layer module discards the first response of the system bus and reports an error.

[0126] In an optional implementation, the transport layer module may report error information through interrupts and status registers. Optionally, part of the error information may be synchronously transmitted to peripherals or other core particles through the data link layer.

[0127] In step S616, if the comparison result is consistent, the transport layer module saves the first response of the system bus to the receiving response queue.

[0128] In step S617, when the data sending condition for sending data to the data link layer is met, the transport layer module dequeues and clears the first response from the receiving response queue, and sends the first response and the data corresponding to the first response to the data link layer module.

[0129] Among them, step S617 is executed after step S616.

[0130] The requests and responses described above involve parsing in the transport layer module. Based on the protocol used by the requests and responses, the transport layer module can use the protocol parsing module corresponding to the protocol for parsing. The specific optional implementation methods can be found in the previous description and will not be expanded here.

[0131] Back to Figure 6B As shown, the receive request queue 423 is at least used to store the receive request of the core particle. The receive request of the core particle can be a request sent by the system bus and received by the core particle; the receive request can come from the system bus and needs to be sent to the peripheral device or other core particles connected to the core particle; the receive request can be a request information for requesting data reading and writing, requesting interruption, etc. In other words, the receive requests received by the core particle from the system bus and need to be sent to the peripheral device or other core particles can be saved in the receive request queue, that is, the peripheral protocol (such as the CXL protocol) and the inter-chip interconnection protocol can share the receive request queue of the transport layer, thereby reducing the hardware resource usage.

[0132] In an implementation example, if the receive request sent by the system bus is a receive request corresponding to the inter-chip interconnection protocol, or a receive request corresponding to the first part of the sub-protocol of the peripheral protocol (such as the receive request corresponding to the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol), the receive request sent by the system bus can be passed to the transport layer module through the first bus interface and the transport layer interface, and saved to the receive request queue. If the receive request sent by the system bus is a receive request corresponding to the second part of the sub-protocol of the peripheral protocol (such as the receive request corresponding to the CXL.IO sub-protocol), the receive request of the system bus can be passed to the transport layer module through the second bus interface and the transport layer interface, and saved to the receive request queue.

[0133] The sending response queue 424 is at least used to store the waiting-to-receive responses corresponding to the receiving requests sent by the core grain, wherein the receiving requests sent by the core grain are dequeued and cleared from the receiving request queue. As an optional implementation, when the data sending conditions for sending data to the data link layer are met, the receiving requests stored in the receiving request queue 423 are dequeued and cleared, and the receiving request queue and the data corresponding to the receiving request can be sent to the data link layer module, and reach the physical coding sublayer of the core grain through the data link layer module and the physical layer module, and then be passed to the peripheral device or other core grain through the physical layer interface of the core grain; at the same time, the receiving requests sent in the receiving request queue can be marked as waiting-to-receive responses, and the waiting-to-receive responses corresponding to the sent receiving requests can be saved in the sending response queue.

[0134] In an implementation example, if the receive request is a receive request corresponding to a peripheral protocol (such as a CXL protocol), when the data transmission condition for sending data to the data link layer is met, the receive request corresponding to the peripheral protocol (such as the CXL protocol) can be dequeued and cleared from the receive request queue, and the receive request and the data corresponding to the receive request (the data corresponding to the receive request can be stored in the receive data cache) can be sent to the data link layer module; at the same time, the send response queue can save the response to be received marked corresponding to the receive request corresponding to the sent peripheral protocol (such as the CXL protocol). If the receive request is a receive request corresponding to an inter-chip interconnection protocol, when the data transmission condition for sending data to the data link layer is met, the receive request corresponding to the inter-chip interconnection protocol can be dequeued and cleared from the receive request queue, and the receive request and the data corresponding to the receive request can be sent to the data link layer module, and at the same time, the send response queue can save the response to be received marked corresponding to the receive request corresponding to the sent inter-chip interconnection protocol. That is to say, the pending responses marked corresponding to the receive requests corresponding to the sent peripheral protocols (such as the CXL protocol) and the pending responses marked corresponding to the receive requests corresponding to the sent inter-chip interconnection protocol can be saved in the send response queue, so that the send response queue of the transport layer can be shared to reduce hardware resource usage.

[0135] In an optional implementation, since the receive request and the data corresponding to the receive request are passed to the physical layer (physical coding sublayer, physical layer interface) of the core particle through the data link layer module and the physical layer module, the data sending conditions corresponding to the receive request that meet the data sending conditions to the data link layer can be regarded as that the data link layer module and the physical layer module are in a connected state, and the bandwidth of the data link layer module and the physical layer module support the transmission of the receive request and the data corresponding to the receive request.

[0136] In a further optional implementation, the peripheral or other core particle can feedback a response to the core particle (for the convenience of explanation, the response feedback by the peripheral or other core particle can be called the second response), and the second response can be parsed by the data link layer module of the protocol controller, and when the data link layer module parses the second response feedback by the peripheral or other core particle, the second response is passed to the transport layer module. Thus, the transport layer module can compare the request for the second response with the receiving request for the response to be received stored in the sending response queue; if the comparison result is consistent, the second response can be saved to the sending response queue; if the comparison result is inconsistent, the second response is discarded and an error is reported. It should be noted that the consistency of the comparison result indicates that the second response is a response made by the peripheral or other core particle to the receiving request from the system bus, so the second response and the data corresponding to the second response need to be fed back to the system bus. At this time, the transport layer module can save the second response to the sending response queue, and when the data sending conditions for sending data to the system bus are met, the second response and the data corresponding to the second response are fed back to the system bus.

[0137] It can be seen that in a further optional implementation, the sending response queue can be further used to save the second response of the peripheral device or other core particles, and the request targeted by the saved second response is consistent with the receiving request targeted by the response to be received saved in the sending response queue.

[0138] In a further optional implementation, when the data transmission condition for sending data to the system bus is met, the second response can be dequeued and cleared from the sending response queue, so that the second response and the data corresponding to the second response can be sent to the system bus. In an implementation example, if the protocol corresponding to the second response is an inter-chip interconnection protocol, the data corresponding to the second response and the second response can be passed to the system bus through the transport layer interface and the first bus interface; if the protocol corresponding to the second response is the first part of the sub-protocol of the peripheral protocol (such as the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol), the data corresponding to the second response and the second response can be passed to the system bus through the transport layer interface and the first bus interface; if the protocol corresponding to the second response is the second part of the sub-protocol of the peripheral protocol (such as the CXL.IO sub-protocol), the data corresponding to the second response and the second response can be passed to the system bus through the transport layer interface and the second bus interface.

[0139] In an optional implementation, based on the second response and the data corresponding to the second response need to be sent to the system bus through the transport layer interface, the data sending condition corresponding to the second response that satisfies the data sending condition to the system bus may be, for example, that the bus interface corresponding to the protocol of the second response is in a connected state with the system bus, and the system bus has space to receive the response and data.

[0140] To facilitate understanding of the process in which the system bus sends a request to the transport layer module of the protocol controller, and the transport layer module feeds back a response to the system bus, as an optional implementation, Fig.6D Another example diagram of the interaction process between the protocol controller and the system bus provided by the embodiment of the present application is exemplarily shown. The optional implementation content of the interaction process described below can refer to the description of the corresponding part above. Fig.6D , the interaction process may include the following steps.

[0141] In step S620, the transport layer module saves the receive request from the system bus into the receive request queue.

[0142] Based on the protocol corresponding to the receive request, the receive request can be transferred to the transport layer interface through the bus interface corresponding to the protocol of the protocol controller, thereby entering the transport layer module.

[0143] In step S621, when the data sending condition for sending data to the data link layer is met, the receiving request is dequeued and cleared from the receiving request queue, and the receiving request and the data corresponding to the receiving request are sent to the data link layer module.

[0144] In step S622, the transport layer module saves the to-be-received responses marked corresponding to the sent receive requests in the send response queue.

[0145] When the data sending condition for sending data to the data link layer is met, the transport layer module may synchronously execute step S621 and step S622.

[0146] In step S623, the data link layer module transmits a second response to the transport layer module.

[0147] The second response comes from the peripheral device or other core particles, is a response sent by the peripheral device or other core particles, and is transmitted to the transport layer module via the data link layer module of the protocol controller of the core particles.

[0148] In step S624, the transport layer module compares the request to which the second response is directed with the received request to which the to-be-received response stored in the sending response queue is directed.

[0149] In an optional implementation, the identifier carried in the second response may be compared with the identifier carried in the to-be-received response stored in the sending response queue to see whether they are consistent.

[0150] In step S625, if the comparison results are inconsistent, the transport layer module discards the second response and reports an error.

[0151] In an optional implementation, the transport layer module may report error information through interrupts and status registers. Optionally, part of the error information may be synchronously transmitted to peripherals or other core particles through the data link layer.

[0152] In step S626, if the comparison results are consistent, the transport layer module saves the second response to the sending response queue.

[0153] In step S627, when the data transmission condition for sending data to the system bus is met, the transport layer module dequeues and clears the second response from the sending response queue, and sends the second response and the data corresponding to the second response to the system bus.

[0154] Based on the protocol corresponding to the second response, the second response and the data corresponding to the second response can be transmitted to the system bus through the transport layer interface and the bus interface of the protocol corresponding to the protocol controller.

[0155] Back to Figure 6B As shown, the transmission data buffer 425 is at least used to buffer the data corresponding to the request to be sent in the transmission request queue 421, and to buffer the data corresponding to the second response in the transmission response queue. That is, the request to be sent from the peripheral device or other core particles is stored in the transmission request queue, and the data corresponding to the request to be sent is stored in the transmission data buffer, so that the data corresponding to the request to be sent can be obtained from the transmission data buffer and sent when it needs to be sent to the system bus; at the same time, the second response (from the system bus) to be fed back to the peripheral device or other core particles is stored in the transmission response queue, and the data corresponding to the second response is stored in the transmission data buffer, so that the data corresponding to the second response can be obtained from the transmission data buffer and sent when it needs to be fed back to the peripheral device or other core particles.

[0156] The embodiment of the present application can save the data corresponding to the request to be sent from the peripheral device or other core particles, and the data corresponding to the second response that needs to be fed back to the peripheral device or other core particles in the sending data cache. Therefore, the data corresponding to the request to be sent from the peripheral device or other core particles, and the data corresponding to the second response that needs to be fed back to the peripheral device or other core particles can share the sending data cache, and there is no restriction on the protocol (regardless of peripheral protocol or inter-chip interconnection protocol), which can reduce the hardware resource occupancy of the sending data cache.

[0157] The receive data cache 426 is at least used to cache the data corresponding to the receive request in the receive request queue, and the data corresponding to the first response in the receive response queue. That is, the receive request from the system bus is stored in the receive request queue, and the data corresponding to the receive request is stored in the receive data cache, so that the data corresponding to the receive request can be obtained from the receive data cache and sent when it needs to be sent to the peripheral device or other core particles; at the same time, the first response (from the peripheral device or other core particles) to be fed back to the system bus is stored in the receive response queue, and the data corresponding to the first response is stored in the receive data cache, so that the data corresponding to the first response can be obtained from the receive data cache and sent when it needs to be fed back to the system bus.

[0158] The embodiment of the present application can store the data corresponding to the receive request from the system bus and the data corresponding to the first response that needs to be fed back to the system bus in the receive data cache. Therefore, the data corresponding to the receive request from the system bus and the data corresponding to the first response that needs to be fed back to the system bus can share the receive data cache, and there is no restriction on the protocol (no restriction on peripheral protocol or inter-chip interconnection protocol), which can reduce the hardware resource occupancy of the receive data cache.

[0159] The queue scheduling module 427 is at least responsible for the arbitration scheduling of the waiting-to-send request in the sending request queue, the first response in the receiving response queue, the receiving request in the receiving request queue, and the second response in the sending response queue. The queue scheduling refers to storing the request in the queue, and the dequeueing refers to extracting the request from the queue. The arbitration scheduling of the queue scheduling module 427 can be implemented based on at least one of the mechanisms such as the priority of the request and the response, the order requirements of the protocol, and the letter of credit. The embodiment of the present application does not set a limit on the arbitration scheduling mechanism, and the arbitration scheduling mechanism can be set according to the actual situation. In an example, the embodiment of the present application can set the arbitration scheduling mechanism of the queue scheduling module 427 to be configurable, such as the arbitration scheduling mechanism of the queue scheduling module is configured and defined through a configuration register, so that the priority of the request and response defined by the arbitration scheduling can be changed through the configuration register, and then the arbitration scheduling can be configured based on the address, priority, request type and other information of the request. The embodiment of the present application realizes the configurability of the arbitration scheduling mechanism by configuring registers, and can support arbitration scheduling of requests and responses of peripheral protocols (such as CXL protocol) and inter-chip interconnection protocols through a shared queue scheduling module, thereby reducing the occupation of hardware resources.

[0160] It should be noted that the form of the response involved in the embodiments of the present application can correspond to the form of the request. For example, if the request to be sent is a read request, the corresponding first response can be a read response, and if the request to be sent is a write request, the corresponding first response can be a write response; the same applies to the received request and the second response. It should be noted that the data corresponding to the read response can be understood as the data to be read, and the read response can carry the status information involved in the read response; the data corresponding to the write response can be understood as the data to be written, and the write response can carry the processing status of the write request involved in the write response.

[0161] The embodiments of the present application can implement a sending request queue, a receiving response queue, a receiving request queue, a sending response queue, a sending data cache, a receiving data cache, and a queue scheduling module in the transport layer module of the protocol controller, and the two transport layer sub-modules (the first transport layer sub-module and the second transport layer sub-module) set in the transport layer module can share the above sub-modules to realize the processing of requests and responses between the system bus and the peripherals regarding the peripheral protocol (such as the CXL protocol), and the processing of requests and responses between the system bus and other core particles regarding the inter-chip interconnection protocol, thereby reducing the hardware resource occupancy of the transport layer module of the protocol controller on the basis of the peripheral protocol and the inter-chip interconnection protocol sharing the above modules.

[0162] As an optional implementation, for the data link layer module provided in the embodiment of the present application, Figure 7 An exemplary diagram of a data link layer module provided in an embodiment of the present application is shown, in combination with Figure 4 and Figure 7 As shown, from the perspective of the data sending direction of the data link layer module 430, the data link layer module 430 may include: a first part sub-protocol conversion module 711 in the sending direction, a first part sub-protocol sending data packetization module 712, an inter-chip interconnection sending data packetization module 713, a first sending retransmission buffer module 714, a second part sub-protocol conversion module 715 in the sending direction, a second part sub-protocol sending data packetization module 716, and a second sending retransmission buffer module 717.

[0163] Among them, the data sending direction of the data link layer module 430 can be the direction in which the data link layer module 430 receives data sent by the transport layer module 420 and sends data to the physical layer module 440; among them, the data sent by the transport layer module 420 to the data link layer module 430 comes from the system bus, and the data sent by the data link layer module 430 to the physical layer module 440 needs to be passed to peripherals or other core particles.

[0164] From the perspective of the receiving data direction of the data link layer 430, the data link layer module 430 may include: a first part sub-protocol receiving data unpacking module 721, a first part sub-protocol conversion module 722 in the receiving direction, an inter-chip interconnection receiving data unpacking module 723, a second part sub-protocol receiving data unpacking module 724, and a second part sub-protocol conversion module 725 in the receiving direction.

[0165] Among them, the receiving data direction of the data link layer 430 can be the direction in which the data link layer 430 receives data sent by the physical layer module 440 and transmits the data to the transport layer module 420; the data sent by the physical layer module 440 to the data link layer 430 comes from peripherals or other core particles, and the data transmitted by the data link layer 430 to the transport layer module 420 needs to be transmitted to the system bus.

[0166] It should be noted that the protocol conversion module involved in the above-mentioned data link layer module in the direction of sending data and receiving data is mainly responsible for the conversion between the system bus protocol (such as AXI protocol) and the peripheral protocol (such as CXL protocol), involving the conversion of the system bus protocol to the peripheral protocol in the direction of sending data of the data link layer module, and the conversion of the peripheral protocol to the system bus protocol in the direction of receiving data of the data link layer module. It should be noted that protocol conversion is not required for inter-chip interconnection, so the protocol conversion module may not be set for inter-chip interconnection in the data link layer module.

[0167] In an optional implementation, the first part of the sub-protocols of the peripheral protocol (such as the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol) and the second part of the sub-protocol (such as the CXL.IO sub-protocol) need to implement protocol conversion modules in the sending data direction and the receiving data direction of the data link layer respectively; that is, the first part of the sub-protocol needs to implement the first part of the sub-protocol conversion module 711 in the sending data direction, the second part of the sub-protocol needs to implement the second part of the sub-protocol conversion module 715 in the sending data direction, the first part of the sub-protocol needs to implement the first part of the sub-protocol conversion module 722 in the receiving data direction, and the second part of the sub-protocol needs to implement the second part of the sub-protocol conversion module 725 in the receiving data direction.

[0168] In an optional implementation, the first part sub-protocol conversion module 711 in the sending direction is used to convert the request or response, and / or data (corresponding to the request or response, and / or data transmitted by the transport layer module) of the data link layer module in the data sending direction from the system bus protocol (for example, the AXI protocol) to the first part of the sub-protocol of the peripheral protocol (for example, the CXL.CACHE sub-protocol and the CXL.MEM sub-protocol).

[0169] The second part sub-protocol conversion module 715 in the sending direction is used to convert the request or response, and / or data (corresponding to the request or response, and / or data transmitted by the transport layer module) of the data link layer module in the sending data direction from the system bus protocol (for example, the AXI protocol) to the second part sub-protocol of the peripheral protocol (for example, the CXL.IO sub-protocol).

[0170] In an optional implementation, the first part sub-protocol conversion module 722 in the receiving direction is connected to the first part sub-protocol received data unpacking module 721, and is at least used to convert the first part sub-protocol of the peripheral protocol to the system bus protocol for the data packet parsed by the first part sub-protocol received data unpacking module 721.

[0171] In an optional implementation, the receiving direction second part sub-protocol conversion module 725 is connected to the second part sub-protocol received data unpacking module 724, and is at least used to convert the second part sub-protocol of the peripheral protocol to the system bus protocol for the data packet parsed by the second part sub-protocol received data unpacking module 724.

[0172] The data transmission packetization module involved in the data transmission direction of the above-mentioned data link layer module is mainly responsible for assembling the request or response, and / or data (the request or response, and / or data transmitted by the corresponding transport layer module) corresponding to the data transmission direction of the data link layer into a data packet matching the corresponding protocol according to the corresponding protocol; wherein, the inter-chip interconnection protocol, the first part sub-protocol (such as CXL.CACHE sub-protocol and CXL.MEM sub-protocol) of the peripheral protocol, and the second part sub-protocol (such as CXL.IO sub-protocol) need to implement the data transmission packetization module respectively in the data transmission direction of the data link layer; that is, the inter-chip interconnection protocol needs to implement the inter-chip interconnection data transmission packetization module 713 in the data transmission direction, the first part sub-protocol needs to implement the first part sub-protocol data transmission packetization module 712 in the data transmission direction, and the second part sub-protocol needs to implement the second part sub-protocol data transmission packetization module 716 in the data transmission direction.

[0173] In an optional implementation, the inter-chip interconnection data packetization module 713 can be used to assemble the request or response and / or data transmitted by the transport layer module into a data packet matching the inter-chip interconnection protocol according to the inter-chip interconnection protocol.

[0174] In an optional implementation, the first part sub-protocol sending data packetization module 712 is connected to the first part sub-protocol conversion module 711 in the sending direction, and can assemble the request or response, and / or data of the conversion protocol of the first part sub-protocol conversion module 711 in the sending direction into a data packet that matches the first part sub-protocol.

[0175] In an optional implementation, the second part sub-protocol sending data packetization module 716 is connected to the sending direction second part sub-protocol conversion module 715, and can assemble the request or response, and / or data of the conversion protocol of the sending direction second part sub-protocol conversion module 715 into a data packet that matches the second part sub-protocol.

[0176] In one example, taking the data packet length of the CXL protocol as a preset length as an example, the first part sub-protocol sending data packetization module and the second part sub-protocol sending data packetization module can sequentially splice the request or response of the protocol converted by the corresponding protocol conversion module, and / or data into a data packet of a preset length, so that multiple requests or responses can be attached with fields such as data packet type, thereby splicing them into a data packet of a preset length; of course, the embodiment of the present application can also support splicing of pure data and fields such as data packet type into a data packet of a preset length. In an optional example, the preset length is, for example, 68Byte (bytes).

[0177] In an optional implementation, a sending and retransmission cache module can be set in the protocol controller, and the sending and retransmission cache module can cache data packets sent to the chip or peripheral device, and the data packets are data packets packaged by the data link layer module; wherein, if the data packet is received correctly, the correctly received data packet is deleted from the sending and retransmission cache module, and if the data packet is not received correctly, the incorrectly received data packet is retrieved from the sending and retransmission cache module and retransmitted.

[0178] The transmission retransmission buffer module provided in the protocol controller may be, for example, the transmission retransmission buffer module involved in the data transmission direction of the above-mentioned data link layer module, which is used to buffer the data packets packaged by the corresponding transmission data package module and provide a retransmission mechanism for the data packets. For example, the transmission retransmission buffer module provided in the protocol controller may include a first transmission retransmission buffer module 714 and a second transmission retransmission buffer module 717.

[0179] Among them, the first sending retransmission cache module 714 corresponds to the connection between the first part sub-protocol sending data packetization module 712 and the inter-chip interconnect sending data packetization module 713, and can cache the data packets packetized by the first part sub-protocol sending data packetization module 712 and the inter-chip interconnect sending data packetization module 713. Among them, if the data packet packetized by the first part sub-protocol sending data packetization module 712 is correctly received by the peripheral device, or the data packet packet packetized by the inter-chip interconnect sending data packetization module 713 is correctly received by other core particles, then the correctly received data packet can be deleted from the first sending retransmission cache module 714, and if the data packet is not correctly received, then the incorrectly received data packet can be retrieved from the first sending retransmission cache module 714 and retransmitted.

[0180] Correspondingly, the second sending retransmission cache module 717 corresponds to the connection with the second part sub-protocol sending data packetization module 716, so that the data packets packetized by the second part sub-protocol sending data packetization module 716 can be cached, wherein, if the data packets packetized by the second part sub-protocol sending data packetization module 716 are correctly received by the peripheral device, then the correctly received data packets can be deleted from the second sending retransmission cache module 717, if the data packets are not correctly received, then the incorrectly received data packets can be retrieved from the second sending retransmission cache module 717 and retransmitted.

[0181] As an optional implementation, the receiving end of the data packet can check the check field in the data packet to perform data packet verification. If the verification passes, the data packet is considered to be correctly received. At this time, the receiving end of the data packet will send a notification message to the sending end of the data packet to inform the data packet that the data packet is correctly received. If the sending end of the data packet times out and does not receive the notification message that the data packet is correctly received, or receives the notification message that the data packet is not correctly received, it can be considered that the data packet is not correctly received. It should be noted that for the protocol controller of the core particle, when sending data to a peripheral device, the receiving end of the data packet can be the protocol controller of the peripheral device (such as the CXL protocol controller), and when sending data to other core particles, the receiving end of the data packet can be the protocol controller of other core particles (the part of the protocol controller that supports inter-chip interconnection).

[0182] In an optional alternative implementation, the transmission retransmission buffer module may not be set in the data link layer module, but may be set in the physical layer module 440 of the protocol controller. For example, the embodiment of the present application may determine the setting position of the transmission retransmission buffer module based on the version of the peripheral protocol. If the version of the peripheral protocol is the first version, the transmission retransmission buffer module may be set in the data link layer module. If the version of the peripheral protocol is the second version, the transmission retransmission buffer module may be set in the physical layer module, wherein the second version is higher than the first version; for example, the first version is the CXL1.1 protocol version or the CXL2.0 protocol version, and the second version is the CXL3.0 protocol version.

[0183] Back to Figure 7As shown, the data link layer module is mainly responsible for parsing the data packets transmitted by the physical layer module in the direction of receiving data in the data link layer module. Among them, the inter-chip interconnection protocol, the first part of the sub-protocols of the peripheral protocol (such as CXL.CACHE sub-protocol and CXL.MEM sub-protocol), and the second part of the sub-protocols (such as CXL.IO sub-protocol) need to implement the receiving data unpacking module in the direction of receiving data of the data link layer; that is, the inter-chip interconnection protocol needs to implement the inter-chip interconnection receiving data unpacking module 723 in the direction of receiving data, the first part of the sub-protocol needs to implement the first part of the sub-protocol receiving data unpacking module 721 in the direction of receiving data, and the second part of the sub-protocol needs to implement the second part of the sub-protocol receiving data unpacking module 724 in the direction of receiving data.

[0184] In an optional implementation, the inter-chip interconnection received data depacketization module 723 may be used to parse the data packets from other core particles transmitted by the physical layer module according to the inter-chip interconnection protocol.

[0185] In an optional implementation, the first part sub-protocol received data unpacking module 721 can be used to parse the data packets related to the first part sub-protocol from the peripheral device transmitted by the physical layer module according to the first part sub-protocol of the peripheral device protocol.

[0186] In an optional implementation, the second part sub-protocol received data unpacking module 724 can be used to parse the data packets related to the second part sub-protocol from the peripheral device transmitted by the physical layer module according to the second part sub-protocol of the peripheral device protocol.

[0187] As an optional implementation, for the physical layer module provided in the embodiment of the present application, Figure 8 An exemplary diagram of a physical layer module provided in an embodiment of the present application is shown. Figure 4 , Figure 7 and Figure 8 As shown, the physical layer module 440 may include: a protocol arbitration module 811 , a transmission retransmission buffer module 812 , a physical layer encoding module 813 and a physical layer decoding module 814 .

[0188] Among them, the protocol arbitration module 811 can be used at least to arbitrate data packets packaged by the first part sub-protocol sending data packetization module in the data link layer module 430, and the data packets packaged by the second part sub-protocol sending data packetization module, and send the arbitrated data packets to the next module connected to the protocol arbitration module.

[0189] In an optional implementation, the arbitration of the protocol arbitration module 811 may refer to that when the data packets packaged by the first part sub-protocol sending data package module (corresponding to the data packets of the first part sub-protocol) and the data packets packaged by the second part sub-protocol sending data package module (corresponding to the data packets of the second part sub-protocol) both need to use the physical layer bandwidth for data packet transmission, the data packets packaged by the first part sub-protocol sending data package module (corresponding to the data packets of the first part sub-protocol) and the data packets packaged by the second part sub-protocol sending data package module (corresponding to the data packets of the second part sub-protocol) are arbitrated, and the data packets winning the arbitration are qualified to use the physical layer bandwidth for transmission. For example, when the data packets of the CXL.IO sub-protocol and the data packets of the CXL.CACHE sub-protocol / the data packets of the CXL.MEM sub-protocol need to use the bandwidth of the physical layer for transmission at the same time, the data packets of the CXL.IO sub-protocol and the data packets of the CXL.CACHE sub-protocol / the data packets of the CXL.MEM sub-protocol can be arbitrated, and the data packets winning the arbitration can use the bandwidth of the physical layer for transmission.

[0190] As an optional implementation, the arbitration algorithm used by the protocol arbitration module 811 may be, for example, a round robin algorithm, or other arbitration algorithms may be used, which is not limited in the embodiment of the present application.

[0191] As an optional implementation, the sending retransmission buffer module 812 is at least used to buffer the data packets and support the retransmission mechanism. For a specific introduction, please refer to the description of the corresponding part above.

[0192] In an optional implementation, if the sending retransmission buffer module is set in the data link layer module, the sending retransmission buffer module may include the first sending retransmission buffer module and the second sending retransmission buffer module described above, and related functions can refer to the description of the corresponding part of the above text.

[0193] It should be noted that if the sending retransmission cache module is set in the data link layer module, the next module connected to the protocol arbitration module may be the physical layer encoding module 813; if the sending retransmission cache module is set in the physical layer module, the next module connected to the protocol arbitration module may be the sending retransmission cache module.

[0194] In an optional implementation, the physical layer encoding module 813 is at least used to encode and send data packets according to the protocol requirements of the physical layer of the core.

[0195] In an optional implementation, the physical layer decoding module 814 is at least used to decode the data received from the physical layer of the core particle according to the protocol requirements of the physical layer of the core particle, obtain the data packet, and pass it to the data link layer module.

[0196] In an optional implementation, the physical layer encoding module 813 and the physical layer decoding module 814 are connected to the physical layer of the core particle (for example, the physical coding sublayer of the core particle), so that the physical layer encoding module 813 and the physical layer decoding module 814 can be connected to the physical coding sublayer of the core particle through the third bus interface of the protocol controller.

[0197] In a further optional implementation, the peripheral protocol and inter-chip interconnection protocol based on the protocol controller are connected to the physical coding sublayer of the core particle through the third bus interface. The embodiment of the present application can provide the peripheral protocol and inter-chip interconnection protocol of the protocol controller, and a mechanism for time-sharing calling the third bus interface to communicate data with the physical coding sublayer. For example, the time when the peripheral protocol of the protocol controller calls the third bus interface to communicate data with the physical coding sublayer, and the time when the inter-chip interconnection protocol of the protocol controller calls the third bus interface to communicate data with the physical coding sublayer are negotiated and agreed upon, so that the time when the peripheral protocol of the protocol controller calls the third bus interface and the time when the inter-chip interconnection protocol calls the third bus interface can be staggered, so as to realize the peripheral protocol and inter-chip interconnection protocol of the protocol controller to time-share the third bus interface and communicate data with the physical coding sublayer.

[0198] In a further optional implementation, Fig. 9 Another example diagram of the protocol controller provided in the embodiment of the present application is shown exemplarily. Figure 4 and Fig. 9 As shown, the protocol controller may further include: a control register 450 , and a status and interrupt management module 460 .

[0199] Among them, the control register 450 is used to implement software-configurable registers, and the software-configurable registers may include at least one of the configuration registers defined in the peripheral protocol (such as the CXL protocol), the custom configuration registers of the peripheral protocol controller, and the configuration registers of the inter-chip interconnect protocol controller. The above registers may each have an independent access address.

[0200] The status and interrupt management module 460 is used to implement software status register and interrupt management. The software status register may include at least one of the status register defined in the peripheral protocol (such as the CXL protocol), the custom status register of the peripheral protocol controller, and the status register of the inter-chip interconnect protocol controller.

[0201] In an optional implementation, the status and interrupt management module 460 may also implement interrupt management and interrupt reporting functions according to the interrupt configuration and interrupt status of the control register 450 .

[0202] It should be noted that the configurable registers can be used to configure the behavior of the protocol controller. The status register can be used to monitor the current status of the protocol controller and the current status of the data link, including whether there is a data transmission error, the current data transmission rate, the current interrupt status, etc.

[0203] The protocol controller provided in the embodiment of the present application can implement the interface multiplexing of the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol (such as CXL.CACHE sub-protocol and CXL.MEM sub-protocol) at the first bus interface connected to the system bus; in the transport layer module, except for the protocol parsing module, the remaining sub-modules of the transport layer module can implement the multiplexing of the inter-chip interconnection protocol, the first part of the sub-protocol of the peripheral protocol, and the second part of the sub-protocol (such as CXL.IO sub-protocol); in the data link layer module, the inter-chip interconnection protocol and the first part of the sub-protocol of the peripheral protocol can realize the shared transmission retransmission cache module; in the physical layer module, the inter-chip interconnection protocol, the first part of the sub-protocol of the peripheral protocol, and the second part of the sub-protocol can share the transmission retransmission cache module, the physical layer encoding module and the physical layer decoding module. The protocol controller provided in the embodiment of the present application can support the peripheral protocol (such as CXL protocol) and the inter-chip interconnection protocol. By realizing the multiplexing of hardware resources, the protocol controller can greatly reduce the occupation of hardware resources, while reducing the resources and difficulty required for chip integration, which helps to reduce chip costs and reduce design cycles.

[0204] Based on the protocol controller provided in the embodiment of the present application, the embodiment of the present application also provides a protocol control method. As an optional implementation, Fig.10 The optional flow chart of the protocol control method provided in the embodiment of the present application is exemplarily shown. The method flow can be applied to the protocol controller. Fig.10 The method flow may include the following steps.

[0205] In step S01, the protocol currently used by the protocol controller is determined.

[0206] In the embodiment of the present application, the protocol currently used by the protocol controller may be a peripheral protocol or an inter-chip interconnection protocol.

[0207] In step S02, if the protocol currently used by the protocol controller is a peripheral protocol, the module in the protocol controller that is separately configured for the inter-chip interconnection protocol is closed.

[0208] If the protocol currently used by the protocol controller is a peripheral protocol (including the first and second sub-protocols of the peripheral protocol), the protocol controller is currently used as a peripheral protocol controller, so that the module in the protocol controller that is separately configured for the inter-chip interconnection protocol can be turned off to reduce power consumption.

[0209] In an optional implementation, shutting down a module in the protocol controller that is configured separately for the inter-chip interconnection protocol may include shutting down at least one of the following modules:

[0210] The software configurable registers related to inter-chip interconnection in the control register, the software status registers and interrupt management related modules related to inter-chip interconnection in the status and interrupt management module, the protocol parsing module corresponding to the inter-chip interconnection protocol in the transport layer module, the inter-chip interconnection sending data packetization module and the inter-chip interconnection receiving data unpacking module in the data link layer module.

[0211] In step S03, if the protocol currently used by the protocol controller is the inter-chip interconnection protocol, the module in the protocol controller that is separately configured for the peripheral protocol is closed.

[0212] If the protocol currently used by the protocol controller is the inter-chip interconnection protocol, the protocol controller is currently used as an inter-chip interconnection controller, so that the modules in the protocol controller that are configured separately for the peripheral protocol can be turned off (for example, the modules that are configured separately for the first part of the sub-protocol of the peripheral protocol need to be turned off, and the modules that are configured separately for the second part of the sub-protocol of the peripheral protocol need to be turned off) to reduce power consumption.

[0213] In an optional implementation, shutting down a module in the protocol controller that is configured separately for a peripheral protocol may include shutting down at least one of the following modules:

[0214] Software configurable registers related to the peripheral protocol (e.g., CXL protocol) in the control register, software status registers and interrupt management related modules related to the peripheral protocol (e.g., CXL protocol) in the status and interrupt management module, a second bus interface corresponding to the second part sub-protocol of the peripheral protocol, a parsing module corresponding to the peripheral protocol (e.g., CXL protocol) in the transport layer module (e.g., a protocol parsing module corresponding to the first part sub-protocol in the transport layer module, and a protocol parsing module corresponding to the second part sub-protocol), a protocol conversion module related to the peripheral protocol in the data link layer module (e.g., a first part sub-protocol conversion module in the sending direction, a second part sub-protocol conversion module in the sending direction, a first part sub-protocol conversion module in the receiving direction, and a second part sub-protocol conversion module in the receiving direction), a sending data packetization module (e.g., a first part sub-protocol sending data packetization module, and a second part sub-protocol sending data packetization module) and a receiving data unpacking module (e.g., a first part sub-protocol receiving data unpacking module, and a second part sub-protocol receiving data unpacking module).

[0215] Based on the protocol control method provided in the embodiment of the present application, the embodiment of the present application can shut down the module in the protocol controller that is separately configured for the inter-chip interconnection protocol when the protocol controller uses the peripheral protocol, and shut down the module in the protocol controller that is separately configured for the peripheral protocol when the protocol controller uses the inter-chip interconnection protocol, thereby shutting down the modules in the protocol controller that are not related to the currently used protocol to reduce the power consumption of the protocol controller.

[0216] The embodiment of the present application also provides a core particle, which may include the protocol controller provided in the embodiment of the present application.

[0217] In a further optional implementation, the core particle provided by the embodiment of the present application may also include: a physical coding sublayer connected to the protocol controller, and a physical layer interface connected to the physical coding sublayer.

[0218] The embodiment of the present application also provides a system on chip, which may include a plurality of interconnected core particles, such as the core particles provided in the embodiment of the present application.

[0219] An embodiment of the present application also provides an electronic device, such as a terminal device or a server device. The electronic device may include the core particle provided by the embodiment of the present application, or the system on chip provided by the embodiment of the present application.

[0220] The above describes multiple implementation schemes provided by the embodiments of the present application. The various optional methods introduced in each implementation scheme can be combined and cross-referenced with each other without conflict, thereby extending a variety of possible implementation schemes, which can all be considered as implementation schemes disclosed and open in the embodiments of the present application.

[0221] Although the embodiments of the present application are disclosed above, the present application is not limited thereto. Any person skilled in the art may make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be subject to the scope defined by the claims.

Claims

1. A protocol controller, characterized in that: Applied to the chiplet, the protocol controller includes: A first bus interface connected to the system bus, wherein the first bus interface implements an inter-chip interconnection protocol and a first partial sub-protocol of the peripheral protocol; and, a second bus interface connected to the system bus, the second bus interface implementing a second partial sub-protocol of the peripheral protocol, the first partial sub-protocol and the second partial sub-protocol being configured to be implemented by different bus interfaces; The core particle uses one of an inter-chip interconnection protocol and a peripheral protocol at the same time.

2. The protocol controller according to claim 1, wherein: The protocol controller further comprises: a bus interface module; the bus interface module comprises a first interface management module and a second interface management module; The first interface management module is used for connection management between the first bus interface and the system bus; The second interface management module is used for connection management between the second bus interface and the system bus.

3. The protocol controller according to claim 2, wherein: The first interface management module, configured to manage the connection between the first bus interface and the system bus, includes: Managing connection and disconnection between the first bus interface and the system bus based on the internal state of the protocol controller for the inter-chip interconnect protocol and the first partial sub-protocol, and the state of the first bus interface; The second interface management module, configured to manage the connection between the second bus interface and the system bus, includes: Based on the internal state of the protocol controller for the second partial sub-protocol and the state of the second bus interface, the connection and disconnection between the second bus interface and the system bus are managed.

4. The protocol controller according to claim 3, characterized in that The first interface management module, configured to manage connection and disconnection between the first bus interface and the system bus based on an internal state of the protocol controller for the inter-chip interconnect protocol and the first partial sub-protocol, and a state of the first bus interface, includes: If the processing states of the internal modules of the protocol controller for the inter-chip interconnection protocol and the first part of the sub-protocol are both in an idle state, and the first bus interface is also in an idle state, disconnecting the first bus interface from the system bus; If any internal module of the protocol controller has a data processing operation for the inter-chip interconnection protocol or the first part of the sub-protocol, then restoring the connection between the first bus interface and the system bus; The second interface management module, configured to manage connection and disconnection between the second bus interface and the system bus based on an internal state of the protocol controller for the second partial sub-protocol and a state of the second bus interface, includes: If the processing states of the internal modules of the protocol controller for the second part sub-protocol are all in an idle state, and the second bus interface is also in an idle state, disconnecting the second bus interface from the system bus; If any internal module of the protocol controller has a data processing operation for the second part of the sub-protocol, the connection between the second bus interface and the system bus is restored.

5. The protocol controller according to claim 1, wherein: The protocol controller further comprises: a transport layer module, a data link layer module, and a physical layer module; The transport layer interface of the transport layer module is connected to the system bus through the first bus interface and the second bus interface respectively; the transport layer module is connected to the data link layer module, and the data link layer module is connected to the physical layer module; the physical layer module is connected to the physical coding sublayer of the core particle through the third bus interface of the protocol controller.

6. The protocol controller according to claim 5, characterized in that The transport layer module is provided with a first transport layer submodule and a second transport layer submodule, the first transport layer submodule implements the data transmission control of the inter-chip interconnection protocol and the first part of the sub-protocol, and the second transport layer submodule implements the data transmission control of the second part of the sub-protocol; The transport layer module has a plurality of submodules shared by the first transport layer submodule and the second transport layer submodule, and the plurality of submodules are part of the submodules within the transport layer module.

7. The protocol controller according to claim 6, characterized in that The multiple submodules include at least: The first submodule set of the transport layer is used to process requests from peripherals or other core particles to be sent to the system bus, and responses from the system bus to be sent to peripherals or other core particles; The second sub-module set of the transport layer is used to process requests from the system bus that need to be sent to peripheral devices or other core particles, and responses from peripheral devices or other core particles that need to be sent to the system bus.

8. The protocol controller according to claim 7, characterized in that The first submodule set of the transport layer includes at least: a sending request queue and a receiving response queue; The sending request queue is used to store at least the waiting-to-send request of the chiplet, wherein the waiting-to-send request comes from a peripheral device or other chiplet connected to the chiplet and needs to be sent to the system bus; The receive response queue is configured to store at least the to-be-received responses corresponding to the to-be-sent requests sent in the send request queue; and store the first response of the system bus, wherein the request for which the stored first response is addressed is consistent with the to-be-sent request for which the to-be-received response stored in the receive response queue is addressed; Among them, when the data sending conditions for sending data to the system bus are met, the request to be sent is dequeued and cleared from the sending request queue, and the request to be sent and the data corresponding to the request to be sent are sent to the system bus; when the data sending conditions for sending data to the data link layer are met, the first response is dequeued and cleared from the receiving response queue, and the first response and the data corresponding to the first response are sent to the data link layer module.

9. The protocol controller according to claim 8, characterized in that The second submodule set of the transport layer includes at least: a receive request queue and a send response queue; The receive request queue is at least used to store the receive request of the chiplet, where the receive request comes from the system bus and needs to be sent to the peripheral device connected to the chiplet or other chiplets; The sending response queue is at least used to store the to-be-received response marked corresponding to the sent receiving request; and to store the second response of the peripheral device or other core particle, and the request for which the stored second response is directed is consistent with the receiving request for which the to-be-received response stored in the sending response queue is directed; Among them, when the data sending conditions for sending data to the data link layer are met, the receive request is dequeued and cleared from the receive request queue, and the receive request and the data corresponding to the receive request are sent to the data link layer module; when the data sending conditions for sending data to the system bus are met, the second response is dequeued and cleared from the send response queue, and the second response and the data corresponding to the second response are sent to the system bus.

10. The protocol controller according to claim 9, characterized in that The multiple submodules also include: a sending data buffer, a receiving data buffer and a queue scheduling module; The sending data buffer is at least used to cache data corresponding to the to-be-sent request in the sending request queue, and to cache data corresponding to the second response in the sending response queue; The received data buffer is at least used to cache data corresponding to the received request in the received request queue, and cache data corresponding to the first response in the received response queue; The queue scheduling module is at least used to arbitrate and schedule the enqueue processing and dequeue processing of the pending requests in the sending request queue, the first response in the receiving response queue, the received request in the receiving request queue, and the second response in the sending response queue; wherein the arbitration scheduling mechanism of the queue scheduling module is configured and defined through a configuration register.

11. The protocol controller according to any one of claims 6 to 10, characterized in that: The transport layer module is provided with a plurality of protocol parsing modules; the number of the plurality of protocol parsing modules corresponds to the number of protocols that require independent configuration of protocol parsing modules; The multiple protocol parsing modules include: a protocol parsing module corresponding to the inter-chip interconnection protocol, a protocol parsing module corresponding to the first part of the sub-protocol, and a protocol parsing module corresponding to the second part of the sub-protocol; Among them, the protocol parsing module corresponding to the inter-chip interconnection protocol and the protocol parsing module corresponding to the first part of the sub-protocol are set in the first transport layer sub-module; the protocol parsing module corresponding to the second part of the sub-protocol is set in the second transport layer sub-module.

12. The protocol controller according to claim 5, characterized in that The data link layer module includes: a first part sub-protocol conversion module for the sending direction, a first part sub-protocol sending data packetization module, an inter-chip interconnection sending data packetization module, a second part sub-protocol conversion module for the sending direction, and a second part sub-protocol sending data packetization module; The sending direction first part sub-protocol conversion module is at least used to convert the request or response, and / or data transmitted by the transport layer module from the system bus protocol to the first part sub-protocol of the peripheral protocol; The first part sub-protocol sending data packetizing module is at least used to assemble the request or response of the sending direction to the protocol converted by the first part sub-protocol conversion module, and / or data, into a data packet matching the first part sub-protocol; The inter-chip interconnection data packetization module is at least used to assemble the request or response and / or data transmitted by the transport layer module into a data packet that matches the inter-chip interconnection protocol according to the inter-chip interconnection protocol; The second part sub-protocol conversion module in the sending direction is at least used for converting the request or response, and / or data transmitted by the transport layer module from the system bus protocol to the second part sub-protocol of the peripheral protocol; The second part sub-protocol sending data packetizing module is at least used to assemble the request or response and / or data of the sending direction converted protocol to the second part sub-protocol conversion module into a data packet matching the second part sub-protocol.

13. The protocol controller according to claim 12, wherein: The data link layer module also includes: a first part sub-protocol received data unpacking module, a receiving direction first part sub-protocol conversion module, an inter-chip interconnection received data unpacking module, a second part sub-protocol received data unpacking module, and a receiving direction second part sub-protocol conversion module; The first part sub-protocol receiving data depacketizing module is configured to parse, according to the first part sub-protocol of the peripheral device protocol, data packets related to the first part sub-protocol transmitted from the peripheral device by the physical layer module; The receiving direction first part sub-protocol conversion module is at least used for converting the data packet parsed by the first part sub-protocol receiving data depacketization module from the first part sub-protocol of the peripheral protocol to the system bus protocol; The inter-chip interconnection received data depacketizing module is at least used to parse the data packets from other core particles transmitted by the physical layer module according to the inter-chip interconnection protocol; The second part sub-protocol receiving data depacketizing module is at least used for parsing the data packets related to the second part sub-protocol from the peripheral device transmitted by the physical layer module according to the second part sub-protocol of the peripheral device protocol; The receiving direction second part sub-protocol conversion module is at least used to convert the data packet parsed by the second part sub-protocol receiving data depacketization module from the second part sub-protocol of the peripheral protocol to the system bus protocol.

14. The protocol controller according to claim 12 or 13, characterized in that: The physical layer module includes: a protocol arbitration module, a physical layer encoding module and a physical layer decoding module; The protocol arbitration module is at least used to arbitrate data packets packaged by the first part sub-protocol sending data package module and the second part sub-protocol sending data package module in the data link layer module, and send the arbitrated data packets to the next module connected to the protocol arbitration module; The physical layer encoding module is at least used to encode and send data packets according to the protocol requirements of the physical layer of the core; The physical layer decoding module is at least used to decode data received from the physical layer of the core particle according to the protocol requirements of the physical layer of the core particle, obtain data packets, and pass them to the data link layer module.

15. The protocol controller according to claim 14, characterized in that The protocol controller further comprises: a sending and retransmission buffer module; The sending and retransmission cache module is at least used to cache data packets sent to the chip or peripheral device, where the data packets are data packets packaged by the data link layer module; wherein, if the data packet is correctly received, the correctly received data packet is deleted from the sending and retransmission cache module; if the data packet is not correctly received, the incorrectly received data packet is retrieved from the sending and retransmission cache module and retransmitted.

16. The protocol controller according to claim 15, characterized in that The sending retransmission buffer module is provided in the data link layer module or the physical layer module; Among them, if the version of the peripheral protocol is the first version, the sending retransmission cache module is set in the data link layer module; if the version of the peripheral protocol is the second version, the sending retransmission cache module is set in the physical layer module, and the second version is higher than the first version.

17. The protocol controller according to claim 16, characterized in that: The sending and retransmission buffer module is provided in the data link layer module, and the sending and retransmission buffer module includes a first sending and retransmission buffer module and a second sending and retransmission buffer module; The first sending and retransmission buffer module is at least used to cache data packets packaged by the first part of the sub-protocol sending data package module and the inter-chip interconnection sending data package module; wherein, if the data packet packaged by the first part of the sub-protocol sending data package module is correctly received by the peripheral device, or the data packet packaged by the inter-chip interconnection sending data package module is correctly received by other core particles, then the correctly received data packet is deleted from the first sending and retransmission buffer module; if the data packet is not correctly received, then the incorrectly received data packet is retrieved from the first sending and retransmission buffer module and retransmitted; The second sending and retransmission cache module is at least used to cache the data packets packaged by the second part sub-protocol sending data package module; wherein, if the data packets packaged by the second part sub-protocol sending data package module are correctly received by the peripheral device, the correctly received data packets are deleted from the second sending and retransmission cache module; if the data packets are not received correctly, the incorrectly received data packets are retrieved from the second sending and retransmission cache module and retransmitted.

18. The protocol controller according to claim 16, characterized in that If the sending and retransmission buffer module is set in the physical layer module, the next module connected to the protocol arbitration module is the sending and retransmission buffer module; if the sending and retransmission buffer module is set in the data link layer module, the next module connected to the protocol arbitration module is the physical layer encoding module.

19. The protocol controller according to claim 5, characterized in that The protocol controller also includes: a control register, and a status and interrupt management module; The control register is used to implement a software configurable register, and the software configurable register includes at least one of a configuration register defined in the peripheral protocol, a custom configuration register of the peripheral protocol controller, and a configuration register of the inter-chip interconnect protocol controller; The status and interrupt management module is used to implement software status register and interrupt management, wherein the software status register includes at least one of a status register defined in the peripheral protocol, a custom status register of the peripheral protocol controller, and a status register of the inter-chip interconnect protocol controller; The status and interrupt management module is further configured to implement interrupt management and interrupt reporting according to the interrupt configuration and interrupt status of the control register.

20. The protocol controller according to claim 1, wherein: The peripheral device protocol includes the CXL protocol; the first part of the sub-protocol includes the memory and cache sub-protocol of the CXL protocol; and the second part of the sub-protocol includes the input and output sub-protocol of the CXL protocol.

21. A protocol control method, characterized in that: Applied to the protocol controller according to any one of claims 1 to 20, the method comprising: Determine the protocol currently used by the protocol controller; If the protocol currently used by the protocol controller is a peripheral protocol, the module configured separately for the inter-chip interconnection protocol in the protocol controller is closed; If the protocol currently used by the protocol controller is an inter-chip interconnection protocol, a module in the protocol controller that is separately configured for the peripheral protocol is closed.

22. The protocol control method according to claim 21, characterized in that: Shutting down the module configured solely for the inter-chip interconnection protocol in the protocol controller includes shutting down at least one of the following modules: The software configurable registers related to inter-chip interconnection in the control register, the software status registers and interrupt management related modules related to inter-chip interconnection in the status and interrupt management module, the protocol parsing module corresponding to the inter-chip interconnection protocol in the transport layer module, the inter-chip interconnection sending data packetization module and the inter-chip interconnection receiving data depacketization module in the data link layer module.

23. The protocol control method according to claim 22, characterized in that: Shutting down a module configured solely for a peripheral protocol in the protocol controller includes shutting down at least one of the following modules: The software configurable registers related to the peripheral protocol in the control register, the software status registers and interrupt management related modules related to the peripheral protocol in the status and interrupt management module, the second bus interface corresponding to the second part sub-protocol of the peripheral protocol, the protocol parsing module corresponding to the first part sub-protocol and the protocol parsing module corresponding to the second part sub-protocol in the transport layer module, the sending direction first part sub-protocol conversion module, the first part sub-protocol sending data packetization module, the sending direction second part sub-protocol conversion module, the second part sub-protocol sending data packetization module, the first part sub-protocol receiving data unpacking module, the receiving direction first part sub-protocol conversion module, the second part sub-protocol receiving data unpacking module, and the receiving direction second part sub-protocol conversion module in the data link layer module.

24. A core particle, characterized in that Comprising a protocol controller as described in any one of claims 1-20.

25. The core particle according to claim 24, characterized in that Also includes: The physical coding sublayer connected to the protocol controller and the physical layer interface connected to the physical coding sublayer.

26. A system on chip, characterized in that: The device comprises a plurality of interconnected core particles, wherein the core particles are the core particles according to any one of claims 24-25.

27. An electronic device, characterized in that: Comprising the core particle according to any one of claims 24-25, or the system on chip according to claim 26.

Citation Information

Patent Citations

  • Flex bus protocol negotiation and enabling sequence

    CN110442540A

  • Secure communications over computer buses

    CN112398656A

  • Communication device, electronic device, and communication method

    CN114661650A

  • Interface design and communication method for extensible interconnection bare core and peer-to-peer device

    CN114756493A

  • Memory module, system including same, and operating method of memory module

    CN115687193A