Communication information conversion method, system and device and storage medium
By acquiring the information frame structure or type, the split mapping of written information and the reassembly mapping of read information are realized, which solves the complexity and compatibility issues of protocol conversion between the chip's internal APB bus and the UCIe Sideband interface, and improves the efficiency and reliability of information conversion.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-08
- Publication Date
- 2026-04-03
AI Technical Summary
In the existing technology, the direct connection between the chip's internal APB bus and the UCIe Sideband interface has problems such as complex multi-stage message processing, low bandwidth utilization, insufficient dynamic adaptation capability, and lack of error detection and retransmission mechanism.
By acquiring the information frame structure or type of the communication information to be converted, different information conversion methods are adopted to split and map the written information to the chip's external interface or reassemble the read information and map it to the chip bus. The clock domain is synchronized through the buffer to achieve protocol conversion efficiency and bandwidth utilization. Multiple sideband interfaces are supported, and verification and retransmission are performed before reading information.
It improves the efficiency of protocol conversion and bandwidth utilization between the chip's external interface and the chip bus, solves the compatibility problem of communication protocols, and enhances the reliability and automation level of information conversion.
Smart Images

Figure CN121785976A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically, to a communication information conversion method, system, device, and storage medium. Background Technology
[0002] With the development of chip packaging technology, Universal Chip Interconnect Express (UCIe), as a universal protocol for heterogeneous chip interconnection, has its sideband interface widely used for functions such as link management, parameter exchange, and register access. Internally, communication is generally achieved through the Advanced Peripheral Bus (APB) protocol. However, the chip's internal bus does not have a readily available sideband interface for connecting to the sideband of an external UCIe module. In existing technologies, direct interface between the chip's internal APB bus and the UCIe sideband interface presents the following problems: Multi-stage message processing is complex: UCIe Sideband messages need to be split into multiple message fragments and mapped to the APB side, or APB messages need to be classified and reassembled and mapped to the Sideband side, making the protocol conversion logic complex.
[0003] Low bandwidth utilization: Traditional protocol conversion methods typically use a single APB-Sideband channel for transmission and do not support multiple Sidebands simultaneously, i.e., a single APB interface to multiple Sideband interfaces.
[0004] Insufficient dynamic adaptation capability: Existing solutions lack the ability to identify and process message types, especially Management PortMessages with Data messages.
[0005] There is no error detection and retransmission mechanism: During the APB read phase, it is not possible to detect whether the currently read message frame has errors, and retransmission cannot be triggered if there are errors. Summary of the Invention
[0006] In view of this, the purpose of the present invention is to provide a communication information conversion method, system, device and storage medium to solve the problems in the prior art.
[0007] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows: In a first aspect, embodiments of the present invention provide a communication information conversion method, the method comprising: Obtain the communication information to be converted; If the communication information to be converted is write information, then the information frame structure of the write information is obtained, and the write information is split and mapped to the external interface of the chip according to the information frame structure; If the communication information to be converted is read information, then the information frame type of the read information is obtained, and the read information is reconstructed and mapped to the chip bus according to the information frame type.
[0008] In an optional implementation, the method further includes: If the communication information to be converted is the write information, then the write information is synchronized from the clock domain of the chip bus to the clock domain of the chip's external interface through a buffer. If the communication information to be converted is the read information, then the read information is synchronized from the clock domain of the chip's external interface to the clock domain of the chip bus through the buffer.
[0009] In an optional implementation, the step of splitting and mapping the write information to the chip's external interface according to the information frame structure includes: Obtain the header information frame of the written information, and extract the opcode from the header information frame; The information frame structure and number of information frames for the written information are determined according to the opcode; The written information is split and mapped to the chip's external interface based on the information frame structure and the number of information frames.
[0010] In an optional implementation, the step of reconstructing and mapping the read information to the chip bus according to the information frame type includes: Obtain the header information frame of the read information, and determine the information frame type and number of information frames of the read information based on the high-order extension bits of the header information frame; The read information is reconstructed and mapped to the chip bus according to the information frame type and the number of information frames.
[0011] In an optional implementation, the chip step of reconstructing the read information and mapping it to the bus further includes: Determine the information reading order of the chip bus; The reassembly order of the read information is determined according to the read information order, and the read information is reassembled and mapped to the chip bus according to the reassembly order.
[0012] In an optional implementation, before the step of reconstructing and mapping the read information to the chip bus according to the information frame type, the method further includes: Obtain each information frame contained in the read information, and verify the key fields in each information frame; If the verification fails, a read information retransmission instruction is generated so that the device corresponding to the external interface of the chip retransmits the read information according to the read information retransmission instruction.
[0013] In an optional implementation, the step of the device corresponding to the chip's external interface retransmitting the read information according to the read information retransmission instruction includes: If the number of times the device corresponding to the external interface of the chip retransmits the read information exceeds the maximum number of retransmissions, a transmission error warning is generated and retransmission is stopped.
[0014] Secondly, embodiments of the present invention provide a communication information conversion system, including: a communication information conversion device, a chip bus, and a chip external interface, wherein the communication information conversion device is used to realize information conversion between the chip bus and the chip external interface; The communication information conversion device is used to acquire the communication information to be converted; If the communication information to be converted is write information, then the information frame structure of the write information is obtained, and the write information is split and mapped to the external interface of the chip according to the information frame structure; If the communication information to be converted is read information, then the information frame type of the read information is obtained, and the read information is reconstructed and mapped to the chip bus according to the information frame type.
[0015] Thirdly, embodiments of the present invention provide a communication information conversion device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor can execute the machine-executable instructions to implement the communication information conversion method described in the first aspect.
[0016] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the communication information conversion method described in the first aspect.
[0017] The present invention provides a communication information conversion method, system, device and storage medium, which can convert different information conversion methods according to the type of communication information to be converted, thereby improving the efficiency of protocol conversion and bandwidth utilization between the chip's external interface and the chip bus, and solving the compatibility problem of communication protocols between the chip's external interface and the chip bus.
[0018] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 The diagram shows a block diagram of a communication information conversion device according to an embodiment of the present invention; Figure 2 A flowchart illustrating the communication information conversion method provided in an embodiment of the present invention is shown; Figure 3 A schematic diagram illustrating the principle of a communication information conversion method provided by an embodiment of the present invention is shown; Figure 4 A flowchart illustrating an information conversion method provided by an embodiment of the present invention is shown. Figure 5 The diagram illustrates a chip external interface information frame structure according to an embodiment of the present invention.
[0021] Icons: 100 - Communication information conversion device; 110 - Memory; 120 - Processor; 130 - Communication module. Detailed Implementation
[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0023] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0024] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0025] Please refer to Figure 1 This is a block diagram of a communication information conversion device 100. The communication information conversion device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, processor 120, and communication module 130 are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0026] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0027] The processor 120 is used to read / write data or programs stored in the memory 110 and to perform corresponding functions.
[0028] The communication module 130 is used to establish a communication connection between the communication information conversion device 100 and other communication terminals through the network, and to send and receive data through the network.
[0029] It should be understood that, Figure 1 The structure shown is only a schematic diagram of the communication information conversion device 100. The communication information conversion device 100 may also include... Figure 1The more or fewer components shown, or having the same Figure 1 The different configurations shown. Figure 1 The components shown can be implemented using hardware, software, or a combination thereof.
[0030] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a communication information conversion method provided in an embodiment of the present invention. The method includes: S101. Obtain the communication information to be converted.
[0031] Please refer to Figure 3 , Figure 3 This is a schematic diagram illustrating the principle of a communication information conversion method provided in an embodiment of the present invention.
[0032] Heterogeneous chips refer to integrated circuits that integrate multiple different types of processor cores, such as CPUs, GPUs, and FPGAs, within a single chip. Different types of processor cores typically communicate using the APB interface protocol. However, different chips cannot communicate directly with each other via the APB interface. Existing chip-to-chip communication usually occurs through the Sideband interface protocol in the UCIe standard; however, communication between the Sideband interface protocol and the APB bus protocol presents various problems.
[0033] like Figure 3 As shown, when die0 and die1 interact, the APB bus information of die0 is first converted into Sideband information in the UCIe standard by the controller ucie ctrl inside die0. Then, the Sideband information is sent to the interface ucie phy of die0 through the interface ucie phy of die1. Finally, the controller ucie ctrl of die1 converts the Sideband information back into the APB bus information of die1. Here, APB can be a hardware unit or represent an information format that can be transmitted on the APB bus. Inside die0 or die1, one APB interface can correspond to multiple Sideband channels. There may be multiple information exchange channels between die0 and die1, such as 2X, 4X, 8X, 16X, etc. Each channel contains a mainband and a Sideband; the Sideband is the configuration channel, and the mainband is the main data channel.
[0034] S102. If the communication information to be converted is write information, then obtain the information frame structure of the write information, and map the write information to the chip's external interface according to the information frame structure. Before performing information conversion, it is necessary to determine the type of the acquired communication information, such as... Figure 3As shown, when chips interact with each other, there are two information conversion processes: the conversion of APB information from the first chip into UCIe information, and the conversion of UCIe information into APB bus information from the second chip. The external interface is the UCIe interface, which can convert APB bus information into multi-channel UCIe information, or simultaneously convert multiple APB bus information into their corresponding UCIe information.
[0035] The process of converting the APB bus information of the first chip into UCIe information is defined as the information writing process, and the process of converting the UCIe information into the APB bus information of the second chip is defined as the information reading process.
[0036] When the communication information to be converted is write information, the information frame structure of the APB bus information is obtained, and then the APB bus information is converted into UCIe information according to the information frame structure. S103. If the communication information to be converted is read information, the information frame type of the read information is obtained, and the read information is reconstructed and mapped to the bus according to the information frame type.
[0037] When the communication information to be converted into read information is obtained, the information frame structure of the UCIe information is acquired, and then the UCIe information is converted into APB bus information according to the information frame structure.
[0038] This embodiment improves protocol conversion efficiency and bandwidth utilization between the chip's external interface and the chip bus by using different information conversion methods according to the type of communication information to be converted, and solves the compatibility problem of communication protocols between the chip's external interface and the chip bus.
[0039] In one implementation, the splitting of written information and the reassembly of read information can be managed by a state machine. The state machine can abstract the behavior logic of the chip into a state transition model and automatically handle complex processes through preset rules, thereby improving the reliability and automation level of chip information conversion.
[0040] In one embodiment, the method further includes: If the communication information to be converted is the write information, then the write information is synchronized from the clock domain of the chip bus to the clock domain of the chip's external interface through a buffer. If the communication information to be converted is the read information, then the read information is synchronized from the clock domain of the chip's external interface to the clock domain of the chip bus through the buffer.
[0041] The buffer can be a First-In-First-Out (FIFO) data buffer. The buffer can coordinate the speed difference between the chip and the APB bus, thereby realizing information synchronization between the chip bus and the chip's external interface.
[0042] Please refer to Figure 4 Step S102 includes: steps S1021-S1023.
[0043] S1021. Obtain the header information frame of the written information and extract the opcode from the header information frame.
[0044] S1022. Determine the information frame structure and number of information frames for the written information according to the operation code.
[0045] S1023. Based on the information frame structure and the number of information frames, split and map the written information to the chip's external interface.
[0046] The header frame is the leading part of the write information frame, used to describe key data such as the data format, type, length, and control flags of the subsequent write information. Therefore, when retrieving write information, the control flags, including the opcode, can be extracted from the header frame.
[0047] In chip technology, the opcode is a core component of computer instructions, used to specify the specific type of operation the CPU performs, such as arithmetic operations, logical operations, or data transfer. The opcode determines the information frame structure and number of information frames to be written. APB information within heterogeneous chips is typically single-channel, while UCIe information is usually multi-channel. Therefore, the written information needs to be split and mapped according to the information frame structure and number of information frames before it can be read by the chip's external interface.
[0048] This embodiment obtains the header information frame of the write information, then determines the opcode of the write information based on the header information frame, and determines the information frame structure and number of information frames of the write information based on the opcode, thereby splitting and mapping the write information so that the split and mapped write information can be read by the chip's external interface, realizing the conversion of APB bus information to UCIe information.
[0049] In one implementation, the step of reconstructing and mapping the read information to the chip bus according to the information frame type includes: Obtain the header information frame of the read information, and determine the information frame type and number of information frames of the read information based on the high-order extension bits of the header information frame; The read information is reconstructed and mapped to the chip bus according to the information frame type and the number of information frames.
[0050] The high-order extension bits of the information frame are the one or more bits in the extended frame used to expand the 11-bit ID to a 29-bit ID. They usually refer to the IDE bit and the high-order part of the extended ID, and are used to support more nodes and more complex message identification.
[0051] Please refer to Figure 5 , Figure 5 This is a schematic diagram of a chip external interface information frame structure provided in this embodiment.
[0052] There are four types of UCIE Sideband interface information frames: the first type is Header only, the second type is Header with 32-bit data, the third type is Header with 64-bit data, and the fourth type is MPM with data (Management Port Message with Data).
[0053] The information being read is UCIE information, which is multi-channel information. Therefore, after determining the information frame type and number of information frames based on the high-order extension bits of the header information frame, the multi-channel UCIE information needs to be reconstructed and mapped into single-channel APB bus information so that it can be accurately recognized and transmitted by the APB bus.
[0054] This embodiment determines the information frame type and number of information frames by using the high-order extension bits of the header information frame, and then reassembles and maps the read information, thereby realizing the conversion of UCIE information from the chip's external interface to APB bus information inside the chip.
[0055] In one embodiment, the step of reconstructing and mapping the read information to the chip bus further includes: Determine the information reading order of the chip bus; The reassembly order of the read information is determined according to the read information order, and the read information is reassembled and mapped to the chip bus according to the reassembly order.
[0056] Since APB bus information is single-channel information, it cannot be read simultaneously when reading UCIE information from multiple channels. It can only be read in a certain order. Therefore, when reassembling the read information, it is also necessary to reassemble the read information according to the reading order of the APB bus to avoid data corruption that could lead to APB bus read failure.
[0057] In one embodiment, prior to the step of reconstructing and mapping the read information to the chip bus according to the information frame type, the method further includes: Obtain each information frame contained in the read information, and verify the key fields in each information frame; If the verification fails, a read information retransmission instruction is generated so that the device corresponding to the external interface of the chip retransmits the read information according to the read information retransmission instruction.
[0058] Before reassembling the read information, it needs to be verified. Verification can be performed by checking the key fields in each information frame. The key fields can be determined through data parity (DP) and control parity (CP).
[0059] If the verification passes, the read information can be reassembled; if the verification fails, a read information retransmission instruction is generated to retrieve the read information again.
[0060] To improve communication efficiency, a maximum number of retransmissions can be set. If the number of times the device corresponding to the external interface of the chip retransmits the read information exceeds the maximum number of retransmissions, a transmission error warning is generated and retransmission is stopped.
[0061] Similarly, the converted information can be verified before the written information is converted, and the written information can be retransmitted if the verification fails.
[0062] This embodiment verifies the read information before converting it, avoiding the conversion of erroneous information and improving the efficiency of information conversion. Moreover, it can retransmit the read data when there is an error, which improves the success rate of information exchange between chips.
[0063] In one embodiment, the present invention provides a communication information conversion system, including: a communication information conversion device, a chip bus, and a chip external interface, wherein the communication information conversion device is used to realize information conversion between the chip bus and the chip external interface; The communication information conversion device is used to acquire the communication information to be converted; If the communication information to be converted is write information, then the information frame structure of the write information is obtained, and the write information is split and mapped to the external interface of the chip according to the information frame structure; If the communication information to be converted is read information, then the information frame type of the read information is obtained, and the read information is reconstructed and mapped to the chip bus according to the information frame type.
[0064] It should be noted that the communication information conversion system provided in this embodiment has the same basic principle and technical effect as the above embodiments. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments.
[0065] Optionally, the aforementioned communication information conversion system can be stored in the form of software or firmware. Figure 1 The memory shown is either stored in or embedded in the operating system (OS) of the communication information conversion device, and can be used by... Figure 1 The processor executes the commands. Meanwhile, the data and program code required to execute these modules can be stored in memory.
[0066] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0067] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0068] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0069] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for converting communication information, characterized in that, The method includes: Obtain the communication information to be converted; If the communication information to be converted is write information, then the information frame structure of the write information is obtained, and the write information is split and mapped to the external interface of the chip according to the information frame structure; If the communication information to be converted is read information, then the information frame type of the read information is obtained, and the read information is reconstructed and mapped to the chip bus according to the information frame type.
2. The communication information conversion method according to claim 1, characterized in that, The method further includes: If the communication information to be converted is the write information, then the write information is synchronized from the clock domain of the chip bus to the clock domain of the chip's external interface through a buffer. If the communication information to be converted is the read information, then the read information is synchronized from the clock domain of the chip's external interface to the clock domain of the chip bus through the buffer.
3. The communication information conversion method according to claim 1, characterized in that, The step of splitting and mapping the written information to the chip's external interface according to the information frame structure includes: Obtain the header information frame of the written information, and extract the opcode from the header information frame; The information frame structure and number of information frames for the written information are determined according to the opcode; The written information is split and mapped to the chip's external interface based on the information frame structure and the number of information frames.
4. The communication information conversion method according to claim 1, characterized in that, The step of reconstructing and mapping the read information to the chip bus according to the information frame type includes: Obtain the header information frame of the read information, and determine the information frame type and number of information frames of the read information based on the high-order extension bits of the header information frame; The read information is reconstructed and mapped to the chip bus according to the information frame type and the number of information frames.
5. The communication information conversion method according to claim 4, characterized in that, The step of reconstructing and mapping the read information onto the chip bus further includes: Determine the information reading order of the chip bus; The reassembly order of the read information is determined according to the read information order, and the read information is reassembled and mapped to the chip bus according to the reassembly order.
6. The communication information conversion method according to claim 4, characterized in that, Before the step of reconstructing and mapping the read information to the chip bus according to the information frame type, the method further includes: Obtain each information frame contained in the read information, and verify the key fields in each information frame; If the verification fails, a read information retransmission instruction is generated so that the device corresponding to the external interface of the chip retransmits the read information according to the read information retransmission instruction.
7. The communication information conversion method according to claim 6, characterized in that, The step of the device corresponding to the chip's external interface retransmitting the read information according to the read information retransmission instruction includes: If the number of times the device corresponding to the external interface of the chip retransmits the read information exceeds the maximum number of retransmissions, a transmission error warning is generated and retransmission is stopped.
8. A communication information conversion system, characterized in that, include: The communication information conversion device includes a chip bus and a chip external interface. The communication information conversion device is used to convert information between the chip bus and the chip external interface. The communication information conversion device is used to acquire the communication information to be converted; If the communication information to be converted is write information, then the information frame structure of the write information is obtained, and the write information is split and mapped to the external interface of the chip according to the information frame structure; If the communication information to be converted is read information, then the information frame type of the read information is obtained, and the read information is reconstructed and mapped to the chip bus according to the information frame type.
9. A communication information conversion device, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the communication information conversion method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the communication information conversion method as described in any one of claims 1-7.