An EDA hardware acceleration method and system based on Banyan network and multi-FPGA structure

By using the Banyan network and multi-FPGA structure in the EDA hardware acceleration system, combining EDA algorithm acceleration and simulation acceleration, and using the PCIE and SCE-MI standards, the high latency and complexity problems in the existing technology are solved, and an efficient and universal solution is achieved. EDA hardware acceleration effect.

CN114090250BActive Publication Date: 2024-09-24XIAMEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111389032.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2024-09-24
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

Existing EDA hardware acceleration systems have problems such as high latency, low efficiency, complex implementation, and poor portability, especially in the interconnection structure of multi-FPGA systems and the combination of algorithm acceleration and simulation acceleration.

Method used

It adopts Banyan network and multi-FPGA structure, combines EDA algorithm acceleration and simulation acceleration, realizes data transmission and collaboration through PCIE hardware interface and SCE-MI standard, accelerates mode selection, data encapsulation and unpacking processing, and utilizes the self-selected routing function and multi-processing of Banyan network. The channel SCE-MI interface performs data exchange and uses clock tree synchronization and DMA transmission to avoid blocking and reduce latency.

Benefits of technology

It achieves efficient and low-latency cross-FPGA data transmission, improves the system's versatility and acceleration effect, simplifies the structure, enhances functions, and solves the resource occupation and delay problems of traditional systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114090250B
    Figure CN114090250B
Patent Text Reader

Abstract

The present invention provides an EDA hardware acceleration method and system based on Banyan network and multi-FPGA structure, including combining EDA algorithm acceleration and simulation acceleration in one system, enabling the top-level EDA algorithm to control the sending and receiving of data during EDA algorithm acceleration, and according to the design structure to be tested designed by the user and the simulation data input by the user during EDA simulation acceleration; at the same time, a multi-channel SCE-MI interface is used for software and hardware data collaboration, and then a Banyan network is used to realize multi-FPGA data exchange; finally, the accelerated data is transmitted back for processing, and the simulation data is compared with the verification data to verify the simulation result, or the operation result data is returned to the external EDA software. This method accelerates the algorithm and simulation by software and hardware collaboration, combines EDA algorithm acceleration and simulation acceleration, adopts a multi-channel PIPE-type SCE-MI standard protocol interface, has universality, and applies the Banyan network to multi-FPGA data exchange, reduces data exchange delay, and makes the system simple in structure and efficient in function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of EDA hardware acceleration, and in particular to an EDA hardware acceleration method and system based on a Banyan network and a multi-FPGA structure. Background Art

[0002] With the continuous development of the IC design industry and the continuous progress of ultra-large-scale IC process technology, the scale and complexity of IC design have increased exponentially, which has greatly increased the computing power requirements of EDA software for processing simulation, synthesis, layout and routing, verification and other processes. The calculation process of these EDA software often occupies a large amount of design time. As a flexible and configurable computing-intensive high-speed computing device, FPGA has certain advantages in processing large-scale data calculations and circuit simulation, and the introduction of multi-FPGA system is undoubtedly the icing on the cake.

[0003] In a multi-FPGA system, the implementation form of its interconnection structure has a great impact on the data transmission efficiency. At present, typical interconnection structures include: linear array type, grid type, cross-interconnection type and hybrid interconnection type. These structures have problems such as high latency, low efficiency, and complex implementation. The Banyan network structure adopted by the present invention is a space-division switching network, which is used in fields such as parallel computers and ATM switches, and has a unique path characteristic and self-selected routing function. By building a Banyan network between multiple FPGA blocks for data transmission, it has good delay characteristics and can effectively improve the transmission efficiency.

[0004] In the process of using FPGA to perform hardware acceleration of EDA algorithms, the computer host side needs to send the data to be processed to the hardware side. The present invention adopts the PCIE hardware interface, which is a high-speed serial computer I / O bus. It adopts high-speed serial point-to-point dual-channel high-bandwidth transmission, and its third-generation transmission rate can reach 8GT / s. In addition, the common hardware acceleration system is not very versatile, and different systems need to be used to achieve algorithm acceleration and simulation acceleration. In order to improve the versatility of the design, the present invention combines the EDA algorithm acceleration and simulation acceleration functions together, and adopts the SCE-MI standard. The SCE-MI standard defines an interface model that connects a software model using behavioral descriptions and a system under test using synthesizable HDL code descriptions, and it realizes the communication between the two through several independent virtual communication channels.

[0005] The traditional EDA algorithm hardware acceleration system has problems such as low portability and insignificant acceleration effect. The present invention combines EDA algorithm acceleration with simulation acceleration to improve the overall versatility. In addition, the present invention adopts a multi-FPGA structure, which can solve the problem of limited single FPGA resources and make full use of the parallelism of FPGA to improve the overall acceleration effect.

[0006] Commonly used FPGA interconnection structures are mainly linear, grid, cross-interconnection and hybrid interconnection. The linear structure is simple, but there is a large transmission delay, which is not suitable for large multi-FPGA systems. The grid structure enhances the transmission capacity to a certain extent, but there is also a large delay for cross-FPGA transmission. The cross-interconnection and hybrid interconnection structures greatly improve the transmission efficiency, but they will occupy a large amount of resources when the number of FPGA blocks is large. The present invention adopts the Banyan network to realize the multi-FPGA structure, which can realize efficient cross-FPGA transmission with low delay and a small amount of resources.

[0007] The present invention aims to build an EDA algorithm acceleration and simulation acceleration system with high versatility and efficiency, and utilizes the Banyan network characteristics to achieve efficient and low-latency cross-FPGA transmission. Summary of the invention

[0008] The present invention proposes an EDA hardware acceleration method and system based on a Banyan network and a multi-FPGA structure to solve the defects of the prior art mentioned above.

[0009] In one aspect, the present invention proposes an EDA hardware acceleration method based on a Banyan network and a multi-FPGA structure, the method comprising the following steps:

[0010] S1: The user selects an acceleration mode, which includes an EDA algorithm acceleration mode and an EDA simulation acceleration mode;

[0011] S2: If the EDA algorithm acceleration mode is selected: enable the top-level EDA algorithm to control the sending and receiving of data, and perform batch processing on the data and then perform encapsulation processing based on the SCE-MI channel;

[0012] If the EDA simulation acceleration mode is selected: according to the design structure to be tested designed by the user and the simulation data input by the user, the simulation data is packaged based on the SCE-MI channel;

[0013] S3: sending the packaged data to the PCIE core on the FPGA board through the PCIE driver and hardware, the PCIE core transmits the packaged data through the AXI transmission protocol in a DMA reading mode, and then manages it using SCE-MI, the FPGA board includes multiple FPGAs;

[0014] S4: after unpacking the encapsulated data based on SCE-MI, the data is sent to the corresponding node of the Banyan network through the corresponding SCE-MI channel, and then the encapsulated data is sent to the receiving channels of multiple FPGAs corresponding to the nodes according to the cell scheduling algorithm;

[0015] S5: If the EDA algorithm acceleration mode is selected: the packaged data is accelerated based on the parallel computing of the multiple FPGAs, and the accelerated data is then transmitted back to the top-level EDA algorithm for processing;

[0016] If the EDA simulation acceleration mode is selected: after simulating and verifying the packaged data and the design structure to be tested using the multiple FPGAs, simulation data is generated, and the simulation data is compared with standard verification data provided by the user to verify the simulation results.

[0017] The above method combines EDA algorithm acceleration and simulation acceleration in one system, uses Banyan network to realize multi-FPGA data exchange, adopts multi-channel SCE-MI interface for software and hardware data collaboration, and accelerates algorithm and simulation in a software and hardware collaborative way. It realizes the combination of EDA algorithm acceleration and simulation acceleration, adopts multi-channel PIPE-style SCE-MI standard protocol interface, which is universal. At the same time, Banyan network is applied to multi-FPGA data exchange, which reduces data exchange delay and makes the system simple in structure and efficient in function.

[0018] In a specific embodiment, an exhaustive calculation method is used in the scheduling algorithm of the Banyan network to avoid blocking, specifically including: sorting and checking all cell transmissions in order of priority from large to small, and if a cell transmission route with a low priority will be blocked by a cell with a high priority, the current transmission is abandoned and a cell with a lower priority is selected for transmission until there are no free lines in the entire Banyan network;

[0019] Buffers with the same priority in the Banyan network are randomly selected to determine the route on which each cell conflicts with other cells, and the possible blocking results are determined based on the route;

[0020] The possible blocking results are calculated and stored in the BRAM on the FPGA board.

[0021] In a specific embodiment, a clock tree is used among the multiple FPGAs for clock synchronization, and the clock synchronization specifically includes: when the internal clock drives different registers, the clock tree is used to make the time required for the clock to reach different registers different; at the same time, the clock tree is used between the multiple FPGAs to synchronize the clocks between the multiple FPGAs. This embodiment solves the problem of FPGA clock deviation.

[0022] In a specific embodiment, the PCIE data is sent and received on the FPGA board by DMA, and transmitted using an AXI bus structure.

[0023] In a specific embodiment, the SCE-MI channel includes operations of unpacking and encapsulating data passing through the SCE-MI channel, and establishes multiple FIFOs to construct a transmission channel for the data passing through the SCE-MI channel.

[0024] In a specific embodiment, the data exchange among the multiple FPGAs is based on data transmission of a Banyan network, specifically including:

[0025] Based on the Banyan network, the data sending ends of the multiple FPGAs are connected to the input ports of the Banyan network, the data receiving ends of the multiple FPGAs are connected to the output ports of the Banyan network, and the data of the multiple FPGAs are controlled to be sent to the corresponding nodes of the Banyan network according to the corresponding SCE-MI channels.

[0026] In a specific embodiment, the step of returning the accelerated data to the top-level EDA algorithm for processing specifically includes:

[0027] The data of the multiple FPGAs are transmitted back to the PCIE driver. The PCIE driver receives the data transmitted back by the multiple FPGAs, unpacks the transmitted data, and then returns the data to the top-level EDA algorithm for processing.

[0028] In a specific embodiment, enabling the top-level EDA algorithm to control the sending and receiving of data specifically includes:

[0029] The EDA algorithm is used to control data transmission to generate a function interface that can be scheduled by the EDA algorithm. The sending and receiving of data is controlled through the function interface, which includes parsing the sparse matrix operations in the SPICE software, sending the matrix data to the transmission unit in the appropriate order and controlling the amount of matrix data transmission.

[0030] According to a second aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a computer processor, the above method is implemented.

[0031] According to a third aspect of the present invention, an EDA hardware acceleration system based on a Banyan network and a multi-FPGA structure is proposed, the system comprising:

[0032] An acceleration mode selection unit: configured for a user to select an acceleration mode, wherein the acceleration mode includes an EDA algorithm acceleration mode and an EDA simulation acceleration mode;

[0033] Data transceiver unit: configured to enable the top-level EDA algorithm to control the sending and receiving of data if the EDA algorithm acceleration mode is selected, and perform batch processing on the data and then perform encapsulation processing based on the SCE-MI channel;

[0034] If the EDA simulation acceleration mode is selected: according to the design structure to be tested designed by the user and the simulation data input by the user, the simulation data is packaged based on the SCE-MI channel;

[0035] PCIE data transmission unit: configured to send the packaged data to the PCIE core on the FPGA board through the PCIE driver and hardware, the PCIE core transmits the packaged data through the AXI transmission protocol in a DMA reading mode, and then manages it using SCE-MI, the FPGA board includes multiple FPGAs;

[0036] Banyan network and FPGA data exchange unit: configured to unpack the encapsulated data based on SCE-MI and then send it to the corresponding node of the Banyan network through the corresponding SCE-MI channel, and then send the encapsulated data to the receiving channels of multiple FPGAs corresponding to the nodes according to the cell scheduling algorithm;

[0037] Data acceleration unit: configured to, if the EDA algorithm acceleration mode is selected: accelerate the packaged data based on the parallel calculation of the multiple FPGAs, and then transmit the accelerated data back to the top-level EDA algorithm for processing;

[0038] If the EDA simulation acceleration mode is selected: after simulating and verifying the packaged data and the design structure to be tested using the multiple FPGAs, simulation data is generated, and the simulation data is compared with standard verification data provided by the user to verify the simulation results.

[0039] The present invention combines EDA algorithm acceleration and simulation acceleration in one system. When accelerating the EDA algorithm, the top-level EDA algorithm is enabled to control the sending and receiving of data. When accelerating the EDA simulation, the test structure designed by the user and the simulation data input by the user are used. At the same time, a multi-channel SCE-MI interface is used for software and hardware data collaboration, and then a Banyan network is used to realize data exchange among multiple FPGAs. Finally, the accelerated data is transmitted back for processing, and the verification data is compared with the simulation data to obtain the simulation results. This method accelerates the algorithm and simulation by software and hardware collaboration, realizes the combination of EDA algorithm acceleration and simulation acceleration, adopts a multi-channel PIPE-type SCE-MI standard protocol interface, has universal applicability, and applies the Banyan network to multiple FPGA data exchange, reduces data exchange delay, and makes the system simple in structure and efficient in function. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and together with the description are used to explain the principles of the present invention. Other embodiments and many expected advantages of the embodiments will be readily appreciated as they become better understood by reference to the following detailed description. Other features, objects and advantages of the present application will become more apparent by reading the detailed description of the non-limiting embodiments made with reference to the following drawings:

[0041] Figure 1 It is a flow chart of an EDA hardware acceleration method based on Banyan network and multi-FPGA structure according to an embodiment of the present invention;

[0042] Figure 2 It is an architecture diagram of an EDA algorithm acceleration mode of a specific embodiment of the present invention;

[0043] Figure 3 It is an architecture diagram of an EDA simulation acceleration mode of a specific embodiment of the present invention;

[0044] Figure 4 is a Banyan network structure diagram of a specific embodiment of the present invention;

[0045] Figure 5 It is a framework diagram of an EDA hardware acceleration system based on a Banyan network and a multi-FPGA structure according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0047] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0048] According to an embodiment of the present invention, an EDA hardware acceleration method based on a Banyan network and a multi-FPGA structure is provided. Figure 1 FIG. 1 is a flow chart of an EDA hardware acceleration method based on a Banyan network and a multi-FPGA structure according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0049] S1: The user selects an acceleration mode, which includes an EDA algorithm acceleration mode and an EDA simulation acceleration mode;

[0050] S2: If the EDA algorithm acceleration mode is selected: enable the top-level EDA algorithm to control the sending and receiving of data, and perform batch processing on the data and then perform encapsulation processing based on the SCE-MI channel;

[0051] If the EDA simulation acceleration mode is selected: according to the design structure to be tested designed by the user and the simulation data input by the user, the simulation data is packaged based on the SCE-MI channel;

[0052] S3: sending the packaged data to the PCIE core on the FPGA board through the PCIE driver and hardware, the PCIE core transmits the packaged data through the AXI transmission protocol in a DMA reading mode, and then manages it using SCE-MI, the FPGA board includes multiple FPGAs;

[0053] S4: after unpacking the encapsulated data based on SCE-MI, the data is sent to the corresponding node of the Banyan network through the corresponding SCE-MI channel, and then the encapsulated data is sent to the receiving channels of multiple FPGAs corresponding to the nodes according to the cell scheduling algorithm;

[0054] S5: If the EDA algorithm acceleration mode is selected: the packaged data is accelerated based on the parallel computing of the multiple FPGAs, and the accelerated data is then transmitted back to the top-level EDA algorithm for processing;

[0055] If the EDA simulation acceleration mode is selected: after simulating and verifying the packaged data and the design structure to be tested using the multiple FPGAs, simulation data is generated, and the simulation data is compared with standard verification data provided by the user to verify the simulation results.

[0056] In a specific embodiment, an exhaustive calculation method is used in the scheduling algorithm of the Banyan network to avoid blocking, specifically including: sorting and checking all cell transmissions in order of priority from large to small, and if a cell transmission route with a low priority will be blocked by a cell with a high priority, the current transmission is abandoned and a cell with a lower priority is selected for transmission until there are no free lines in the entire Banyan network;

[0057] Buffers with the same priority in the Banyan network are randomly selected to determine the route on which each cell conflicts with other cells, and the possible blocking results are determined based on the route;

[0058] The possible blocking results are calculated and stored in the BRAM on the FPGA board.

[0059] In a specific embodiment, a clock tree is used among the multiple FPGAs for clock synchronization, and the clock synchronization specifically includes: when the internal clock drives different registers, the clock tree is used to make the time required for the clock to reach different registers different; at the same time, the clock tree is used between the multiple FPGAs to synchronize the clocks between the multiple FPGAs. This embodiment solves the problem of FPGA clock deviation.

[0060] In a specific embodiment, the PCIE data is sent and received on the FPGA board by DMA and transmitted using an AXI bus structure.

[0061] In a specific embodiment, the SCE-MI channel includes operations of unpacking and encapsulating data passing through the SCE-MI channel, and establishes multiple FIFOs to construct a transmission channel for the data passing through the SCE-MI channel.

[0062] In a specific embodiment, the data exchange among the multiple FPGAs is based on data transmission of a Banyan network, specifically including:

[0063] Based on the Banyan network, the data sending ends of the multiple FPGAs are connected to the input ports of the Banyan network, the data receiving ends of the multiple FPGAs are connected to the output ports of the Banyan network, and the data of the multiple FPGAs are controlled to be sent to the corresponding nodes of the Banyan network according to the corresponding SCE-MI channels.

[0064] In a specific embodiment, the step of returning the accelerated data to the top-level EDA algorithm for processing specifically includes:

[0065] The data of the multiple FPGAs are transmitted back to the PCIE driver. The PCIE driver receives the data transmitted back by the multiple FPGAs, unpacks the transmitted data, and then returns the data to the top-level EDA algorithm for processing.

[0066] In a specific embodiment, enabling the top-level EDA algorithm to control the sending and receiving of data specifically includes:

[0067] The EDA algorithm is used to control data transmission to generate a function interface that can be scheduled by the EDA algorithm. The sending and receiving of data is controlled through the function interface, which includes parsing the sparse matrix operations in the SPICE software, sending the matrix data to the transmission unit in the appropriate order and controlling the amount of matrix data transmission.

[0068] In a specific embodiment, the system constructed by the method of the present invention mainly includes a software side and a hardware side. The software side is implemented on a computer host, and the hardware side is implemented by interconnecting multiple FPGAs. The two communicate at high speed through a PCIE physical interface. Figure 2 and Figure 3 The EDA hardware acceleration system of this embodiment is described as follows:

[0069] Figure 2 An architecture diagram of an EDA algorithm acceleration mode according to a specific embodiment of the present invention is shown; Figure 3 The present invention shows an architecture diagram of an EDA simulation acceleration mode of a specific embodiment of the present invention; the present invention includes two modes, EDA algorithm acceleration and simulation acceleration, and different internal modules are enabled in different modes;

[0070] The software side mainly includes the top-level EDA algorithm control module, simulation data generation and verification module, SCE-MI channel module and PCIE driver. The hardware side mainly includes the PCIE data transceiver module, SCE-MI management module, Banyan network management module, multi-FPGA clock control module and test module;

[0071] In the algorithm acceleration mode, the top-level EDA algorithm control module is enabled. Its main function is to generate a function interface that can be scheduled by the EDA algorithm by controlling data transmission. For example, to parse the sparse matrix operation in SPICE software, one is to send the matrix data to the transmission module in the appropriate order, and the other is to control the amount of data transmission.

[0072] In simulation acceleration mode, the simulation data generation and verification module is enabled. The module generates corresponding test data according to the simulation design under test and receives verification return data.

[0073] The SCE-MI channel module on the software side adopts the PIPE mode in the SCE-MI2.0 protocol. The module packages the data transmitted by the upper module according to the SCE-MI protocol format and transmits it to the PCIE driver module through multiple PIPE channels. In addition, according to the data returned by the hardware, it needs to be unpacked and returned to the upper processing module;

[0074] The main function of the PCIE driver and the PCIE transceiver module on the hardware side is to package the data of the upper module into the format of PCIETLP data packets, transmit it to the FPGA board through physical hardware, and parse the data through the PCIE data transceiver IP on the board, and then transmit and receive data on the board through DMA, and adopt the AXI bus structure;

[0075] The SCE-MI channel on the hardware side corresponds to the channel on the software side. This module is responsible for unpacking and encapsulating data on the hardware side, and realizes the data transmission channel by establishing multiple FIFOs. This module is connected to the Banyan network management module, which controls the SCE-MI data of each channel to be sent to the corresponding node of the network.

[0076] In a specific embodiment, the present invention uses a clock tree to solve the FPGA clock deviation problem, that is, when the internal clock drives different registers, the time required for the clock to reach different registers is different. Similarly, in order to ensure the clock synchronization of multiple FPGAs, a clock tree design is also used between multiple FPGAs.

[0077] In a specific embodiment, the present invention uses a Banyan network to implement data exchange between multiple FPGAs. The network consists of multiple 2×2 switching units to form a multi-level N-input N-output switching structure. Each 2×2 switching unit has two modes of horizontal connection and cross connection, which can be switched as needed. The present invention connects the data sending ends of multiple FPGAs to the input ports of the Banyan network, and connects the data receiving ends of multiple FPGAs to the output ports of the Banyan network.

[0078] Figure 4 A Banyan network structure diagram of a specific embodiment of the present invention is shown. This embodiment takes an 8×8 Banyan network as an example. If FPGA1 needs to send data to FPGA7, the first switching unit of the first level starts the horizontal connection mode, the second switching unit of the second level starts the cross-connection mode, and the fourth switching unit of the third level starts the cross-connection mode. The sending channel from the sending end of FPGA1 to the receiving end of FPGA7 is opened, and a cell transmission is completed.

[0079] Although the Banyan network has a simple structure and is easy to expand, it has serious internal congestion and needs to be scheduled through a reasonable algorithm. During the cell transmission process, all cells transmitted simultaneously will cause serious congestion. Only cells that are not blocked during internal transmission can be transmitted simultaneously. In order to avoid cell loss, it is necessary to add buffers at the input port. In a preferred embodiment, for an N×N Banyan architecture, the buffer of an input port is split into N, corresponding to N output ports, so all input port buffers have N×N.

[0080] In a preferred embodiment, due to the limited length of the buffer, in order to prevent data loss and data delay, it is necessary to increase the priority of each buffer queue. Specifically, the high-priority buffer can be arranged for transmission without considering the blocking situation, and the low-priority buffer should take into account the blocking situation of all previously scheduled cell transmission routes; if blocking occurs, the current situation should not consider transmission; the waiting queue length in each queue and the waiting time of the head cell will be used as parameters for priority calculation; the longer the waiting queue length and the longer the waiting time of the head cell, the higher the transmission priority of the buffer.

[0081] In a preferred embodiment, the present invention adopts an exhaustive calculation method to avoid blocking. All cell transmission priorities are sorted and checked in descending order. If the transmission route of a cell with a low priority will block a cell with a high priority, the current transmission is abandoned and a cell of a lower level is considered until there are no free lines in the entire Banyan network. Buffers of the same priority are randomly selected. After the Banyan network structure is fixed, the route where each cell will conflict with other cells is also determined.

[0082] Below Figure 4 Take the Banyan network structure determined in as an example to illustrate the above method of using exhaustive calculation to avoid blocking:

[0083] Based on the input and output ports, each cell transmission blocking can be determined according to the following formula:

[0084] [Input port][Output port] = {blocking buffer1, blocking buffer2,…, blocking bufferN}.

[0085] exist Figure 4 In the structure shown, for cells such as [1][7]buffer, the blocking buffers are:

[0086] [1][7]={[0][4],[0][5],[0][6],[0][7],[1][0],[1][1],[1][2],[1][3],[1][4],[1][5],[1][6],[2][6],[2][7],[3][6],[3][7],[4][7],[5][7],[6][7],[7][7]}

[0087] After the network structure is determined, all possible blocking results are calculated and stored in the BRAM on the FPGA board. During the cell scheduling process, the corresponding blocking buffer is matched and checked to perform the corresponding scheduling work.

[0088] In a specific embodiment, the data transmission moment of the Banyan network exists when data is exchanged between multiple FPGAs.

[0089] Figure 5 The framework diagram of an EDA hardware acceleration system based on a Banyan network and a multi-FPGA structure according to an embodiment of the present invention is shown. The system includes an acceleration mode selection unit 501, a data transceiver unit 502, a PCIE data transmission unit 503, a Banyan network and FPGA data exchange unit 504, and a data acceleration unit 505.

[0090] In a specific embodiment, the acceleration mode selection unit 501 is configured for a user to select an acceleration mode, and the acceleration mode includes an EDA algorithm acceleration mode and an EDA simulation acceleration mode;

[0091] The data transceiver unit 502 is configured to, if the EDA algorithm acceleration mode is selected: enable the top-level EDA algorithm to control the sending and receiving of data, and perform batch processing on the data and then perform encapsulation processing based on the SCE-MI channel;

[0092] If the EDA simulation acceleration mode is selected: according to the design structure to be tested designed by the user and the simulation data input by the user, the simulation data is packaged based on the SCE-MI channel;

[0093] The PCIE data transmission unit 503 is configured to send the packaged data to the PCIE core on the FPGA board through the PCIE driver and hardware, and the PCIE core transmits the packaged data through the AXI transmission protocol in a DMA reading mode, and then manages it using SCE-MI, and the FPGA board includes multiple FPGAs;

[0094] The Banyan network and FPGA data exchange unit 504 is configured to unpack the encapsulated data based on SCE-MI and then send it to the corresponding node of the Banyan network through the corresponding SCE-MI channel, and then send the encapsulated data to the receiving channels of multiple FPGAs corresponding to the nodes according to the cell scheduling algorithm;

[0095] The data acceleration unit 505 is configured to, if the EDA algorithm acceleration mode is selected: accelerate the packaged data based on the parallel computing of the multiple FPGAs, and then transmit the accelerated data back to the top-level EDA algorithm for processing;

[0096] If the EDA simulation acceleration mode is selected: after simulating and verifying the packaged data and the design structure to be tested using the multiple FPGAs, simulation data is generated, and the simulation data is compared with standard verification data provided by the user to verify the simulation results.

[0097] This system combines EDA algorithm acceleration and simulation acceleration in one system. When accelerating the EDA algorithm, the top-level EDA algorithm is enabled to control the sending and receiving of data. When accelerating the EDA simulation, the test structure designed by the user and the simulation data input by the user are used. At the same time, a multi-channel SCE-MI interface is used for software and hardware data collaboration, and then the Banyan network is used to realize the data exchange of multiple FPGAs. Finally, the accelerated data is transmitted back for processing, and the verification data is compared with the simulation data to obtain the simulation results. This system accelerates the algorithm and simulation by software and hardware collaboration, realizes the combination of EDA algorithm acceleration and simulation acceleration, and adopts a multi-channel PIPE-type SCE-MI standard protocol interface, which is universal. At the same time, the Banyan network is applied to multi-FPGA data exchange, which reduces the data exchange delay, making the system simple in structure and efficient in function.

[0098] An embodiment of the present invention further relates to a computer-readable storage medium having a computer program stored thereon, which implements the method described above when the computer program is executed by a computer processor. The computer program includes program code for executing the method shown in the flowchart. It should be noted that the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable medium or any combination of the above two.

[0099] The present invention combines EDA algorithm acceleration and simulation acceleration in one system. When accelerating the EDA algorithm, the top-level EDA algorithm is enabled to control the sending and receiving of data. When accelerating the EDA simulation, the test structure designed by the user and the simulation data input by the user are used. At the same time, a multi-channel SCE-MI interface is used for software and hardware data collaboration, and then a Banyan network is used to realize data exchange among multiple FPGAs. Finally, the accelerated data is transmitted back for processing, and the verification data is compared with the simulation data to obtain the simulation results. This method accelerates the algorithm and simulation by software and hardware collaboration, realizes the combination of EDA algorithm acceleration and simulation acceleration, adopts a multi-channel PIPE-type SCE-MI standard protocol interface, has universal applicability, and applies the Banyan network to multiple FPGA data exchange, reduces data exchange delay, and makes the system simple in structure and efficient in function.

[0100] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. An EDA hardware acceleration method based on Banyan network and multi-FPGA structure, It is characterized in that The following steps are involved: S1: The user selects an acceleration mode, which includes an EDA algorithm acceleration mode and an EDA simulation acceleration mode; S2: If the EDA algorithm acceleration mode is selected: enable the top-level EDA algorithm to control the sending and receiving of data, and perform batch processing on the data and then perform packaging processing based on the SCE-MI channel; If the EDA simulation acceleration mode is selected: according to the design structure to be tested designed by the user and the simulation data input by the user, the simulation data is packaged based on the SCE-MI channel; S3: sending the packaged data to the PCIE core on the FPGA board through the PCIE driver and hardware, the PCIE core transmits the packaged data through the AXI transmission protocol in a DMA reading mode, and then manages it using SCE-MI, the FPGA board includes multiple FPGAs; S4: after unpacking the encapsulated data based on SCE-MI, the data is sent to the corresponding node of the Banyan network through the corresponding SCE-MI channel, and then the encapsulated data is sent to the receiving channels of multiple FPGAs corresponding to the nodes according to the cell scheduling algorithm; S5: If the EDA algorithm acceleration mode is selected: the packaged data is accelerated based on the parallel computing of the multiple FPGAs, and the accelerated data is then transmitted back to the top-level EDA algorithm for processing; If the EDA simulation acceleration mode is selected: after simulating and verifying the packaged data and the design structure to be tested using the multiple FPGAs, simulation data is generated, and the simulation data is compared with standard verification data provided by the user to verify the simulation results.

2. The method according to claim 1, It is characterized in that The Banyan network scheduling algorithm uses an exhaustive calculation method to avoid blocking, including: sorting all cell transmissions in descending order of priority, checking and scheduling. If the transmission route of a cell with a low priority will be blocked by a cell with a high priority, the current transmission is abandoned and a cell with a lower priority is selected for transmission until there are no free lines in the entire Banyan network. The buffers with the same priority in the Banyan network are randomly selected to determine the route on which each cell conflicts with other cells, and the possible blocking results are determined based on the route; The possible blocking results are calculated and stored in the BRAM on the FPGA board.

3. The method according to claim 1, It is characterized in that A clock tree is used among the multiple FPGAs for clock synchronization, and the clock synchronization specifically includes: when the internal clock drives different registers, a clock tree is used to make the time required for the clock to reach different registers different; at the same time, the clock tree is used between the multiple FPGAs to synchronize the clocks between the multiple FPGAs.

4. The method according to claim 1, It is characterized in that The PCIE core transmits the encapsulated data through the AXI transmission protocol in a DMA reading mode, including receiving and sending PCIE data on the FPGA board in a DMA mode and transmitting using an AXI bus structure.

5. The method according to claim 1, It is characterized in that The SCE-MI channel includes operations of unpacking and encapsulating data passing through the SCE-MI channel, and establishes multiple FIFOs to construct a transmission channel for the data passing through the SCE-MI channel.

6. The method according to claim 1, It is characterized in that The data exchange among the multiple FPGAs is based on the data transmission of the Banyan network, specifically including: Based on the Banyan network, the data sending ends of the multiple FPGAs are connected to the input ports of the Banyan network, the data receiving ends of the multiple FPGAs are connected to the output ports of the Banyan network, and the data of the multiple FPGAs are controlled to be sent to the corresponding nodes of the Banyan network according to the corresponding SCE-MI channels.

7. The method according to claim 1, It is characterized in that The step of returning the accelerated data to the top-level EDA algorithm for processing specifically includes: The data of the multiple FPGAs are transmitted back to the PCIE driver. The PCIE driver receives the data transmitted back by the multiple FPGAs, unpacks the transmitted data, and then returns the data to the top-level EDA algorithm for processing.

8. The method according to claim 1, It is characterized in that The enabling of the top-level EDA algorithm to control the sending and receiving of data specifically includes: The EDA algorithm is used to control data transmission to generate a function interface that can be scheduled by the EDA algorithm. The sending and receiving of data is controlled through the function interface, which includes parsing the sparse matrix operations in the SPICE software, sending the matrix data to the transmission unit in the appropriate order and controlling the amount of matrix data transmission.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a computer processor, the method according to any one of claims 1 to 8 is implemented.

10. An EDA hardware acceleration system based on Banyan network and multi-FPGA structure, It is characterized in that include: An acceleration mode selection unit: configured for a user to select an acceleration mode, wherein the acceleration mode includes an EDA algorithm acceleration mode and an EDA simulation acceleration mode; Data transceiver unit: configured to enable the top-level EDA algorithm to control the sending and receiving of data if the EDA algorithm acceleration mode is selected, and batch process the data and then perform encapsulation processing based on the SCE-MI channel; If the EDA simulation acceleration mode is selected: according to the design structure to be tested designed by the user and the simulation data input by the user, the simulation data is packaged based on the SCE-MI channel; PCIE data transmission unit: configured to send the packaged data to the PCIE core on the FPGA board through the PCIE driver and hardware, the PCIE core transmits the packaged data through the AXI transmission protocol in a DMA reading mode, and then manages it using SCE-MI, the FPGA board includes multiple FPGAs; Banyan network and FPGA data exchange unit: configured to unpack the encapsulated data based on SCE-MI and then send it to the corresponding node of the Banyan network through the corresponding SCE-MI channel, and then send the encapsulated data to the receiving channels of multiple FPGAs corresponding to the nodes according to the cell scheduling algorithm; Data acceleration unit: configured to, if the EDA algorithm acceleration mode is selected: accelerate the packaged data based on the parallel calculation of the multiple FPGAs, and then transmit the accelerated data back to the top-level EDA algorithm for processing; If the EDA simulation acceleration mode is selected: after simulating and verifying the packaged data and the design structure to be tested using the multiple FPGAs, simulation data is generated, and the simulation data is compared with standard verification data provided by the user to verify the simulation results.