Bus conversion bridge IP core for artificial intelligence chip
By designing the bus conversion bridge IP core in an artificial intelligence chip, and using the protocol analysis module to realize the conversion of AHB signal to AXI signal, it solves the difficulty of signal conversion of AHB and AXI bus interconnection in the chip, improves development efficiency and avoids bugs Appear.
Patent Information
- Application Number
- CN202420419216.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2034-03-05
AI Technical Summary
In artificial intelligence chips, there is difficulty in signal conversion between the bus interconnection between the AHB master module and the AXI slave module, which makes it possible to modify the interface time-consuming and easy to introduce bugs.
Design a bus conversion bridge IP core, including data conversion processing module, AMBA AHB bus protocol analysis module and AMBA AXI3/AXI4 bus protocol analysis module, to realize the conversion of AHB signals into AXI3/AXI4 signals, through instruction type, bit width and data Type detection performs protocol resolution and conversion.
Implement mutual conversion between AHB bus interface signals and AXI3/AXI4 bus interface signals, avoiding structural modifications and bugs, and improving development efficiency.
Smart Images

Figure CN221946489U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of IP cores, and in particular to a bus conversion bridge IP core for an artificial intelligence chip. Background Art
[0002] In recent years, with the accumulation of big data, the innovation of theoretical algorithms, the improvement of computing power and the evolution of network facilities, the artificial intelligence industry, which has accumulated for more than half a century, has once again ushered in revolutionary progress, and the research and application of artificial intelligence has entered a new stage of development. Artificial intelligence is gradually developing into a new generation of general technology, and is already at the core of the new scientific and technological revolution and industrial transformation, becoming a new engine to promote economic and social development. In fact, the rapid development of the artificial intelligence industry, whether it is the implementation of algorithms, the acquisition and storage of massive data, or the embodiment of computing power, is inseparable from the only physical foundation at present - chips. Whether it is possible to develop chips with ultra-high computing power and meet market demand has become an important factor in the sustainable development of the field of artificial intelligence.
[0003] In many SoCs (System on Chip), there are multiple bus interconnection methods, such as AHB (Advanced High-performance Bus), APB (Advanced Peripheral Bus) and AXI (Advanced eXtensible Interface). Some IPs are low-speed devices, so they do not need an AXI interface. However, many IP stores in SoC are reused. If the architecture of an artificial intelligence chip uses the AXI bus as the main bus interconnection, but some IPs use AHB, sometimes modifying the interface may not be cost-effective, which will waste time or introduce new bugs. Utility Model Content
[0004] The technical problem to be solved by the utility model is to overcome the deficiencies of the prior art and provide a bus conversion bridge IP core for an artificial intelligence chip, which can convert the AHB signal sent by the IP with an AHB host in the artificial intelligence chip into an AXI3 or AXI4 signal and transmit it to the AXI slave IP module.
[0005] The technical solution adopted by the utility model is: the utility model comprises a data conversion processing module and an AMBA AHB bus protocol parsing module and an AMBA AXI3 / AXI4 bus protocol parsing module both connected to the data conversion processing module, the AMBA AHB bus protocol parsing module and the AMBA AXI3 / AXI4 bus protocol parsing module both being connected to an artificial intelligence chip; the AMBA AHB bus protocol parsing module is used to parse the AHB signal protocol sent from the main module of the artificial intelligence chip, the AMBA AXI3 / AXI4 bus protocol parsing module is used to parse the AXI3 / AXI4 signal protocol sent from the slave module of the artificial intelligence chip, and the data conversion processing module performs data conversion.
[0006] Further, the AMBA AHB bus protocol parsing module includes a first instruction type reading unit, a first bit width detection unit and a first data type detection unit, the first instruction type reading unit reads the operation instruction type of the AHB signal sent by the main module of the artificial intelligence chip, the first bit width detection unit detects the bit width of the transmission data of the AHB signal sent by the main module of the artificial intelligence chip, and the first data type detection unit detects the transmission data type of the AHB signal sent by the main module of the artificial intelligence chip.
[0007] Further, the AMBA AXI3 / AXI4 bus protocol parsing module includes a second instruction type reading unit, a second bit width detection unit and a second data type detection unit, the second instruction type reading unit reads the operation instruction type of the AXI3 / AXI4 signal sent from the slave module of the artificial intelligence chip, the second bit width detection unit detects the bit width of the transmission data of the AXI3 / AXI4 signal sent from the slave module of the artificial intelligence chip, and the second data type detection unit detects the transmission data type of the AXI3 / AXI4 signal sent from the slave module of the artificial intelligence chip.
[0008] The beneficial effect of the utility model is that the bus conversion bridge IP core for artificial intelligence chips provided by the utility model can realize the mutual conversion between AHB bus interface signals and AXI3 / AXI4 bus interface signals, and does not need to modify the structure during application, which can avoid wasting time and prevent the emergence of new bugs. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a structural block diagram of the utility model;
[0010] Figure 2 It is the internal structure block diagram of the utility model. DETAILED DESCRIPTION
[0011] like Figure 1and Figure 2 As shown, the utility model includes a data conversion processing module and an AMBA AHB bus protocol parsing module and an AMBA AXI3 / AXI4 bus protocol parsing module both connected to the data conversion processing module, wherein the AMBA AHB bus protocol parsing module and the AMBA AXI3 / AXI4 bus protocol parsing module are both connected to an artificial intelligence chip; the AMBA AHB bus protocol parsing module is used to parse the AHB signal protocol sent from the master module of the artificial intelligence chip, and the AMBA AXI3 / AXI4 bus protocol parsing module is used to parse the AXI3 / AXI4 signal protocol sent from the slave module of the artificial intelligence chip, and the data conversion processing module realizes conversion between the AHB bus protocol of the AMBA AHB bus protocol parsing module and the AXI3 / AXI4 bus protocol of the AMBA AXI3 / AXI4 bus protocol parsing module according to the provisions of the AMBA AHB protocol and the AMBA AXI3 / AXI4 protocol. It can be seen that the utility model can realize the mutual conversion between AHB bus interface signals and AXI3 / AXI4 bus interface signals, and does not need to modify the structure during application, which can avoid wasting time and prevent the emergence of new bugs.
[0012] In this embodiment, the AMBA AHB bus protocol parsing module is used to parse the AHB signal protocol sent by the main module of the artificial intelligence chip. The AMBA AHB bus protocol parsing module includes a first instruction type reading unit, a first bit width detection unit and a first data type detection unit. The first instruction type reading unit reads the operation instruction type of the AHB signal sent by the main module of the artificial intelligence chip, the first bit width detection unit detects the bit width of the transmission data of the AHB signal sent by the main module of the artificial intelligence chip, and the first data type detection unit detects the transmission data type of the AHB signal sent by the main module of the artificial intelligence chip, and determines whether the module sending the AHB signal is to implement a read operation or a write operation through the AHB bus, as well as the bit width of the operation data, the transmission data type and other operations. The operation instruction types of the main module include IDLE-no data transmission, BUSY-busy state, a waiting delay for inserting transmission in burst, NONSEQ-a single transmission or the first beat of data in a burst transmission, and SEQ-in the burst transmission state. The bit width of the transmission data is 8 / 16 / 32 / 64 / 128 / 256 / 512 / 1024 bits. The transmission data types include single transmission (SINGLE), variable-length incremental transmission (INCR), loopback transmission (WRAP4 / 8 / 16), and fixed-length incremental transmission (INCR4 / 8 / 16).
[0013] In this embodiment, the AMBA AXI3 / AXI4 bus protocol parsing module is used to parse the AXI3 / AXI4 signal protocol sent from the slave module of the artificial intelligence chip. The AMBA AXI3 / AXI4 bus protocol parsing module includes a second instruction type reading unit, a second bit width detection unit, and a second data type detection unit. The second instruction type reading unit reads the operation instruction type of the AXI3 / AXI4 signal sent from the slave module of the artificial intelligence chip, the second bit width detection unit detects the bit width of the transmission data of the AXI3 / AXI4 signal sent from the slave module of the artificial intelligence chip, and the second data type detection unit detects the transmission data type of the AXI3 / AXI4 signal sent from the slave module of the artificial intelligence chip, and determines whether the module sending the AXI3 / AXI4 signal is to implement a read operation or a write operation through the AHB bus, as well as the bit width of the operation data, the transmission data type, and other operations. The operation instruction types of the slave module include FIXED (fixed burst mode), INCR (incremental burst mode), and WRAP (wrap-around burst mode). The bit width of the transmitted data is the number of bytes in a transfer, 1 / 2 / 4 / 8 / 16 / 32 / 64 / 128 bytes. The burst length of the transmission data type is between 1 and 256 for INCR burst type, and between 1 and 16 for other types.
[0014] In this embodiment, the data conversion processing module determines the conversion type between the read and write operations of the AHB bus protocol type and the read and write operations of the AXI3 / AXI4 bus protocol type according to the provisions of the AMBA AHB protocol and the AMBA AXI3 / AXI4 protocol, and realizes the conversion between the AHB bus protocol of the AMBA AHB bus protocol parsing module and the AXI3 / AXI4 bus protocol of the AMBA AXI3 / AXI4 bus protocol parsing module. The data conversion processing module realizes the conversion between the AHB bus protocol and the AXI3 / AXI4 bus protocol according to the provisions of the AMBA AHB protocol and the AMBA AXI3 / AXI4 protocol; that is, the read and write operations of the AHB bus protocol type are converted into the read and write operations of the AXI3 / AXI4 bus protocol type, or the read and write operations of the AXI3 / AXI4 bus protocol type are converted into the read and write operations of the AHB bus protocol.
[0015] Although the embodiments of the present invention are described with practical solutions, they do not constitute limitations on the meaning of the present invention. For those skilled in the art, it is obvious to modify the implementation scheme and combine it with other solutions based on this description.
Claims
1. A bus conversion bridge IP core for artificial intelligence chips, Features: It comprises a data conversion processing module and an AMBA AHB bus protocol parsing module and an AMBA AXI3 / AXI4 bus protocol parsing module both connected to the data conversion processing module, wherein the AMBA AHB bus protocol parsing module and the AMBA AXI3 / AXI4 bus protocol parsing module are both connected to an artificial intelligence chip; the AMBA AHB bus protocol parsing module is used to parse the AHB signal protocol sent by the main module of the artificial intelligence chip, the AMBA AXI3 / AXI4 bus protocol parsing module is used to parse the AXI3 / AXI4 signal protocol sent by the slave module of the artificial intelligence chip, and the data conversion processing module performs data conversion.
2. A bus conversion bridge IP core for an artificial intelligence chip according to claim 1, Features: The AMBA AHB bus protocol parsing module includes a first instruction type reading unit, a first bit width detection unit and a first data type detection unit. The first instruction type reading unit reads the operation instruction type of the AHB signal sent by the main module of the artificial intelligence chip, the first bit width detection unit detects the bit width of the transmission data of the AHB signal sent by the main module of the artificial intelligence chip, and the first data type detection unit detects the transmission data type of the AHB signal sent by the main module of the artificial intelligence chip.
3. A bus conversion bridge IP core for an artificial intelligence chip according to claim 1, Features: The AMBA AXI3 / AXI4 bus protocol parsing module includes a second instruction type reading unit, a second bit width detection unit and a second data type detection unit. The second instruction type reading unit reads the operation instruction type of the AXI3 / AXI4 signal sent from the slave module of the artificial intelligence chip, the second bit width detection unit detects the bit width of the transmission data of the AXI3 / AXI4 signal sent from the slave module of the artificial intelligence chip, and the second data type detection unit detects the transmission data type of the AXI3 / AXI4 signal sent from the slave module of the artificial intelligence chip.
