FPGA circuit design method, ASIC prototype verification method and design device

By instantiating and concatenating control register lists and buses in the circuit design of multiple FPGAs, the problem of high FPGA resources and complex register splitting is solved, and more efficient ASIC prototype verification is achieved.

CN117709261BActive Publication Date: 2024-09-27YUSUR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311420382.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2024-09-27
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

In the existing technology, the GPIO resource requirements of FPGA are too high, and the splitting of control registers is highly complex, resulting in resource waste and design complexity problems during the ASIC prototype verification process.

Method used

By instantiating the control register list in the target ASIC during the circuit design process of multiple FPGAs, and copying and connecting the corresponding control buses in series, a target control register list and bus connection relationship data with a consistent structure for each FPGA are generated, reducing the cost Controls the partitioning complexity of the register list.

Benefits of technology

It effectively reduces the division complexity of the control register list, improves the efficiency and accuracy of ASIC prototype verification, and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117709261B
    Figure CN117709261B
Patent Text Reader

Abstract

The present application provides a circuit design method of FPGA, an ASIC prototype verification method and a design device, the method comprising: in the circuit design process of multiple FPGAs, instantiating the control register list in the target ASIC to obtain the target control register list with the same structure corresponding to each FPGA in the multiple FPGAs; in the circuit design process of each FPGA, copying the control bus corresponding to the control register list to obtain the target control bus corresponding to each FPGA; connecting the target control bus corresponding to each FPGA in series to obtain the bus connection relationship data corresponding to each FPGA, so that the user generates each FPGA based on the designed target control register list, target control bus and bus connection relationship data corresponding to each FPGA. The present application can effectively reduce the complexity of the control register list division, and thus effectively perform prototype verification on the ASIC.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of ASIC prototype verification, and in particular to a FPGA circuit design method, an ASIC prototype verification method and a design device. Background Art

[0002] In ASIC implementation, FPGA is usually required for prototype verification. ASIC design is much larger than FPGA design and is usually divided into multiple partitions on multiple FPGAs. Functional modules divided into different FPGAs may require a common register list for control, so the control registers need to be divided.

[0003] The existing technology places too high requirements on the GPIO resources of the FPGA, and the splitting of the control registers is highly complex. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a circuit design method of FPGA, an ASIC prototype verification method and a design device to eliminate or improve one or more defects existing in the prior art.

[0005] A first aspect of the present application provides a circuit design method for an FPGA, the method comprising:

[0006] Instantiating a control register list in a target ASIC during a circuit design process of multiple FPGAs to obtain a target control register list with a consistent structure corresponding to each FPGA in the multiple FPGAs; wherein the target control register list of each FPGA calls the control register required by each FPGA to implement different functions;

[0007] During the circuit design process of each of the FPGAs, the control bus corresponding to the control register list is copied to obtain the target control bus corresponding to each of the FPGAs;

[0008] The target control buses corresponding to each of the FPGAs are connected in series to obtain bus connection relationship data corresponding to each of the FPGAs, so that the user can generate each of the FPGAs based on the designed target control register list, target control bus and bus connection relationship data corresponding to each of the FPGAs.

[0009] In some embodiments of the present application, after instantiating the control register list in the target ASIC in the circuit design process of the plurality of FPGAs to obtain the target control register list with the same structure corresponding to each FPGA in the plurality of FPGAs, the method further includes:

[0010] The read-only registers in the target control register lists except the target control register list corresponding to the read-only functional module in the target control register lists are all set to zero.

[0011] In some embodiments of the present application, copying the control bus corresponding to the control register list during the circuit design process of each FPGA to obtain the target control bus corresponding to each FPGA includes:

[0012] In the circuit design process of each of the FPGAs, the control bus is copied using the bus synchronization module corresponding to each of the FPGAs to obtain the corresponding target control bus;

[0013] The target control bus includes a first control bus and a second control bus;

[0014] The target control bus of the destination FPGA in each of the FPGAs does not include the second control bus; the target control bus in the starting point FPGA in each of the FPGAs also includes a third control bus obtained by copying the control bus.

[0015] In some embodiments of the present application, the target control buses corresponding to the respective FPGAs are connected in series to obtain bus connection relationship data corresponding to the respective FPGAs, including:

[0016] Connect each of the first control buses with its corresponding bus synchronization module and the local target control register list, and connect each of the second control buses with its corresponding bus synchronization module and the bus synchronization module of the next-level FPGA; connect the third control bus with the corresponding bus synchronization module and each functional module of the target ASIC to obtain the bus connection relationship data corresponding to each of the FPGAs.

[0017] A second aspect of the present application provides a circuit design device for an FPGA, the device comprising:

[0018] A control register list instantiation module is used to instantiate the control register list in the target ASIC during the circuit design process of multiple FPGAs to obtain a target control register list with the same structure corresponding to each FPGA in the multiple FPGAs; wherein the target control register list of each FPGA calls the control register required by each FPGA to realize different functions;

[0019] A control bus duplication module, used for duplicating the control bus corresponding to the control register list during the circuit design process of each of the FPGAs to obtain a target control bus corresponding to each of the FPGAs;

[0020] The control bus series connection module is used to connect the target control buses corresponding to each of the FPGAs in series to obtain the bus connection relationship data corresponding to each of the FPGAs, so that the user can generate each of the FPGAs based on the designed target control register list, target control bus and bus connection relationship data corresponding to each of the FPGAs.

[0021] The third aspect of the present application also provides an ASIC prototype verification method based on FPGA, the method comprising:

[0022] Generate target control instructions;

[0023] The target control instruction is sent to each bus synchronization module corresponding to the FPGA generated by the FPGA circuit design method described in any one of claims 1-4, so that each bus synchronization module performs corresponding reading or updating in the corresponding local target control register list.

[0024] In some embodiments of the present application, when the target control instruction is a read-only instruction, the step of enabling each of the bus synchronization modules to read or update the corresponding local target control register list includes:

[0025] Each of the bus synchronization modules, in turn, based on the received read-only instruction, performs an OR operation on the target read data received by each of them and the read data read from the write-only register in the local target control register list based on the read-only instruction to update the target read data, and transmits the updated target read data and the read-only instruction to the bus synchronization modules in the corresponding next-level FPGA.

[0026] In some embodiments of the present application, when the target control instruction is a write-only instruction, the step of enabling each bus synchronization module to read or update the corresponding local target control register list includes:

[0027] Each of the bus synchronization modules writes the received target write data into the write-only register in the local target control register list based on the received write-only instruction, and transmits the target write data and write-only instruction to the bus synchronization module in the corresponding next-level FPGA.

[0028] The fourth aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the FPGA circuit design method described in the first aspect is implemented, or the FPGA-based ASIC prototype verification method described in the third aspect is implemented.

[0029] The fifth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the FPGA circuit design method described in the first aspect, or implements the FPGA-based ASIC prototype verification method described in the third aspect.

[0030] The present application provides a circuit design method for FPGA, an ASIC prototype verification method and a design device, the method comprising: in the circuit design process of multiple FPGAs, instantiating the control register list in the target ASIC to obtain the target control register list with the same structure corresponding to each FPGA in the multiple FPGAs; in the circuit design process of each FPGA, copying the control bus corresponding to the control register list to obtain the target control bus corresponding to each FPGA; connecting the target control bus corresponding to each FPGA in series to obtain the bus connection relationship data corresponding to each FPGA, so that the user can generate each FPGA based on the designed target control register list, target control bus and bus connection relationship data corresponding to each FPGA. The present application can effectively reduce the complexity of the control register list division, and thus effectively perform prototype verification on the ASIC.

[0031] Additional advantages, purposes, and features of the present application will be partially described in the following description, and will become partially apparent to those skilled in the art after studying the following, or may be learned from the practice of the present application. The purposes and other advantages of the present application can be achieved and obtained by the structures specifically pointed out in the specification and the drawings.

[0032] Those skilled in the art will understand that the purposes and advantages that can be achieved by the present application are not limited to the above specific description, and the above and other purposes that can be achieved by the present application will be more clearly understood based on the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings described herein are used to provide a further understanding of the present application, constitute a part of the present application, and do not constitute a limitation of the present application. The components in the drawings are not drawn to scale, but are only for the purpose of illustrating the principles of the present application. In order to facilitate the illustration and description of some parts of the present application, the corresponding parts in the drawings may be enlarged, that is, they may become larger relative to other components in the exemplary device actually manufactured according to the present application. In the drawings:

[0034] Figure 1 It is a flowchart of a circuit design method of FPGA in one embodiment of the present application.

[0035] Figure 2 It is a schematic diagram of the structure of a circuit design device for FPGA in another embodiment of the present application.

[0036] Figure 3 It is a flowchart of an ASIC prototype verification method based on FPGA in another embodiment of the present application.

[0037] Figure 4 This is a schematic diagram of the structure of the control buses connected in series in another embodiment of the present application.

[0038] Figure 5 This is a flowchart of accessing each FPGA based on a read-only or write-only instruction in another embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the implementation modes and the accompanying drawings. Here, the illustrative implementation modes and descriptions of the present application are used to explain the present application, but are not intended to limit the present application.

[0040] It should also be noted here that in order to avoid obscuring the present application due to unnecessary details, only the structures and / or processing steps closely related to the scheme according to the present application are shown in the accompanying drawings, while other details that are not very relevant to the present application are omitted.

[0041] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

[0042] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.

[0043] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

[0044] The details are described in detail through the following examples.

[0045] The present application embodiment provides an FPGA circuit design method that can be executed by an FPGA circuit design device or a client device, see Figure 1 The FPGA circuit design method specifically includes the following contents:

[0046] Step 110: Instantiate the control register list in the target ASIC during the circuit design process of multiple FPGAs to obtain a target control register list with the same structure corresponding to each FPGA in the multiple FPGAs. The target control register list of each FPGA calls the control register required by each FPGA to implement different functions;

[0047] Step 120: During the circuit design process of each of the FPGAs, the control bus corresponding to the control register list is copied to obtain the target control bus corresponding to each of the FPGAs.

[0048] Step 130: Connect the target control buses corresponding to each of the FPGAs in series to obtain bus connection relationship data corresponding to each of the FPGAs, so that the user can generate each of the FPGAs based on the designed target control register list, target control bus and bus connection relationship data corresponding to each of the FPGAs.

[0049] Specifically, the client device first instantiates the control register list in the target ASIC (application-specific integrated circuit) during the circuit design process of multiple FPGAs (field programmable gate arrays) to obtain the target control register list corresponding to each FPGA (such as Figure 4 RegList Mirror1, RegList Mirror2 and RegList Mirror3 in the control register list). Then, in the circuit design process of each FPGA, the control bus corresponding to the control register list is copied to obtain the target control bus corresponding to each FPGA. Finally, the target control buses corresponding to each FPGA are connected in series to obtain the bus connection relationship data corresponding to each FPGA, so that the user can generate each FPGA based on the designed target control register list, target control bus and bus connection relationship data corresponding to each FPGA, thereby effectively reducing the complexity of the control register list division, and then effectively prototyping the ASIC.

[0050] The instantiation of the control register list and the replication of the control bus by the client device are both performed by calling the corresponding design code and designing in the circuit of each FPGA based on the design code to obtain the corresponding target control register list and target control bus. The target control register list of each FPGA calls the control registers required by each FPGA to realize different functions;

[0051] In addition, the target control register lists with consistent structures corresponding to each FPGA are consistent with the control register list structure in the target ASIC, that is, the types of multiple control registers in the control register list are the same, and the logical order of each control register is also the same. Only when the functions of each FPGA are implemented, the corresponding control registers are called according to the functions, and the control registers that are not needed by themselves are shielded to avoid interfering with the functions to be implemented by the FPGA itself.

[0052] In order to effectively improve the accuracy of the read-only function in ASIC prototype verification, after step 110, the following steps are also included:

[0053] The read-only registers in the target control register lists except the target control register list corresponding to the read-only functional module in the target control register lists are all set to zero.

[0054] Specifically, after the client device obtains the design code module of the control register list, it modifies the code portion corresponding to the read-only register in the design code of the target control register list of the FPGA other than the target control register list of the FPGA used for the read-only functional module, so that the reading result of the read-only register is 0, thereby effectively prompting the accuracy of the read-only function in the ASIC prototype verification.

[0055] In order to ensure the accuracy of the control bus replication, step 120 includes:

[0056] In the circuit design process of each of the FPGAs, the control bus is copied using the bus synchronization module corresponding to each of the FPGAs to obtain the corresponding target control bus;

[0057] The target control bus includes a first control bus and a second control bus;

[0058] The target control bus of the destination FPGA in each of the FPGAs does not include the second control bus; the target control bus in the starting point FPGA in each of the FPGAs also includes a third control bus obtained by copying the control bus.

[0059] Specifically, see Figure 4 , the client device uses the bus synchronization module corresponding to each FPGA in the circuit design process of each FPGA (i.e. Figure 4 The Bus Duplicate in the control bus will call the design code of the control bus to copy to obtain the corresponding target control bus, thereby ensuring the accuracy of the control bus copy.

[0060] Among them, the target control bus includes the first control bus and the second control bus; the target control bus of the destination FPGA in each FPGA does not include the second control bus; the target control bus in the starting point FPGA in each FPGA also includes a third control bus obtained by copying the control bus.

[0061] In order to ensure the consistency of data synchronization between various FPGAs, step 130 includes:

[0062] Connect each of the first control buses with its corresponding bus synchronization module and the local target control register list, and connect each of the second control buses with its corresponding bus synchronization module and the bus synchronization module of the next-level FPGA; connect the third control bus with the corresponding bus synchronization module and each functional module of the target ASIC to obtain the bus connection relationship data corresponding to each of the FPGAs.

[0063] Specifically, the client device connects each first control bus with its corresponding bus synchronization module and the local target control register list, and connects each second control bus with its corresponding bus synchronization module and the bus synchronization module of the next level FPGA (i.e. Figure 4 FPGA1, FPGA2, FPGA3); connecting the third control bus with the corresponding bus synchronization module and each functional module of the target ASIC to obtain the bus connection relationship data corresponding to each FPGA, thereby ensuring the consistency of data synchronization between each FPGA.

[0064] The present application also provides an ASIC prototype verification method based on FPGA that can be executed by a client device, see Figure 3 The ASIC prototype verification method of the FPGA specifically includes the following contents:

[0065] Step 210: Generate target control instructions.

[0066] Step 220: Send the target control instruction to each bus synchronization module corresponding to each FPGA generated by the aforementioned FPGA circuit design method, so that each bus synchronization module performs corresponding reading or updating in the corresponding local target control register list.

[0067] Specifically, the client device first generates a target control instruction, and then sends the target control instruction to the bus synchronization module corresponding to each FPGA generated by the aforementioned FPGA circuit design method, so that each bus synchronization module performs corresponding reading or updating in its corresponding local target control register list, thereby effectively prototyping the ASIC.

[0068] In order to effectively verify the read-only functional module, when the target control instruction is a read-only instruction, in step 220, each of the bus synchronization modules performs corresponding reading or updating in the corresponding local target control register list, including:

[0069] Each of the bus synchronization modules, in turn, based on the received read-only instruction, performs an OR operation on the target read data received by each of them and the read data read from the write-only register in the local target control register list based on the read-only instruction to update the target read data, and transmits the updated target read data and the read-only instruction to the bus synchronization modules in the corresponding next-level FPGA.

[0070] Specifically, see Figure 5 In the target control instruction (i.e. Figure 5 When the Cmd in the target control register list is a read-only instruction, each FPGA performs an OR operation on the target read data received by each FPGA and the read data read from the write-only register in the local target control register list based on the read-only instruction (i.e. Figure 5 ) to update the target read data (i.e. Figure 5 Rd_data in the FPGA), and the updated target read data and read-only instructions are transmitted to the bus synchronization modules in the corresponding next-level FPGA, so that the read-only functional modules can be effectively verified.

[0071] In order to effectively verify the write-only functional module, when the target control instruction is a write-only instruction, in step 220, each of the bus synchronization modules performs corresponding reading or updating in the respective corresponding local target control register lists, including:

[0072] Each of the bus synchronization modules writes the received target write data into the write-only register in the local target control register list based on the received write-only instruction, and transmits the target write data and write-only instruction to the bus synchronization module in the corresponding next-level FPGA.

[0073] Specifically, when the target control instruction is a write-only instruction, each FPGA writes the received target write data into the write-only register in the local target control register list, and writes the target write data (i.e. Figure 5 The Wr_data in the FPGA and the write-only instruction are transmitted to the bus synchronization module in the corresponding next-level FPGA, so that the write-only functional module can be effectively verified.

[0074] in addition, Figure 5 The Dup in the code indicates that the target control instruction or the target write data are transmitted to the local register and the next-level FPGA.

[0075] From the software level, the present application also provides an FPGA circuit design device for executing all or part of the FPGA circuit design method, see Figure 2 , the FPGA circuit design device specifically includes the following contents:

[0076] A control register list instantiation module is used to instantiate the control register list in the target ASIC during the circuit design process of multiple FPGAs to obtain a target control register list with consistent structure corresponding to each FPGA in the multiple FPGAs; wherein the target control register list of each FPGA calls the control registers required by each FPGA to implement different functions.

[0077] The control bus duplication module is used to duplicate the control bus corresponding to the control register list during the circuit design process of each FPGA to obtain the target control bus corresponding to each FPGA.

[0078] The control bus series connection module is used to connect the target control buses corresponding to each of the FPGAs in series to obtain the bus connection relationship data corresponding to each of the FPGAs, so that the user can generate each of the FPGAs based on the designed target control register list, target control bus and bus connection relationship data corresponding to each of the FPGAs.

[0079] The embodiment of the FPGA circuit design device provided in the present application can be specifically used to execute the processing flow of the embodiment of the FPGA circuit design method in the above-mentioned embodiment. Its functions are not repeated here, and the detailed description of the above-mentioned FPGA circuit design method embodiment can be referred to.

[0080] The present application provides a circuit design method for FPGA, an ASIC prototype verification method and a design device, wherein the circuit design method for FPGA includes: in the circuit design process of multiple FPGAs, instantiating the control register list in the target ASIC to obtain the target control register list with the same structure corresponding to each FPGA in the multiple FPGAs; in the circuit design process of each FPGA, copying the control bus corresponding to the control register list to obtain the target control bus corresponding to each FPGA; connecting the target control bus corresponding to each FPGA in series to obtain the bus connection relationship data corresponding to each FPGA, so that the user can generate each FPGA based on the designed target control register list, target control bus and bus connection relationship data corresponding to each FPGA. The present application can effectively reduce the complexity of the control register list division, and thus effectively perform prototype verification on ASIC.

[0081] The embodiment of the present application also provides an electronic device, such as a central server, which may include a processor, a memory, a receiver and a transmitter, wherein the processor is used to execute the FPGA circuit design method mentioned in the above embodiment, or the FPGA-based ASIC prototype verification method mentioned in the above embodiment, wherein the processor and the memory may be connected via a bus or other means, with the bus connection being taken as an example. The receiver may be connected to the processor and the memory via a wired or wireless manner.

[0082] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA circuit design) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0083] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the FPGA circuit design method in the embodiment of the present application, or the program instructions / modules corresponding to the FPGA-based ASIC prototype verification method mentioned in the above embodiment. The processor executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory, that is, implementing the FPGA circuit design method in the above method embodiment, or the FPGA-based ASIC prototype verification method mentioned in the above embodiment.

[0084] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0085] The one or more modules are stored in the memory, and when executed by the processor, perform the FPGA circuit design method in the embodiment, or the FPGA-based ASIC prototype verification method mentioned in the above embodiment.

[0086] In some embodiments of the present application, the user equipment may include a processor, a memory, and a transceiver unit, which may include a receiver and a transmitter. The processor, memory, receiver, and transmitter may be connected through a bus system. The memory is used to store computer instructions, and the processor is used to execute the computer instructions stored in the memory to control the transceiver unit to send and receive signals.

[0087] As an implementation method, the functions of the receiver and the transmitter in the present application can be considered to be implemented through a transceiver circuit or a dedicated chip for transceiver, and the processor can be considered to be implemented through a dedicated processing chip, a processing circuit or a general chip.

[0088] As another implementation method, it is possible to use a general-purpose computer to implement the server provided in the embodiment of the present application, that is, to store the program code for implementing the functions of the processor, receiver, and transmitter in a memory, and the general-purpose processor implements the functions of the processor, receiver, and transmitter by executing the code in the memory.

[0089] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the aforementioned FPGA circuit design method or the steps of the FPGA-based ASIC prototype verification method mentioned in the above embodiment is implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0090] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is specifically performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0091] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0092] In the present application, features described and / or illustrated for one embodiment may be used in the same manner or in a similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.

[0093] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A circuit design method for FPGA, characterized in that: include: Instantiating a control register list in a target ASIC during a circuit design process of multiple FPGAs to obtain a target control register list with a consistent structure corresponding to each FPGA in the multiple FPGAs; wherein the target control register list of each FPGA calls the control register required by each FPGA to implement different functions; During the circuit design process of each of the FPGAs, the control bus corresponding to the control register list is copied to obtain the target control bus corresponding to each of the FPGAs; The target control buses corresponding to each of the FPGAs are connected in series to obtain bus connection relationship data corresponding to each of the FPGAs, so that the user can generate each of the FPGAs based on the designed target control register list, target control bus and bus connection relationship data corresponding to each of the FPGAs.

2. The FPGA circuit design method according to claim 1, characterized in that: After instantiating the control register list in the target ASIC in the circuit design process of the plurality of FPGAs to obtain a target control register list with consistent structure corresponding to each FPGA in the plurality of FPGAs, the method further includes: The read-only registers in the target control register lists except the target control register list corresponding to the read-only functional module in the target control register lists are all set to zero.

3. The FPGA circuit design method according to claim 1, characterized in that: The step of copying the control bus corresponding to the control register list during the circuit design process of each of the FPGAs to obtain the target control bus corresponding to each of the FPGAs includes: In the circuit design process of each of the FPGAs, the control bus is copied using the bus synchronization module corresponding to each of the FPGAs to obtain the corresponding target control bus; The target control bus includes a first control bus and a second control bus; The target control bus of the destination FPGA in each of the FPGAs does not include the second control bus; the target control bus in the starting point FPGA in each of the FPGAs also includes a third control bus obtained by copying the control bus.

4. The FPGA circuit design method according to claim 3, characterized in that: The step of connecting the target control buses corresponding to the respective FPGAs in series to obtain the bus connection relationship data corresponding to the respective FPGAs includes: Connect each of the first control buses with its corresponding bus synchronization module and the local target control register list, and connect each of the second control buses with its corresponding bus synchronization module and the bus synchronization module of the next-level FPGA; connect the third control bus with the corresponding bus synchronization module and each functional module of the target ASIC to obtain the bus connection relationship data corresponding to each of the FPGAs.

5. An ASIC prototype verification method based on FPGA, characterized in that: include: Generate target control instructions; The target control instruction is sent to each bus synchronization module corresponding to the FPGA generated by the FPGA circuit design method described in any one of claims 1-4, so that each bus synchronization module performs corresponding reading or updating in the corresponding local target control register list.

6. The ASIC prototype verification method based on FPGA according to claim 5, characterized in that: When the target control instruction is a read-only instruction, the step of enabling each bus synchronization module to read or update the corresponding local target control register list includes: Each of the bus synchronization modules, in turn, based on the received read-only instruction, performs an OR operation on the target read data received by each of them and the read data read from the write-only register in the local target control register list based on the read-only instruction to update the target read data, and transmits the updated target read data and the read-only instruction to the bus synchronization modules in the corresponding next-level FPGA.

7. The ASIC prototype verification method based on FPGA according to claim 5, characterized in that: When the target control instruction is a write-only instruction, the step of enabling each of the bus synchronization modules to read or update the corresponding local target control register list includes: Each of the bus synchronization modules writes the received target write data into the write-only register in the local target control register list based on the received write-only instruction, and transmits the target write data and write-only instruction to the bus synchronization module in the corresponding next-level FPGA.

8. A circuit design device for FPGA, characterized in that: include: A control register list instantiation module is used to instantiate the control register list in the target ASIC during the circuit design process of multiple FPGAs to obtain a target control register list with the same structure corresponding to each FPGA in the multiple FPGAs; wherein the target control register list of each FPGA calls the control register required by each FPGA to realize different functions; A control bus duplication module, used for duplicating the control bus corresponding to the control register list during the circuit design process of each of the FPGAs to obtain a target control bus corresponding to each of the FPGAs; The control bus series connection module is used to connect the target control buses corresponding to each of the FPGAs in series to obtain the bus connection relationship data corresponding to each of the FPGAs, so that the user can generate each of the FPGAs based on the designed target control register list, target control bus and bus connection relationship data corresponding to each of the FPGAs.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the FPGA circuit design method as described in any one of claims 1 to 4, or executes the FPGA-based ASIC prototype verification method as described in any one of claims 5 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the FPGA circuit design method as described in any one of claims 1 to 4, or executes the FPGA-based ASIC prototype verification method as described in any one of claims 5 to 7.