TileLink bus to APB bus conversion method and chip
The conversion method and chip address the lack of TileLink to APB bus compatibility by performing signal and clock frequency conversions, enhancing transaction interaction and device configuration within the TileLink bus architecture.
Patent Information
- Application Number
- CN202410781552.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-06-18
AI Technical Summary
There is no existing method for converting a TileLink bus to an APB bus, hindering the configuration of peripheral devices and limiting the application of chips based on the TileLink bus architecture.
A method and chip for converting a TileLink bus to an APB bus, involving signal bit width and clock frequency conversion, cross-clock domain processing, and bus mapping to facilitate communication between the two bus protocols.
Enriches the transaction interaction mode between different buses, enabling the configuration of peripheral devices and expanding the application of chips based on the TileLink bus architecture.
Smart Images

Figure CN118363904B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bus protocol conversion, and in particular to a method and chip for converting a TileLink bus to an APB bus. Background Art
[0002] Tilelink is a new chip-level bus interconnection standard proposed by SiFive, which allows multiple devices to access memory and other slave devices in a consistent memory mapping manner. TileLink is designed for System-on-Chip and can connect general-purpose multiprocessors, coprocessors, accelerators, DMA engines, and a variety of simple or complex devices. It has the characteristics of low latency, high throughput, scalability and high speed.
[0003] The Advanced Peripheral Bus (APB), referred to as APB bus, is a low-speed, streamlined interface protocol, generally used as a configuration interface, and has almost become a standard on-chip bus structure.
[0004] In the prior art, there is no related method for converting the TileLink bus to the APB bus, which is not conducive to configuring peripheral devices based on the Tilelink bus architecture and affects the wide application of chips based on the Tilelink bus architecture. Summary of the invention
[0005] The present invention provides a method and chip for converting a TileLink bus to an APB bus, which fills the technical gap of converting a TileLink bus to an APB bus, enriches the transaction interaction mode between different buses, and is conducive to the configuration of peripheral devices of the Tilelink bus architecture and the wide application of chips based on the Tilelink bus architecture.
[0006] According to one aspect of the present invention, a method for converting a TileLink bus to an APB bus is provided, which is applied to a system for converting a TileLink bus to an APB bus. The method comprises:
[0007] Receiving an initial TileLink request signal initiated by a TileLink master device on a TileLink bus; the clock frequency and signal bit width of the initial TileLink request signal match those of the TileLink master device;
[0008] Converting the initial TileLink request signal into a target APB request signal; the clock frequency and signal bit width of the target APB request signal match those of the APB slave device;
[0009] Sending the target APB request signal to the APB slave device via the APB bus;
[0010] receiving an initial APB response signal returned by the APB slave device to the APB bus; the clock frequency and signal bit width of the initial APB response signal match those of the APB slave device;
[0011] Converting the initial APB response signal into a target TileLink response signal; the clock frequency and signal bit width of the target TileLink response signal match those of the TileLink master device;
[0012] Returning the target TileLink response signal to the TileLink master device;
[0013] The step of converting the initial TileLink request signal into a target APB request signal includes:
[0014] Performing signal bit width conversion on the initial TileLink request signal to obtain a target TileLink request signal; the signal bit width of the target TileLink request signal matches the APB slave device;
[0015] Mapping the target TileLink request signal to an initial APB request signal;
[0016] The initial APB request signal is processed across clock domains to obtain a target APB request signal; the clock frequency of the initial APB request signal matches the TileLink master device; the clock frequency of the target APB request signal matches the APB slave device.
[0017] According to another aspect of the present invention, a chip is provided, the chip comprising:
[0018] at least one processor; and,
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for converting the TileLink bus to the APB bus described in any embodiment of the present invention.
[0021] According to another aspect of the present invention, there is provided a system for converting a TileLink bus to an APB bus, comprising:
[0022] A first bus conversion subsystem and a second bus conversion subsystem; the first bus conversion subsystem comprises: a first bit width conversion module, a first bus mapping module and a first cross-clock domain processing module connected in sequence; the second bus conversion subsystem comprises: a second cross-clock domain processing module, a second bus mapping module and a second bit width conversion module connected in sequence;
[0023] An initial TileLink request signal initiated by a TileLink master device on a TileLink bus is received through a first bus conversion subsystem, and the initial TileLink request signal is converted into a target APB request signal; an initial APB response signal returned to the APB bus by an APB slave device is received through a second bus conversion subsystem, the initial APB response signal is converted into a target TileLink response signal, and the target TileLink response signal is returned to the TileLink master device;
[0024] The first bit width conversion module is used to perform signal bit width conversion on the initial TileLink request signal to obtain a target TileLink request signal; the first bus mapping module is used to map the target TileLink request signal to an initial APB request signal; the first cross-clock domain processing module is used to perform cross-clock domain processing on the initial APB request signal to obtain a target APB request signal;
[0025] The second cross-clock domain processing module is used to perform cross-clock domain processing on the initial APB response signal to obtain a target APB response signal; the second bus mapping module is used to map the target APB response signal to an initial TileLink response signal; the second bit width conversion module is used to perform signal bit width conversion on the initial TileLink response signal to obtain a target TileLink response signal.
[0026] The technical solution of the embodiment of the present invention provides a method for converting a TileLink bus to an APB bus, comprising: receiving an initial TileLink request signal initiated by a TileLink master device on the TileLink bus through a TileLink bus to APB bus conversion system; converting the initial TileLink request signal into a target APB request signal; sending the target APB request signal to an APB slave device through the APB bus; receiving an initial APB response signal returned by the APB slave device to the APB bus; converting the initial APB response signal into a target TileLink response signal; returning the target TileLink response signal to the TileLink master device, solving the problem in the prior art that transaction conversion cannot be performed when converting a TileLink bus to an APB bus, filling the technical gap in converting a TileLink bus to an APB bus, enriching the transaction conversion process between different buses, and facilitating the widespread application of Tilelink bus architecture configuration peripheral devices and chips based on the Tilelink bus architecture.
[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 is a schematic diagram of the TileLink bus channels.
[0030] Figure 2 It is a schematic diagram of signal transmission of APB bus.
[0031] Figure 3 This is a flowchart of a method for converting a TileLink bus to an APB bus provided in Embodiment 1 of the present invention.
[0032] Figure 4 This is a flowchart of a method for converting a TileLink bus to an APB bus provided in Embodiment 2 of the present invention.
[0033] Figure 5 It is a schematic diagram of the structure of a chip for implementing a method for converting a TileLink bus to an APB bus provided in Embodiment 3 of the present invention.
[0034] Figure 6 It is a structural diagram of a TileLink bus to APB bus conversion system provided in Embodiment 4 of the present invention.
[0035] Figure 7 It is a structural diagram of another TileLink bus to APB bus conversion system provided in Embodiment 4 of the present invention.
[0036] Figure 8 It is a schematic diagram of the bus signal conversion process from TileLink master device to APB slave device. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] In order to facilitate understanding of the technical solution of the present invention, the TileLink bus and the APB bus are first introduced and explained.
[0040] 1. TileLink Bus Introduction
[0041] The TileLink network can support multiple communication agents, and each agent supports a different subset of the protocol. The TileLink specification includes three Conformance levels for additional agents: TL-UL (TileLink Uncached Lightweight), TL-UH (TileLink Uncached Heavyweight), and TL-C (TileLink Cached).
[0042] Figure 1 is a schematic diagram of the TileLink bus channel. As Figure 1 shown, TileLink includes five channels: A, B, C, D, and E. The functions of each channel are as follows: Channel A: Transmits requests to perform operations, access, or cache data on a specified address range. Channel D: Sends data responses or acknowledgment messages to the original requester.
[0043] The highest protocol conformance level (TL-C) adds three additional channels: Channel B, Channel C, and Channel E. These channels provide the ability to manage the permissions of cached data blocks:
[0044] Channel B: Sends a request to perform an operation, access, or write back cached data at the address cached by the master agent. Channel C: Transmits data or acknowledgment messages in response to a request. Channel E: Transmits the final acknowledgment of the cached block transfer from the original requester for serialization. The priority of cross-channel messages is A < B < C < D < E, in ascending order of priority. The priority ensures that messages flowing through the TileLink network never enter a routing or waiting loop. Channel A flows from the master interface to the slave interface, carrying request messages sent to a specific address. This channel is used by all TileLink conformance levels and is mandatory. Channel D flows from the slave interface to the master interface. It carries response messages for requests sent on Channel A to a specific address. It also carries acknowledgments for voluntary write-backs on Channel C. This channel is used by all TileLink conformance levels and is mandatory.
[0045] In the present invention, only Channels A and D are used for bus conversion. Therefore, only the relevant signals of Channels A and D will be introduced below. Among them, Table 1 shows the meaning description of the signals of Channel A of the TileLink bus.
[0046] Table 1
[0047]
[0048] Note: z represents the bit width of the size field, which is a minimum of 4 bits; o represents the number of bits required to distinguish the source (master) end; a represents the bit width of the address, which is a minimum of 32 bits; w represents the data bus width in bytes.
[0049] Table 2 is a description of the meaning of the channel D signal of the TileLink bus. In Table 2, note: z represents the bit width of the size segment, with a minimum of 4 bits; 0 represents the number of bits required to distinguish the source (master) end; i represents the number of bits required to distinguish the terminal (slave) end; w represents the data bus width in bytes.
[0050] Table 2
[0051]
[0052] 2. Introduction of APB Bus
[0053] The APB bus is a low-speed, streamlined single-channel protocol that does not support parallel read and write operations. A transaction requires at least two cycles to complete. The signal transmission process of the APB bus can be simplified to an APB state machine. Figure 2 It is a schematic diagram of signal transmission of APB bus.
[0054] like Figure 2 As shown in Figure 3, the signal transmission process of the APB bus includes two stages, the establishment stage and the enable stage. In the establishment stage, the control signal PSELx is pulled high, and PENABLE is kept low to output data. In the next cycle, the enable stage is entered, the PSELx signal is kept high, the PENABLE signal is pulled high, the data signal is kept, and the PREADY signal is waited until the PREADY signal is pulled high to complete the transmission of a transaction. Table 3 is a description of the signal meanings of the APB bus.
[0055] Table 3
[0056]
[0057] Embodiment 1
[0058] Figure 3 This is a flowchart of a method for converting a TileLink bus to an APB bus provided in the first embodiment of the present invention. This embodiment is applicable to the conversion between TileLink bus transactions and APB bus transactions. The method can be executed by the conversion system from the TileLink bus to the APB bus of the above embodiment. The conversion system can be implemented in the form of hardware and / or software, and the conversion system can be configured in a chip. Figure 3 As shown, the method includes:
[0059] S110 , receiving an initial TileLink request signal initiated by a TileLink master device on a TileLink bus; a clock frequency and a signal bit width of the initial TileLink request signal match those of the TileLink master device.
[0060] The TileLink master is a master device based on the TileLink bus, which is the master device that actively initiates the request transaction. The initial TileLink request signal refers to a request signal based on the TileLink bus initiated by the TileLink master, and the clock frequency and signal bit width of the initial TileLink request signal match those of the TileLink master.
[0061] In this embodiment, since the bus interface protocols of the TileLink master device and the APB slave device are different, the APB slave device cannot directly respond to the initial TileLink request signal initiated by the TileLink master device on the TileLink bus. Therefore, the TileLink master device needs to send the initial TileLink request signal initiated on the TileLink bus to the conversion system from the TileLink bus to the APB bus, so that the conversion system from the TileLink bus to the APB bus receives the initial TileLink request signal and performs bus interface mapping on the initial TileLink request signal. In addition, the clock frequency and / or signal bit width of the TileLink master device and the APB slave device may also be different, so the signal conversion process may also include: signal bit width conversion and / or clock frequency conversion.
[0062] S120, converting the initial TileLink request signal into a target APB request signal; the clock frequency and signal bit width of the target APB request signal match those of the APB slave device.
[0063] The APB slave device is a slave device based on the APB bus, which is used to respond to the request transaction initiated by the TileLink master device as a passive party. The target APB request signal is a request signal based on the APB bus, and the clock frequency and signal bit width of the target APB request signal match the APB slave device. The signal bit width may include: data bit width and / or address bit width.
[0064] In this embodiment, through the bit width conversion module, bus mapping module and cross-clock domain processing module connected in sequence in the conversion system from TileLink bus to APB bus, the initial TileLink request signal of the TileLink master device whose clock frequency and signal bit width match is converted into the target APB request signal of the APB slave device whose clock frequency and signal bit width match.
[0065] Specifically, converting the initial TileLink request signal into a target APB request signal includes: performing signal bit width conversion on the initial TileLink request signal to obtain a target TileLink request signal; matching the signal bit width of the target TileLink request signal with an APB slave device; mapping the target TileLink request signal to an initial APB request signal; performing cross-clock domain processing on the initial APB request signal to obtain a target APB request signal; matching the clock frequency of the initial APB request signal with a TileLink master device; matching the clock frequency of the target APB request signal with an APB slave device.
[0066] S130, send the target APB request signal to the APB slave device through the APB bus. In this embodiment, the target APB request signal whose clock frequency and signal bit width match the APB slave device after conversion is sent to the APB slave device through the APB bus through the conversion system from the TileLink bus to the APB bus. The APB slave device receives the target APB request signal sent by the TileLink master device and prepares to respond to the target APB request signal; if the response is successful, an initial APB response signal is generated and the initial APB response signal is returned to the APB bus; if the response preparation work is not completed, no response will be made. S140, receive the initial APB response signal returned by the APB slave device on the APB bus; the clock frequency and signal bit width of the initial APB response signal match those of the APB slave device. Among them, the initial APB response signal is the signal generated by the APB slave device in response to the target APB request signal, and the clock frequency and signal bit width of the initial APB response signal match those of the APB slave device.
[0067] In this embodiment, since the bus interface protocols of the TileLink master device and the APB slave device are different, the TileLink master device cannot directly process the response signal returned by the APB slave device. Therefore, it is necessary to send the initial APB response signal returned by the APB slave device on the APB bus to the TileLink bus to the APB bus conversion system, so that the TileLink bus to the APB bus conversion system receives the initial APB response signal and performs bus interface mapping on the initial APB response signal. In addition, the clock frequency and / or signal bit width of the TileLink master device and the APB slave device may also be different, so the signal conversion process may also include: signal bit width conversion and / or clock frequency conversion.
[0068] S150, converting the initial APB response signal returned by the APB slave device on the APB bus into a target TileLink response signal; the clock frequency and signal bit width of the target TileLink response signal match those of the TileLink master device.
[0069] The target TileLink response signal is a response signal based on the TileLink bus, and the clock frequency and signal bit width of the target TileLink response signal match those of the TileLink master device.
[0070] In this embodiment, the cross-clock domain processing module, bus mapping module and bit width conversion module connected sequentially in the conversion system of TileLink bus to APB bus convert the initial APB response signal of the APB slave device whose clock frequency and signal bit width match the target TileLink response signal of the TileLink master device whose clock frequency and signal bit width match the TileLink master device.
[0071] Specifically, converting the initial APB response signal into a target TileLink response signal includes: performing cross-clock domain processing on the initial APB response signal to obtain a target APB response signal; the clock frequency of the initial APB response signal matches the APB slave device; the clock frequency of the target APB response signal matches the TileLink master device; mapping the target APB response signal to an initial TileLink response signal; performing signal bit width conversion on the initial TileLink response signal to obtain a target TileLink response signal; the signal bit width of the initial TileLink response signal matches the APB slave device, and the signal bit width of the target TileLink response signal matches the TileLink master device.
[0072] Exemplarily, the address width of the TileLink bus corresponding to the TileLink master device is 32 bits, the data width is 64 bits, and the clock rate is 1 GHz; the address width of the APB bus corresponding to the APB slave device is 32 bits, the data width is 32 bits, and the clock rate is 100 MHZ.
[0073] S160 . Return the target TileLink response signal to the TileLink master device.
[0074] In this embodiment, through the conversion system from the TileLink bus to the APB bus, the target TileLink response signal whose clock frequency and signal bit width match the TileLink master device after conversion is sent to the TileLink master device through the TileLink bus, so that the request transaction of the TileLink master device is responded to.
[0075] The technical solution of the embodiment of the present invention receives the initial TileLink request signal initiated by the TileLink master device on the TileLink bus through the conversion system from the TileLink bus to the APB bus; converts the initial TileLink request signal into a target APB request signal; sends the target APB request signal to the APB slave device through the APB bus; receives the initial APB response signal returned by the APB slave device to the APB bus; converts the initial APB response signal into a target TileLink response signal; returns the target TileLink response signal to the TileLink master device, thereby realizing the conversion of the TileLink request signal and the APB response signal between the TileLink bus and the APB bus, filling the technical gap of converting the TileLink bus to the APB bus, enriching the transaction interaction mode between different buses, and facilitating the configuration of peripheral devices using the Tilelink bus architecture and the widespread application of chips based on the Tilelink bus architecture.
[0076] Embodiment 2
[0077] Figure 4 It is a flowchart of a method for converting a TileLink bus to an APB bus provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment further refines converting the initial TileLink request signal to a target APB request signal, including: converting the initial TileLink request signal to a target APB request signal, including: performing a signal bit width conversion on the initial TileLink request signal to obtain a target TileLink request signal; the signal bit width of the target TileLink request signal matches the APB slave device; mapping the target TileLink request signal to an initial APB request signal; performing cross-clock domain processing on the initial APB request signal to obtain a target APB request signal; the clock frequency of the initial APB request signal matches the TileLink master device; the clock frequency of the target APB request signal matches the APB slave device.
[0078] And converting the initial APB response signal into a target TileLink response signal includes: performing cross-clock domain processing on the initial APB response signal to obtain a target APB response signal; the clock frequency of the initial APB response signal matches the APB slave device; the clock frequency of the target APB response signal matches the TileLink master device; mapping the target APB response signal to an initial TileLink response signal; performing signal bit width conversion on the initial TileLink response signal to obtain a target TileLink response signal; the signal bit width of the initial TileLink response signal matches the APB slave device, and the signal bit width of the target TileLink response signal matches the TileLink master device.
[0079] like Figure 4 As shown, the method includes:
[0080] S201 , receiving an initial TileLink request signal initiated by a TileLink master device on a TileLink bus; the clock frequency and signal bit width of the initial TileLink request signal match those of the TileLink master device.
[0081] In this embodiment, the conversion system from the TileLink bus to the APB bus includes: a bit width conversion module, a bus mapping module and a cross-clock domain processing module.
[0082] In an optional embodiment, the TileLink bus to APB bus conversion system further includes a buffer module. The TileLink bus to APB bus conversion system buffers the received initial TileLink request signal initiated by the TileLink master device on the TileLink bus into the buffer module, waiting for signal conversion.
[0083] S202 , convert the signal bit width of the initial TileLink request signal to obtain a target TileLink request signal; the signal bit width of the target TileLink request signal matches the APB slave device.
[0084] The target TileLink request signal is a request signal based on the TileLink bus, and the signal bit width matches the APB slave device, and the clock frequency matches the TileLink master device.
[0085] In this embodiment, the initial TileLink request signal whose signal bit width matches the TileLink master device is converted by the bit width conversion module in the conversion system from the TileLink bus to the APB bus to obtain the target TileLink request signal whose signal bit width matches the APB slave device.
[0086] In an optional embodiment, the initial TileLink request signal is subjected to a signal bit width conversion to obtain a target TileLink request signal, including: when the signal bit width of the initial TileLink request signal is smaller than the signal bit width corresponding to the APB bus, the initial TileLink request signal is subjected to a signal bit width conversion based on a high-bit zero padding method to obtain a target TileLink request signal; when the signal bit width of the initial TileLink request signal is larger than the signal bit width corresponding to the APB bus, the initial TileLink request signal is subjected to a signal bit width conversion based on a low-bit interception method to obtain a target TileLink request signal; wherein the signal bit width includes: data bit width and / or address bit width.
[0087] In this embodiment, when the signal bit width of the initial TileLink request signal is smaller than the signal bit width corresponding to the APB bus, the bit width conversion module converts the signal bit width of the initial TileLink request signal by padding the high bits with zeros, so that the signal bit width of the initial TileLink request signal is lengthened and kept consistent with the signal bit width corresponding to the APB bus. The high bit padding method can be to add 0 before the highest bit of the initial TileLink request signal, for example, in Java, it can be implemented using the String.format method, the Decimal.Format class, or the StringUtils class.
[0088] In the case where the signal width of the initial TileLink request signal is greater than the signal width corresponding to the APB bus, the signal width of the initial TileLink request signal is converted based on the low-bit interception method, so that the signal width of the initial TileLink request signal is shortened and consistent with the signal width corresponding to the APB bus. The low-bit interception method can be to set the high-bit part of the signal width of the initial TileLink request signal to zero and only retain the low-bit part, which can be achieved in Java through shift operators, AND operators and type conversion.
[0089] S203: Map the target TileLink request signal to an initial APB request signal.
[0090] The initial APB request signal is a request signal based on the APB bus, and the signal bit width matches the APB slave device, and the clock frequency matches the TileLink master device.
[0091] In this embodiment, through the bus mapping module in the conversion system of TileLink bus to APB bus, the A channel signal in the target TileLink request signal is mapped to the corresponding signal under the APB bus to obtain the initial APB request signal, thereby realizing the bus protocol conversion from TileLink request signal to APB request signal.
[0092] In an optional embodiment, the target TileLink request signal is converted into an initial APB request signal, including: mapping the a_opcode signal in the target TileLink request signal to the PWRITE signal in the initial APB request signal; mapping the a_valid signal in the target TileLink request signal to the PENABLE signal in the initial APB request signal; mapping the a_ready signal in the target TileLink request signal to the PREADY signal in the initial APB request signal; mapping the a_address signal in the target TileLink request signal to the PADDR signal in the initial APB request signal; for the APB4 protocol, it also includes: mapping the a_mask signal in the target TileLink request signal to the PSTRB signal in the initial APB request signal.
[0093] S204, performing cross-clock domain processing on the initial APB request signal to obtain a target APB request signal; the clock frequency of the initial APB request signal matches the TileLink master device; the clock frequency of the target APB request signal matches the APB slave device.
[0094] In this embodiment, the cross-clock domain processing module in the conversion system of the TileLink bus to the APB bus performs cross-clock domain processing on the initial APB request signal whose clock frequency matches the TileLink master device to obtain the target APB request signal whose clock frequency matches the APB slave device.
[0095] In an optional embodiment, the initial APB request signal is processed across clock domains to obtain a target APB request signal, including: using the PENABLE signal and the PREADY signal as control signals, using the PADDR signal, PSELx signal, PWRITE signal, PWDATA signal and PSTRB signal as data signals, and processing the initial APB request signal across clock domains to obtain a target APB request signal.
[0096] S205 . Send the target APB request signal to the APB slave device via the APB bus.
[0097] S206 , receiving an initial APB response signal returned by the APB slave device to the APB bus.
[0098] S207, perform cross-clock domain processing on the initial APB response signal to obtain a target APB response signal; the clock frequency of the initial APB response signal matches the APB slave device; the clock frequency of the target APB response signal matches the TileLink master device.
[0099] In this embodiment, the cross-clock domain processing module in the conversion system of the TileLink bus to the APB bus performs cross-clock domain processing on the initial APB response signal whose clock frequency matches the APB slave device to obtain the target APB response signal whose clock frequency matches the TileLink master device.
[0100] In an optional embodiment, performing cross-clock domain processing on the initial APB response signal to obtain a target APB response signal includes:
[0101] The PWRITE signal, PSELx signal, PENABLE signal and PREADY signal are used as control signals, and the PRESTEN signal, PADDR signal, PWDATA signal, PRDATA signal and PSLVERR signal are used as data signals, and the initial APB response signal is processed across clock domains to obtain a target APB response signal.
[0102] S208: Map the target APB response signal to an initial TileLink response signal.
[0103] The initial TileLink response signal is a response signal based on the TileLink bus, and the signal bit width matches the APB slave device, and the clock frequency matches the TileLink master device.
[0104] In this embodiment, through the bus mapping module in the conversion system of the TileLink bus to the APB bus, the D channel signal in the target APB response signal is mapped to the corresponding signal under the APB bus to obtain the initial TileLink response signal, thereby realizing the bus protocol conversion from the APB response signal to the TileLink response signal.
[0105] In an optional embodiment, the target APB response signal is mapped to the initial TileLink response signal, including: mapping the PWRITE signal in the target APB response signal to the d_opcode signal in the initial TileLink response signal; mapping the PENABLE signal in the target APB response signal to the d_valid signal in the initial TileLink response signal; mapping the PREADY signal in the target APB response signal to the d_ready signal in the initial TileLink response signal; mapping the PRDATA signal in the target APB response signal to the d_data signal in the initial TileLink response signal.
[0106] S209 , convert the signal bit width of the initial TileLink response signal to obtain a target TileLink response signal; the signal bit width of the initial TileLink response signal matches the APB slave device, and the signal bit width of the target TileLink response signal matches the TileLink master device.
[0107] In this embodiment, the initial TileLink response signal whose signal bit width matches the APB slave device is converted by the bit width conversion module in the TileLink bus to APB bus conversion system to obtain the target TileLink response signal whose signal bit width matches the TileLink master device.
[0108] In an optional embodiment, performing a signal bit width conversion on the initial TileLink response signal to obtain a target TileLink response signal includes: when the signal bit width of the initial TileLink response signal is smaller than the signal bit width corresponding to the TileLink bus, performing a signal bit width conversion on the initial TileLink response signal based on a high-bit zero padding method to obtain a target TileLink response signal; when the initial TileLink response bit width is larger than the signal bit width corresponding to the TileLink bus, performing a signal bit width conversion on the initial TileLink response signal based on a low-bit interception method to obtain a target TileLink response signal; wherein the signal bit width includes: data bit width and / or address bit width.
[0109] In this embodiment, when the signal bit width of the initial TileLink response signal is less than the signal bit width corresponding to the TileLink bus, the bit width conversion module converts the signal bit width of the initial TileLink response signal by padding the upper bits with zeros, so that the signal bit width of the initial TileLink response signal is lengthened to be consistent with the signal bit width corresponding to the TileLink bus. The method of padding the upper bits with zeros can be to add 0 before the highest bit of the initial TileLink response signal, for example, in Java, it can be implemented using the String.format method, the Decimal.Format class, or the StringUtils class.
[0110] In the case where the signal width of the initial TileLink response signal is greater than the signal width corresponding to the TileLink bus, the signal width of the initial TileLink response signal is converted based on the low-bit interception method, so that the signal width of the initial TileLink response signal is shortened to be consistent with the signal width corresponding to the TileLink bus. The low-bit interception method can be to set the high-bit part of the signal width of the initial TileLink response signal to zero and only retain the low-bit part, which can be achieved in Java through shift operators, AND operators and type conversion.
[0111] S210 , returning the target TileLink response signal to the TileLink master device.
[0112] In an optional embodiment, the conversion system from the TileLink bus to the APB bus further includes: a buffer module. The conversion system from the TileLink bus to the APB bus buffers the returned target TileLink response signal into the buffer module.
[0113] The technical solution of the embodiment of the present invention receives the initial TileLink request signal initiated by the TileLink master device on the TileLink bus through the conversion system from the TileLink bus to the APB bus; converts the initial TileLink request signal into a target APB request signal; sends the target APB request signal to the APB slave device through the APB bus; receives the initial APB response signal returned by the APB slave device to the APB bus; converts the initial APB response signal into a target TileLink response signal; and returns the target TileLink response signal to the TileLink master device, thereby realizing the conversion of the TileLink request signal and the APB response signal between the TileLink bus and the APB bus, filling the technical gap of converting the TileLink bus to the APB bus, enriching the transaction interaction mode between different buses, and facilitating the configuration of peripheral devices using the Tilelink bus architecture and the widespread application of chips based on the Tilelink bus architecture.
[0114] Embodiment 3
[0115] Figure 5 A schematic diagram of a chip 30 that can be used to implement an embodiment of the present invention is shown. The chip is intended to represent various forms of microelectronic devices or components, such as a RISC microprocessor. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0116] like Figure 5 As shown, the chip 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the chip 30 can also be stored. The processor 31, ROM 32 and RAM 33 are connected to each other through a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.
[0117] Various components in chip 30 are connected to I / O interface 35, including input unit 36, output unit 37, and communication unit 39. Communication unit 39 allows chip 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0118] The processor 31 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 31 executes the various methods and processes described above, such as a method for converting a TileLink bus to an APB bus.
[0119] In some embodiments, the method for converting the TileLink bus to the APB bus may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program may be loaded and / or installed on the chip 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the method for converting the TileLink bus to the APB bus described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to execute the method for converting the TileLink bus to the APB bus in any other appropriate manner (e.g., by means of firmware).
[0120] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0121] In some embodiments, the method for converting the TileLink bus to the APB bus can be implemented as a computer program, which is invisibly included in a computer program product. When the computer program is executed by a processor, the method for converting the TileLink bus to the APB bus of the present invention is implemented. The computer program product can be understood as a software product that mainly implements its solution through a computer program. The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flowchart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine, or entirely on a remote machine or server.
[0122] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0123] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0124] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0125] Embodiment 4
[0126] Figure 6 1 is a schematic diagram of a conversion system from a TileLink bus to an APB bus provided in Embodiment 4 of the present invention. This embodiment is applicable to the conversion between TileLink bus transactions and APB bus transactions. The conversion system can be implemented in the form of hardware and / or software. Figure 6 As shown, the TileLink bus to APB bus conversion system 40 includes: a first bus conversion subsystem 410 and a second bus conversion subsystem 420; the first bus conversion subsystem 410 includes: a first bit width conversion module 411, a first bus mapping module 412 and a first cross-clock domain processing module 413 connected in sequence; the second bus conversion subsystem 420 includes: a second cross-clock domain processing module 423, a second bus mapping module 422 and a second bit width conversion module 421 connected in sequence;
[0127] An initial TileLink request signal initiated by the TileLink master device 41 on the TileLink bus is received through the first bus conversion subsystem 410, and the initial TileLink request signal is converted into a target APB request signal; an initial APB response signal returned to the APB bus by the APB slave device 42 is received through the second bus conversion subsystem 420, the initial APB response signal is converted into a target TileLink response signal, and the target TileLink response signal is returned to the TileLink master device 41;
[0128] The first bit width conversion module 411 is used to perform signal bit width conversion on the initial TileLink request signal to obtain a target TileLink request signal; the first bus mapping module 412 is used to map the target TileLink request signal to an initial APB request signal; the first cross-clock domain processing module 413 is used to perform cross-clock domain processing on the initial APB request signal to obtain a target APB request signal;
[0129] The second cross-clock domain processing module 423 is used to perform cross-clock domain processing on the initial APB response signal to obtain a target APB response signal; the second bus mapping module 422 is used to map the target APB response signal to an initial TileLink response signal; the second bit width conversion module 421 is used to perform signal bit width conversion on the initial TileLink response signal to obtain a target TileLink response signal.
[0130] In this embodiment, the conversion between TileLink bus transactions and APB bus transactions includes two conversion processes. The first conversion process is the conversion process of the request transaction initiated on the TileLink bus corresponding to the TileLink master device, and the first conversion process is executed by the first bus conversion subsystem; the second conversion process is the conversion process of the response transaction returned on the APB bus corresponding to the APB slave device, and the first conversion process is executed by the second bus conversion subsystem.
[0131] The first conversion process: the TileLink master device 41 initiates an initial TileLink request signal on the TileLink bus and sends it to the conversion system from the TileLink bus to the APB bus. In the conversion system from the TileLink bus to the APB bus, the initial TileLink request signal is converted by the first bit width conversion module 411 (Widget module) to obtain a target TileLink request signal that matches the signal bit width of the APB slave device; the target TileLink request signal is mapped and converted into an initial APB request signal by the first bus mapping module 412 (Tltoapb module); the initial APB request signal is processed across clock domains by the first cross-clock domain processing module 413 (Afifo module) to obtain a target APB request signal that matches the clock frequency of the APB slave device, and the target APB request signal is sent to the APB slave device, so that the APB slave device generates an initial APB response signal in response to the target APB request signal.
[0132] The second conversion process: the APB slave device 42 returns the initial APB response signal on the APB bus, and sends the initial APB response signal to the conversion system from the TileLink bus to the APB bus. In the conversion system from the TileLink bus to the APB bus, the initial APB response signal is processed across clock domains by the second cross-clock domain processing module 423 (Afifo module) to obtain a target APB response signal that matches the clock frequency of the TileLink master device; the target APB response signal is mapped and converted into the initial TileLink response signal by the second bus mapping module 422 (Tltoapb module); the initial TileLink response signal is converted into a signal bit width by the second bit width conversion module 421 (Widget module) to obtain a target TileLink response signal that matches the signal bit width of the TileLink master device, and the target TileLink response signal is returned to the TileLink master device 41 through the TileLink bus.
[0133] The conversion system from TileLink bus to APB bus completes the conversion of request signals between TileLink bus and APB bus through the first bit width conversion module 411, the first bus mapping module 412 and the first cross-clock domain processing module 413 connected in sequence in the first bus conversion subsystem; and realizes the conversion between TileLink bus transactions and APB bus transactions through the second cross-clock domain processing module 423, the second bus mapping module 422 and the second bit width conversion module 421 connected in sequence in the second bus conversion subsystem.
[0134] In an optional embodiment, the first bit width conversion module 411 and the second bit width conversion module 421 are specifically used for: signal bit width conversion between the Tilelink bus signal and the APB bus signal, so that the signal bit widths of the Tilelink bus signal and the APB bus signal match;
[0135] The signal bit width includes: data signal bit width and / or address signal bit width.
[0136] In this embodiment, the first bit width conversion module 411 is specifically used to convert a Tilelink bus signal that matches the signal bit width of a Tilelink master device into an APB bus signal that matches the signal bit width of an APB slave device; the second bit width conversion module 421 is specifically used to convert an APB bus signal that matches the signal bit width of an APB slave device into a Tilelink bus signal that matches the signal bit width of a Tilelink master device.
[0137] Furthermore, the signal bit width includes: data signal bit width and / or address signal bit width.
[0138] Thus, converting a Tilelink bus signal that matches the signal bit width of a Tilelink master device into an APB bus signal that matches the signal bit width of an APB slave device includes: converting a Tilelink bus data signal that matches the data signal bit width of a Tilelink master device into an APB bus data signal that matches the data signal bit width of an APB slave device; and converting a Tilelink bus address signal that matches the address signal bit width of a Tilelink master device into an APB bus address signal that matches the address signal bit width of an APB slave device.
[0139] Converting an APB bus signal that matches the signal bit width of an APB slave device into a Tilelink bus signal that matches the signal bit width of a Tilelink master device includes: converting an APB bus data signal that matches the data signal bit width of an APB slave device into a Tilelink bus data signal that matches the signal bit width of a Tilelink master device; and converting an APB bus address signal that matches the address signal bit width of an APB slave device into a Tilelink bus address signal that matches the address signal bit width of a Tilelink master device.
[0140] In another optional implementation, the first cross-clock domain processing module 413 is used to perform cross-clock domain processing on the Tilelink bus signal;
[0141] The second cross-clock domain processing module 423 is used to perform cross-clock domain processing on the APB bus signal.
[0142] In this embodiment, the first cross-clock domain processing module 413 is used to perform cross-clock domain processing on the Tilelink bus signal generated from the upstream Tilelink master device so that the converted Tilelink bus signal matches the clock frequency of the APB slave device; and the second cross-clock domain processing module 423 is used to perform cross-clock domain processing on the APB bus signal generated from the downstream APB slave device so that the converted APB bus signal matches the clock frequency of the Tilelink master device.
[0143] In an alternative embodiment, Figure 7 FIG. 1 is a schematic diagram of another structure of a conversion system from a TileLink bus to an APB bus provided in Embodiment 1 of the present invention. Figure 7As shown, the first bus conversion subsystem 410 in the conversion system of the TileLink bus to the APB bus may also include: a first cache module 414 (Buffer module) connected to the first bit width conversion module 411, used to cache the initial TileLink request signal before the signal bit width conversion is performed on the initial TileLink request signal by the first bit width conversion module; and the second bus conversion subsystem 420 may also include a second cache module 424 (Buffer module) connected to the second bit width conversion module 421, which caches the target TileLink response signal after the signal bit width conversion is performed on the initial TileLink response signal by the second bit width conversion module (Widget module).
[0144] It should be noted that in the conversion system from the TileLink bus to the APB bus, the first bus conversion subsystem 410 and the second bus conversion subsystem 420 can be implemented based on the same hardware or different hardware. The first bus conversion subsystem 410 and the second bus conversion subsystem 420 can be implemented based on the same hardware in the following manner: the first bus conversion subsystem 410 and the second bus conversion subsystem 420 are implemented using the same hardware. Further, the first bit width conversion module 411 and the second bit width conversion module 421 can be implemented using the same hardware module; the first bus mapping module 412 and the second bus mapping module 422 can be implemented using the same hardware module; the first cross-clock domain processing module 413 and the second cross-clock domain processing module 423 can be implemented using the same hardware module; the first cache module 414 and the second bit width conversion module 424 can be implemented using the same hardware module. The first bus conversion subsystem 410 and the second bus conversion subsystem 420 can be implemented based on different hardware in the following manner: the first bus conversion subsystem 410 is implemented using the first hardware; the second bus conversion subsystem 420 is implemented using the second hardware.
[0145] In a specific embodiment, Figure 8 Figure 1 is a schematic diagram of the bus signal conversion process from the TileLink master device to the APB slave device. Figure 8As shown, the TileLink master device sends the initial TileLink request signal initiated by the TileLink master device to the TileLink bus to APB bus conversion system through channel A of the TileLink bus. The TileLink bus to APB bus conversion system converts the initial TileLink request signal into a target APB request signal and sends the target APB request signal to the APB slave device. The APB slave device generates an initial APB response signal in response to the target APB request signal, and returns it to the TileLink bus to APB bus conversion system through the APB bus. The TileLink bus to APB bus conversion system converts the initial APB response signal into a target TileLink response signal and returns it to the TileLink master device through channel D of the TileLink bus.
[0146] The conversion system from TileLink bus to APB bus provided by an embodiment of the present invention includes: a bit width conversion module, a bus mapping module and a cross-clock domain processing module; the conversion between TileLink bus transactions and APB bus transactions is realized by sequentially connecting the bit width conversion module, the bus mapping module and the cross-clock domain processing module; wherein the bit width conversion module is used for bit width conversion of bus signals; the bus mapping module is used for mapping between Tilelink bus transactions and APB bus transactions; the cross-clock domain processing module is used for cross-clock domain processing of bus signals, which fills the technical gap of converting TileLink bus to APB bus, enriches the transaction conversion process between different buses, and is conducive to the wide application of Tilelink bus architecture configuration peripheral devices and chips based on Tilelink bus architecture.
[0147] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0148] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for converting a TileLink bus to an APB bus. It is characterized in that Applied to a conversion system from a TileLink bus to an APB bus, the method comprises: Receiving an initial TileLink request signal initiated by a TileLink master device on a TileLink bus; the clock frequency and signal bit width of the initial TileLink request signal match those of the TileLink master device; Converting the initial TileLink request signal into a target APB request signal; the clock frequency and signal bit width of the target APB request signal match those of the APB slave device; Sending the target APB request signal to the APB slave device via the APB bus; receiving an initial APB response signal returned by the APB slave device to the APB bus; the clock frequency and signal bit width of the initial APB response signal match those of the APB slave device; Converting the initial APB response signal into a target TileLink response signal; the clock frequency and signal bit width of the target TileLink response signal match those of the TileLink master device; Returning the target TileLink response signal to the TileLink master device; The step of converting the initial TileLink request signal into a target APB request signal includes: Performing signal bit width conversion on the initial TileLink request signal to obtain a target TileLink request signal; the signal bit width of the target TileLink request signal matches the APB slave device; Mapping the target TileLink request signal to an initial APB request signal; The initial APB request signal is processed across clock domains to obtain a target APB request signal; the clock frequency of the initial APB request signal matches the TileLink master device; the clock frequency of the target APB request signal matches the APB slave device.
2. The method according to claim 1, It is characterized in that Performing signal bit width conversion on the initial TileLink request signal to obtain a target TileLink request signal includes: When the signal bit width of the initial TileLink request signal is smaller than the signal bit width corresponding to the APB bus, performing signal bit width conversion on the initial TileLink request signal based on high-bit zero padding to obtain a target TileLink request signal; When the signal bit width of the initial TileLink request signal is greater than the signal bit width corresponding to the APB bus, performing signal bit width conversion on the initial TileLink request signal based on a low-bit interception method to obtain a target TileLink request signal; The signal bit width includes: data bit width and / or address bit width.
3. The method according to claim 1, It is characterized in that Mapping the target TileLink request signal to an initial APB request signal includes: Mapping the a_opcode signal in the target TileLink request signal to the PWRITE signal in the initial APB request signal; Mapping the a_valid signal in the target TileLink request signal to the PENABLE signal in the initial APB request signal; Mapping the a_ready signal in the target TileLink request signal to the PREADY signal in the initial APB request signal; The a_address signal in the target TileLink request signal is mapped to the PADDR signal in the initial APB request signal.
4. The method according to claim 3, It is characterized in that The initial APB request signal is processed across clock domains to obtain a target APB request signal, including: The PENABLE signal and the PREADY signal are used as control signals, and the PADDR signal, PSELx signal, PWRITE signal, PWDATA signal and PSTRB signal are used as data signals, and the initial APB request signal is processed across clock domains to obtain a target APB request signal.
5. The method according to claim 1, It is characterized in that Converting the initial APB response signal into a target TileLink response signal includes: The initial APB response signal is processed across clock domains to obtain a target APB response signal; the clock frequency of the initial APB response signal matches the APB slave device; the clock frequency of the target APB response signal matches the TileLink master device; Mapping the target APB response signal to an initial TileLink response signal; The initial TileLink response signal is converted into a signal bit width to obtain a target TileLink response signal; the signal bit width of the initial TileLink response signal matches the APB slave device, and the signal bit width of the target TileLink response signal matches the TileLink master device.
6. The method according to claim 5, It is characterized in that Performing cross-clock domain processing on the initial APB response signal to obtain a target APB response signal includes: The PWRITE signal, PSELx signal, PENABLE signal and PREADY signal are used as control signals, and the PRESTEN signal, PADDR signal, PWDATA signal, PRDATA signal and PSLVERR signal are used as data signals. The initial APB response signal is processed across clock domains to obtain a target APB response signal.
7. The method according to claim 5, It is characterized in that Mapping the target APB response signal to an initial TileLink response signal includes: Mapping the PWRITE signal in the target APB response signal to the d_opcode signal in the initial TileLink response signal; Mapping the PENABLE signal in the target APB response signal to the d_valid signal in the initial TileLink response signal; Mapping the PREADY signal in the target APB response signal to the d_ready signal in the initial TileLink response signal; The PRDATA signal in the target APB response signal is mapped to the d_data signal in the initial TileLink response signal.
8. The method according to claim 5, It is characterized in that Performing signal bit width conversion on the initial TileLink response signal to obtain a target TileLink response signal includes: When the signal bit width of the initial TileLink response signal is smaller than the signal bit width corresponding to the TileLink bus, a bit width conversion module is used to convert the signal bit width of the initial TileLink response signal by padding high bits with zeros to obtain a target TileLink response signal; When the initial TileLink response bit width conversion module is larger than the signal bit width corresponding to the TileLink bus, the initial TileLink response signal is converted into a target TileLink response signal by using a bit width conversion module based on low bit interception; The signal bit width includes: data bit width and / or address bit width.
9. A chip, It is characterized in that The chip comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method for converting the TileLink bus to the APB bus according to any one of claims 1 to 8.
10. A TileLink bus to APB bus conversion system, used to implement the TileLink bus to APB bus conversion method according to any one of claims 1 to 8, It is characterized in that The system comprises: A first bus conversion subsystem and a second bus conversion subsystem; the first bus conversion subsystem comprises: a first bit width conversion module, a first bus mapping module and a first cross-clock domain processing module connected in sequence; the second bus conversion subsystem comprises: a second cross-clock domain processing module, a second bus mapping module and a second bit width conversion module connected in sequence; An initial TileLink request signal initiated by a TileLink master device on a TileLink bus is received through a first bus conversion subsystem, and the initial TileLink request signal is converted into a target APB request signal; an initial APB response signal returned to the APB bus by an APB slave device is received through a second bus conversion subsystem, the initial APB response signal is converted into a target TileLink response signal, and the target TileLink response signal is returned to the TileLink master device; The first bit width conversion module is used to perform signal bit width conversion on the initial TileLink request signal to obtain a target TileLink request signal; the first bus mapping module is used to map the target TileLink request signal to an initial APB request signal; the first cross-clock domain processing module is used to perform cross-clock domain processing on the initial APB request signal to obtain a target APB request signal; The second cross-clock domain processing module is used to perform cross-clock domain processing on the initial APB response signal to obtain a target APB response signal; the second bus mapping module is used to map the target APB response signal to an initial TileLink response signal; the second bit width conversion module is used to perform signal bit width conversion on the initial TileLink response signal to obtain a target TileLink response signal.
