Multi-FPGA verification system based on HAPS verification platform

By realizing the interconnection of multiple FPGA platforms on the HAPS verification platform and using components such as processing modules and data communication modules, the problem of insufficient resources and high cost of the HAPS verification platform in complex designs is solved, and cheaper and scalable FPGA verification is achieved. platform.

CN118569151APending Publication Date: 2024-08-30TAICHU (HANGZHOU) INTEGRATED CIRCUIT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410610681.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing HAPS verification platform is difficult to meet development needs when dealing with complex designs. Cascading multiple HAPS will lead to high verification costs, limiting the scalability and economy of development.

Method used

By designing a multi-FPGA verification system based on the HAPS verification platform, the interconnection between HAPS and other FPGA platforms is realized, and components such as processing modules, cache control modules, and data communication modules are used to achieve extended use among multiple FPGA platforms and reduce verification costs. , improve scalability.

Benefits of technology

The FPGA-based prototype verification platform is cheap, highly scalable and simple in design, reducing the resource requirements of a single FPGA platform and reducing development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569151A
    Figure CN118569151A
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and discloses a multi-FPGA verification system based on an HAPS verification platform, and the system comprises a processing module which is used for initiating an off-chip address read-write request according to a received user request; the first write cache control module is connected with the processing module and is used for initiating a write cache control instruction to the request cache module; the request cache module is connected with the first write cache control module and is used for writing an off-chip address read-write request according to the write cache control instruction; the first read cache control module is connected with the request cache module and is used for sending the off-chip address read-write request to the first data communication module; and the first data communication module is connected with the first read cache control module and is used for sending the received off-chip address read-write request so as to realize off-chip address read-write request operation on the HAPS verification platform. According to the invention, the HAPS is interconnected with other FPGA platforms to realize extended use among multiple FPGA platforms, so that the prototype verification platform based on the FPGA is cheaper and has high expandability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a multi-FPGA verification system based on a HAPS verification platform. Background Art

[0002] With the rapid development of integrated circuits, the complexity of large-scale integrated circuit design is also increasing, making chip verification face huge challenges in terms of money and time. In the early days, verifying whether the chip design meets the expected functions required a lot of time and economic costs to wait for the results of tape-out. The emergence of formal verification and prototype verification has greatly reduced the cost of chip verification. As a chip verification method, prototype verification transplants the development design based on RTL (Register Transfer Level, referred to as RTL, which describes the data transmission behavior between registers, logic gates, etc. in digital circuits) into FPGA, and verifies the correctness of the chip function as much as possible before the chip is taped out.

[0003] HAPS100 is the latest series of FPGA prototyping platforms launched by Synopsys. It implements both prototyping and hardware placement functions on the platform, which includes hardware and software parts. The hardware part integrates 4 Xilinx VU19P FPGAs, which supports multi-user mode and multi-unit cascade mode to meet the needs of different designs.

[0004] However, as the development and design complexity of a powerful HAPS increases, there may be a situation where one HAPS cannot accommodate all RTL logic, making it difficult to meet development requirements. If multiple HAPS are cascaded, the verification cost will be too high, resulting in limited development.

[0005] Therefore, there is an urgent need for a design that can interconnect HAPS with other FPGA platforms to achieve extended use between multiple FPGA platforms, making the FPGA-based prototype verification platform cheaper, more scalable and simpler. Summary of the invention

[0006] In view of this, the present invention provides a multi-FPGA verification system based on a HAPS verification platform to solve the above problems.

[0007] In a first aspect, the present invention provides a multi-FPGA verification system based on a HAPS verification platform, the system comprising:

[0008] A processing module, used for initiating an off-chip address read and write request according to a received user request;

[0009] A first write cache control module, connected to the processing module, for receiving off-chip address read and write requests, and initiating a write cache control instruction to the request cache module;

[0010] A request cache module, connected to the first write cache control module, configured to receive a write cache control instruction and write an off-chip address read / write request according to the write cache control instruction;

[0011] A first read cache control module, connected to the request cache module, for initiating a read request to the request cache module, and sending the read off-chip address read and write request to the first data communication module;

[0012] The first data communication module is connected to the first read cache control module, and is used to receive off-chip address read and write requests, and issue off-chip address read and write requests to implement off-chip address read and write request operations on the HAPS verification platform.

[0013] In this embodiment, HAPS is interconnected with other FPGA platforms to achieve extended use among multiple FPGA platforms, making the FPGA-based prototype verification platform cheaper, more scalable and simpler.

[0014] In an optional implementation, the first data communication module is further used to receive response data replied by the HAPS verification platform in response to the off-chip address read / write request operation, and the system further includes:

[0015] A second write cache control module, connected to the first data communication module, for receiving the response data and writing the response data into the response cache module;

[0016] A response cache module, connected to the second write cache control module, for caching the response data;

[0017] The second read cache control module is connected to the response cache module, and is used to receive a read request from the processing module after the response cache module caches the response data, and respond to the read request and send the response data to the processing module.

[0018] In an optional embodiment, the processing module includes:

[0019] a first transmission unit;

[0020] The processor is connected to the first transmission unit and is used to receive a user request through the first transmission unit and initiate an off-chip address read and write request according to the user request.

[0021] In this embodiment, the processor is connected to the first transmission unit, which can provide a more flexible, intelligent and high-performance system architecture, while also simplifying the system design and integration process and providing rich software support.

[0022] In an optional implementation, the first data communication module includes:

[0023] a second transmission unit;

[0024] The first communication unit is connected to the second transmission unit, and is used for receiving an off-chip address read / write request through the second transmission unit, and sending the off-chip address read / write request.

[0025] In this embodiment, connecting the second transmission unit and the first communication unit can improve the data transmission efficiency, flexibility and performance of the system, while realizing modular design and standard interface support, thereby optimizing the overall design and performance of the system.

[0026] In an optional embodiment, the system further includes:

[0027] A second communication unit, used for receiving the off-chip address read / write request, and also for sending the response data;

[0028] A third transmission unit, connected to the second communication unit, for transmitting the off-chip address read / write request and the response data;

[0029] A storage module, connected to the third transmission unit, and used to store the off-chip address read and write request;

[0030] The user logic processing module is connected to the third transmission unit and is used to respond to the off-chip address read / write request and generate the corresponding response data.

[0031] In this embodiment, the second communication unit and the third transmission unit can receive read and write access from other additional FPGA boards, thereby achieving extended use between multiple FPGA platforms, making the FPGA-based prototype verification platform cheaper, more scalable and simpler.

[0032] In an optional embodiment, the system further includes:

[0033] The main driving module is connected to the first data communication module and the second communication unit, and is used to read the off-chip address read / write request and send the off-chip address read / write request to the second communication unit, and is also used to send the read response data to the first data communication module.

[0034] In an optional implementation, the system further includes: a main controller connected to the main drive module, and configured to process interrupt events and control the main drive module to perform data read and write operations.

[0035] In this embodiment, the main drive module and the main controller are used as the control devices on the user side, which can receive read and write accesses from the HAPS prototype verification platform and other attached FPGA boards, thereby realizing extended use between multiple FPGA platforms, making the FPGA-based prototype verification platform cheaper, more scalable and simpler.

[0036] In an optional implementation manner, the main driver module reads the off-chip address read / write request, including:

[0037] After the request cache module writes the off-chip address read / write request, the first interrupt instruction of the first data communication module is triggered. After the main driver module receives the first interrupt instruction, it initiates a read request through the first data communication module and the first read cache control module to read the off-chip address read / write request.

[0038] In an optional embodiment, the system further includes:

[0039] An input-output unit connected to the second read cache control module;

[0040] The interrupt controller is connected to the input and output unit and also connected to the processor.

[0041] In an optional implementation, after the response cache module caches the response data, receiving a read request from the processing module includes:

[0042] After the response cache module caches the response data, the input-output unit interrupt is triggered, the interrupt controller generates a second interrupt instruction and sends it to the processor. After receiving the second interrupt instruction, the processor initiates a read request, which is used to be received by the response cache module.

[0043] In this embodiment, an interrupt instruction is used to trigger data reading, which can effectively avoid continuous reading of the device, save software and hardware resources, and improve the response speed of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 is a schematic diagram of the structure of a multi-FPGA verification system based on a HAPS verification platform according to an embodiment of the present invention;

[0046] Figure 2is a schematic diagram of the structure of a multi-FPGA verification system based on a HAPS verification platform according to an example of an embodiment of the present invention;

[0047] Figure 3 is a schematic diagram of an interface of a FIFO Write Ctrl module according to an embodiment of the present invention;

[0048] Figure 4 is a schematic diagram of an interface of a FIFO Read Ctrl module according to an embodiment of the present invention;

[0049] Figure 5 is a schematic diagram of the structure of an interrupt module according to an embodiment of the present invention;

[0050] Figure 6 is a schematic diagram of a flow chart of interrupt configuration in a processor according to an embodiment of the present invention;

[0051] Figure 7 is a schematic diagram of an exemplary test result page according to an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0053] The HAPS product launched by Synopsys is a high-performance, high-capacity FPGA-based prototype verification platform. HAPS is equipped with one or more high-performance FPGA chips to meet verification needs. Taking HAPS100 as an example, its hardware part integrates 4 Xilinx VU19P FPGAs, which can provide multiple functions such as compilation and synthesis. However, when 4 Xilinx VU19P FPGAs cannot meet the needs of developers, one or more HAPS100s need to be purchased. However, the price of HAPS100 is expensive, which increases the verification cost of developers.

[0054] In view of this, a multi-FPGA verification system based on the HAPS verification platform is provided in this embodiment. Figure 1 As shown, it is a structural diagram of a multi-FPGA verification system based on a HAPS verification platform according to an embodiment of the present invention. The system includes a processing module, a first write cache control module, a request cache module, a first read cache control module, and a first data communication module, as follows.

[0055] The processing module is used to initiate an off-chip address read and write request according to a received user request. In this embodiment, the user request can be transmitted via UART, and the request content is the off-chip address to be accessed.

[0056] The first write cache control module is connected to the processing module and is used to receive off-chip address read and write requests and initiate write cache control instructions to the request cache module. The first write cache control module can convert the off-chip address read and write requests into the read and write control logic of the request cache module, i.e., write cache control instructions, which are used to cache the request address, read and write commands, etc. into the request cache module.

[0057] The request cache module is connected to the first write cache control module, and is used to receive the write cache control instruction, and write the off-chip address read and write request according to the write cache control instruction for caching. That is, after the request cache module caches the off-chip address read and write request, the non-empty signal of the request cache module triggers the user interrupt of the first data communication module. After the computer device receives the interrupt of the first data communication module, two threads are enabled in the interrupt program, one thread is used to handle the interrupt event, and the other thread is used to handle data reading, and the synchronization between the threads uses information volume.

[0058] The first read cache control module is connected to the request cache module and is used to initiate a read request to the request cache module, and after the request cache module caches the off-chip address read and write request, send the read off-chip address read and write request to the first data communication module.

[0059] The first data communication module is connected to the first read cache control module and is used to send and receive off-chip address read and write requests, and send off-chip address read and write requests to implement off-chip address read and write request operations on the HAPS verification platform. The computer device reads the off-chip address read and write request through the first data communication module and the first read cache control module. The off-chip address read and write request is used to initiate read and write operations on the off-chip request address, that is, to achieve a communication connection with the HAPS prototype verification platform.

[0060] This embodiment is illustrated by example. Figure 2As shown, the interconnection between the HAPS100 prototype verification platform and the VCU128 development board is taken as an example, wherein VCU128 is a development board based on Xilinx FPGA, and the topology between HAPS100 and VCU128 can use PCIE for interconnection communication. Microblaze can be used as one of the components of the processing module in this embodiment. Microblaze is a 32 / 64-bit soft-core embedded processor provided by Xilinx, and is a highly flexible, configurable, and easy-to-use processor. In this embodiment, FPGA and Microblaze can be used for miniaturized system design, and it can be used as a core to issue various request transactions. Further, FIFO Write Ctrl0 can be used as the first write cache control module in this embodiment. The IP core can be a user-defined AXI interface IP core, which provides a group of AXI interfaces for the Microblaze processor, and sends control signals such as clocks to REQ FIFO through the AXI interface. Among them, IP core (Intellectual Property Core, referred to as IP core) refers to a reusable circuit module applied in the system chip and having specific functions, which can be used for users to design according to needs; REQ FIFO can be used as the request cache module in this embodiment. REQ FIFO is a first-in-first-out buffer module, which is used to cache the off-chip address read and write requests corresponding to user requests in this embodiment; FIFO Read Ctrl1 can be used as the first read cache control module in this embodiment, FIFORead Ctrl1, which is also a user-defined AXI interface IP core, which provides a group of AXI interfaces for the PCIE XDMA driver, and sends control signals such as read enable to REQ FIFO through the AXI interface; PCIE XDMA0 can be used as the data communication unit in this embodiment, PCIE XDMA is a high-performance, configurable SG-mode DMA for PCIE2.0 and PCIE3.0 provided by Xilinx. It provides a user-selectable AXI4-full interface or AXI4-Lite interface. In this embodiment, it can be set to an AXI4-Lite interface. The PC can read and write to the user registers in VCU128 and HAPS100 through the XDMA driver.

[0061] The specific implementation process can be as follows: VCU128 can transmit user requests through UART, and the request content is the off-chip address to be accessed. After receiving the user request, the Microblaze soft-core processor initiates an off-chip address read and write request through the AXI bus. The FIFO Write Ctrl0 module converts the off-chip address read and write request into the read and write control logic of the FIFO, that is, write cache control instructions, and caches the request address, read and write commands and other instructions into the REQ FIFO. The non-empty signal of REQ FIFO triggers the user interrupt of PCIE XDMA0. After the PC receives the interrupt of PCIE XDMA0, two threads are enabled in the interrupt program, one thread is used to handle interrupt events, and the other thread is used to handle data reading. The synchronization between threads uses information volume. In the data processing thread, the PC reads the off-chip address read and write request in the REQ FIFO through PCIE XDMA0 and FIFO Read Ctrl1 modules, parses the off-chip address read and write request, and initiates the read and write operation of the off-chip request address according to the off-chip address read and write request, thereby realizing the communication between the HAPS100 prototype verification platform and the VCU128 development board.

[0062] In this embodiment, HAPS is interconnected with other FPGA platforms to achieve extended use among multiple FPGA platforms, making the FPGA-based prototype verification platform cheaper, more scalable and simpler.

[0063] In some optional implementations, the first data communication module is further used to receive response data replied by the HAPS verification platform in response to the off-chip address read / write request operation, and the system further includes:

[0064] The second write cache control module is connected to the first data communication module, and is used for receiving the response data and writing the response data into the response cache module.

[0065] A response cache module, connected to the second write cache control module, for caching the response data;

[0066] The second read cache control module is connected to the response cache module, and is used to receive a read request from the processing module after the response cache module caches the response data, and respond to the read request and send the response data to the processing module.

[0067] In this embodiment, still refer to Figure 2As shown, the interconnection between the HAPS100 prototype verification platform and the VCU128 development board is taken as an example. In this embodiment, FIFO Write Ctrl1 can be used as the second write cache control module. FIFO WriteCtrl1 is the same as FIFO Write Ctrl0. The IP core is a user-defined AXI interface IP core, which provides a set of AXI interfaces for the PCIE XDMA driver, and sends write enable and other control signals to the REP FIFO through the AXI interface; REP FIFO can be used as a cache module. REP FIFO is a first-in-first-out buffer module, which can be used to cache the response data returned by HAPS100 in this embodiment; FIFO Read Ctrl0 can be used as the second read cache control module. The IP core is also a user-defined AXI interface IP core, which provides a set of AXI interfaces for the Microblaze processor, receives the response from the Microblaze processor, and writes the response data of the REP FIFO into the register of the AXI bus.

[0068] The specific implementation process is as follows: the PC initiates reading and writing of registers in HAPS100 through PCIE XDMA1, and HAPS100 returns response data. After receiving the response data, the PC caches the response data in REP FIFO through PCIE XDMA0 and FIFO Write Ctrl1 modules. After the FIFO Read Ctrl0 module receives the non-empty signal of REP FIFO, it triggers the interrupt of AXI GPIO. After Microblaze receives the external interrupt, it initiates a read request through the AXI bus. The FIFO ReadCtrl0 module converts the request into the read control logic of REP FIFO, and REP FIFO returns data to Microblaze. That is, the communication between the HAPS100 prototype verification platform and the VCU128 development board is realized.

[0069] In this embodiment, HAPS is interconnected with other FPGA platforms to achieve extended use among multiple FPGA platforms, making the FPGA-based prototype verification platform cheaper, more scalable and simpler.

[0070] In addition, regarding FIFO Write Ctrl and FIFO Read Ctrl, they can be user-defined FIFO read and write control modules, which are used to initiate read and write enable, request address and receive response data for REQ FIFO and REP FIFO. This module is encapsulated as an AXI interface, and the Microblaze processor and PCIE XDMA can read and write registers in this module through the AXI bus, thereby initiating read and write enable for REQ FIFO / REP FIFO.

[0071] The interface of the FIFO Write Ctrl module is as follows Figure 3 As shown in the figure, when the user initiates a read or write request to an off-chip address through UART, the Microblaze processor needs to write the request address into the REQ FIFO through the FIFO Write Ctrl module; in addition, when HAPS1000 returns the request data to the Microblaze processor, the PCIE XDMA also needs to write the request data into the REP FIFO through the FIFO WriteCtrl module. Both the Microblaze processor and the PCIE XDMA write to the internal register of the FIFO Write Ctrl module through the S00_AXI bus. The FIFO Write Ctrl module outputs the corresponding FIFO write clock fifo_wr_clk, FIFO reset signal fifo_rst, FIFO write data fifo_din, and FIFO write enable fifo_wr_en to the FIFO input port by parsing the value of the internal register. The FIFO writes the value of the full signal fifo_full into the internal register of the FIFO WriteCtrl module. If the Microblaze processor and the PCIE XDMA read the full signal through the S00_AXI bus, they stop writing the request address or request data.

[0072] The interface of the FIFO Read Ctrl module is as follows Figure 4 As shown, when REQ FIFO / REP FIFO is not empty, it will trigger the interrupt of PCIE XDMA or Microblaze processor. After receiving the interrupt signal, PCIE XDMA or Microblaze processor writes the internal register of FIFO Read Ctrl module through S00_AXI bus. FIFO Read Ctrl module outputs FIFO read clock fifo_rd_clk and read enable signal fifo_rd_en by parsing the value of internal register. FIFO receives the read clock and read enable, and writes the value of output data fifo_data_out to the internal register of FIFO Read Ctrl module after one cycle. PCIE XDMA or Microblaze processor reads the value of corresponding register through S00_AXI bus, and then obtains the request address or returned request data.

[0073] By designing the FIFO read-write control cache module, namely FIFO Write Ctrl and FIFO Read Ctrl, the flexibility and maintainability of the system can be improved, which makes it easier to interconnect HAPS with other FPGA platforms and realize the extended use between multiple FPGA platforms, making the FPGA-based prototype verification platform cheaper, more scalable and simpler.

[0074] In some optional embodiments, the processing module includes:

[0075] The first transmission unit may be an AXI (Advanced eXtensible Interface, AXI for short) bus module. AXI is a standardized bus protocol. The use of the AXI bus module can ensure the compatibility and portability of the system. Connection and communication are performed through the AXI interface, which simplifies the system design and development process.

[0076] The processor is connected to the first transmission unit and is used to receive a user request through the first transmission unit and initiate an off-chip address read and write request according to the user request. The processor may be the Microblaze soft core mentioned above.

[0077] In this embodiment, the processor is connected to the first transmission unit, which can provide a more flexible, intelligent and high-performance system architecture, while also simplifying the system design and integration process and providing rich software support.

[0078] In some optional implementations, the first data communication module includes:

[0079] The second transmission unit can also be an AXI bus module. Connecting and communicating through the AXI interface can ensure the compatibility and portability of the system.

[0080] The first communication unit is connected to the second transmission unit, and is used to receive the off-chip address read and write request through the second transmission unit, and send the off-chip address read and write request. The first communication unit can be a PCIE XDMA module, which is a high-performance, configurable SG mode DMA provided by Xilinx, suitable for PCIE2.0 and PCIE3.0, and can provide a user-selectable AXI4-full interface or AXI4-Lite interface. The user's computer device can read and write the user registers in other attached FPGA boards through the main driver module.

[0081] In this embodiment, connecting the second transmission unit and the first communication unit can improve the data transmission efficiency, flexibility and performance of the system, while realizing modular design and standard interface support, thereby optimizing the overall design and performance of the system.

[0082] In some optional embodiments, the system further comprises:

[0083] The second communication unit is used to receive off-chip address read / write requests and to send response data. In this embodiment, the second communication unit can also use a PCIE XDMA module.

[0084] The third transmission unit is connected to the second communication unit and is used for transmitting off-chip address read and write requests and response data, wherein the third transmission unit can also be an AXI bus module.

[0085] The storage module is connected to the third transmission unit and is used to store off-chip address read and write requests. The storage module may be an on-chip storage resource of the HAPS 100 or an external storage device.

[0086] The user logic processing module is connected to the third transmission unit and is used to respond to the off-chip address read and write request and generate corresponding response data.

[0087] In this embodiment, the second communication unit and the third transmission unit can receive read and write access from other additional FPGA boards, thereby achieving extended use between multiple FPGA platforms, making the FPGA-based prototype verification platform cheaper, more scalable and simpler.

[0088] In some optional embodiments, the system further includes: a computer device, the computer device including:

[0089] A main driving module, connected to the first data communication module and the second communication unit, used for reading the off-chip address read / write request, sending the off-chip address read / write request to the second communication unit, and sending the read response data to the first data communication module;

[0090] The main controller is connected to the main drive module and is used to process interrupt events and control the main drive module to perform data read and write operations.

[0091] In this embodiment, still refer to Figure 2 As shown in the figure, the HAPS100 prototype verification platform and the VCU128 development board are interconnected as an example. Figure 2On the PC side, the main driver module can be XDMA Driver, which is provided by Xilinx. It provides device files such as xdma0_events_x, xdma0_h2c_x / xdma0_c2h_x, xdma0_user, and xdma0_control. The corresponding application programming is to operate these device files to implement the corresponding business logic. The main controller can be Host Program, which is a host computer service program. It can be used to control the thread to process interrupt events and data reading, and use the device files provided by XDMA Driver to initiate read and write requests to the user registers in the downstream FPGA board.

[0092] In this embodiment, the main drive module and the main controller are used as the control devices on the user side, which can receive read and write accesses from the HAPS prototype verification platform and other attached FPGA boards, thereby realizing extended use between multiple FPGA platforms, making the FPGA-based prototype verification platform cheaper, more scalable and simpler.

[0093] In some optional implementations, the main driver module reads the off-chip address read / write request, including:

[0094] After the request cache module caches the off-chip address read and write request, the first interrupt instruction of the first data communication module, namely, the XDMA interrupt, is triggered. After the main driver module receives the first interrupt instruction, it initiates a read request through the first data communication module and the first read cache control module to read the off-chip address read and write request.

[0095] Regarding XDMA interrupt, XDMA is a high-performance SG mode DMA provided by Xilinx. The PC side organizes the data to be transmitted into a linked list, and then transmits the first address of the linked list to XDMA through the BAR space of PCIE. XDMA then completes the transmission tasks specified by the linked list in sequence according to the first address of the linked list structure. XDMA provides AXI4, AXI4_Lite and AXI4Bypass interfaces. In this embodiment, the AXI4_Lite interface can be used to implement the mapping of PCIE BAR address to AXI4_Lite register address, which is used to implement the reading and writing of user logic processing modules.

[0096] In addition, regarding the user interrupts that enable XDMA, the FIFO Read Ctrl1 module generates an interrupt to notify XDMA to perform data transmission. XDMA will map the user interrupt to MSI (Message Signaled Interrupt, MSI for short) or Legacy interrupt and transmit it to the PC via PCIE. After the XDMA driver is loaded on the PC, you can query the interrupt device node files such as xdma0_events_* through "ls / dev". XDMA can provide a total of 16 user interrupts, and each interrupt corresponds to an interrupt device xdma0_events_*. The PC obtains the user interrupt by reading the device.

[0097] On the FPGA side, the empty signal of FIFO Read Ctrl1 needs to be connected to the user interrupt usr_irq_req signal port of XDMA; on the PC side, the user interrupt service function needs to be written. Analysis of the XDMA driver shows that the reading interrupt process is the application layer calling the read method. Before the XDMA driver receives the interrupt signal, it deletes the process calling read from the task queue and suspends the current process. When the interrupt occurs, it first provides the wake-up condition for the suspended process, and then calls the wake_up_interruptible function to add the process to the system scheduling queue and wait for scheduling. Once the process is scheduled, the read function returns and obtains an interrupt information.

[0098] In this embodiment, an interrupt instruction is used to trigger data reading, which can effectively avoid continuous reading of the device, save software and hardware resources, and improve the response speed of the system.

[0099] Reference Figure 5 As shown, in some optional embodiments, the system further includes:

[0100] An input-output unit connected to the second read cache control module and also connected to the processor via an AXI connection unit;

[0101] The interrupt controller is connected to the input and output unit, and is also connected to the processor through the AXI connection unit.

[0102] The input / output unit may be an AXI GPIO. The IP core provides a general input / output interface for the AXI interface. In this embodiment, only the interrupt function of the AXI GPIO is enabled through the interrupt controller to provide an interrupt signal to the Microblaze processor.

[0103] In some optional embodiments, after the response cache module caches the response data, a read request from the processing module is received, including: after the response cache module caches the response data, an input-output unit interrupt is triggered, the interrupt controller generates a second interrupt instruction and sends it to the processor, and after the processor receives the second interrupt instruction, the read request is initiated, and the read request is used to be received by the response cache module.

[0104] An interrupt is a signal that notifies the processor to process when an unexpected event that meets the requirements occurs. Interrupts can be generated by hardware processing units and external devices, or by software itself. The interrupt module block diagram in this embodiment is as follows: Figure 5 As shown, the interrupt is generated by the empty signal of the REP FIFO, and the empty signal is used as the input of the input-output unit (AXI GPIO). When the AXI GPIO detects that the input has changed, an interrupt signal is generated and transmitted to the interrupt controller. The interrupt controller generates an interrupt output signal and transmits it to the Microblaze processor. The Microblaze processor enters the interrupt function through the received interrupt signal. The interrupt controller is interconnected with the Microblaze processor through the AXI bus, and the Microblaze processor can configure the interrupt controller through the AXI interface.

[0105] The interrupt configuration process in Microblaze processor can be as follows Figure 6 After receiving the interrupt signal from the interrupt controller, the Microblaze processor enters the interrupt function, in which the input of the input-output unit AXI GPIO is read, and the corresponding task processing is performed according to the input of the input-output unit AXI GPIO. In this embodiment, the interrupt function is to determine whether the input of the input-output unit AXI GPIO is zero. If it is zero, it means that the REP FIFO is not empty. Then, through the custom mic_mWriteReg function, the read enable signal in FIFO Read Ctrl0 is pulled high, thereby pulling up the read enable signal of the REP FIFO. After one cycle, the read enable signal is pulled low again, and the output data of the REP FIFO is read to the Microblaze processor through the custom mic_mReadReg function.

[0106] In this embodiment, an interrupt instruction is used to trigger data reading, which can effectively avoid continuous reading of the device, save software and hardware resources, and improve the response speed of the system.

[0107] The actual test process is as follows:

[0108] 1. Hardware environment

[0109] Insert HAPS100 and VCU128 into the PCIE slots on the PC at the same time, connect the MGB cable, USB cable, and power cable, etc. First power on the PC, then power on HAPS100 and VCU128.

[0110] 2. Software environment

[0111] Start VIVADO on the PC and synthesize the hardware project of the HAPS100 board. After the synthesis is completed, package the entire project into IP, generate the corresponding DCP file, import it into Protocompiler100 to generate a runtime folder, and burn it into HAPS100.

[0112] The hardware engineering of the VCU128 board is integrated and implemented to generate a Bitstream file. The XSA file is exported to Vitis. The software program is written to implement functions such as UART serial port, Microblaze processor register reading and writing, and Microblaze processor interrupt. After the compilation is completed, an ELF file is generated to burn the VCU128 board.

[0113] Write a PC-side user service program to implement PCIE XDMA interrupt processing, create a monitoring interrupt thread, that is, the non-empty signal of REQFIFO, and a request address receiving thread. The PC-side service program contains the following parts:

[0114] open_control: open the character device;

[0115] mmap_control: Get the memory mapping address corresponding to the device;

[0116] write_control: write user registers;

[0117] read_control: read user registers;

[0118] open_event: open user interrupt;

[0119] read_event: get user interrupt;

[0120] c2h_event_process: interrupt processing process;

[0121] c2h_data_process: request address and response data processing process.

[0122] 3. Test steps

[0123] Burn the runtime folder into HAPS100 on the PC, and burn the ELF file to the VCU128 card in Vitis;

[0124] Restart the PC device and identify the PCIE device after the restart is complete. In this design, since HAPS100 and VCU128 are inserted into the PCIE slot at the same time, two PCIE devices will be identified;

[0125] Restart Vitis to burn the VCU128 board. After burning, reset the PCIE device of the VCU128 board:

[0126] sudo echo 1> / sys / bus / pci / devices / 0000\:05\:00.0 / remove

[0127] sudo echo 1> / sys / bus / pci / devices / 0000\:00\:1d.0 / rescan

[0128] Open the CuteCom serial port debugging tool in the terminal and enter the request address;

[0129] Start the user service program on the PC to handle the XDMA interrupt, and initiate a read and write request at the requested address to HAPS100. HAPS100 returns the response data to the Microblaze processor and prints the response data through the serial port.

[0130] 4. Test results

[0131] Test result page display, refer to Figure 7 As shown in the figure, according to the results printed by the CuteCom terminal, an off-chip address 0x80000000 is first input to the Microblaze processor through the serial port, and finally the GPIO interrupt is triggered, and the response data 0x76823364 at the address 0x80000000 is returned.

[0132] In this test, only the register reading and writing between HAPS100 and VCU128 is used as an example to show the experimental results of multi-FPGA interconnection. In actual applications, PCIE can be used for expansion between multiple FPGAs, including but not limited to register reading and writing, data transmission, etc., to achieve the segmentation of large-scale design and reduce the resource usage of a single FPGA.

[0133] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A multi-FPGA verification system based on a HAPS verification platform, characterized in that: The system comprises: A processing module, used for initiating an off-chip address read and write request according to a received user request; A first write cache control module, connected to the processing module, configured to receive the off-chip address read and write request, and initiate a write cache control instruction to the request cache module; The request cache module is connected to the first write cache control module, and is used to receive the write cache control instruction and write the off-chip address read / write request according to the write cache control instruction; a first read cache control module, connected to the request cache module, configured to initiate a read request to the request cache module, and send the read off-chip address read / write request to the first data communication module; The first data communication module is connected to the first read cache control module, and is used to receive the off-chip address read and write request, and issue the off-chip address read and write request to implement the off-chip address read and write request operation on the HAPS verification platform.

2. The system according to claim 1, characterized in that The first data communication module is further used to receive response data replied by the HAPS verification platform in response to the off-chip address read / write request operation, and the system further includes: A second write cache control module, connected to the first data communication module, configured to receive the response data and write the response data into a response cache module; The response cache module is connected to the second write cache control module and is used to cache the response data; The second read cache control module is connected to the response cache module, and is used to receive the read request of the processing module after the response cache module caches the response data, and respond to the read request and send the response data to the processing module.

3. The system according to claim 2, characterized in that The processing module comprises: a first transmission unit; A processor is connected to the first transmission unit, and is used to receive the user request through the first transmission unit, and initiate the off-chip address read and write request according to the user request.

4. The system according to claim 2, characterized in that The first data communication module comprises: a second transmission unit; The first communication unit is connected to the second transmission unit, and is used for receiving the off-chip address read / write request through the second transmission unit, and sending the off-chip address read / write request.

5. The system according to claim 4, characterized in that The system further comprises: A second communication unit, used for receiving the off-chip address read / write request, and also for sending the response data; A third transmission unit, connected to the second communication unit, for transmitting the off-chip address read / write request and the response data; A storage module, connected to the third transmission unit, and used to store the off-chip address read and write request; The user logic processing module is connected to the third transmission unit and is used to respond to the off-chip address read / write request and generate the corresponding response data.

6. The system according to claim 5, characterized in that The system further comprises: The main driving module is connected to the first data communication module and the second communication unit, and is used to read the off-chip address read / write request and send the off-chip address read / write request to the second communication unit, and is also used to send the read response data to the first data communication module.

7. The system according to claim 6, characterized in that The main driving module reads the off-chip address read / write request, including: After the request cache module writes the off-chip address read / write request, the first interrupt instruction of the first data communication module is triggered. After the main driver module receives the first interrupt instruction, it initiates a read request through the first data communication module and the first read cache control module to read the off-chip address read / write request.

8. The system according to claim 3, characterized in that The system further comprises: An input-output unit connected to the second read cache control module; The interrupt controller is connected to the input / output unit and also connected to the processor.

9. The system according to claim 8, characterized in that After the response cache module caches the response data, receiving the read request of the processing module includes: After the response cache module caches the response data, the input-output unit interrupt is triggered, the interrupt controller generates a second interrupt instruction and sends it to the processor, and after receiving the second interrupt instruction, the processor initiates the read request, and the read request is used to be received by the response cache module.

10. The system according to claim 6, characterized in that The system further includes: a main controller connected to the main driving module and used for processing interrupt events and controlling the main driving module to perform data reading and writing operations.