A method and device for quickly configuring multiple IP cores in FPGA
By independently opening multiple APB channels, rapid configuration of multiple IP cores in FPGA is achieved, which solves the problem that traditional configuration methods cannot meet the high-speed configuration requirements of modern FPGAs, improves configuration speed and flexibility, and supports read-after-write and burst modes. , save power consumption.
Patent Information
- Application Number
- CN202410823145.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The traditional FPGA configuration method cannot meet the needs of rapid configuration of multiple IP cores in modern high-end FPGAs, resulting in insufficient configuration speed and inability to meet the application scenario requirements of high-speed data transmission and storage.
Through the independent opening of multiple APB channels, flexible and fast configuration of multiple IP cores is achieved, including writing the APB register data stream into the FPGA data stream, parsing and writing the APB register, the APB clock control module opens the target channel, and the APB channel The interface conversion module sends the signal to the IP core to be configured to complete the configuration.
It greatly improves the IP core configuration speed, enhances the flexibility of configuration, supports read-after-write and burst mode, simplifies operations, and saves power consumption.
Smart Images

Figure CN118427148B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of field programmable gate array design, and in particular relates to a method and device for rapidly configuring multiple IP cores of an FPGA. Background Art
[0002] IP core (Intellectual Property Core) is a general term for integrated circuit cores with intellectual property cores. It is an integrated circuit design macro module (logic or functional unit) that is gradually separated from the chip design process, has been repeatedly verified, has specific functions, can be reused, and contains specific core elements (instruction set, function description, code, etc.), such as AHB, APB, Ethernet, SPI, I2C, MIPI, USB, UART cores. In chip design, the role of IP cores is to reduce redundant design costs, reduce error risks, and improve design efficiency. IP cores are the crystallization of the designer's wisdom and represent the designer's intellectual property. Therefore, the chip industry uses IP cores to represent this mature design circuit module, which can be regarded as an important intermediate component of chip design.
[0003] FPGA (Field Programmable Gate Array) is an integrated circuit with programmable features pre-designed and implemented on silicon wafers. It can be configured into a specified circuit structure according to the needs of designers, so that customers do not have to rely on ASIC chips designed and manufactured by chip manufacturers. It is widely used in prototype verification, communications, automotive electronics, industrial control, aerospace, data centers and other fields.
[0004] In order to meet some application scenarios of high-speed data transmission and storage, the current high-end FPGAs are integrated with DDR (Double Data Rate) IP cores and SERDES (Serializer / Deserializer) IP cores. The DDR IP core is responsible for data transmission between the FPGA and external DDR particles, and the SERDES IP core is used to convert low-speed parallel data into high-speed serial data and send it to the transmission media (optical cable or copper wire), or parse the high-speed serial data from the transmission media and convert it into low-speed parallel data for the FPGA. The IP core often has requirements for its own configuration time. For example, some PCIE IPs require successful configuration within 100ms, otherwise the enumeration is considered to have failed. The traditional configuration method is to configure each IP in sequence according to its configuration requirements through a set of low-speed configuration interfaces. With the development of electronic technology, the scale of FPGAs is getting larger and more powerful, and the number of IP cores that need to be configured inside them is increasing. The traditional configuration method can no longer meet today's configuration speed requirements.
[0005] Therefore, it is necessary to develop a new method and device for quickly configuring multiple IP cores, which can quickly configure multiple internal IP cores. Summary of the invention
[0006] The present invention provides a method and device for quickly configuring multiple IP cores in an FPGA. Multiple IP cores can be configured flexibly and quickly by independently opening multiple APB channels, thereby improving the configuration speed.
[0007] Other purposes and advantages of the present invention can be further understood from the technical features disclosed in the present invention.
[0008] To achieve one or part or all of the above purposes or other purposes, a technical solution of the present invention provides a method for quickly configuring multiple IP cores in FPGA, which is characterized by comprising the following steps: Step 1: writing the APB register data stream into the FPGA data stream; Step 2: after the FPGA configuration interface obtains the FPGA data stream written into the APB register data stream, it parses the APB register data stream according to the protocol and writes the parsing result into the corresponding APB register; Step 3: the APB clock control module turns on the clock of the target APB channel, the APB channel control module reads the data in the APB register, and sends the value corresponding to the parsing result in the APB register to the APB channel interface conversion module to convert it into a signal that complies with the APB interface protocol, and the APB channel interface conversion module sends the signal to the IP core to be configured; Step 4: after the IP core to be configured receives the signal, it writes the signal into the register in the IP core to be configured to complete the configuration of the IP core to be configured. Compared with the prior art, the present invention writes the APB register data stream and parses the APB data stream into the APB register. The APB channel control module reads the data of the APB register and transmits it to the APB channel interface conversion module, and the APB clock control module controls the opening of each clock of the APB channel interface conversion module. The present invention controls the independent opening of multiple channels through multiple APB clock modules, and can realize the configuration of multiple IP cores.
[0009] The APB channel control module is connected to a plurality of APB channel interface conversion modules; the APB channel control module reads the value in the APB register and distributes the corresponding analysis result to the plurality of channel interface conversion modules.
[0010] The analysis results refer to control parameters, read and write addresses, write data, and write enable.
[0011] The data stream parsing module of the FPGA writes the corresponding data in the FPGA data stream written into the APB register data stream into the register of the specified address in the packet header of the data stream protocol packet.
[0012] The data stream parsing module of the FPGA writes the corresponding data in the FPGA data stream into the APB control register, APB bit enable register, APB address register, APB write data register, APB read data register, APB write select register, and APB status register.
[0013] The APB clock control module turns on the clock of the target APB channel in the following manner: the APB channel control module reads the data in the APB control register and sends the indication information of turning on or off the APB channel to the APB clock control module.
[0014] The data stream protocol packet includes a first type data packet and a second type data packet, wherein the first type data packet includes a packet header and a plurality of data words; and the second type data packet follows the first type data packet.
[0015] The header data of the first type of data packet is used to indicate the data packet type, read / write control, register address and 11-bit data word count; the second type of data packet uses the register address of the first type of data packet.
[0016] The APB register data stream written into the FPGA data stream is used to control the APB channel interface conversion module to implement direct write, direct read or read-after-write functions.
[0017] The APB channel control module parses the APB register data stream and can control the APB channel interface conversion module to open any channel interface or open multiple channel interfaces at the same time.
[0018] When using the direct write mode, the one-time write data length is specified to be greater than 1, and there is no need to add multiple write addresses and write-select APB register data flow segments in the FPGA data flow.
[0019] The APB channel interface conversion module is connected to multiple IP cores, and after converting the analysis result, the APB channel conversion module selects a corresponding APB channel interface to transmit a signal to the corresponding IP core.
[0020] The APB channel interface conversion module selects the corresponding IP core according to the data in the APB address register, and sends the signal to the address register of the corresponding IP core.
[0021] The data stored in the APB write enable register is used to indicate that a certain byte in the corresponding APB write data register is valid; in direct write mode, when the burst length exceeds 1, the value automatically increased by the APB address is determined according to the enable value in the write enable register.
[0022] The step 4 also includes the host computer reading the value of the register in the IP core to be configured, the APB channel control module writing the register value of the IP core to be configured returned by the APB channel interface conversion module into the APB read register; the APB channel control module writing the read and write error status of the IP core to be configured returned by the APB channel interface conversion module into the APB status register; the host computer reading the APB read register to determine the value in the register of the IP core to be configured, and then determining whether the IP core to be configured is successfully configured; the host computer reads the value of the APB status register to determine whether a read error or a write error occurs when configuring the register of the IP core to be configured.
[0023] After the APB channel interface conversion module sends the signal to the IP core to be configured, the APB clock control module turns off the clock of the corresponding APB channel; after the APB channel interface conversion module reads the data in the register of the IP core to be configured and the read / write error status and sends them to the APB channel control module, the APB clock control module turns off the clock of the corresponding APB channel
[0024] Another embodiment of the present invention provides a device for quickly configuring multiple IP cores in FPGA, and the device uses the above-mentioned method for quickly configuring multiple IP cores in FPGA to quickly configure multiple IP cores to be configured. The device includes a configuration interface, which obtains data stream data; a data stream parsing module, which parses the data stream obtained by the configuration interface; an APB clock control module, which controls the clock opening and closing of the APB channel interface conversion module according to the instruction information issued by the APB channel control module; an APB register, including an APB control register, an APB bit enable register, an APB address register, an APB write data register, an APB read data register, an APB write select register, and an APB status register, and the APB register is used to receive the writing of the data stream parsing protocol parsing result; an APB channel control module, which reads the data in the APB register and passes the data in the APB register to the corresponding APB channel interface conversion module; the APB channel interface conversion module converts the data transmitted by the APB channel control module into a corresponding signal that complies with the APB interface protocol and passes it to the IP core to be configured; and a host computer, which reads the data in the APB register that is returned from the APB channel control module.
[0025] Compared with the prior art, the beneficial effects of the present invention mainly include: 1. Each APB channel can be opened independently or together, which greatly enhances the flexibility of configuring each IP core, and multiple channels can be operated simultaneously, which greatly improves the configuration speed.
[0026] 2. Support read-after-write mode, which can specify to change certain bits of the register without changing other bits, thus improving the flexibility of writing to the register.
[0027] 3. Support burst mode and configure the register sequence of IP without adding additional write address and write enable data stream segments, which greatly improves the configuration speed.
[0028] 4. By loading the data flow of the APB configuration segment in the FPGA data flow, it is used to control the opening of the APB clock, which has the characteristics of simple operation, and the APB clock is turned off after the APB configuration is completed, which can save power consumption.
[0029] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the specific embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 paying creative work.
[0031] Figure 1 This is a flow chart of a direct write operation in an IP core configuration method according to an embodiment of the present invention.
[0032] Figure 2 The figure is a flow chart of a direct read operation in an IP core configuration method according to an embodiment of the present invention.
[0033] Figure 3 It is a schematic diagram of a device for implementing IP core configuration in the second embodiment of the present invention. DETAILED DESCRIPTION
[0034] The above and other technical contents, features and effects of the present invention will be clearly presented in the following detailed description of a preferred embodiment with reference to the drawings. The directional terms mentioned in the following embodiments, such as up, down, left, right, front or back, etc., are only referenced to the directions of the attached drawings. Therefore, the directional terms used are used to illustrate and not to limit the present invention.
[0035] This embodiment provides a method for quickly configuring multiple IP cores on an FPGA. Figure 1 , the method of embodiment 1 comprises the following steps:
[0036] Step 1: Predefine the data flow protocol of FPGA, and write the APB register data flow into the FPGA data flow; wherein the data flow protocol includes a first type of data packet and a second type of data packet, the first type of data includes a header and several data words, and the header includes the type, read-write control, register address and 11-bit data word count. The second type of data packet is not allowed to appear alone, and must follow the first type of data packet. At the same time, there is no register address in the second type of data packet, so that the register address of the first type of data packet in front of it is the corresponding data volume, which should be set to 0. For an example of the first type of data packet, see Table 1 below, and for an example of the second type of data packet, see Table 2 below, wherein Tables 1 and 2 are only examples of two data packets. In Tables 1 and 2, except for the type column and the reserved bit column, which are represented by data, the remaining data columns are not assigned values and are represented by x.
[0037] Table 1 Example of the first type of data packet
[0038]
[0039] Table 2 Example of the second type of data packet
[0040]
[0041] Step 2: After the FPGA configuration interface obtains the FPGA data stream written into the APB register data stream, it parses the data stream according to the protocol and writes the parsing results into the corresponding APB register; wherein the APB register usually refers to the register on the Advanced Peripheral Bus connected to the ARM processor. FPGAs usually integrate an ARM processor as their processing core, and these registers are used for peripherals connected to the ARM processor, playing an important role in configuring and controlling peripherals in the FPGA system. Accessing these registers through the APB bus can realize functions such as configuration, control and data transmission of peripherals. In Example 1, the APB register refers to a part of the register in the FPGA, and its value is obtained from the data stream. The FPGA configures the IP core accordingly or obtains the relevant status of the IP core according to the value in the APB register.
[0042] In this embodiment 1, the corresponding data word in the data stream is written into the register at the address specified by the packet header, including writing into the APB control register, APB bit enable register, APB address register, APB write data register, APB read data register, APB write select register, and APB status register.
[0043] The data stored in the APB control register can be used to indicate the one-time write data length, write mode control, read-write control, and channel control of each APB channel; the data stored in the APB bit enable register can be used to indicate which bit in the read-after-write process keeps the value of the corresponding bit in the IP register unchanged, and only writes other bits; the data stored in the APB address register can be used to indicate the IP number of the corresponding APB channel and the IP register address to be read and written; the data stored in the APB write data register can be used to indicate the data in the IP register address to be written; the data stored in the APB read data register can be used to indicate the data read from the IP register address; the data stored in the APB write select register can be used to indicate the select value when the APB writes data, and the select value can indicate that a certain byte in the corresponding APB write data register is valid; the data stored in the APB status register can be used to indicate the read and write error status of each channel and each IP.
[0044] When each IP needs to be configured, the data stream data required by the above APB register is written into the FPGA data stream. After the data stream parsing protocol parses the corresponding APB segment data stream, the control parameters, read and write addresses, write data, and write strobe are written into the corresponding APB register. After the APB channel control module reads the data in the APB register, it can control each APB channel to realize the corresponding direct write, direct read or read-after-write functions. Here, the APB channel refers to a plurality of APB channel interface conversion modules connected under the APB channel control module. In Example 1, four APB channel interface conversion modules are used as an example for illustration. In the actual application process, it is not necessary to limit the number of APB channels. Any number of APB channels are applicable to the scheme of the present invention. The APB channel control module can distribute the data in the read APB register to the APB channel interface conversion module. The four APB channel interface conversion modules are defined as APB channel 0 interface conversion module, APB channel 1 interface conversion module, APB channel 2 interface conversion module, and APB channel 3 interface conversion module. The above four channel interface conversion modules indicate that APB has four channels. The four APB channels can be opened individually or multiple channels can be opened at the same time. The control APB channels mentioned above can realize direct write, direct read or read-after-write functions. The direct write function means directly writing the expected value to the register of the IP core to be configured (see the write data flow diagram). Figure 1 ); Direct reading means reading data from the register of the corresponding IP core to be configured (see the data reading flow chart Figure 2 ), stored in the APB read data register; read-after-write is to first read the data from the register corresponding to the IP core to be configured, and then determine the value to be written to the register of the IP core to be configured based on the value in the APB bit enable register.
[0045] See also Figure 1 When using direct write mode, you can specify that the length of the one-time written data is greater than 1, that is, after writing data once to the corresponding address register of the IP core to be configured, the data will be automatically written to the register of the next address of the IP core to be configured, without adding multiple write addresses and write strobe data stream segments in the data stream. For example, the 19th to 8th bits in the APB control register can be specified as the burst length (burst mode transmission can achieve continuous transmission), the 5th bit specifies the write mode, the 4th bit specifies the read-write control, and the 3rd to 0th bits control the opening and closing of APB3 to APB0 respectively. For example, when the value in the APB control register is hexadecimal 00000122, it means that the APB1 interface is read-after-write operation, and when the value in the APB control register is hexadecimal 0000080F, it means that the APB0 to APB3 interfaces are directly written in sequence, and 8 data are written in sequence according to the register address.
[0046] Among them, in the write mode, when the direct write burst length exceeds 1, the value of the address automatically increases needs to be determined according to the strobe system in the APB write strobe register. For example, if the write data value is hexadecimal 12345678 and the write strobe value is 1, it means that only 78 of the write data is valid, and in the burst mode, the address automatically increases by 1; when the write strobe value is F, it means that the write data 12345678 are all valid, and the address automatically increases by 4 (data is written to all 4 addresses). This solution can realize the automatic increase of the address.
[0047] Step three: The APB clock control module turns on the target APB channel clock. Here, the APB clock control module turns on the APB channel clock in the following way: the APB channel control module reads the parameters in the APB control register, and obtains the information in the APB register about which channels are turned on and which channels are turned off, and then passes this information to the APB clock control module. The APB clock control module then retains the APB clock of the APB interface that needs to be turned on, and stops the APB clock of the APB interface that needs to be turned off, and then operates the APB channel. At the same time, after the operation is completed, the APB clock control module turns off the clock of the corresponding APB channel.
[0048] The APB channel control module distributes the APB address, write data, and write strobe data to different APB channel interface conversion modules according to the control parameters in the APB controller. When the burst length is greater than 1, the APB address automatically increases according to the write strobe value. For example, when only the APB1 channel is turned on in the APB control register, the APB address, write data, and write strobe will only be sent to the APB1 channel interface conversion module. When the APB control register turns on the APB0, APB1, and APB3 channels, 3 groups of APB addresses, 3 groups of write data, and 3 groups of write strobes will be sent to the channel interface conversion modules of APB0, APB1, and APB3 in sequence. For example, when the burst length exceeds 1, if the write strobe value is F, then after each data is written, the next write data will automatically increase the address by 4. If the write strobe value is 3, then after each data is written, the next write data will automatically increase the address by 2.
[0049] The APB channel interface conversion module is responsible for converting the parallel data sent by the APB channel control module into corresponding data that meets the APB interface timing, and at the same time selects the corresponding IP core under the APB channel and then transmits the corresponding data to the corresponding IP core. For example, bits 31 to 30 of the APB address register can be used as reserved bits, bits 29 to 28 can be specified as IP selection, bits 27 to 0 can be specified as the address of the register, when the value in the APB address register is hexadecimal 00000003, it means that the address 0000003 register of IP0 is operated, and when the value in the address register is hexadecimal 20000007, it means that the address 0000007 register of IP2 is operated. At the same time, the APB channel interface conversion module can also read back the register data and read and write error status of the IP core to be configured, and then return them to the APB channel control module.
[0050] Step 4: After receiving the signal, the IP core to be configured writes the converted data into the register in the IP core to be configured, thereby completing the configuration of the IP core to be configured.
[0051] After the configuration is completed, the IP core configuration needs to be checked. The specific operation is that when the configuration is completed, when you need to read the value of a register of a certain IP core to be configured to obtain the status of the corresponding IP core, you can perform a direct read operation. For the direct read operation flow chart, see Figure 2At this time, the APB clock module will turn on the clock of the corresponding APB channel, and the corresponding APB channel interface conversion module will write the value of the register in the corresponding IP core to the APB read data register through the APB channel control module, which is convenient for the host computer to read and for the user to clearly see the status of the corresponding IP core. When a read or write error occurs in an IP core, the error status will be read through the APB channel interface conversion module and written to the APB status register through the APB channel control module, which is convenient for the host computer to read. After the APB channel interface conversion module reads the value of the corresponding IP core register and the status register data of the corresponding IP core, and transmits them to the APB channel control module, the APB clock module will turn off the clock of the APB channel readback data.
[0052] The host computer reads the value in the APB read data register to determine the value in the target register of the target IP, thereby determining whether the IP is successfully configured. The host computer reads the value in the APB status register to determine whether a write error or a read error occurs when configuring the target register of the target IP.
[0053] A method for quickly configuring multiple IP cores in an FPGA in Example 1 predefines an FPGA data stream with an APB register data stream, thereby realizing the configuration of multiple IP cores, and has the advantage of simple and convenient control. At the same time, each APB channel can be opened independently, or multiple channels can be opened together without affecting each other, which greatly enhances the flexibility and speed of configuring each IP core. The scheme of the present invention also supports a read-after-write mode, which can specify changes to certain bits of the register without changing other bits, thereby improving the flexibility of writing to the register; it supports a burst mode, that is, configuring the register sequence of the IP without adding additional write addresses and write-select data stream segments, thereby greatly improving the configuration speed. At the same time, the APB clock is used to control the opening and closing of each APB channel, which can accurately control the opening of the APB channel and reduce power consumption.
[0054] Embodiment 2 provides a device for quickly configuring multiple IP cores in an FPGA using the method of Embodiment 1, see Figure 2The device is composed of the following devices: a configuration interface, which obtains data stream data; a data stream parsing module, which parses the data stream obtained by the configuration interface; an APB clock control module, which controls the clock opening of the APB channel interface conversion module according to the instruction issued by the APB channel control module; an APB register, which includes an APB control register, an APB bit enable register, an APB address register, an APB write data register, an APB read data register, an APB write strobe register, and an APB status register, and the APB register is used to receive the writing of the parsing result of the data stream parsing protocol; an APB channel control module, which reads the data in the APB register and transmits the data in the APB register to the corresponding APB channel interface conversion module; the APB channel interface conversion module, which converts the data transmitted by the APB channel control module into a corresponding signal that complies with the APB interface protocol and transmits it to the IP core to be configured; and a host computer, which reads the data in the APB register that is transmitted back from the APB channel control module.
[0055] The above is a detailed introduction to a method and device for quickly configuring multiple IP cores in an FPGA provided by the present invention. This article uses specific examples to illustrate the structure and working principle of the present invention. The description of the above embodiments is only used to help understand the method and core idea of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for rapidly configuring multiple IP cores in an FPGA, characterized in that: The steps include: Step 1: Write the APB register data stream into the FPGA data stream; Step 2: After the FPGA configuration interface obtains the FPGA data stream written into the APB register data stream, it parses the APB register data stream according to the protocol and writes the parsing result into the corresponding APB register; Step 3: The APB clock control module turns on the clock of the target APB channel, the APB channel control module reads the data in the APB register, and sends the value corresponding to the parsing result in the APB register to the APB channel interface conversion module to convert it into a signal that complies with the APB interface protocol, and the APB channel interface conversion module sends the signal to the IP core to be configured; The APB clock control module controls multiple APB channels to open; Step 4: After receiving the signal, the IP core to be configured writes the signal into a register in the IP core to be configured, thereby completing the configuration of the IP core to be configured.
2. The method for rapidly configuring multiple IP cores in an FPGA according to claim 1, characterized in that: The APB channel control module is connected to a plurality of APB channel interface conversion modules; The APB channel control module reads the value in the APB register and distributes the corresponding analysis result to the plurality of channel interface conversion modules.
3. The method for rapidly configuring multiple IP cores in an FPGA according to claim 2, wherein: The analysis results refer to control parameters, read and write addresses, write data, and write enable.
4. The method for rapidly configuring multiple IP cores in an FPGA according to claim 3, characterized in that: The data stream parsing module of the FPGA writes the corresponding data in the FPGA data stream written into the APB register data stream into the register of the specified address in the packet header of the data stream protocol packet.
5. The method for rapidly configuring multiple IP cores in an FPGA according to claim 4, characterized in that: The data stream parsing module of the FPGA writes the corresponding data in the FPGA data stream into the APB control register, APB bit enable register, APB address register, APB write data register, APB read data register, APB write select register, and APB status register.
6. The method for rapidly configuring multiple IP cores in an FPGA according to claim 5, characterized in that: The APB clock control module turns on the clock of the target APB channel in the following manner: the APB channel control module reads the data in the APB control register and sends the indication information of turning on or off the APB channel to the APB clock control module.
7. The method for rapidly configuring multiple IP cores in an FPGA according to claim 5, characterized in that: The data stream protocol packet includes a first type of data packet and a second type of data packet, wherein the first type of data packet includes a packet header and a plurality of data words; The second type of data packet follows the first type of data packet.
8. The method for rapidly configuring multiple IP cores in an FPGA according to claim 7, characterized in that: The header data of the first type of data packet is used to indicate the data packet type, read / write control, register address and 11-bit data word count; The second type data packet uses the register address of the first type data packet.
9. The method for rapidly configuring multiple IP cores in an FPGA according to claim 2, characterized in that: The APB register data stream written into the FPGA data stream is used to control the APB channel interface conversion module to implement direct write, direct read or read-after-write functions.
10. The method for rapidly configuring multiple IP cores in an FPGA according to claim 9, characterized in that: The APB channel control module parses the APB register data stream and can control the APB channel interface conversion module to open any channel interface or open multiple channel interfaces at the same time.
11. The method for rapidly configuring multiple IP cores in an FPGA according to claim 9, characterized in that: When using the direct write mode, the one-time write data length is specified to be greater than 1, and there is no need to add multiple write addresses and write-select APB register data flow segments in the FPGA data flow.
12. The method for rapidly configuring multiple IP cores in an FPGA according to claim 8, characterized in that: The APB channel interface conversion module is connected to multiple IP cores, and after converting the analysis result, the APB channel conversion module selects a corresponding APB channel interface to transmit a signal to the corresponding IP core.
13. The method for rapidly configuring multiple IP cores in an FPGA according to claim 12, characterized in that: The APB channel interface conversion module selects the corresponding IP core according to the data in the APB address register, and sends the signal to the address register of the corresponding IP core.
14. A method for rapidly configuring multiple IP cores in an FPGA according to any one of claims 5 or 9, characterized in that: The data stored in the APB write enable register is used to indicate that a certain byte in the corresponding APB write data register is valid; In direct write mode, when the burst length exceeds 1, the value automatically increased by the APB address is determined according to the strobe value in the write strobe register.
15. The method for rapidly configuring multiple IP cores in an FPGA according to claim 5, characterized in that: The step 4 also includes the host computer reading the value of the register in the IP core to be configured, and the APB channel control module writes the register value of the IP core to be configured returned by the APB channel interface conversion module into the APB read register; The APB channel control module writes the read and write error status of the IP core to be configured returned by the APB channel interface conversion module into the APB status register; The host computer reads the APB read register to determine the value in the register of the IP core to be configured, and then determines whether the IP core to be configured is successfully configured; The host computer reads the value of the APB status register to determine whether a read error or a write error occurs when configuring the register of the IP core to be configured.
16. The method for rapidly configuring multiple IP cores in an FPGA according to claim 13, characterized in that: After the APB channel interface conversion module sends the signal to the IP core to be configured, the APB clock control module turns off the clock of the corresponding APB channel; After the APB channel interface conversion module reads the data in the register of the IP core to be configured and the read / write error status and sends them to the APB channel control module, the APB clock control module turns off the clock of the corresponding APB channel.
17. A device for rapidly configuring multiple IP cores in FPGA, characterized in that: The device uses the method of claims 1-16 to perform rapid configuration of multiple IP cores to be configured, and the device includes a configuration interface, the configuration interface obtains data stream data; A data flow parsing module, which parses the data flow obtained by the configuration interface; The APB clock control module controls the clock on and off of the APB channel interface conversion module according to the instruction information sent by the APB channel control module; APB registers, including APB control registers, APB bit enable registers, APB address registers, APB write data registers, APB read data registers, APB write strobe registers, and APB status registers, and the APB registers are used to receive the writing of the data stream parsing protocol parsing results; APB channel control module, reads the data in the APB register and passes the data in the APB register to the corresponding APB channel interface conversion module; APB channel interface conversion module converts the data transmitted by the APB channel control module into corresponding signals that comply with the APB interface protocol and transmits them to the IP core to be configured; The host computer reads the data in the APB register sent back from the APB channel control module.
Citation Information
Patent Citations
IP core for satellite-borne SRAM type FPGA configuration and refresh control
CN112527350A
Encryption and decryption architecture, method, processor, and server
WO2024114264A1
