Disclosure of Invention
The embodiment of the invention aims to provide a protocol conversion device, a protocol conversion method, protocol conversion equipment, a protocol conversion medium and a protocol conversion product, which can solve the problem that an ACE processor core cannot access a multi-core CPU system of a CHI architecture.
In order to solve the technical problems, the embodiment of the invention provides a protocol conversion device, which comprises a first conversion component, a second conversion component and a transaction management component respectively connected with the first conversion component and the second conversion component, wherein the input end of the first conversion component is connected with a processor of a first bus protocol, the output end of the first conversion component is connected with a main node of a second bus protocol, the output end of the second conversion component is connected with the processor of the first bus protocol, the input end of the second conversion component is connected with the main node of the second bus protocol, and the transaction management component is used for recording transaction information corresponding to the transaction processing of the first conversion component and the second conversion component;
The first conversion component is used for receiving the transaction to be processed transmitted by the processor, converting the transaction to be processed into a transaction of a second bus protocol according to a message format of the second bus protocol and a processing mode matched with the transaction type of the transaction to be processed, and transmitting the transaction of the second bus protocol to the master node;
The second conversion unit is configured to receive the information transmitted by the master node, convert the information into a first bus protocol transaction according to the message format of the first bus protocol and the processing mode matched with the information, and transmit the first bus protocol transaction to the processor.
In one aspect, when the transaction to be processed includes a write channel transaction and a read channel transaction, the first converting unit is configured to transmit first bus protocol identification information of the transaction to be processed to the transaction management unit, so that the transaction management unit records the first bus protocol identification information, convert the transaction to be processed into a second bus protocol request packet according to a message format of the second bus protocol, and transmit the second bus protocol request packet to the master node.
In one aspect, when the transaction to be processed includes a snoop response, the first converting unit is configured to convert, according to a message format of the second bus protocol, information carried in the transaction to be processed and transaction identification information recorded in a self record table into a second bus protocol snoop response message, and transmit the second bus protocol snoop response message carrying snoop last state information to the master node, so that the master node realizes cache consistency with the processor based on the snoop last state information.
On the one hand, when the information belongs to response information, the second conversion unit is used for transmitting second bus protocol identification information corresponding to the response information to the transaction management unit, acquiring matched first bus protocol identification information from the transaction management unit, converting the response information and the first bus protocol identification information into a first bus protocol response message according to a message format of the first bus protocol, and transmitting the first bus protocol response message carrying response last state information to the processor, so that the processor can achieve cache consistency with the master node based on the response last state information.
In one aspect, when the information belongs to the snoop request information, the second converting unit is configured to transmit transaction identification information corresponding to the snoop request information to the first converting unit, so that the first converting unit records the transaction identification information in its own record table, convert the snoop request information into a first bus protocol snoop request according to a message format of the first bus protocol, and transmit the first bus protocol snoop request to the processor.
In one aspect, the write channel transactions include write data transactions and write channel no data transactions;
The first conversion unit is configured to receive a write request transmitted by the processor, transmit a write address, a write channel transaction number and a write channel transaction type carried by the write request to the transaction management unit, so that the transaction management unit records the write address, the write channel transaction number and the write channel transaction type corresponding to the write request, and pull up status information;
the first conversion unit is further configured to receive write data transmitted by the processor, convert the write data into a second bus protocol write message according to a message format of the second bus protocol, receive data packet identification information transmitted by the transaction management unit, use the data packet identification information as a second bus protocol transaction number, and transmit the second bus protocol write message and the second bus protocol transaction number to the master node, where the data packet identification information is identification information generated by the transaction management unit based on the second bus protocol write request.
In one aspect, the read channel transactions include read data transactions and read channel no data transactions;
The first conversion unit is configured to receive a read channel transaction transmitted by the processor, transmit a read address, a read channel transaction number, and a read channel transaction type carried by the read channel transaction to the transaction management unit, so that the transaction management unit records the read address, the read channel transaction number, and the read channel transaction type corresponding to the read channel transaction, and pull up status information.
In one aspect, the first conversion component includes a write request conversion module, a read request conversion module, a request generation module, and a data generation module;
The write request conversion module is respectively connected with the request generation module and the data generation module and is used for transmitting a write address, a write channel transaction number and a write channel transaction type carried by the write request to the request generation module;
The request generating module is configured to convert the received write address, write channel transaction number and write channel transaction type into a second bus protocol write request according to the message format of the second bus protocol, and transmit the second bus protocol write request to the master node;
the data generation module is used for receiving the write data transmitted by the write request conversion module, converting the write data into a second bus protocol write message according to the message format of the second bus protocol, receiving data packet identification information transmitted by the transaction management component, taking the data packet identification information as a second bus protocol transaction number, and transmitting the second bus protocol write message and the second bus protocol transaction number to the master node;
The read request conversion module is connected with the request generation module and is used for transmitting the read address, the read channel transaction number and the read channel transaction type carried by the read channel transaction to the request generation module;
The request generation module is further configured to convert the received read address, read channel transaction number, and read channel transaction type into a second bus protocol read request according to the message format of the second bus protocol, and transmit the second bus protocol read request to the master node.
In one aspect, the snoop response includes a snoop no data response and a snoop data response;
The first conversion component is used for recording transaction identification information into an information record table, receiving a monitoring data response and a monitoring data response transmitted by the processor, converting the monitoring data response, the monitoring data response and the transaction identification information into a second bus protocol monitoring message, transmitting the second bus protocol monitoring message carrying monitoring end state information to the master node, and clearing the information record table.
In one aspect, the first conversion component further includes a snoop response conversion module and a response generation module;
the monitoring response conversion module is respectively connected with the data generation module and the response generation module and is used for receiving transaction identification information transmitted by the monitoring request conversion module, receiving monitoring data responses and monitoring data responses transmitted by the processor, transmitting the monitoring data responses, the monitoring data responses and the transaction identification information to the data generation module when the monitoring data responses are not empty, transmitting the monitoring data responses and the transaction identification information to the response generation module when the monitoring data responses are empty,
The data generation module is used for converting the interception data response, the interception data response and the transaction identification information into a second bus protocol interception data message, transmitting the second bus protocol interception data message carrying interception final state information to the master node, and clearing the information record table;
The response generation module is configured to convert the snoop no-data response and the transaction identifier information into a second bus protocol snoop response message, transmit the second bus protocol snoop response message carrying snoop end state information to the master node, and clear the information record table.
In one aspect, the response information includes write response information and read response information;
The second conversion component is configured to receive the write response information transmitted by the master node, transmit second bus protocol write identification information corresponding to the write response information to the transaction management component, and obtain first bus protocol write identification information corresponding to a write request from the transaction management component; according to the message format of the first bus protocol, converting the write response information and the first bus protocol write identification information into a first bus protocol write response message, and transmitting the first bus protocol write response message to the processor;
The second conversion part is also used for receiving the read response information transmitted by the master node, transmitting second bus protocol read identification information corresponding to the read response information to the transaction management part, acquiring first bus protocol read identification information corresponding to the read request from the transaction management part, converting the read response information and the first bus protocol read identification information into a first bus protocol read response message according to the message format of the first bus protocol, and transmitting the first bus protocol read response message carrying read response last-state information to the processor.
The second conversion component comprises a read-write response conversion module, a read data response conversion module and a data generation module;
the read-write response conversion module is used for processing the write response information and the data-free read response information;
The data generation module is used for generating data corresponding to the transaction management component, the data response conversion module is used for receiving the data response information transmitted by the master node, transmitting a second bus protocol transaction number and second bus protocol data identification information corresponding to the data response information to the transaction management component, and transmitting the data response information to the data generation module;
The data generation module is used for receiving the read data response information transmitted by the read data response conversion module, acquiring a matched first bus protocol transaction number and first bus protocol transaction type from the transaction management component, converting the read data response information, the first bus protocol transaction number and the first bus protocol transaction type into a first bus protocol read data response message according to the message format of the first bus protocol, and transmitting the first bus protocol read data response message carrying the read data response last state information to the processor.
In one aspect, the second conversion component further includes a snoop request conversion module;
The transaction management component is used for receiving a monitoring request transmitted by a master node, recording a second bus protocol transaction number and a first bus protocol transaction type corresponding to the monitoring request in a record table of the monitoring response conversion module, transmitting an address corresponding to the monitoring request to the transaction management component, so that the transaction management component can judge whether to start conflict processing according to each received address;
the monitoring request conversion module is further used for converting the monitoring request into a first bus protocol monitoring request according to the message format of the first bus protocol under the condition that conflict processing is not started, transmitting the first bus protocol monitoring request to the processor, and processing the monitoring request according to the processing flow matched with the started conflict processing under the condition that conflict processing is started.
In one aspect, the first conversion component comprises a first channel group connected with a processor of a first bus protocol, the second conversion component comprises a second channel group connected with the processor of the first bus protocol, the first conversion component comprises a third channel group connected with a main node of a second bus protocol, the second conversion component comprises a fourth channel group connected with the main node of the second bus protocol;
The first conversion component is configured to receive a transaction to be processed transmitted by the processor through the first channel group; transmitting the second bus protocol transaction to the master node through the third channel group;
the second conversion unit is configured to receive, through the fourth channel group, information transmitted by the master node, and transmit the first bus protocol transaction to the processor through the second channel group.
In one aspect, the first channel group includes a write channel group, a read channel, a snoop response channel, and a snoop data channel;
the write channel group is connected with the write request conversion module and is used for receiving a write channel transaction initiated by the processor;
The read channel is connected with the read request conversion module and is used for receiving the read channel transaction transmitted by the processor and transmitting the read channel transaction to the read request conversion module;
the monitoring response channel and the monitoring data channel are connected with the monitoring response conversion module and are used for receiving the monitoring response transmitted by the processor and transmitting the monitoring response to the monitoring response conversion module.
In one aspect, the write channel group includes a write request channel and a write data channel;
The write request channel is used for receiving the write request transmitted by the processor and transmitting the write request to the write request conversion module;
The write data channel is used for receiving write data transmitted by the processor and transmitting the write data to the write request conversion module;
the monitoring response channel is used for receiving the monitoring data response transmitted by the processor and transmitting the monitoring data response to the monitoring response conversion module;
The monitoring data channel is used for receiving the monitoring data response transmitted by the processor and transmitting the monitoring data response to the monitoring response conversion module.
In one aspect, the second channel group includes a write response channel, a read response channel, and a snoop request channel;
The write response channel is connected with the read-write response conversion module and is used for receiving a first bus protocol response message transmitted by the read-write response conversion module and transmitting the first bus protocol response message to the processor;
The read response channel is respectively connected with the read-write response conversion module and the data generation module and is used for receiving the first bus protocol read response message carrying the read response last state information transmitted by the read-write response conversion module and transmitting the first bus protocol read response message carrying the read response last state information to the processor;
The snoop request channel is configured to transmit a first bus protocol snoop request to the processor.
In one aspect, the third channel group includes a request channel, a data channel, and a response channel;
The request channel is connected with the request generation module and is used for feeding back a second bus protocol write request and a second bus protocol read request transmitted by the request generation module to the master node;
the data channel is connected with the data generation module and is used for feeding back the second bus protocol write message and the second bus protocol transaction number transmitted by the data generation module to the master node;
the response channel is connected with the response generation module and is used for feeding back a second bus protocol monitoring response message which is transmitted by the response generation module and carries monitoring terminal state information to the master node.
In one aspect, the fourth group includes a response channel, a data channel, and a listening channel;
the response channel is connected with the read-write response conversion module and is used for transmitting the write response information and the data-free read response information transmitted by the master node to the read-write response conversion module;
the data channel is connected with the read data response conversion module and is used for transmitting read data response information transmitted by the main node to the read data response conversion module;
The monitoring channel is connected with the monitoring request conversion module and is used for transmitting the monitoring request transmitted by the master node to the monitoring request conversion module.
In one aspect, the first bus protocol is an AXI consistency extension protocol, and the second bus protocol is a consistency hub interface protocol.
The embodiment of the invention also provides a protocol conversion method which is suitable for the protocol conversion device, and the method comprises the following steps:
Receiving a transaction to be processed transmitted by a processor;
According to the message format of the second bus protocol and the processing mode matched with the transaction type of the transaction to be processed, converting the transaction to be processed into the transaction of the second bus protocol, and transmitting the transaction of the second bus protocol to a master node;
Receiving information transmitted by the master node;
and converting the information into a first bus protocol transaction according to a message format of the first bus protocol and a processing mode matched with the information, and transmitting the first bus protocol transaction to the processor.
The embodiment of the invention also provides a protocol conversion device, which comprises:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the protocol conversion method as described above.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the protocol conversion method when being executed by a processor.
The embodiments of the present invention also provide a computer program product comprising a computer program/instruction which, when executed by a processor, implements the steps of the protocol conversion method described above.
The protocol conversion device comprises a first conversion component, a second conversion component and a transaction management component connected with the first conversion component and the second conversion component respectively, wherein the input end of the first conversion component is connected with a processor of a first bus protocol, the output end of the first conversion component is connected with a main node of a second bus protocol, the output end of the second conversion component is connected with the processor of the first bus protocol, the input end of the second conversion component is connected with the main node of the second bus protocol, and the transaction management component is used for recording corresponding transaction information when the first conversion component and the second conversion component process transactions. The system comprises a first conversion component, a second conversion component and a master node, wherein the first conversion component is used for receiving the transaction to be processed transmitted by the processor, the transaction to be processed transmitted by the processor accords with a first bus protocol, and in order to realize communication with the master node of a second bus protocol, the transaction to be processed can be converted into the transaction of the second bus protocol according to a message format of the second bus protocol and a processing mode matched with the transaction type of the transaction to be processed, and the transaction of the second bus protocol is transmitted to the master node. The information transmitted by the master node accords with a second bus protocol, and in order to realize communication with a processor of the first bus protocol, the information can be converted into a first bus protocol transaction according to a message format of the first bus protocol and a processing mode matched with the information, and the first bus protocol transaction is transmitted to the processor.
The invention has the beneficial effects that the conversion between the first bus protocol interface and the second bus protocol interface is realized based on the first bus protocol and the second bus protocol, and the processor connected with the first bus protocol interface is used as a request node to be accessed into the multi-core processor system based on the second bus protocol. The universality, flexibility and expandability of the second bus protocol lead the application of the second bus protocol in the system on chip to be wider and wider, and the protocol conversion device can enable the processor core of the first bus protocol to be connected into the multi-core processor system based on the second bus protocol, meanwhile, cache consistency is kept, richer component selection is provided for the multi-core processor system of the second bus protocol, and further higher operation capability is achieved.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
The terms "comprising" and "having" in the description of the invention and in the above-described figures, as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description.
The CHI protocol, an evolutionary version of the ACE protocol, is a currently popular protocol for cache coherency in multi-core processors, is more functional and more scalable, and may contain more types of components, such as independent processors (Standalone Processors), processor clusters (Processor Clusters), graphics processors (Graphic Processors), memory controllers (Memory Controllers), I/O Bridges, PCIe subsystems, and connectors (internnect). The CHI protocol has a wider application. The CHI architecture allows flexible topology for component connection selection, using cross bar (crossbar) structures for small systems, ring (Ring) structures for medium systems, and Mesh (Mesh) structures for large systems, depending on system driving performance, power consumption, and area requirements.
Since some of the processor cores are still based on AXI or ACE protocols, in order to access the CHI architecture system as a Request Node (RN), an interface for converting the ACE and CHI protocols and having the RN function needs to be set up.
Therefore, the embodiments of the present invention provide a protocol conversion device, method, device, medium, and product, which are based on a first bus protocol and a second bus protocol, and are designed to implement conversion between a first bus protocol interface and a second bus protocol interface, so that a processor connected with the first bus protocol interface can be used as a request node to access a multi-core processor system based on the second bus protocol. The first bus protocol can be ACE protocol, the second bus protocol can be CHI protocol, and the protocol conversion scheme provided by the embodiment of the invention can realize that the ACE processor core is accessed to a multi-core CPU system of the CHI architecture.
Next, a protocol conversion device provided by the embodiment of the invention is described in detail. Fig. 1 is a schematic structural diagram of a protocol conversion device according to an embodiment of the present invention, where the device includes a first conversion unit 11, a second conversion unit 12, and a transaction management unit 13 connected to the first conversion unit 11 and the second conversion unit 12, respectively, an input end of the first conversion unit 11 is connected to a processor of a first bus protocol, an output end of the first conversion unit 11 is connected to a main node of the second bus protocol, an output end of the second conversion unit 12 is connected to the processor of the first bus protocol, an input end of the second conversion unit 12 is connected to the main node of the second bus protocol, and the transaction management unit 13 is configured to record transaction information corresponding to when the first conversion unit 11 and the second conversion unit 12 process transactions.
In the embodiment of the present invention, for convenience of distinction, a device using the first bus protocol may be referred to as a processor, and a device using the second bus protocol may be referred to as a Home Node (HN). In order to enable the processor of the first bus protocol to access the system in which the master Node is located, the processor of the first bus protocol may be regarded as a Requesting Node (RN).
A first conversion means 11 for receiving the transaction to be processed transmitted by the processor.
The processor uses a first bus protocol so that the transaction to be processed also conforms to the first bus protocol. In order to transmit the transaction to be processed transmitted by the processor to the master node, the master node may implement processing of the transaction to be processed, and needs to convert a format of the transaction to be processed, and convert the transaction to be processed according to the first bus protocol into a transaction according to the second bus protocol.
In the embodiment of the present invention, the message format of the second bus protocol may be set in the first conversion unit 11, so as to implement conversion from the first bus protocol to the second bus protocol.
In practical applications, the transaction to be processed may include a write channel transaction and a read channel transaction. The write channel transactions may include write data transactions and write channel no data transactions, and the read channel transactions may include read data transactions and read channel no data transactions. Write channel no data transactions include cache line move out transactions (Evict), which refer to no data transactions other than Evict.
The processing modes corresponding to the different types of to-be-processed transactions are different, and the processing modes corresponding to the different types of to-be-processed transactions can be recorded in the first conversion component. The first converting unit 11 may convert the transaction to be processed into a transaction of the second bus protocol according to the message format of the second bus protocol and the processing manner matched with the transaction type of the transaction to be processed, and transmit the transaction of the second bus protocol to the master node.
A second conversion unit 12, configured to receive information transmitted by the master node.
The master node uses a second bus protocol, so that the information transmitted by the master node also conforms to the second bus protocol. In order to transmit the information transmitted by the master node to the processor, so that the processor can process the information, the format of the information needs to be converted, and the information conforming to the second bus protocol is converted into a transaction conforming to the first bus protocol.
In the embodiment of the present invention, the second converting unit 12 may set a message format of the first bus protocol, so as to implement conversion from the second bus protocol to the first bus protocol. The second conversion unit 12 may convert the information into a first bus protocol transaction according to the message format of the first bus protocol and the processing manner of the information matching, and transmit the first bus protocol transaction to the processor.
The corresponding processing modes of different types of to-be-processed transactions are different. In the case that the transaction to be processed includes a write channel transaction and a read channel transaction, the first conversion unit 11 may transmit first bus protocol identification information of the transaction to be processed to the transaction management unit 13, so that the transaction management unit 13 records the first bus protocol identification information, and convert the transaction to be processed into a second bus protocol request message according to a message format of the second bus protocol, and transmit the second bus protocol request message to the master node.
For write channel transactions and read channel transactions, the first bus protocol identification information may include addresses (Addr), transaction numbers (IDs), and transaction types (AxSNOOP) corresponding to the write channel transactions and the read channel transactions.
For the snoop response, when the transaction to be processed includes the snoop response, the first conversion unit 11 may convert, according to the message format of the second bus protocol, the information carried in the transaction to be processed and the transaction identification information recorded in the self record table into a second bus protocol snoop message, and transmit the second bus protocol snoop message carrying the snoop last state information to the master node, so that the master node realizes cache consistency with the processor based on the snoop last state information.
The snoop last state information refers to the state of the processor after completing the snoop request. By carrying the monitoring end state information in the second bus protocol monitoring message, the master node can conveniently and intuitively know the current state of the processor, thereby realizing cache consistency with the processor.
The master node may feed back response information to the processor after receiving the request transmitted by the processor. The master node may also actively transmit snoop requests to the processor. Thus in embodiments of the present invention, the information transmitted by the master node to the second conversion means 12 may comprise response information and snoop request information.
Taking response information as an example, the second conversion unit 12 can transmit second bus protocol identification information corresponding to the response information to the transaction management unit 13 and obtain matched first bus protocol identification information from the transaction management unit 13 when the information belongs to the response information, and convert the response information and the first bus protocol identification information into a first bus protocol response message according to a message format of the first bus protocol, and transmit the first bus protocol response message carrying response last state information to the processor so as to facilitate the processor to achieve cache consistency with the master node based on the response last state information.
For the response information, the second bus protocol identification information may include a transaction number (TxnID) conforming to the second bus protocol, an identification of the response information conforming to the second bus protocol.
Taking the case of the snoop request information as an example, the second conversion unit 12 may transmit the transaction identification information corresponding to the snoop request information to the first conversion unit 11, so that the first conversion unit 11 records the transaction identification information in its own record table, converts the snoop request information into a first bus protocol snoop request according to the message format of the first bus protocol, and transmits the first bus protocol snoop request to the processor.
The pending processor transactions may include write channel transactions and read channel transactions.
The write channel transactions may include write data transactions and write channel no data transactions, among others.
Taking a write data transaction as an example, in practical application, the processor will first transmit a write request to the first conversion unit 11, and then transmit write data to the first conversion unit.
After receiving the write request transmitted by the processor, the first conversion unit 11 may transmit the write address, the write channel transaction number and the write channel transaction type carried by the write request to the transaction management unit 13, so that the transaction management unit 13 records the write address, the write channel transaction number and the write channel transaction type corresponding to the write request and pulls up the state information, and converts the write address, the write channel transaction number and the write channel transaction type carried by the write request into the write request of the second bus protocol according to the message format of the second bus protocol, and transmits the write request of the second bus protocol to the master node.
The transaction management component 13 (Transaction Manager, TM) indicates that there is a transaction currently being processed by pulling the state information (t_stat) high. After completing the transaction, the transaction management component 13 may pull the status information low, indicating that no transaction is currently occurring.
The first conversion unit 11 is further configured to receive the write Data transmitted by the processor, convert the write Data into a second bus protocol write message according to a message format of the second bus protocol, receive Data packet identification information (Data Buffer ID, DBID) transmitted by the transaction management unit 13, use the Data packet identification information as a second bus protocol transaction number, and transmit the second bus protocol write message and the second bus protocol transaction number to the master node.
The transaction number is in two forms, one is a transaction number conforming to the first bus protocol, which is simply referred to as the first bus protocol transaction number, and may be represented by an ID. The other is a transaction number conforming to the second bus protocol, which is simply referred to as the second bus protocol transaction number, and may be denoted by TxnID.
The packet identification information is identification information generated by the transaction management component 13 based on the second bus protocol write request. Each request has its unique corresponding identification information which conforms to the second bus protocol and can therefore be directly used as the second bus protocol transaction number.
For read channel transactions, read channel transactions may include read data transactions and read channel no data transactions. The processing flows of the read data transaction and the read channel data-free transaction are similar, and are not distinguished in the following description, and the read channel transaction is taken as an example for description.
The first conversion unit 11 is configured to receive a read channel transaction transmitted by the processor, transmit a read address, a read channel transaction number, and a read channel transaction type carried by the read channel transaction to the transaction management unit 13, so that the transaction management unit 13 records the read address, the read channel transaction number, and the read channel transaction type corresponding to the read channel transaction, and pull up status information.
In the embodiment of the invention, the first conversion unit 11 is configured to process a transaction transmitted by a processor of the first bus protocol to a master node of the second bus protocol.
For operations that the first conversion unit 11 needs to perform when processing a write channel transaction and a read channel transaction, the first conversion unit 11 may include a write request conversion module (w_req), a read request conversion module (r_req), a request generation module (req_gen), and a data generation module (dat_gen).
The write request conversion module is respectively connected with the request generation module and the data generation module and is used for transmitting a write address, a write channel transaction number and a write channel transaction type carried by a write request to the request generation module and transmitting write data to the data generation module.
The request generation module is used for converting the received write address, the write channel transaction number and the write channel transaction type into a second bus protocol write request according to the message format of the second bus protocol, and transmitting the second bus protocol write request to the master node.
For different transactions, the corresponding address, transaction number, and transaction type may be different, and in order to distinguish between different transactions, the corresponding address, transaction number, and transaction type may be used as an identification for each transaction. For ease of description, for a write channel transaction, its corresponding address may be referred to as a write address, its corresponding transaction number as a write channel transaction number, and its corresponding transaction type as a write channel transaction type.
It should be noted that, the message format of the second bus protocol includes format requirements corresponding to each field. For a write request, the write address, write channel transaction number, and write channel transaction type belong to information corresponding to three fields common in the message format, not all fields in the second bus protocol. The contents of other fields are converted according to the corresponding format requirements, and are not described herein.
The data generation module is used for receiving the write data transmitted by the write request conversion module, converting the write data into a second bus protocol write message according to the message format of the second bus protocol, receiving the data packet identification information transmitted by the transaction management component 13, taking the data packet identification information as the second bus protocol transaction number, and transmitting the second bus protocol write message and the second bus protocol transaction number to the master node.
For a read channel transaction, its corresponding address may be referred to as a read address, its corresponding transaction number as a read channel transaction number, and its corresponding transaction type as a read channel transaction type. The read request conversion module is connected with the request generation module and is used for transmitting the read address, the read channel transaction number and the read channel transaction type carried by the read channel transaction to the request generation module. The request generation module is further configured to convert the received read address, read channel transaction number, and read channel transaction type into a second bus protocol read request according to a message format of the second bus protocol, and transmit the second bus protocol read request to the master node.
In embodiments of the present invention, the snoop response may include a snoop data-free response and a snoop data response.
The first conversion section 11 may record the transaction identification information into the information record table.
Wherein the transaction identification information may be transmitted by the second conversion means 12 to the first conversion means 11. The transaction identifying information may include a transaction number conforming to a second bus protocol, abbreviated as a second bus protocol transaction number (TxnID), and may also include a transaction type conforming to a first bus protocol, abbreviated as a first bus protocol transaction type (ACSNOOP).
When a monitoring request is generated once, transaction identification information corresponding to the monitoring request is recorded in an information record table, and after the processor receives the monitoring request, the processor can feed back a monitoring data-free response and a monitoring data response to the master node through a protocol conversion device. In a specific implementation, the first conversion part 11 receives the interception data response and the interception data response transmitted by the processor, converts interception data response, interception data response and transaction identification information into a second bus protocol interception data response message, and transmits the second bus protocol interception data response message carrying interception final state information to the master node.
In order to ensure that the transaction identification information recorded in the information record table is matched with the monitoring response, the transaction identification information corresponding to the monitoring request needs to be deleted after each monitoring response is completed, namely, the information record table needs to be cleared after a second bus protocol monitoring message carrying monitoring last state information is transmitted to the master node.
In the above description, the first conversion means may include a write request conversion module, a read request conversion module, a request generation module, and a data generation module. For the processing of snoop responses, the first conversion means 11 may further comprise a snoop response conversion module (c_rsp) and a response generation module (rsp_gen).
The data may or may not be carried in the snoop data response. The snoop data response is not null when the data is carried and is null when the data is not carried.
The monitoring response conversion module is respectively connected with the data generation module and the response generation module and is used for receiving transaction identification information transmitted by the monitoring request conversion module, receiving a monitoring data response and a monitoring data response transmitted by the processor, transmitting the monitoring data response, the monitoring data response and the transaction identification information to the data generation module when the monitoring data response is not empty, and transmitting the monitoring data response and the transaction identification information to the response generation module when the monitoring data response is empty.
The data generation module is used for processing the monitoring data response carrying the data. The data generation module can convert the interception data response, the interception data response and the transaction identification information into a second bus protocol interception data message, transmit the second bus protocol interception data message carrying interception final state information to the master node, and clear the information record table.
The response generation module is used for processing the monitoring data response which does not carry data. When the monitoring data response does not carry data, the monitoring data response is empty, and the monitoring data response is not required to be transmitted to the response generation module any more, and the monitoring data response and the transaction identification information are directly transmitted to the response generation module. The response generation module can convert the interception data response and the transaction identification information into a second bus protocol interception response message, transmit the second bus protocol interception response message carrying interception final state information to the master node, and clear the information record table.
In the embodiment of the invention, through the mutual coordination of the monitoring response conversion module, the response generation module and the data generation module, the message format of the monitoring response can be converted to obtain the second bus protocol monitoring data message which can be identified by the master node, thereby realizing that the processor of the first bus protocol transmits the monitoring response to the master node of the second bus protocol and realizing the processing of the monitoring response under different protocol types.
The second conversion means 12 are arranged to process information transmitted by the master node of the second bus protocol to the server of the first bus protocol. The information may include response information and snoop request information.
The response information may include write response information and read response information.
The second conversion unit 12 is configured to receive the write response information transmitted by the master node, transmit second bus protocol write identification information corresponding to the write response information to the transaction management unit 13, obtain first bus protocol write identification information corresponding to the write request from the transaction management unit 13, convert the write response information and the first bus protocol write identification information into a first bus protocol write response message according to a message format of the first bus protocol, and transmit the first bus protocol write response message to the processor.
The first bus protocol write identification information comprises a transaction number and a transaction type corresponding to the write request. The second bus protocol write identification information includes a transaction number corresponding to the write response information and an identification of the write response information conforming to the second bus protocol.
The second conversion unit 12 is further configured to receive the read response information transmitted by the master node, transmit second bus protocol read identification information corresponding to the read response information to the transaction management unit 13, and obtain first bus protocol read identification information corresponding to the read request from the transaction management unit 13, convert the read response information and the first bus protocol read identification information into a first bus protocol read response message according to a message format of the first bus protocol, and transmit the first bus protocol read response message carrying the read response last state information to the processor.
The first bus protocol read identification information comprises a transaction number and a transaction type corresponding to the read request. The second bus protocol read identification information comprises a transaction number corresponding to the read response information and an identification of the read response information conforming to the second bus protocol.
For the processing of the response information, the second conversion section 12 may include a read-write response conversion module (rsp_br), a read response conversion module (dat_r), and a data generation module (dat_gen).
The read response information may include no data read response information and read data response information.
The read-write response conversion module may be used to process the write response information and the data-free read response information.
The read data response conversion module may be configured to receive read data response information transmitted by the master node, transmit a second bus protocol transaction number and second bus protocol data identification information corresponding to the read data response information to the transaction management component 13, and transmit the read data response information to the data generation module.
The data generation module is used for receiving the read data response information transmitted by the read data response conversion module, acquiring the matched first bus protocol transaction number and first bus protocol transaction type from the transaction management component 13, converting the read data response information, the first bus protocol transaction number and the first bus protocol transaction type into a first bus protocol read data response message according to the message format of the first bus protocol, and transmitting the first bus protocol read data response message carrying the read data response last state information to the processor.
The read request corresponds to the read data response information. The transaction management component 13 records a first bus protocol transaction and a first bus protocol transaction type corresponding to a read request transmitted by the processor to the master node. When the master node feeds back the read data response information to the processor through the data generating module, the first bus protocol transaction number and the first bus protocol transaction type corresponding to the read request can be obtained from the transaction management component 13 and used as the first bus protocol transaction number and the first bus protocol transaction type matched with the read data response information.
The read data response last state information is used for indicating last state information of the cache line after the processor processes the read data response information. The main node carries the read data response last state information when transmitting the read data response message of the first bus protocol to the processor, so that the cache consistency of the main node and the processor can be ensured.
If the transaction type is a read data transaction or a read channel data-free transaction, the transaction management component 13 records the DBID of the read-write response conversion module or the read data response conversion module when the read data response conversion module receives the response (including the DBID), the response generation module obtains the DBID from the transaction management component 13, takes the DBID as TxnID, generates CompAck response and sends the response to the CHI domain, and meanwhile, the transaction management component 13 pulls down the state information signal to indicate that the transaction is finished.
For the processing of snoop request information, the second conversion component 12 may also include a snoop request conversion module (snp_c).
The transaction management device comprises a master node, a monitoring request conversion module, a transaction management component 13 and a transaction management component 13, wherein the master node is used for receiving a monitoring request transmitted by the master node, recording a second bus protocol transaction number and a first bus protocol transaction type corresponding to the monitoring request in a record table of the monitoring response conversion module, and transmitting an address corresponding to the monitoring request to the transaction management component 13 so that the transaction management component 13 can judge whether to start conflict processing according to each received address.
The monitoring request conversion module is also used for converting the monitoring request into a first bus protocol monitoring request according to the message format of the first bus protocol under the condition that the conflict processing is not started, and transmitting the first bus protocol monitoring request to the processor, and processing the monitoring request according to the processing flow matched with the started conflict processing under the condition that the conflict processing is started.
In an embodiment of the present invention, the transaction management component 13 may be configured to record information related to each transaction, where each transaction may correspond to a record, and the record may include information corresponding to different fields, such as an address (Addr), a transaction number (ID/TxnID), a transaction type (AxSNOOP), an identification (DBID), status information (t_stat), and a collision signal (sp).
In practical applications, when the state information is pulled high, it indicates that the transaction is being processed, and when the state information is pulled low, it indicates that the transaction has been processed. When the conflict signal is pulled high, it indicates that there is a conflict currently, and when the conflict signal is pulled low, it indicates that there is no conflict.
In the embodiment of the invention, the first bus protocol can be an AXI consistency extension protocol, namely an ACE protocol, and the second bus protocol can be a consistency hub interface protocol, namely a CHI protocol. For ease of description, the following description will be presented with reference to the ACE protocol and the CHI protocol.
For example, assuming that a processor of the ACE protocol issues a write request and receives a snoop (snoop) request before receiving a response, the write request needs to be processed first and then the snoop request is processed according to the ACE protocol, while the CHI protocol is the opposite, so that a protocol conversion device is required to process the conflict, and system lock is avoided.
The snoop request converting module receives the snoop request transmitted from the master node of the CHI protocol, records CHI TxnID and ACE ACSNOOP information in the record table of the snoop response converting module, and sends Addr to the transaction management component 13. The transaction management section 13 determines whether or not a write channel transaction of the same address is in progress to decide whether or not to initiate conflict processing.
If there are no write channel transactions with the same address, no conflict results. The monitoring request conversion module converts the monitoring request information into a monitoring request conforming to the ACE protocol and sends the monitoring request to a processor using the ACE protocol. If a write channel transaction of the same address occurs, then a conflict occurs and the sp signal is pulled high.
Taking the example of a conflict between a write response and a snoop request, the following procedure may be performed:
(1) The data generation module generates a snoop response (SNPRESPDATA) with data to send to the master node, but the data is still retained in the data generation module.
(2) After receiving the snoop response and ending the last transaction, the master node starts to process the write channel transaction and sends a write response (CompDBIDResp) to a read-write response conversion module of the protocol conversion device.
(3) The read-write-response-conversion module sends TxnID and DBID information to the transaction management component 13. The data generation module obtains DBID information from the transaction management component 13, uses it as TxnID, generates CHI write data and sends the CHI write data to the master node, and then the transaction management component 13 pulls sp low and the conflict ends.
In the embodiment of the invention, the conflict transaction can be identified through the transaction management component, and the logic related to the conflict transaction processing is arranged in the first conversion component and the second conversion component, so that the conflict transaction can be orderly processed, the system is prevented from being locked, and the running stability of the system is improved.
The first bus protocol and the second bus protocol are both channel transfer based protocols.
In the embodiment of the invention, the first conversion part 11 comprises a first channel group connected with a processor of a first bus protocol, the second conversion part 12 comprises a second channel group connected with the processor of the first bus protocol, the first conversion part 11 comprises a third channel group connected with a main node of the second bus protocol, and the second conversion part 12 comprises a fourth channel group connected with the main node of the second bus protocol;
A first conversion means 11 for receiving the transaction to be processed transmitted by the processor via the first channel group and transmitting the second bus protocol transaction to the master node via the third channel group. A second conversion unit 12, configured to receive the information transmitted by the master node through the fourth channel group, and transmit the first bus protocol transaction to the processor through the second channel group.
The first translation unit 11 may implement the processing of write channel transactions, read channel transactions, and snoop responses. The first channel group may thus comprise a write channel group, a read channel (AR) and a snoop response Channel (CR) and a snoop data Channel (CD).
The write channel group is connected with the write request conversion module and is used for receiving the write channel transaction initiated by the processor and transmitting the write channel transaction to the write request conversion module. The read channel is connected with the read request conversion module and is used for receiving the read channel transaction transmitted by the processor and transmitting the read channel transaction to the read request conversion module. The monitoring response channel and the monitoring data channel are connected with the monitoring response conversion module and are used for receiving the monitoring response transmitted by the processor and transmitting the monitoring response to the monitoring response conversion module.
The write channel group is used to enable processing of write requests and write data, and thus the write channel group may include a write request channel (AW) and a write data channel (W). The monitoring response channel is used for realizing the processing of monitoring data responses and the monitoring data channel is used for realizing the processing of monitoring data responses.
The write request channel is connected with the write request conversion module and is used for receiving the write request transmitted by the processor and transmitting the write request to the write request conversion module. The write data channel is connected with the write request conversion module and is used for receiving write data transmitted by the processor and transmitting the write data to the write request conversion module.
The monitoring response channel is connected with the monitoring response conversion module and is used for receiving the monitoring data-free response transmitted by the processor and transmitting the monitoring data-free response to the monitoring response conversion module. The monitoring data channel is connected with the monitoring response conversion module and is used for receiving the monitoring data response transmitted by the processor and transmitting the monitoring data response to the monitoring response conversion module.
The second channel group is used to implement processing of response information and snoop request information, and thus the second channel group may include a write response channel (B), a read response channel (R), and a snoop request channel (AC).
The write response channel is connected with the read-write response conversion module and is used for receiving the first bus protocol response message transmitted by the read-write response conversion module and transmitting the first bus protocol response message to the processor.
The read response channel is respectively connected with the read-write response conversion module and the data generation module and is used for receiving the first bus protocol read response message carrying the read response last state information transmitted by the read-write response conversion module and transmitting the first bus protocol read response message carrying the read response last state information to the processor, receiving the first bus protocol read data response message carrying the read data response last state information transmitted by the data generation module and transmitting the first bus protocol read data response message carrying the read data response last state information to the processor.
And the monitoring request channel is used for transmitting the first bus protocol monitoring request to the processor.
The third channel group is used to implement communication with the master node conforming to the second bus protocol, and is based on the processing by the first conversion unit 11 to implement a write channel transaction, a read channel transaction, and a snoop response, and thus may include a request channel (REQ), a data channel (DAT), and a response channel (RSP).
The request channel is connected with the request generation module and is used for feeding back the second bus protocol write request and the second bus protocol read request transmitted by the request generation module to the master node.
The data channel is connected with the data generating module and is used for feeding back the second bus protocol writing message and the second bus protocol transaction number transmitted by the data generating module to the main node, and transmitting the second bus protocol monitoring data message carrying monitoring terminal state information to the main node.
The response channel is connected with the response generation module and is used for feeding back a second bus protocol monitoring response message which is transmitted by the response generation module and carries monitoring terminal state information to the master node.
The fourth channel group is used to implement connectivity with the master node conforming to the second bus protocol, and is based on the processing of the second translation unit 12 to implement write responses, read responses, and snoop requests, so the fourth channel group may include a response channel (RSP), a data channel (DAT), and a snoop channel (SNP).
The response channel is connected with the read-write response conversion module and is used for transmitting the write response information and the data-free read response information transmitted by the master node to the read-write response conversion module.
The data channel is connected with the read data response conversion module and is used for transmitting the read data response information transmitted by the master node to the read data response conversion module.
The monitoring channel is connected with the monitoring request conversion module and is used for transmitting the monitoring request transmitted by the master node to the monitoring request conversion module.
Taking ACE protocol and CHI protocol as examples, the ACE protocol has 8 unidirectional transmission channels, namely a write request channel (AW), a read channel (AR), a write data channel (W), a monitor response Channel (CR), a monitor data Channel (CD), a write response channel (B), a read response channel (R) and a monitor request channel (AC). The CHI protocol has four channels in total, consisting of two channels for bidirectional transmission and two channels for unidirectional transmission. The two bidirectional transmission channels are respectively a response channel (RSP) and a data channel (DAT), and the two unidirectional transmission channels are respectively a request channel (REQ) and a listening channel (SNP).
Table 1 below is a table of the correspondence of ACE channels for each CHI channel. In table 1, the read channel, the write request channel, the write data channel, the snoop response channel, and the snoop data channel belong to channels from ACE to CHI. The read response channel, the write response channel and the monitoring request channel belong to the channel in the CHI phase ACE direction.
Table 1 CHI ACE channels corresponding to channels
The channels contained in the first column in table 1 are the four channels contained in the CHI protocol. The channels contained in columns 2 to 4 of table 1 are 8 channels contained in the ACE protocol. The request channel of the CHI protocol corresponds to the read channel and the write request channel of the ACE protocol. The response channel of the CHI protocol corresponds to the read response channel, the write response channel and the snoop response channel of the ACE protocol. The data channel of the CHI protocol corresponds to the read response channel, the write data channel and the snoop data channel of the ACE protocol. The listening channel of the CHI protocol corresponds to the listening request channel of the ACE protocol.
Fig. 2 is a schematic distribution diagram of each module in a protocol conversion device according to an embodiment of the present invention, where the protocol conversion device may be divided into three major parts, namely a first conversion component, a second conversion component, and a transaction management component. The first conversion means includes a first channel group, a write request conversion module, a read request conversion module, a snoop response conversion module, a request generation module, a data generation module, a response generation module, and a third channel group in the order from left to right and from top to bottom of fig. 2. The first channel group comprises a write request channel, a write data channel, a read request channel, a monitor response channel and a monitor data channel. The third channel group includes a request channel, a data channel, and a response channel.
The second conversion component comprises a second channel group, a monitoring request conversion module, a data generation module, a read-write response conversion module, a read data response conversion module and a fourth channel group. The second channel group comprises a write response channel, a read response channel and a snoop request channel. The fourth channel group includes a response channel, a data channel, and a listening channel.
The data generation module included in the first conversion section mainly processes write data (wdata) and snoop data (cdata). The data generation module contained in the second conversion means mainly processes the read data (rdata).
In the embodiment of the invention, the first conversion component can process the information of each channel of the ACE processor to the CHI main node direction. The write request channel, the write data channel, the read request channel, the write request conversion module, the read request conversion module, the request generation module, the data generation module and the request channel and the data channel in the first conversion component are mutually matched, so that the processing of the request transmitted to the CHI master node by the ACE processor can be completed. The listening response channel, the listening data channel, the listening response conversion module, the data generation module, the response generation module, and the cooperation between the data channel and the response channel in the first conversion component can complete the processing of the listening response transmitted by the ACE processor to the CHI master node. The second conversion component can process the information of each channel of the CHI master node to the ACE processor. The response channel, the data channel, the read-write response conversion module, the read data response conversion module, the data generation module and the mutual configuration of the write response channel and the read response channel in the second conversion component can complete the processing of response information transmitted to the ACE processor by the CHI master node. The monitor channel, the monitor request conversion module and the monitor request channel in the second conversion component cooperate with each other to complete the processing of the monitor request information transmitted from the CHI master node to the ACE processor. The transaction management component is used for recording information corresponding to each transaction.
Fig. 3 is a schematic structural diagram of a multi-core processor system according to an embodiment of the present invention, where the multi-core processor system includes two processor cores and a master node, and the two processor cores are a processor core 1 and a processor core 2 respectively. Each processor core has a two-level cache (L2), both processor core interfaces using the ACE protocol. The master node is based on the CHI protocol and is used for maintaining cache consistency of the two processor cores. The ACE protocol and the CHI protocol cannot communicate directly, and each processor core requires a protocol conversion device (ACCARN) to achieve smooth communication with the host node. The protocol conversion device comprises two-direction bridges, wherein an ACE end is connected with an ACE interface of the processor core, and a CHI end is connected with the main node. The protocol conversion device has the functions of sending requests, receiving responses, receiving monitoring and the like besides the function of interface conversion, and ensures the cache consistency of L2.
In the embodiment of the invention, the ACE processor core can be accessed into the multi-core CHI system through the protocol conversion device, and meanwhile, cache consistency is kept, so that richer component selection is provided for the CHI system, and further, higher operation capability can be achieved. The system may further be applied in a non-uniform memory access (Non Uniform Memory Access, NUMA) system to provide higher computational power.
Fig. 4 is a flowchart of a protocol conversion method according to an embodiment of the present invention, which is applicable to the above-mentioned protocol conversion device, and the method includes:
S401, receiving a transaction to be processed transmitted by a processor.
S402, converting the transaction to be processed into a second bus protocol transaction according to the message format of the second bus protocol and the processing mode matched with the transaction type of the transaction to be processed, and transmitting the second bus protocol transaction to the master node.
S403, receiving information transmitted by the master node.
S404, according to the message format of the first bus protocol and the processing mode of the information matching, converting the information into a first bus protocol transaction, and transmitting the first bus protocol transaction to the processor.
The description of the features in the embodiment corresponding to fig. 4 may be referred to the related description of the embodiment corresponding to fig. 1, and will not be repeated here.
According to the technical scheme, the protocol conversion device can receive the transaction to be processed transmitted by the processor. And converting the transaction to be processed into the transaction of the second bus protocol according to the message format of the second bus protocol and the processing mode of matching the transaction type of the transaction to be processed, and transmitting the transaction of the second bus protocol to the master node. And receiving the information transmitted by the master node. According to the message format of the first bus protocol and the processing mode of the information matching, converting the information into a first bus protocol transaction, and transmitting the first bus protocol transaction to a processor. Based on the first bus protocol and the second bus protocol, the conversion between the first bus protocol interface and the second bus protocol interface is designed and realized, and a processor connected with the first bus protocol interface is used as a request node to be accessed into a multi-core processor system based on the second bus protocol. The universality, flexibility and expandability of the second bus protocol lead the application of the second bus protocol in the system on chip to be wider and wider, and the protocol conversion device can enable the processor core of the first bus protocol to be connected into the multi-core processor system based on the second bus protocol, meanwhile, cache consistency is kept, richer component selection is provided for the multi-core processor system of the second bus protocol, and further higher operation capability is achieved.
Fig. 5 is a block diagram of a protocol conversion device according to an embodiment of the present invention, and as shown in fig. 5, the protocol conversion device includes a memory 50 for storing a computer program;
a processor 51 for implementing the steps of the protocol conversion method according to the above embodiment when executing a computer program.
The protocol conversion device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 51 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 51 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-Programmable gate array (fieldprogrammable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 51 may also include a main processor for processing data in a wake-up state, also referred to as a central processor (Central Processing Unit, CPU), and a coprocessor for processing data in a standby state, which is a low-power processor. In some embodiments, the processor 51 may be integrated with an image processor (Graphics Processing Unit, GPU) for rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 51 may also include an artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) processor for processing computing operations related to machine learning.
Memory 50 may include one or more computer-readable storage media, which may be non-transitory. Memory 50 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 50 is at least used for storing a computer program 501, which, when loaded and executed by the processor 51, is capable of implementing the relevant steps of the protocol conversion method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 50 may also include an operating system 502, data 503, and the like, where the storage mode may be transient storage or permanent storage. Operating system 502 may include Windows, unix, linux, among other things. The data 503 may include, but is not limited to, a message format of a first bus protocol, a message format of a second bus protocol, and the like.
In some embodiments, the protocol conversion device may further include a display screen 52, an input/output interface 53, a communication interface 54, a power supply 55, and a communication bus 56.
Those skilled in the art will appreciate that the structure shown in fig. 5 does not constitute a limitation of the protocol conversion apparatus and may include more or less components than those illustrated.
It will be appreciated that the protocol conversion method of the above embodiments may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in part or in whole or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic disk, or an optical disk, etc. which can store program codes.
Based on this, the embodiment of the invention further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the protocol conversion method as described above.
The embodiments of the present invention also provide a computer program product comprising a computer program/instruction which, when executed by a processor, implements the steps of the protocol conversion method described above.
The protocol conversion device, the protocol conversion method, the protocol conversion equipment, the protocol conversion medium and the protocol conversion product provided by the embodiment of the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The protocol conversion device, the protocol conversion method, the protocol conversion equipment, the protocol conversion medium and the protocol conversion product provided by the invention are described in detail. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that the present invention may be modified and practiced without departing from the spirit of the present invention.