Standard cell layout generation method and device, electronic equipment and storage medium
By utilizing multiple circuit structure netlist files and connection relationships in the subcircuit library, the layout of standard cells is automatically generated, which solves the problem of low layout generation efficiency in integrated circuit design and achieves efficient and accurate standard cell layout generation.
Patent Information
- Application Number
- CN202410725978.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-05
AI Technical Summary
In integrated circuit design, the layout generation efficiency of standard cells is low and requires manual drawing, which consumes a lot of time and energy.
By extracting the target sub-circuit combination based on the preset sub-circuit library, the layout of the standard unit is generated based on the hardware description language and driving capabilities, without manual drawing, and using multiple circuit structure netlist files and connection relationships in the sub-circuit library. Splicing.
It improves the efficiency of standard unit layout generation, realizes automated layout generation, reduces the need for manual drawing, and improves accuracy and scope of application.
Smart Images

Figure CN118709633A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computers, and in particular to a method, device, electronic device and storage medium for generating a standard cell layout. Background Art
[0002] In the current integrated circuit design in the industry, the standard unit circuit composed of a certain number of transistors is considered to be the smallest unit of VLSI design. Among them, standard units include inverters, AND gates, registers, selectors, full adders and other basic units. When drawing the integrated circuit layout, the layout of each standard unit in the preset standard cell library can be directly combined to obtain the integrated circuit layout.
[0003] In order to consider the overall performance of the integrated circuit, a suitable standard cell physical layout framework is usually selected, and the layout of the integrated circuit is obtained by combining the layouts of the standard cells under the framework. However, the layouts of the standard cells under different standard cell physical layout frameworks need to be drawn manually, which makes the layout generation efficiency of the standard cells low. Summary of the invention
[0004] The present application provides a standard cell layout generation method, device, electronic device and storage medium to improve the layout generation efficiency of the standard cell.
[0005] In a first aspect, the present application provides a method for generating a standard cell layout, comprising: based on the hardware description language and driving capability of the standard cell to be drawn, extracting at least one sub-circuit from a preset sub-circuit library, and obtaining a corresponding target sub-circuit combination of the standard cell to be drawn; wherein the sub-circuit library includes multiple sub-circuits, each of the sub-circuits is a circuit composed of at least one transistor, and any standard cell can be obtained by splicing at least one sub-circuit in the sub-circuit library; the driving capability of the target sub-circuit combination is the same as the driving capability of the standard cell to be drawn, and the circuit structure of the target sub-circuit combination is the same as the circuit structure described in the hardware description language; based on the target sub-circuit combination, obtaining the layout of the standard cell to be drawn.
[0006] In the embodiment of the present application, by presetting a subcircuit library, the corresponding target subcircuit combination of the standard cell to be drawn can be obtained based on the total subcircuit combination of the subcircuit library, and then the layout of the standard cell to be drawn can be obtained based on the target subcircuit combination. There is no need to manually draw the layout of the standard cell, so the generation efficiency of the standard cell layout can be improved.
[0007] In combination with the technical solution provided in the first aspect above, in some possible implementations, each subcircuit of the subcircuit library has at least one circuit structure netlist file, and multiple circuit structure netlist files corresponding to the same subcircuit have different driving capabilities; the target subcircuit combination includes: the subcircuit and the circuit structure netlist file of the entire target subcircuit combination; based on the hardware description language and driving capability of the standard unit to be drawn, at least one subcircuit is extracted from the preset subcircuit library to obtain the target subcircuit combination corresponding to the standard unit to be drawn, including: extracting at least one subcircuit that can be combined to obtain the circuit structure of the standard unit to be drawn from the subcircuit library to obtain the subcircuit possessed by the target subcircuit combination; obtaining the target circuit structure netlist file that matches the driving capability of the standard unit to be drawn from the circuit structure netlist file of the at least one subcircuit; merging the target circuit structure netlist file of the at least one subcircuit, and adding the connection relationship between the at least one subcircuit according to the circuit structure described by the hardware description language of the standard unit to be drawn, to obtain the circuit structure netlist file of the target subcircuit combination.
[0008] In the embodiment of the present application, since the same subcircuit in the subcircuit library can have multiple circuit structure netlist files corresponding to different driving capabilities, even the same subcircuit combination can have different driving capabilities, so that standard cells with different driving capabilities can be generated through this solution, thereby improving the scope of application of this solution. In addition, by first determining multiple voltage circuits corresponding to the circuit structure of the standard cell to be drawn, the hardware description language of the standard cell to be drawn can be satisfied; and then determining the circuit structure netlist file of the subcircuit, so that the driving capability of the target subcircuit combination finally obtained matches the driving capability of the standard cell to be drawn, therefore, the target subcircuit combination finally obtained is the circuit of the standard cell to be drawn, so that the physical layout obtained based on the target subcircuit combination can correspond to the standard cell to be drawn, thereby improving the accuracy of this solution.
[0009] In combination with the technical solution provided in the first aspect above, in some possible implementations, each of the sub-circuits includes multiple physical layouts, and the multiple physical layouts are generated according to the circuit structure netlist files of the sub-circuit, and N physical layouts corresponding to N types of standard cell layout frameworks are generated for each circuit structure netlist file, where N is a positive integer; based on the target sub-circuit combination, the layout of the standard cell to be drawn is obtained, including: obtaining the target physical layout of each sub-circuit of the target sub-circuit combination; the target physical layout is a physical layout generated according to the target circuit structure netlist file that matches the driving capability of the standard cell to be drawn; according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination, the target physical layouts of each sub-circuit are spliced into the layout of the standard cell to be drawn.
[0010] In an embodiment of the present application, after determining the target sub-circuit combination, the target physical layouts of the corresponding sub-circuits can be spliced according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination to obtain the layout of the standard unit to be drawn, without the need to manually draw the layout of the standard unit, thereby improving the generation efficiency of the standard unit layout.
[0011] In combination with the technical solution provided in the first aspect above, in some possible implementations, N is a constant greater than or equal to 2; according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination, the target physical layout of each sub-circuit is spliced into the layout of the standard cell to be drawn, including: for the N types of standard cell layout frameworks: the target physical layout corresponding to the same type of standard cell layout framework in each sub-circuit is spliced according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination, to obtain N layouts of the standard cell to be drawn.
[0012] In the embodiment of the present application, since each circuit structure netlist file of the subcircuit corresponds to N physical layouts, through this solution, the layout of the standard cell to be drawn under N different standard cell layout frameworks can be obtained, and there is no need to manually draw the standard cell layout for each standard cell layout framework, thereby improving the generation efficiency of the standard cell layout.
[0013] In combination with the technical solution provided in the first aspect above, in some possible implementations, after obtaining N layouts of the standard unit to be drawn, the method further includes: according to the characteristic data of each of the N layouts, selecting from the N layouts a target layout whose characteristic data best meets the requirements of the standard unit to be drawn as the final layout of the standard unit to be drawn; wherein the characteristic data characterizes the circuit characteristics of the entire circuit corresponding to the layout.
[0014] In the embodiment of the present application, due to the circuit characteristics of the entire circuit corresponding to the characteristic data standard layout, the layout whose characteristic data best meets the requirements of the standard unit to be drawn is used as the final layout of the standard unit to be drawn, so that the final layout can better meet the actual usage requirements of the standard unit to be drawn.
[0015] In combination with the technical solution provided in the first aspect above, in some possible implementations, after obtaining the N layouts of the standard cell to be drawn, the method further includes: for each of the N layouts, based on the respective characteristic data of all target physical layouts constituting the layout, calculating the characteristic data of the layout; storing each of the N layouts and the characteristic data corresponding to each layout in a preset standard cell library.
[0016] In the embodiment of the present application, the characteristic data of the layout can be calculated by the characteristic data of the target physical layout, thereby reducing the difficulty of calculating the characteristic data of the standard cell to be drawn. At the same time, each layout and the characteristic data corresponding to each layout are stored in a preset standard cell library, which can facilitate the subsequent direct call of the layout and characteristic data of the standard cell to be drawn, thereby improving the user experience.
[0017] In combination with the technical solution provided in the first aspect above, in some possible implementations, the standard cell library further includes a hardware description language and a circuit structure diagram of each standard cell.
[0018] In the embodiment of the present application, since the standard cell library also includes the hardware description language and circuit structure diagram of each standard cell, the standard cell library obtained by this solution can be applied to more scenarios, thereby improving the scope of application of this solution.
[0019] In combination with the technical solution provided in the first aspect above, in some possible implementations, each of the sub-circuits includes multiple physical layouts, and the multiple physical layouts are generated according to the circuit structure netlist files of the sub-circuit, and N physical layouts corresponding to N standard cell layout frameworks are generated for each circuit structure netlist file, where N is a positive integer; based on the target sub-circuit combination, the layout of the standard cell to be drawn is obtained, including: for each standard cell layout framework, according to the characteristic data of each sub-circuit of the target sub-circuit combination and the framework parameters of the standard cell layout framework, determining the characteristic data of the target sub-circuit combination under the standard cell layout framework ; The characteristic data of the sub-circuit represents the circuit characteristics of the sub-circuit; the characteristic data of the target sub-circuit combination represents the circuit characteristics of the target sub-circuit combination as a whole; select the target characteristic data whose characteristic data best meets the requirements of the standard cell to be drawn from the characteristic data of the target sub-circuit combination under the N standard cell layout frameworks; splice the target physical layout corresponding to the target standard cell layout framework in each sub-circuit according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination to obtain the layout of the standard cell to be drawn; wherein the target standard cell layout framework is the standard cell layout framework corresponding to the target characteristic data.
[0020] In the embodiment of the present application, by determining the characteristic data of the target subcircuit combination under each standard cell layout framework, the target characteristic data whose characteristic data best meets the requirements of the standard cell to be drawn can be determined, and the standard cell layout framework corresponding to the target characteristic data is used as the target standard cell layout framework, and the layout of the target standard cell to be drawn under the target standard cell layout framework is used as the layout of the standard cell to be drawn. Therefore, only one layout splicing is required to obtain the layout of the standard cell to be drawn, which improves the efficiency of obtaining the standard cell layout.
[0021] In combination with the technical solution provided in the first aspect above, in some possible implementations, the characteristic data includes: layout area occupancy, number of virtual gates, parasitic resistance of each node in the sub-circuit, parasitic capacitance, delay time corresponding to the gate-level node to the sub-circuit port, flip time corresponding to the gate-level node to the sub-circuit port, dynamic power consumption corresponding to the gate-level node to the sub-circuit port, and static power consumption corresponding to the gate-level node state. At least one of the above.
[0022] In combination with the technical solution provided in the first aspect above, in some possible implementations, based on the target sub-circuit combination, a layout of the standard cell to be drawn is obtained, including: generating a layout of the standard cell to be drawn according to a circuit structure netlist file of the target sub-circuit combination based on a layout automatic layout and routing tool.
[0023] In the embodiment of the present application, the layout of the standard cell to be drawn is directly generated according to the layout automatic layout and routing tool, without the need for manual drawing, thereby improving the efficiency of obtaining the standard cell layout.
[0024] In a second aspect, the present application provides a method for establishing a standard cell library, comprising: obtaining a layout of standard cells to be drawn according to the method described in the first aspect and / or any possible implementation manner of the first aspect; and constructing a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn.
[0025] In the embodiment of the present application, the standard cell layout generation method can eliminate the need to manually draw the layout of the standard cell, thereby improving the generation efficiency of the standard cell layout, so that the standard cell library can be constructed conveniently and quickly.
[0026] In combination with the technical solution provided in the second aspect above, in some possible implementations, the sub-circuit library also includes feature data of each physical layout of the sub-circuit, and based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, a standard cell library is constructed, including: for each layout of a standard cell to be drawn, based on the feature data of each target physical layout constituting the layout, the feature data of the layout is calculated; based on the obtained layout and feature data of each standard cell to be drawn, and the hardware description language of each standard cell to be drawn, the standard cell library is constructed.
[0027] In the embodiment of the present application, the characteristic data of the layout is calculated by the characteristic data of the target physical layout, which reduces the difficulty of calculating the characteristic data of the standard cell to be drawn. Each layout and the characteristic data corresponding to each layout are stored in a preset standard cell library, which is convenient for subsequent direct call of the layout and characteristic data of the standard cell to be drawn, thereby improving the user experience.
[0028] In combination with the technical solution provided in the second aspect above, in some possible implementations, before constructing a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, the method also includes: obtaining a circuit structure diagram of each standard cell to be drawn; accordingly, constructing a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, including: constructing the standard cell library based on the obtained layout and feature data of each standard cell to be drawn, as well as the hardware description language and circuit structure diagram of each standard cell to be drawn.
[0029] In the embodiment of the present application, since the constructed standard cell library includes the hardware description language and circuit structure diagram of the standard cell to be drawn, the standard cell library obtained by this solution can be applied to more scenarios, thereby improving the scope of application of this solution.
[0030] In a third aspect, the present application provides a sub-circuit library, comprising: multiple sub-circuits, each sub-circuit having at least one circuit structure netlist file, and the multiple circuit structure netlist files corresponding to the same sub-circuit have different driving capabilities; the same circuit structure netlist file corresponds to a physical layout under at least one standard cell layout framework; wherein each of the sub-circuit is a circuit composed of at least one transistor, and any standard cell can be obtained by splicing at least one sub-circuit in the sub-circuit library.
[0031] In combination with the technical solution provided in the second aspect above, in some possible implementations, the sub-circuit library also includes feature data of each physical layout.
[0032] In combination with the technical solution provided in the second aspect above, in some possible implementations, the multiple voltage circuits in the sub-circuit library are divided into an N-type transistor sub-circuit library and a P-type transistor sub-circuit library according to the type of transistors included in the sub-circuit; wherein each sub-circuit included in the N-type transistor sub-circuit library only includes N-type transistors, and each sub-circuit included in the P-type transistor sub-circuit library only includes P-type transistors.
[0033] In combination with the technical solution provided in the second aspect above, in some possible implementations, the sub-circuit library also includes a circuit structure diagram of each sub-circuit.
[0034] In a fourth aspect, the present application provides a standard cell layout generation device, comprising: a first processing module and a second processing module; the first processing module is used to extract at least one sub-circuit from a preset sub-circuit library based on the hardware description language and driving capability of the standard cell to be drawn, and obtain the corresponding target sub-circuit combination of the standard cell to be drawn; wherein the sub-circuit library includes multiple sub-circuits, each of the sub-circuits is a circuit composed of at least one transistor, and any standard cell can be obtained by splicing at least one sub-circuit in the sub-circuit library; the driving capability of the target sub-circuit combination is the same as the driving capability of the standard cell to be drawn, and the circuit structure of the target sub-circuit combination is the same as the circuit structure described in the hardware description language; the second processing module is used to obtain the layout of the standard cell to be drawn based on the target sub-circuit combination.
[0035] In a fifth aspect, the present application provides a device for establishing a standard cell library, comprising: an acquisition module, used to obtain a layout of the standard cell to be drawn according to the method described in the first aspect and / or any possible implementation method of the first aspect; a third processing module, used to construct a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn.
[0036] In a sixth aspect, the present application provides an electronic device, comprising: a memory and a processor, the memory and the processor being connected; the memory being used to store programs; the processor being used to call the programs stored in the memory to execute the method described in the first aspect above and / or in combination with any possible implementation of the first aspect above; and / or, to execute the method described in the second aspect above and / or in combination with any possible implementation of the second aspect above.
[0037] In a seventh aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computer, it executes the method described in the first aspect above and / or in combination with any possible implementation of the first aspect above, and / or executes the method described in the second aspect above and / or in combination with any possible implementation of the second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A schematic diagram of a flow chart of a method for generating a standard cell layout according to an embodiment of the present application;
[0040] Figure 2 A schematic diagram of a sub-circuit library shown in an embodiment of the present application;
[0041] Figure 3 A sub-circuit structure table shown in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of a flow chart of a method for generating a standard cell layout according to an embodiment of the present application;
[0043] Figure 5 A schematic diagram of a process for establishing a standard cell library shown in an embodiment of the present application;
[0044] Figure 6A schematic diagram of an association relationship between a sub-circuit library and a standard cell library shown in an embodiment of the present application;
[0045] Figure 7 A schematic diagram of generating a standard cell library based on a sub-circuit library according to an embodiment of the present application;
[0046] Figure 8 A structural block diagram of a standard cell layout generation device shown in an embodiment of the present application;
[0047] Fig. 9 A structural block diagram of a standard cell library creation device shown in an embodiment of the present application;
[0048] Fig.10 A structural block diagram of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0050] It should be noted that similar numbers and letters represent similar items in the following figures, so once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of this application, relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0051] The technical solution of the present application will be described in detail below with reference to the accompanying drawings.
[0052] See also Figure 1 , Figure 1 This is a flow chart of a method for generating a standard cell layout according to an embodiment of the present application. Figure 1 Describe the steps it involves.
[0053] S100: extracting at least one sub-circuit from a preset sub-circuit library based on the hardware description language and driving capability of the standard cell to be drawn, and obtaining a corresponding target sub-circuit combination of the standard cell to be drawn.
[0054] Among them, the sub-circuit library includes multiple sub-circuits, each sub-circuit is a circuit composed of at least one transistor, and any standard unit can be spliced according to at least one sub-circuit in the sub-circuit library; the driving capability of the target sub-circuit combination is the same as the driving capability of the standard unit to be drawn, and the circuit structure of the target sub-circuit combination is the same as the circuit structure described in the hardware description language.
[0055] In one implementation, each subcircuit in the subcircuit library has at least one circuit structure netlist file, and multiple circuit structure netlist files corresponding to the same subcircuit have different driving capabilities; the target subcircuit combination includes: the subcircuit and the circuit structure netlist file of the entire target subcircuit combination.
[0056] The driving capability includes various parameters of transistors constituting the voltage circuit, such as the size and threshold voltage of the transistors.
[0057] Based on this, based on the hardware description language and driving capability of the standard unit to be drawn, at least one sub-circuit is extracted from a preset sub-circuit library, and the specific method for obtaining the corresponding target sub-circuit combination of the standard unit to be drawn can be: first, at least one sub-circuit that can be combined to obtain the circuit structure of the standard unit to be drawn is extracted from the sub-circuit library to obtain the sub-circuit possessed by the target sub-circuit combination; then, from the circuit structure netlist file of at least one sub-circuit, a target circuit structure netlist file that matches the driving capability of the standard unit to be drawn is obtained; finally, the target circuit structure netlist file of at least one sub-circuit is merged, and the connection relationship between at least one sub-circuit is added according to the circuit structure described by the hardware description language of the standard unit to be drawn, to obtain the circuit structure netlist file of the target sub-circuit combination.
[0058] Since the same subcircuit in the subcircuit library can have multiple circuit structure netlist files corresponding to different driving capabilities, even the same subcircuit combination can have different driving capabilities, so that standard cells with different driving capabilities can be generated through this solution, thereby improving the scope of application of this solution. In addition, by first determining multiple voltage circuits corresponding to the circuit structure of the standard cell to be drawn, the hardware description language of the standard cell to be drawn can be satisfied; and then determining the circuit structure netlist file of the subcircuit, so that the driving capability of the final target subcircuit combination matches the driving capability of the standard cell to be drawn, therefore, the final target subcircuit combination is the circuit of the standard cell to be drawn, so that the subsequent physical layout based on the target subcircuit combination can correspond to the standard cell to be drawn, thereby improving the accuracy of this solution.
[0059] Optionally, at least one sub-circuit that can be combined to obtain the circuit structure of the standard unit to be drawn is extracted from the sub-circuit library, and the sub-circuit possessed by the target sub-circuit combination is obtained by randomly combining the sub-circuits in the sub-circuit library to obtain multiple initial sub-circuit combinations, and then screening out sub-circuit combinations whose number of transistors is consistent with the number of transistors included in the hardware description language and whose transistor connection method is consistent with the hardware description language.
[0060] Among the sub-circuit combinations obtained in this way, there may be multiple sub-circuit combinations that satisfy the hardware description language. Optionally, a sub-circuit combination can be screened out from the multiple sub-circuit combinations that satisfy the hardware description language as the target sub-circuit combination.
[0061] For example, a sub-circuit combination may be randomly selected from the multiple sub-circuit combinations satisfying the hardware description language as the target sub-circuit combination; or, a sub-circuit combination including the least sub-circuits may be selected as the target sub-circuit combination.
[0062] Alternatively, the circuit structure described in the hardware description language may be segmented first, and then the multiple circuit structures obtained by segmentation may be matched from a sub-circuit library to determine the sub-circuits of the target sub-circuit combination.
[0063] There are multiple ways to segment the circuit structure described in the hardware description language. Therefore, the circuit structure obtained by each segmentation method can be matched from the sub-circuit library. In this way, there may be multiple sub-circuit combinations. Optionally, a sub-circuit combination can be selected from the multiple sub-circuit combinations that meet the hardware description language as the target sub-circuit combination.
[0064] For example, a sub-circuit combination may be randomly selected from the multiple sub-circuit combinations satisfying the hardware description language as the target sub-circuit combination; or, a sub-circuit combination including the least sub-circuits may be selected as the target sub-circuit combination.
[0065] Optionally, a specific implementation method of obtaining a target circuit structure netlist file that matches the driving capability of the standard unit to be drawn from the circuit structure netlist file of at least one sub-circuit may be: determining the driving capability of each sub-circuit of the target sub-circuit combination according to the driving capability of the standard unit to be drawn, and then determining the target circuit structure netlist file from multiple circuit structure netlist files corresponding to the sub-circuit according to the driving capability of each sub-circuit.
[0066] Alternatively, the specific implementation method of obtaining the target circuit structure netlist file matching the driving capability of the standard cell to be drawn from the circuit structure netlist file of at least one sub-circuit may also be: randomly combining the circuit structure netlist files corresponding to each sub-circuit included in the target sub-circuit combination to obtain multiple initial netlist files, and then screening out the initial netlist files having the same driving capability as the standard cell to be drawn from the multiple initial netlist files as the netlist file of the target sub-circuit combination. Accordingly, the circuit structure netlist files of each sub-circuit included in the screened initial netlist files are the target circuit structure netlist files matching the driving capability of the standard cell to be drawn.
[0067] S200: Based on the target sub-circuit combination, a layout of the standard cell to be drawn is obtained.
[0068] After obtaining the target sub-circuit combination according to the above method, the layout of the standard cell to be drawn can be obtained in the following three implementation methods.
[0069] In the first implementation, the specific implementation of obtaining the layout of the standard cell to be drawn based on the target sub-circuit combination can be: based on the layout automatic layout and routing tool, the layout of the standard cell to be drawn is generated according to the circuit structure netlist file of the target sub-circuit combination.
[0070] By using the existing layout automatic layout and routing tools that can draw the layout according to the netlist file, the layout of the standard unit to be drawn is directly generated according to the circuit structure netlist file of the target sub-circuit combination. No manual drawing is required, which improves the efficiency of obtaining the standard unit layout.
[0071] In the second implementation mode, each subcircuit includes multiple physical layouts, and the multiple physical layouts are generated according to each circuit structure netlist file of the subcircuit, and N physical layouts corresponding to N standard cell layout frameworks are generated for each circuit structure netlist file, where N is a positive integer. Based on the target subcircuit combination, the specific method for obtaining the layout of the standard cell to be drawn can be: first obtain the target physical layout of each subcircuit possessed by the target subcircuit combination; the target physical layout is a physical layout generated according to the target circuit structure netlist file that matches the driving capability of the standard cell to be drawn. Then, according to the connection relationship between the subcircuits specified in the circuit structure netlist file of the target subcircuit combination, the target physical layouts of each subcircuit are spliced into the layout of the standard cell to be drawn.
[0072] The standard cell layout frame may include a standard cell height and a height multiple. Different standard cell layout frames may have different standard cell heights and / or height multiples.
[0073] For ease of understanding, take N=2, the target sub-circuit combination includes sub-circuit 1, sub-circuit 2, and sub-circuit 3, sub-circuit 1 corresponds to circuit structure netlist file 11, circuit structure netlist file 12, sub-circuit 2 corresponds to circuit structure netlist file 21, circuit structure netlist file 22, and sub-circuit 3 corresponds to circuit structure netlist file 31, circuit structure netlist file 32 as an example for explanation. If the circuit structure netlist file of the target sub-circuit combination is constructed according to circuit structure netlist file 11, circuit structure netlist file 21, and circuit structure netlist file 31, then the layout of the standard unit to be drawn is obtained by splicing the physical layout 11 corresponding to the circuit structure netlist file 11, the physical layout 21 corresponding to the circuit structure netlist file 21, and the physical layout 31 corresponding to the circuit structure netlist file 31. The examples here are only for ease of understanding and should not be used as limitations on this application.
[0074] Optionally, the N physical layouts corresponding to the circuit structure netlist file under the N standard cell layout frameworks may be drawn manually, or may be automatically generated according to the circuit structure netlist file based on a layout automatic placement and routing tool.
[0075] In one implementation mode, N is a constant greater than or equal to 2; according to the connection relationship between sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination, the specific method of splicing the target physical layout of each sub-circuit into the layout of the standard unit to be drawn can be: for N kinds of standard unit layout frameworks: splicing the target physical layout corresponding to the same standard unit layout framework in each sub-circuit according to the connection relationship between sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination, to obtain N layouts of the standard unit to be drawn.
[0076] For ease of understanding, with N=2, the circuit structure netlist file of the target subcircuit combination is composed of circuit structure netlist file 1, circuit structure netlist file 2, and circuit structure netlist file 3, and in the first standard cell layout framework, circuit structure netlist file 1 corresponds to physical layout 11, circuit structure netlist file 2 corresponds to physical layout 21, and circuit structure netlist file 3 corresponds to physical layout 31. In the second standard cell layout framework, circuit structure netlist file 1 corresponds to physical layout 12, circuit structure netlist file 2 corresponds to physical layout 22, and circuit structure netlist file 3 corresponds to physical layout 32.
[0077] Then, the physical layout 11, the physical layout 21, and the physical layout 31 are spliced to obtain the layout of the standard unit to be drawn under the first standard unit layout framework. And the physical layout 12, the physical layout 22, and the physical layout 32 are spliced to obtain the layout of the standard unit to be drawn under the second standard unit layout framework. Two layouts of the standard unit to be drawn are obtained. The examples here are only for ease of understanding and should not be used as limitations on this application.
[0078] In one implementation manner, after obtaining N layouts of the standard cell to be drawn, one layout may be selected from the N layouts as the final layout of the standard cell to be drawn.
[0079] Optionally, a layout may be randomly selected from the N layouts of the standard cell to be drawn as the final layout of the standard cell to be drawn.
[0080] Alternatively, based on the characteristic data of each of the N layouts, a target layout whose characteristic data best meets the requirements of the standard cell to be drawn can be selected from the N layouts as the final layout of the standard cell to be drawn. The characteristic data represents the circuit characteristics of the entire circuit corresponding to the layout.
[0081] The characteristic data of each of the N layouts of the standard cell to be drawn can be obtained from each layout, or can be calculated from the characteristic data corresponding to each of all the target physical layouts corresponding to each layout. The characteristic data corresponding to the target physical layout is obtained in advance based on the target physical layout.
[0082] Among them, the specific method of obtaining the characteristic data corresponding to the layout according to the layout, and the specific method of calculating the characteristic data of the large circuit according to the characteristic data of multiple small circuits constituting the large circuit are already well known to those skilled in the art and will not be repeated here for the sake of brief description.
[0083] Optionally, the characteristic data may include: layout area occupancy, number of virtual gates, parasitic resistance of each node in the sub-circuit, parasitic capacitance, delay time corresponding to the gate-level node to the sub-circuit port, flip time corresponding to the gate-level node to the sub-circuit port, dynamic power consumption corresponding to the gate-level node to the sub-circuit port, and static power consumption corresponding to the gate-level node state.
[0084] Correspondingly, when a target layout whose characteristic data best meets the requirements of the standard cell to be drawn is selected from N layouts as the final layout of the standard cell to be drawn, the characteristic data may be one or more of the above, which is not limited here.
[0085] In the third implementation mode, each subcircuit includes multiple physical layouts, and the multiple physical layouts are generated according to the circuit structure netlist files of the subcircuit, and N physical layouts corresponding to N standard cell layout frameworks are generated for each circuit structure netlist file, where N is a positive integer. In this case, based on the target subcircuit combination, the specific method for obtaining the layout of the standard cell to be drawn can be: first, for each standard cell layout framework, according to the characteristic data of each subcircuit possessed by the target subcircuit combination and the framework parameters of the standard cell layout framework, the characteristic data of the target subcircuit combination under the standard cell layout framework is determined; the characteristic data of the subcircuit characterizes the circuit characteristics of the subcircuit; the characteristic data of the target subcircuit combination characterizes the circuit characteristics of the target subcircuit combination as a whole. Then, from the characteristic data of the target subcircuit combination under the N standard cell layout frameworks, the target characteristic data whose characteristic data best meets the requirements of the standard cell to be drawn is selected. Finally, the target physical layout corresponding to the target standard cell layout framework in each subcircuit is spliced according to the connection relationship between the subcircuits specified in the circuit structure netlist file of the target subcircuit combination to obtain the layout of the standard cell to be drawn. The target standard cell layout framework is a standard cell layout framework corresponding to the target feature data.
[0086] For ease of understanding, with N=2, the circuit structure netlist file of the target subcircuit combination is composed of circuit structure netlist file 1, circuit structure netlist file 2, and circuit structure netlist file 3, and in the first standard cell layout framework, circuit structure netlist file 1 corresponds to physical layout 11, circuit structure netlist file 2 corresponds to physical layout 21, and circuit structure netlist file 3 corresponds to physical layout 31. In the second standard cell layout framework, circuit structure netlist file 1 corresponds to physical layout 12, circuit structure netlist file 2 corresponds to physical layout 22, and circuit structure netlist file 3 corresponds to physical layout 32.
[0087] According to the characteristic data corresponding to each of the physical layout 11, the physical layout 21, and the physical layout 31, the characteristic data of the standard unit to be drawn under the first standard unit layout framework are calculated. Similarly, according to the characteristic data corresponding to each of the physical layout 12, the physical layout 22, and the physical layout 32, the characteristic data of the standard unit to be drawn under the second standard unit layout framework are calculated. If the characteristic data of the standard unit to be drawn under the second standard unit layout framework is more in line with the target characteristic data required by the standard unit to be drawn than the characteristic data of the standard unit to be drawn under the first standard unit layout framework. Then the second standard unit layout framework is determined to be the target standard unit layout framework, and therefore, the physical layout 12, the physical layout 22, and the physical layout 32 are spliced according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination to obtain the layout of the standard unit to be drawn. The examples here are only for ease of understanding and should not be used as limitations on this application.
[0088] In one implementation, after obtaining N layouts of the standard cell to be drawn, the characteristic data of each layout in the N layouts can be calculated based on the characteristic data of all target physical layouts constituting the layout. Each layout in the N layouts and the characteristic data corresponding to each layout are stored in a preset standard cell library.
[0089] The characteristic data of the layout can be calculated through the characteristic data of the target physical layout, thereby reducing the difficulty of calculating the characteristic data of the standard unit to be drawn. At the same time, each layout and the characteristic data corresponding to each layout are stored in the preset standard cell library, which can facilitate the subsequent direct call of the layout and characteristic data of the standard unit to be drawn, improving the user experience.
[0090] Optionally, the standard cell library also includes a hardware description language and a circuit structure diagram of each standard cell.
[0091] Since the standard cell library also includes the hardware description language and circuit structure diagram of each standard cell, the standard cell library obtained by this solution can be applied to more scenarios, thereby improving the scope of application of this solution.
[0092] In one implementation, a subcircuit library may be constructed by first obtaining the circuit structure of each subcircuit; then generating multiple circuit structure netlist files based on each circuit structure, wherein different circuit structure netlist files corresponding to the same circuit structure have different corresponding driving capabilities. Then, for each circuit structure netlist file, obtain the physical layout of the subcircuit corresponding to the circuit structure netlist file under each standard cell layout framework; wherein the standard cell layout framework represents different process parameters. And for each physical layout, generate feature data corresponding to the physical layout.
[0093] The subcircuit library obtained based on this method includes four types of data: subcircuit structure, circuit structure netlist file, physical layout, and feature data. Figure 2 shown.
[0094] Optionally, the circuit structure of the subcircuit can be divided into two categories according to the different transistors: P-transistor circuit structure and N-transistor circuit structure. For ease of understanding, please refer to Figure 3 , Figure 3 An implementation method of a P-transistor circuit structure library and an N-transistor circuit structure library is shown. Figure 3 The sub-circuit structure library shown is only a specific implementation method shown in this application and should not be used as a limitation to this application.
[0095] Optionally, each physical layout in the subcircuit library can be classified according to the standard cell layout framework, and the physical layouts belonging to the same standard cell layout framework can be stored in the same data set, or multiple physical layouts belonging to the same subcircuit can be stored in the same data set.
[0096] Optionally, for each circuit structure netlist file, the specific implementation method of obtaining the physical layout of the sub-circuit corresponding to the circuit structure netlist file in each standard unit layout framework may be: manually drawing the physical layout of the circuit structure netlist file in each standard unit layout framework; or, it may be through a layout automatic layout and routing tool to generate the layout of the standard unit to be drawn according to the circuit structure netlist file.
[0097] Optionally, the subcircuit library may also include a layout framework file and a parasitic parameter file and a binary layout information file corresponding to each physical layout. The layout framework file, the parasitic parameter file and the binary layout information file can all be obtained according to the physical layout. The specific method and principle of obtaining the layout framework file, the parasitic parameter file and the binary layout information file according to the physical layout are well known to those skilled in the art, and will not be repeated here for the sake of brief description.
[0098] Optionally, after obtaining the physical layout of the circuit structure netlist file under each standard cell layout framework, each physical layout may be functionally verified to determine whether the physical layout can be used normally.
[0099] Optionally, after obtaining the physical layout of the circuit structure netlist file under each standard unit layout framework, each physical layout can also be optimized and iterated according to the set optimization requirements until the final physical layout meets the set optimization requirements.
[0100] The type of optimization requirement may be one or more of the above-mentioned characteristic data, and the specific type of optimization requirement is not limited here.
[0101] The specific method of optimizing the physical layout is well known to those skilled in the art and will not be described in detail here for the sake of brevity.
[0102] To understand the above standard cell layout generation method, please refer to Figure 4 , Figure 4 A schematic diagram of a flow chart of a method for generating a standard cell layout shown in the present application.
[0103] like Figure 4 As shown, first, at least one sub-circuit that can be combined to obtain the circuit structure of the standard cell to be drawn is extracted from the sub-circuit library to obtain the sub-circuit of the target sub-circuit combination.
[0104] Then, a target circuit structure netlist file matching the driving capability of the standard cell to be drawn is obtained from the circuit structure netlist file of at least one sub-circuit.
[0105] Then, the target circuit structure netlist file of at least one sub-circuit is merged, and the connection relationship between at least one sub-circuit is added according to the circuit structure described by the hardware description language of the standard unit to be drawn, so as to obtain the circuit structure netlist file of the target sub-circuit combination.
[0106] Then, a target physical layout of each sub-circuit of the target sub-circuit combination is obtained.
[0107] Finally, for N standard cell layout frameworks: the target physical layouts corresponding to the same standard cell layout framework in each sub-circuit are spliced according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination to obtain N layouts of the standard cells to be drawn.
[0108] For each of the N layouts, characteristic data of the layout is calculated based on the characteristic data of all target physical layouts constituting the layout.
[0109] Finally, according to the characteristic data of each of the N layouts, a target layout whose characteristic data best meets the requirements of the standard cell to be drawn is selected from the N layouts as the final layout of the standard cell to be drawn.
[0110] Based on the same technical concept, the present application also provides a method for establishing a standard cell library. The process of the method for establishing a standard cell library is as follows: Figure 5 shown.
[0111] S300: Obtaining a layout of a standard cell to be drawn.
[0112] Among them, the layout of the standard cell to be drawn is obtained by the aforementioned standard cell layout generation method. The specific method of obtaining the layout of the standard cell to be drawn by the aforementioned standard cell layout generation method has been clearly described in the previous text and will not be repeated here for the sake of brief description.
[0113] S400: constructing a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn.
[0114] Among them, the layout and hardware description language of the same standard cell to be drawn in the standard cell library can be associated; or, the layout and hardware description language of the same standard cell to be drawn in the standard cell library can be marked with a label corresponding to the standard cell to be drawn, and different standard cells to be drawn have different labels; or, the layout and hardware description language of the same standard cell to be drawn in the standard cell library can be stored in the same folder, wherein each standard cell to be drawn corresponds to a folder. The examples here are only for ease of understanding and should not be used as limitations to this application.
[0115] In one implementation, the subcircuit library also includes feature data of each physical layout of the subcircuit. Based on the layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, the specific method of constructing the standard cell library can be: first, for each layout of the standard cell to be drawn, based on the feature data of all target physical layouts constituting the layout, calculate the feature data of the layout. Then, based on the layout and feature data of each standard cell to be drawn, and the hardware description language of each standard cell to be drawn, construct the standard cell library.
[0116] The characteristic data of the layout is calculated by the characteristic data of the target physical layout, which reduces the difficulty of calculating the characteristic data of the standard unit to be drawn. Each layout and the characteristic data corresponding to each layout are stored in the preset standard unit library, which is convenient for direct calling of the layout and characteristic data of the standard unit to be drawn, improving the user experience.
[0117] In one implementation, before constructing a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, a circuit structure diagram of each standard cell to be drawn may be obtained first.
[0118] Correspondingly, based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, the specific process of constructing the standard cell library can be: based on the obtained layout and feature data of each standard cell to be drawn, as well as the hardware description language and circuit structure diagram of each standard cell to be drawn, construct the standard cell library.
[0119] Since the constructed standard cell library includes the hardware description language and circuit structure diagram of the standard cell to be drawn, the standard cell library obtained by this solution can be applied to more scenarios, thereby improving the scope of application of this solution.
[0120] To understand the relationship between subcircuit libraries and standard cell libraries, see Figure 6 .
[0121] like Figure 6 As shown, the hardware description language of the standard cell to be drawn determines the combination relationship of the sub-circuits (including the circuit structure diagram and physical layout of the sub-circuit) required by itself. Then, the circuit structure diagram and layout of each standard cell to be drawn can be obtained by combining the circuit structure diagram and physical layout of the sub-circuit. Among them, each sub-circuit structure in the sub-circuit library can include a typical combination of P-type transistors and a typical combination of N-type transistors.
[0122] After obtaining the circuit structure diagram and layout of the standard cell, the standard cell library can be obtained according to the circuit structure diagram, physical layout and hardware description language of the standard cell.
[0123] The method of generating a standard cell library based on a subcircuit library can be expressed as follows: Figure 7 As shown. The subcircuits constituting the standard cell are determined by the functions and driving capabilities required by the standard cell. And the target standard cell layout framework is determined according to the requirements of the standard cell characteristic data. Among them, the characteristic data of the layout composed of the physical layout corresponding to each voltage circuit under the target standard cell layout framework meets the requirements of the standard cell characteristic data.
[0124] After determining the requirements of the characteristic data of the target standard cell, the layout of the standard cell can be obtained based on the physical layout of the sub-circuit corresponding to the standard cell under the layout framework of the target standard cell. And the circuit structure diagram of the standard cell can be obtained based on the circuit structure diagram of the sub-circuit corresponding to the standard cell.
[0125] Based on the same technical concept, the present application also provides a sub-circuit library, which includes multiple voltage circuits.
[0126] Each subcircuit has at least one circuit structure netlist file, and multiple circuit structure netlist files corresponding to the same subcircuit have different driving capabilities; the same circuit structure netlist file corresponds to a physical layout under at least one standard unit layout framework.
[0127] Each subcircuit is a circuit composed of at least one transistor, and any standard unit can be obtained by splicing at least one subcircuit in the subcircuit library.
[0128] In one embodiment, the sub-circuit library also includes feature data for each physical layout.
[0129] Each layout and the feature data corresponding to each layout are stored in a preset standard cell library, which facilitates the subsequent direct call of the layout and feature data of the standard cell to be drawn, thereby improving the user experience.
[0130] The method of obtaining the characteristic data of the physical layout has been clearly described in the previous text, and will not be repeated here for the sake of simplicity.
[0131] In one embodiment, multiple voltage circuits in a sub-circuit library are divided into an N-type transistor sub-circuit library and a P-type transistor sub-circuit library according to the type of transistors included in the sub-circuit; wherein each sub-circuit included in the N-type transistor sub-circuit library only includes N-type transistors, and each sub-circuit included in the P-type transistor sub-circuit library only includes P-type transistors.
[0132] By dividing the multiple voltage circuits in the subcircuit library into an N-type transistor subcircuit library and a P-type transistor subcircuit library according to the types of transistors, it is convenient to quickly find the corresponding subcircuit during subsequent use.
[0133] In one implementation, the sub-circuit library also includes a circuit structure diagram of each sub-circuit.
[0134] Since the sub-circuit library also includes a circuit structure diagram of each sub-circuit, in subsequent use, the user can quickly determine the circuit structure and function of each sub-circuit through the circuit structure diagram of the sub-circuit, which is convenient for subsequent use.
[0135] Based on the same technical concept, the present application also provides a standard cell layout generation device, such as Figure 8 As shown, the standard cell layout generation device 100 includes a first processing module 110 and a second processing module 120 .
[0136] The first processing module 110 is used to extract at least one sub-circuit from a preset sub-circuit library based on the hardware description language and driving capability of the standard cell to be drawn, and obtain a corresponding target sub-circuit combination of the standard cell to be drawn; wherein the sub-circuit library includes multiple sub-circuits, each of the sub-circuits is a circuit composed of at least one transistor, and any standard cell can be obtained by splicing at least one sub-circuit in the sub-circuit library; the driving capability of the target sub-circuit combination is the same as the driving capability of the standard cell to be drawn, and the circuit structure of the target sub-circuit combination is the same as the circuit structure described in the hardware description language.
[0137] The second processing module 120 is used to obtain the layout of the standard cell to be drawn based on the target sub-circuit combination.
[0138] Each subcircuit in the subcircuit library has at least one circuit structure netlist file, and multiple circuit structure netlist files corresponding to the same subcircuit have different driving capabilities; the target subcircuit combination includes: the subcircuit and the circuit structure netlist file of the entire target subcircuit combination; the first processing module 110 is specifically used to extract at least one subcircuit that can be combined to obtain the circuit structure of the standard unit to be drawn from the subcircuit library, and obtain the subcircuit of the target subcircuit combination; from the circuit structure netlist file of the at least one subcircuit, obtain the target circuit structure netlist file that matches the driving capability of the standard unit to be drawn; merge the target circuit structure netlist file of the at least one subcircuit, and increase the connection relationship between the at least one subcircuit according to the circuit structure described in the hardware description language of the standard unit to be drawn, so as to obtain the circuit structure netlist file of the target subcircuit combination.
[0139] Each of the sub-circuits includes multiple physical layouts, and the multiple physical layouts are generated according to the circuit structure netlist files of the sub-circuit, and N physical layouts corresponding to N standard cell layout frameworks are generated for each circuit structure netlist file, where N is a positive integer; the second processing module 120 is specifically used to obtain the target physical layout of each sub-circuit possessed by the target sub-circuit combination; the target physical layout is a physical layout generated according to the target circuit structure netlist file that matches the driving capability of the standard cell to be drawn; according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination, the target physical layouts of each sub-circuit are spliced into the layout of the standard cell to be drawn.
[0140] N is a constant greater than or equal to 2; the second processing module 120 is specifically used for the N types of standard cell layout frameworks: the target physical layouts corresponding to the same type of standard cell layout framework in each sub-circuit are spliced according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination, to obtain N layouts of the standard cells to be drawn.
[0141] After obtaining the N layouts of the standard cell to be drawn, the second processing module 120 is further used to select a target layout whose characteristic data best meets the requirements of the standard cell to be drawn from the N layouts as the final layout of the standard cell to be drawn according to the characteristic data of each of the N layouts; wherein the characteristic data represents the circuit characteristics of the entire circuit corresponding to the layout.
[0142] Each of the sub-circuits includes a plurality of physical layouts, and the plurality of physical layouts are generated according to each circuit structure netlist file of the sub-circuit, and N physical layouts corresponding to N standard cell layout frameworks are generated for each circuit structure netlist file, where N is a positive integer; the second processing module 120 is specifically used to determine the characteristic data of the target sub-circuit combination under the standard cell layout framework according to the characteristic data of each sub-circuit possessed by the target sub-circuit combination and the framework parameters of the standard cell layout framework for each standard cell layout framework; the characteristic data of the sub-circuit represents the circuit characteristics of the sub-circuit; The characteristic data of the target sub-circuit combination characterizes the circuit characteristics of the target sub-circuit combination as a whole; the target characteristic data whose characteristic data best meets the requirements of the standard cell to be drawn is selected from the characteristic data of the target sub-circuit combination under the N standard cell layout frameworks; the target physical layout corresponding to the target standard cell layout framework in each sub-circuit is spliced according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination to obtain the layout of the standard cell to be drawn; wherein the target standard cell layout framework is the standard cell layout framework corresponding to the target characteristic data.
[0143] In one implementation mode, the characteristic data includes at least one of: layout area occupancy, number of virtual gates, parasitic resistance of each node in the subcircuit, parasitic capacitance, delay time corresponding to the gate-level node to the subcircuit port, flip time corresponding to the gate-level node to the subcircuit port, dynamic power consumption corresponding to the gate-level node to the subcircuit port, and static power consumption corresponding to the gate-level node state.
[0144] The second processing module 120 is specifically configured to generate a layout of the standard cell to be drawn according to the circuit structure netlist file of the target sub-circuit combination based on a layout automatic placement and routing tool.
[0145] The standard cell layout generation device 100 provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned standard cell layout generation method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned standard cell layout generation method embodiment.
[0146] Based on the same technical concept, the present application also provides a standard cell library establishment device, such as Fig. 9 As shown, the standard cell library building device 200 includes an acquisition module 210 and a third processing module 220 .
[0147] The acquisition module 210 is used to obtain the layout of the standard cell to be drawn according to the above-mentioned standard cell layout generation method.
[0148] The third processing module 220 is used to construct a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn.
[0149] The sub-circuit library also includes characteristic data of each physical layout of the sub-circuit. The third processing module 220 is specifically used to calculate the characteristic data of each layout of the standard cell to be drawn based on the characteristic data of all the target physical layouts constituting the layout; and construct the standard cell library based on the obtained layout and characteristic data of each standard cell to be drawn, as well as the hardware description language of each standard cell to be drawn.
[0150] Before constructing the standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, the acquisition module 210 is also used to obtain the circuit structure diagram of each standard cell to be drawn. Accordingly, the third processing module 220 is specifically used to construct the standard cell library based on the obtained layout and feature data of each standard cell to be drawn, and the hardware description language and circuit structure diagram of each standard cell to be drawn.
[0151] See also Fig.10 , which is an electronic device 300 provided in an embodiment of the present application. The electronic device 300 includes: a processor 310 and a memory 320.
[0152] The memory 320 and the processor 310 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The memory 320 is used to store computer programs, such as Figure 8 The software function modules shown in the figure, namely the standard cell layout generation device 100; and / or, storing Fig. 9 The software function module shown in the figure is the standard cell library establishment device 200. The standard cell layout generation device 100 and the standard cell library establishment device 200 each include at least one software function module that can be stored in the memory 320 in the form of software or firmware or fixed in the operating system (OS) of the electronic device 300.
[0153] The processor 310 is used to execute the executable modules stored in the memory 320, such as the software function modules or computer programs included in the standard cell layout generation device 100. At this time, the processor 310 is used to extract at least one sub-circuit from the preset sub-circuit library based on the hardware description language and driving capability of the standard cell to be drawn, and obtain the corresponding target sub-circuit combination of the standard cell to be drawn; wherein the sub-circuit library includes multiple sub-circuits, each of which is a circuit composed of at least one transistor, and any standard cell can be obtained by splicing at least one sub-circuit in the sub-circuit library; the driving capability of the target sub-circuit combination is the same as the driving capability of the standard cell to be drawn, and the circuit structure of the target sub-circuit combination is the same as the circuit structure described in the hardware description language; based on the target sub-circuit combination, the layout of the standard cell to be drawn is obtained.
[0154] Alternatively, the processor 310 is used to execute an executable module stored in the memory 320, such as a software function module or a computer program included in the standard cell library building device 200. At this time, the processor 310 is used to obtain a layout of a standard cell to be drawn according to the standard cell layout generation method; and to build a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn.
[0155] Among them, the memory 320 can be, but is not limited to, RAM (Random Access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc.
[0156] The processor 310 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a CPU (Central Processing Unit), an NP (Network Processor), etc.; it may also be a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor or the processor 310 may also be any conventional processor, etc.
[0157] The electronic device 300 mentioned above includes but is not limited to a personal computer, a server, etc.
[0158] The embodiment of the present application also provides a computer-readable storage medium (hereinafter referred to as storage medium), on which a computer program is stored, and when the computer program is run by a computer such as the above-mentioned electronic device 300, the standard cell layout generation method shown above is executed. The computer-readable storage medium includes: a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and other media that can store program codes.
[0159] 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 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 method for generating a standard cell layout, characterized in that: include: Based on the hardware description language and driving capability of the standard cell to be drawn, at least one subcircuit is extracted from a preset subcircuit library to obtain a corresponding target subcircuit combination of the standard cell to be drawn; wherein the subcircuit library includes a plurality of subcircuits, each of which is a circuit composed of at least one transistor, and any standard cell can be obtained by splicing at least one subcircuit in the subcircuit library; the driving capability of the target subcircuit combination is the same as the driving capability of the standard cell to be drawn, and the circuit structure of the target subcircuit combination is the same as the circuit structure described in the hardware description language; Based on the target sub-circuit combination, a layout of the standard cell to be drawn is obtained.
2. The method according to claim 1, characterized in that Each subcircuit of the subcircuit library has at least one circuit structure netlist file, and multiple circuit structure netlist files corresponding to the same subcircuit have different driving capabilities; The target sub-circuit combination includes: the sub-circuits possessed and the circuit structure netlist file of the entire target sub-circuit combination; Based on the hardware description language and driving capability of the standard cell to be drawn, at least one sub-circuit is extracted from a preset sub-circuit library to obtain a corresponding target sub-circuit combination of the standard cell to be drawn, including: Extracting at least one sub-circuit that can be combined to obtain the circuit structure of the standard cell to be drawn from the sub-circuit library, and obtaining the sub-circuit of the target sub-circuit combination; Acquire a target circuit structure netlist file matching the driving capability of the standard cell to be drawn from the circuit structure netlist file of the at least one sub-circuit; The target circuit structure netlist file of the at least one sub-circuit is merged, and the connection relationship between the at least one sub-circuit is increased according to the circuit structure described by the hardware description language of the standard unit to be drawn, so as to obtain the circuit structure netlist file of the target sub-circuit combination.
3. The method according to claim 2, characterized in that Each of the sub-circuits includes a plurality of physical layouts, and the plurality of physical layouts are generated according to each circuit structure netlist file of the sub-circuit, and N physical layouts corresponding to N types of standard cell layout frameworks are generated for each circuit structure netlist file, where N is a positive integer; Based on the target sub-circuit combination, a layout of the standard cell to be drawn is obtained, including: Acquire a target physical layout of each sub-circuit of the target sub-circuit combination; the target physical layout is a physical layout generated according to a target circuit structure netlist file matching the driving capability of the standard cell to be drawn; According to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination, the target physical layouts of the sub-circuits are spliced into the layout of the standard unit to be drawn.
4. The method according to claim 3, characterized in that N is a constant greater than or equal to 2; According to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination, the target physical layout of each sub-circuit is spliced into the layout of the standard unit to be drawn, including: For the N standard cell layout frameworks: the target physical layouts corresponding to the same standard cell layout framework in each sub-circuit are spliced according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination to obtain N layouts of the standard cells to be drawn.
5. The method according to claim 4, characterized in that After obtaining the N layouts of the standard cells to be drawn, the method further includes: According to the characteristic data of each of the N layouts, a target layout whose characteristic data best meets the requirements of the standard cell to be drawn is selected from the N layouts as the final layout of the standard cell to be drawn; wherein the characteristic data represents the circuit characteristics of the entire circuit corresponding to the layout.
6. The method according to claim 4, characterized in that After obtaining the N layouts of the standard cells to be drawn, the method further includes: For each of the N layouts, characteristic data of the layout is calculated based on the characteristic data of all target physical layouts constituting the layout; Each of the N layouts and the characteristic data corresponding to each layout are stored in a preset standard cell library.
7. The method according to claim 6, characterized in that The standard cell library also includes the hardware description language and circuit structure diagram of each standard cell.
8. The method according to claim 2, characterized in that: Each of the sub-circuits includes a plurality of physical layouts, and the plurality of physical layouts are generated according to each circuit structure netlist file of the sub-circuit, and N physical layouts corresponding to N types of standard cell layout frameworks are generated for each circuit structure netlist file, where N is a positive integer; Based on the target sub-circuit combination, a layout of the standard cell to be drawn is obtained, including: For each standard cell layout framework, according to the characteristic data of each sub-circuit of the target sub-circuit combination and the framework parameters of the standard cell layout framework, the characteristic data of the target sub-circuit combination under the standard cell layout framework is determined; the characteristic data of the sub-circuit represents the circuit characteristics of the sub-circuit; the characteristic data of the target sub-circuit combination represents the circuit characteristics of the target sub-circuit combination as a whole; Selecting target characteristic data whose characteristic data best meets the requirements of the standard cell to be drawn from the characteristic data of the target sub-circuit combination under the N standard cell layout frameworks; The target physical layout of the target standard cell layout frame corresponding to each sub-circuit is spliced according to the connection relationship between the sub-circuits specified in the circuit structure netlist file of the target sub-circuit combination to obtain the layout of the standard cell to be drawn; The target standard cell layout framework is a standard cell layout framework corresponding to the target characteristic data.
9. The method according to claim 5 or 8, characterized in that: The characteristic data includes at least one of: layout area occupancy, number of virtual gates, parasitic resistance of each node in the subcircuit, parasitic capacitance, delay time corresponding to the gate-level node to the subcircuit port, flip time corresponding to the gate-level node to the subcircuit port, dynamic power consumption corresponding to the gate-level node to the subcircuit port, and static power consumption corresponding to the gate-level node state.
10. The method according to claim 2, characterized in that Based on the target sub-circuit combination, a layout of the standard cell to be drawn is obtained, including: Based on the layout automatic placement and routing tool, the layout of the standard cell to be drawn is generated according to the circuit structure netlist file of the target sub-circuit combination.
11. A method for establishing a standard cell library, characterized in that: include: According to the method described in any one of claims 1 to 10, a layout of a standard cell to be drawn is obtained; A standard cell library is constructed based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn.
12. The method according to claim 11, characterized in that The sub-circuit library also includes feature data of each physical layout of the sub-circuit. Based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, a standard cell library is constructed, including: For each layout of the standard cell to be drawn, characteristic data of the layout is calculated based on the characteristic data of all target physical layouts constituting the layout; The standard cell library is constructed based on the obtained layout and feature data of each standard cell to be drawn, and the hardware description language of each standard cell to be drawn.
13. The method according to claim 12, characterized in that Before constructing a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, the method further includes: Obtain a circuit structure diagram of each standard unit to be drawn; Accordingly, based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn, a standard cell library is constructed, including: The standard cell library is constructed based on the obtained layout and feature data of each standard cell to be drawn, as well as the hardware description language and circuit structure diagram of each standard cell to be drawn.
14. A subcircuit library, characterized in that: include: A plurality of sub-circuits, each of which has at least one circuit structure netlist file, and the plurality of circuit structure netlist files corresponding to the same sub-circuit have different driving capabilities; and the same circuit structure netlist file corresponds to at least one physical layout under a standard cell layout framework; Each of the sub-circuits is a circuit composed of at least one transistor, and any standard unit can be obtained by splicing at least one sub-circuit in the sub-circuit library.
15. The subcircuit library according to claim 14, characterized in that: The subcircuit library also includes feature data for each physical layout.
16. The subcircuit library according to claim 14, characterized in that: The multiple voltage circuits in the sub-circuit library are divided into an N-type transistor sub-circuit library and a P-type transistor sub-circuit library according to the type of transistors included in the sub-circuit; wherein each sub-circuit included in the N-type transistor sub-circuit library only includes N-type transistors, and each sub-circuit included in the P-type transistor sub-circuit library only includes P-type transistors.
17. The subcircuit library according to claim 14, characterized in that: The sub-circuit library also includes a circuit structure diagram of each sub-circuit.
18. A standard cell layout generation device, characterized in that: include: A first processing module is used to extract at least one sub-circuit from a preset sub-circuit library based on the hardware description language and driving capability of the standard cell to be drawn, and obtain a corresponding target sub-circuit combination of the standard cell to be drawn; wherein the sub-circuit library includes a plurality of sub-circuits, each of which is a circuit composed of at least one transistor, and any standard cell can be obtained by splicing at least one sub-circuit in the sub-circuit library; the driving capability of the target sub-circuit combination is the same as the driving capability of the standard cell to be drawn, and the circuit structure of the target sub-circuit combination is the same as the circuit structure described in the hardware description language; The second processing module is used to obtain the layout of the standard cell to be drawn based on the target sub-circuit combination.
19. A standard cell library building device, characterized in that: include: An acquisition module, configured to obtain a layout of a standard cell to be drawn according to the method described in any one of claims 1 to 10; The third processing module is used to construct a standard cell library based on the obtained layout of each standard cell to be drawn and the hardware description language of each standard cell to be drawn.
20. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are connected; The memory is used to store programs; The processor is used to call the program stored in the memory to execute the method according to any one of claims 1-13.
21. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, the method according to any one of claims 1 to 13 is executed.
Citation Information
Patent Citations
Standard cell library determination method, device and system
CN116108802A
Method for automated standard cell design
WO2022212375A1
Cited By
Method, device and equipment for patterning testability design circuit and storage medium
CN119442999A
