Synthetic method, device and circuit for realizing programmable logic circuit by using memory
Through the programmable logic circuit synthesis method in the memory, the upper-layer description of the RTL language and the memory lookup table are used to reduce the number of gate circuits, solve the problem of the logic circuit execution frequency not meeting the requirements, and achieve the effect of high-speed execution frequency and shortened design cycle.
Patent Information
- Application Number
- CN202310984235.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing logic circuit design method, due to the gate circuit delay time and wiring delay time, the circuit execution frequency does not meet the requirements, and the cycle needs to be repeated many times, resulting in a long development cycle.
Using the programmable logic circuit synthesis method in the memory, simulation verification is performed through the upper-layer description of the RTL language, the truth table data is generated, and configured into the memory. The memory lookup table is used to search and combine the block diagram to perform logic simulation and reduce gate circuits. quantity, reduce latency, and increase execution frequency.
It achieves high-speed execution frequency of logic circuits, shortens the design cycle, reduces the number of gate circuits and wiring processing burden, can cope with large-scale logic circuit design, and significantly reduces the development cycle.
Smart Images

Figure CN118536434A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of EDA tool software, and in particular to a synthesis method, device and circuit of a programmable logic circuit using a memory, and more specifically to a synthesis method and logic circuit of an EDA synthesis tool for realizing a programmable digital logic circuit using a memory. Background Art
[0002] The current digital LSI chip design method is to use language description to design logic functions, and then use the dedicated library provided by the semiconductor process manufacturer to synthesize on the logic synthesis tool (EDA tool) and generate a gate circuit level netlist. Figure 1 This is a flow chart of the gate circuit design method currently used. In this design method, after designing using the language, functional verification is performed. If there is no problem, the gate circuit is transformed using the logic synthesis tool, and then layout and routing are implemented. After layout and routing, the parasitic resistance and parasitic capacitance of the metal wire used as the signal line are extracted, and the delay time of the circuit is calculated according to the delay of the gate circuit. If the execution frequency of the circuit does not meet the requirements, it needs to be re-synthesized and repeated many times.
[0003] In digital logic design using gate circuits, it is necessary to interconnect gate circuits with a scale of more than several million gates to realize the desired logical function. This design method is called "gate circuit design method". Although the function can be realized by connecting the gate circuits, in this logic design that connects multiple gate circuits, the transmission delay time of the gate circuits and the connection wiring delay time between the gate circuits become very large, making it difficult to execute them at high speed.
[0004] Therefore, in order to achieve high speed, ultra-fine technology must be used to increase the execution speed of transistors, but ultra-fine technology also brings the burden of high development costs. In addition, the use of ultra-fine technology will also make the parasitic resistance and parasitic capacitance of metal wires very large, increasing the delay time of the circuit. According to the logic circuit execution frequency = 1 / (gate circuit delay time + wiring delay time), the use of ultra-fine technology will also reduce the execution frequency of the logic circuit. Summary of the invention
[0005] In view of this, the present invention provides a method, device and logic circuit for synthesizing a programmable logic circuit using a memory, so as to solve the technical problem in the existing logic circuit design method that due to the existence of gate circuit delay time and wiring delay time, the circuit execution frequency cannot meet the requirements and needs to be repeated for many times, resulting in a long development cycle.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a method for synthesizing a programmable logic circuit using a memory, comprising the following steps:
[0008] According to the upper-level description of RTL language, the logic function of the semiconductor is simulated and verified to obtain the truth table data;
[0009] Configuring the truth table data into a memory;
[0010] The programmable logic circuit is synthesized using a memory.
[0011] Furthermore, the logic function of the semiconductor is simulated and verified according to the upper structure of the RTL language to obtain truth table data, including:
[0012] Generate a block diagram based on the structure described in the upper layer of the RTL language;
[0013] Use a memory lookup table to find the input and output pins of each block in the block diagram, and determine whether each block is suitable for the corresponding memory lookup table;
[0014] Perform input or output segmentation processing on the boxes that do not fit into the memory lookup table, and combine the boxes that fit into the memory lookup table;
[0015] The combined blocks are configured, wired and logically simulated to obtain the truth table data.
[0016] Furthermore, when using a memory lookup table to search the block diagram, if the number of input and output pins of the current layer box is greater than the number of pins in the lookup table, the current layer box is considered to be an unsuitable box. At this time, look for a box in the lower layer with fewer pins than the memory lookup table until all the boxes in the block diagram have been searched, and the boxes with less than or equal to the number of pins in the memory lookup table are regarded as suitable boxes.
[0017] Furthermore, after the bottom layer of the block diagram is found using the memory lookup table, multiple adjacent suitable blocks are combined according to the search result.
[0018] Furthermore, an EDA tool is used to perform logic simulation on the combined blocks.
[0019] In a second aspect, the present invention provides a synthesis device of a programmable logic circuit using a memory, comprising:
[0020] A truth table data generation module is used to simulate and verify the logic function of the semiconductor according to the RTL language structure to obtain truth table data;
[0021] A memory configuration module, used to configure the truth table data into a memory;
[0022] The logic circuit synthesis module is used to construct the programmable logic circuit using a memory.
[0023] Furthermore, the truth table data generation module includes:
[0024] A block diagram generating unit, used for generating a block diagram according to the RTL language structure;
[0025] A search unit, used to use a memory lookup table to search for input and output pins of each block in the block diagram, and determine whether each block is suitable for the corresponding memory lookup table;
[0026] A block processing unit, used to perform input or output segmentation processing on blocks that are not suitable for the lookup table, and to combine blocks that are suitable for the memory lookup table;
[0027] The logic simulation unit is used to configure wiring and logic simulation of the combined blocks to obtain the truth table data.
[0028] In a third aspect, the present invention provides a programmable logic circuit, which is generated by using the above-mentioned method for synthesizing a programmable logic circuit using a memory.
[0029] It can be seen from the above technical solutions that, compared with the prior art, the present invention has the following beneficial effects:
[0030] 1. The present invention stores the logic result data (i.e., truth table data) after language design verification in an existing memory to realize digital logic functions. Because large-scale gate circuits are not used, there is no gate circuit delay time and wiring delay time. The execution frequency of the logic circuit is the execution frequency of the memory, which can realize high-speed execution frequency, and it is possible to obtain a frequency that satisfies the function execution at the beginning of development.
[0031] 2. Compared with the existing methods, the present invention does not involve logic verification and timing verification of all data transformation processes (such as "language data→gate circuit", "gate circuit→layout and wiring"), nor does it involve the process of returning to the previous process for resynthesis and reverification if the execution clock frequency is not met in the timing verification after layout and wiring. Therefore, the design synthesis cycle of the memory used in the present invention is much shorter than the existing methods.
[0032] 3. The method of the present invention does not perform logic synthesis of the lower layer of the RTL language, that is, it does not generate gate circuits, but combines the upper layer structure of the RTL language to generate a block diagram, which can turn millions of gate circuits into dozens of blocks. The burden of combining and automatically configuring wiring processing will be greatly reduced, and it can correspond to large-scale logic circuits. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0034] Figure 1 A flow chart of a design synthesis method for a digital LSI chip using FPGA in an existing manner;
[0035] Figure 2 A flow chart of a method for synthesizing a programmable logic circuit using a memory provided by an embodiment of the present invention;
[0036] Figure 3 A schematic diagram of a process for generating truth table data provided by an embodiment of the present invention;
[0037] Figure 4 A detailed flow chart of truth table data generation provided by an embodiment of the present invention;
[0038] Figure 5 Design a flow chart for wiring configuration of existing mode gate circuits;
[0039] Figure 6 A diagram comparing the design cycles of a method for synthesizing a programmable logic circuit using a memory provided by an embodiment of the present invention and a conventional method;
[0040] Figure 7 A schematic diagram of the structure of a synthesis device of a programmable logic circuit using a memory provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The first embodiment, as Figure 2 As shown, an embodiment of the present invention discloses a method for synthesizing a programmable logic circuit using a memory, comprising the following steps:
[0043] S1. Simulate and verify the logic function of the semiconductor according to the upper-level description of the RTL language to obtain the truth table data.
[0044] S2. Configure the truth table data into the memory.
[0045] S3. Use memory to synthesize programmable logic circuits.
[0046] like Figure 3-4 As shown, in S1, the input data is Verilog-RTL, and the output data is truth table data (logical function data). This step specifically includes the following steps:
[0047] S11. Generate a block diagram based on the structure described in the upper layer of the RTL language; each block is composed of a group of circuits, which will eventually be transformed into a truth table and stored in the memory, which is subject to the address of the memory and the number of bits of data. For example, if the address of the memory is 8 bits and the data is also 8 bits, then the input of the circuit in the block is required to be less than or equal to 8 bits, and the output of the block is less than or equal to 8 bits, so that the transformed truth table can be placed in the memory, and reading the data in the memory is equivalent to reading the execution result of the block, which is equivalent to realizing the logic circuit.
[0048] S12. Use a memory lookup table (MLUT) to search for input and output pins of each block in the block diagram, and determine whether each block is suitable for the corresponding memory lookup table.
[0049] When using a memory lookup table to search a block diagram, if the number of input and output pins of the current layer box is greater than the number of pins in the lookup table, the current layer box is considered to be an unsuitable box. At this time, look for a box in the next layer with fewer pins than the lookup table until all boxes in the block diagram have been searched, and the boxes with less than or equal to the number of pins in the memory lookup table are considered suitable boxes.
[0050] S13, performing input or output segmentation processing on the blocks that are not suitable for the memory lookup table. For example, when the input or output signal of the block is greater than the number of addresses or data lines of the memory, segmentation processing is required.
[0051] For example, if the input of a box (actually a circuit written in RTL language) is 10 bits and the output is 5 bits, and the memory address and data are both 8 bits, the 10-bit input of the box as the address line of the memory exceeds the limit. At this time, the box should be divided into two.
[0052] S14. After using the memory lookup table to find the bottom layer of the block diagram, combine multiple adjacent suitable blocks according to the search results. The structure inside the programmable chip is that the output data of the previous memory is connected to the input address of the next memory. This means that each memory can only perform the function of a small part of the circuit, and then these memories can be connected to form a large circuit function. Combining multiple suitable blocks means connecting multiple memories together to form the required large circuit function.
[0053] Since each memory can select data from other memories in multiple directions as address lines, during EDA layout and routing, it will be selected which memory to use for which block function and which memory to connect to.
[0054] S15. Use EDA tools to configure wiring and logic simulation on the combined blocks to obtain truth table data. Since the truth table is equal to all possible permutations and combinations of input signals, as long as the number of input and output signals meets the requirements of the memory, the stored truth table will inevitably be able to meet all possible circuit functions.
[0055] Afterwards, the obtained truth table data is burned into the memory.
[0056] The embodiments of the present invention make the following performance comparison with the existing methods in terms of logic circuit adaptability scale and design cycle.
[0057] 1. If Figure 5 As shown in the figure, it is a design flow chart for the existing gate circuit configuration wiring. Its advantage is that it uses the original logic synthesis to generate the gate circuit, making it easy to design EDA tools. However, there are also certain disadvantages: when using synthesis tools to generate gate circuits, a huge number of gates may be generated in the millions. When performing the combination process, a large number of MLUTs (Memory Lookup Tables) will be used, and the configuration wiring will also have an astronomical number of combinations, resulting in an inability to obtain a solution. Therefore, for the number of gate circuits used, only small-scale logic circuits can be used.
[0058] In order to solve the shortcomings of the existing gate circuit configuration and wiring process, the embodiment of the present invention does not perform the logic synthesis below the logic circuit language RTL, and does not generate gate circuits, but generates a structure on the upper layer of RTL, that is, a block diagram of RTL. In this way, millions of gate circuits can be turned into dozens of blocks. In this way, the burden of combining and automatically configuring wiring processing will be greatly reduced, and it will be able to correspond to large-scale logic circuits.
[0059] 2. If Figure 6 As shown, the existing FPGA-based digital LSI chip design method uses gate circuit mapping, and all data transformation processes must be subject to logic verification and timing verification. The data transformation process here refers to: "language data → gate circuit", "gate circuit → layout and routing", and if the execution clock frequency is not met in the timing verification after layout and routing, it is necessary to return to the previous process for resynthesis and reverification. In general, in the existing method, the RTL language design and logic simulation process accounts for 10% of the entire logic design cycle, and the subsequent logic synthesis, logic simulation, automatic configuration wiring, timing verification and configuration process account for 90% of the entire logic design cycle.
[0060] The digital LSI chip design method based on memory in the embodiment of the present invention adopts function mapping, and the entire logic design cycle does not use logic synthesis, but directly generates a truth table from the described logic circuit language. Compared with the existing method, the entire design cycle can be reduced by 90%, which can significantly reduce the design cycle.
[0061] For example, if the number of gates is 1 million and the execution frequency is 200 MH, the logic design cycle of the existing method is more than 7 days, while the design cycle of the method of the present invention is about 1-2 days, and the entire design cycle will be greatly shortened.
[0062] The second embodiment, as Figure 7 As shown, an embodiment of the present invention provides a synthesis device of a programmable logic circuit using a memory, comprising:
[0063] A truth table data generation module is used to simulate and verify the logic function of the semiconductor according to the RTL language structure to obtain truth table data;
[0064] A memory configuration module, used for configuring truth table data into a memory;
[0065] The logic circuit synthesis module is used to synthesize a programmable logic circuit using a memory.
[0066] Specifically, the truth table data generation module includes:
[0067] A block diagram generating unit, used for generating a block diagram according to the RTL language structure;
[0068] A search unit, used to use a memory lookup table to search for input and output pins of each block in the block diagram, and determine whether each block is suitable for the corresponding memory lookup table;
[0069] A block processing unit, used for performing input or output segmentation processing on blocks that are not suitable for the memory lookup table, and combining blocks that are suitable for the memory lookup table;
[0070] The logic simulation unit is used to configure the wiring and logic simulation of the combined blocks to obtain truth table data.
[0071] In the embodiment of the present invention, the logic result data after language design verification is stored in the existing memory to realize the digital logic function. Because no large-scale gate circuits are used, there is no gate circuit delay time and wiring delay time. The execution frequency of the logic circuit is the execution frequency of the memory, and the execution frequency can be increased. It is possible to obtain a frequency that satisfies the function execution at the beginning of development.
[0072] At the same time, the embodiment of the present invention does not involve logic verification and timing verification of all data transformation processes (such as "language data→gate circuit", "gate circuit→layout and wiring"), nor does it involve the process of returning to the previous process for re-synthesis and re-verification if the execution clock frequency is not met in the timing verification after layout and wiring. Therefore, the present invention uses the logic design of the memory to greatly shorten the synthesis cycle.
[0073] In addition, the embodiment of the present invention does not perform logic synthesis of the lower layer of the RTL language, that is, it does not generate gate circuits, but instead combines the upper layer structure of the RTL language to generate a block diagram, which can turn millions of gate circuits into dozens of blocks. The burden of combining and automatically configuring wiring processing will be greatly reduced, and it can correspond to large-scale logic circuits.
[0074] In a third embodiment, the present invention provides a programmable logic circuit, which is generated by using the above-mentioned method for synthesizing a programmable logic circuit using a memory.
[0075] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0076] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0077] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0078] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0079] A person of ordinary skill in the art may understand that all or part of the steps of the method for implementing the above-mentioned embodiment may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.
[0080] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0081] The memory mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0082] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0083] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for synthesizing a programmable logic circuit using a memory, characterized in that: The following steps are involved: According to the upper-level description of RTL language, the logic function of the semiconductor is simulated and verified to obtain the truth table data; Configuring the truth table data into a memory; The programmable logic circuit is synthesized using the memory.
2. The method for synthesizing a programmable logic circuit using a memory according to claim 1, characterized in that: The logic function of the semiconductor is simulated and verified according to the upper structure of the RTL language to obtain truth table data, including: Generate a block diagram based on the structure described in the upper layer of the RTL language; Use a memory lookup table to find the input and output pins of each block in the block diagram, and determine whether each block is suitable for the corresponding memory lookup table; Perform input or output segmentation processing on the boxes that do not fit into the memory lookup table, and combine the boxes that fit into the memory lookup table; The combined blocks are configured, wired and logically simulated to obtain the truth table data.
3. The method for synthesizing a programmable logic circuit using a memory according to claim 2, characterized in that: When using the memory lookup table to search the block diagram, if the number of input and output pins of the current layer box is greater than the number of pins in the memory lookup table, the current layer box is considered to be an unsuitable box. At this time, look for the box in the next layer with fewer pins than the memory lookup table until all the boxes in the block diagram have been searched, and the boxes with less than or equal to the number of pins in the memory lookup table are regarded as suitable boxes.
4. The method for synthesizing a programmable logic circuit using a memory according to claim 3, characterized in that: After finding the bottom layer of the block diagram using the memory lookup table, multiple adjacent suitable blocks are combined according to the search result.
5. The method for synthesizing a programmable logic circuit using a memory according to claim 1, characterized in that: Use EDA tools to perform logic simulation on the combined blocks.
6. A synthesis device for a programmable logic circuit using a memory, characterized in that: include: A truth table data generation module is used to simulate and verify the logic function of the semiconductor according to the RTL language structure to obtain truth table data; A memory configuration module, used to configure the truth table data into a memory; The logic circuit synthesis module is used to synthesize the semiconductor logic circuit using a memory.
7. The device for synthesizing a programmable logic circuit using a memory according to claim 6, characterized in that: The truth table data generation module comprises: A block diagram generating unit, used for generating a block diagram according to the RTL language structure; A search unit, used to use a memory lookup table to search for input and output pins of each block in the block diagram, and determine whether each block is suitable for the corresponding memory lookup table; A block processing unit, used for performing input or output segmentation processing on blocks that are not suitable for the memory lookup table, and combining blocks that are suitable for the memory lookup table; The logic simulation unit is used to configure wiring and logic simulation of the combined blocks to obtain the truth table data.
8. A programmable logic circuit, characterized in that: The logic circuit is generated by using the synthesis method of a programmable logic circuit using a memory as described in any one of claims 1-5.
