Parameterized unit circuit establishment method, standard unit circuit replacement method and device

By establishing a parameterized unit and configuring its mapping relationship with the standard unit, automatic replacement of standard units is realized, solving the problems of large workload and error-prone when replacing standard units in the prior art, and improving design efficiency and replacement accuracy.

CN114065686BActive Publication Date: 2025-05-30CHENGDU HAIGUANG MICROELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111406535.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2025-05-30
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

The prior art requires manual adjustment of circuits when replacing standard units, resulting in large workloads and error-prone, especially when process migration or circuits require extensive modifications.

Method used

By establishing a parameterized unit, configuring its mapping relationship with the standard unit, and calling the standard unit schematic diagram in the parameterized unit to form a parameterized unit schematic diagram, thereby realizing automatic replacement of the standard unit.

Benefits of technology

It realizes convenient and efficient replacement of standard units, reduces manual operation steps, improves design efficiency, and reduces the risk of connecting errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114065686B_ABST
    Figure CN114065686B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a parameterized unit circuit, a building method thereof, and a method for replacing a standard unit circuit. The building method of the parameterized unit circuit includes: determining at least one standardizable unit circuit in a circuit as a standard unit; building a parameterized unit corresponding to the standard unit and having the same circuit function; configuring a mapping relationship between the parameterized unit and the standard unit; calling a standard unit schematic diagram in the parameterized unit according to the unit mapping information and port mapping information to form a parameterized unit schematic diagram; verifying whether the circuit function is consistent by using a circuit netlist generated according to the parameterized unit schematic diagram and a parameterized unit functional description language; if the verification is consistent, then the verification is passed; otherwise, reconfigure the mapping relationship between the parameterized unit and the standard unit. The embodiment of the present application can reuse the results of the first replacement and conveniently and efficiently replace different standard units.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of chip technology, and specifically to a parameterized unit circuit and a building method thereof, a standard unit circuit replacement method and a device thereof. Background Art

[0002] A custom integrated circuit is an integrated circuit designed and manufactured specifically according to user needs. With the increasing integration scale and the increasing complexity of design, in order to complete the design in a short time, designers often use the unit circuit library design method with the help of a computer-aided design system (EDA), build a logic circuit using standard units, and call the pre-designed circuits in the integrated circuit. The pre-designed circuits may be the circuits designed by the designer before, or may be purchased from other foundries or sales companies.

[0003] If it is necessary to modify the pre-designed circuit, manual wiring is required. Even if only the standard unit circuit in the pre-designed circuit needs to be adjusted, it is still necessary to manually adjust the symbols called on the circuit and manually modify the wiring, etc. And if the port names in the units before and after replacement are inconsistent, the replacer needs to spend more time checking the port information, etc. When the process migrates or the circuit needs to be modified greatly, the workload of manual modification is very large.

[0004] Therefore, there is a technical problem in the prior art of how to replace the standard unit conveniently and efficiently. Summary of the Invention

[0005] In view of this, the embodiments of the present application provide a parameterized unit circuit and a building method thereof and a standard unit circuit replacement method to replace the standard unit conveniently and efficiently.

[0006] To achieve the above object, the embodiments of the present application provide the following technical solutions:

[0007] In a first aspect, the embodiments of the present application provide a method for building a parameterized unit circuit, including: determining at least one standardizable unit circuit in a circuit as a standard unit; building a parameterized unit corresponding to the standard unit and having the same circuit function; configuring a mapping relationship between the parameterized unit and the standard unit; and calling a standard unit schematic diagram in the parameterized unit according to the unit mapping information and port mapping information to form a parameterized unit schematic diagram.

[0008] In addition, verify whether the circuit function is consistent by verifying the circuit netlist generated according to the parameterized unit schematic diagram and the parameterized unit function description language; if the verification is consistent, pass the verification; otherwise, reconfigure the mapping relationship between the parameterized unit and the standard unit.

[0009] In a second aspect, the embodiments of the present application provide a parameterized unit circuit, including:

[0010] The parametric cell function description language is the same as the standard cell function description language of the corresponding standard cell;

[0011] The parametric cell ports correspond to the standard cell ports of the corresponding standard cell;

[0012] Moreover, the parametric cell schematic diagram is formed by calling the standard cell schematic diagram in the parametric cell according to the cell mapping information representing the relationship between the parametric cell and the standard cell and the port mapping information representing the mapping relationship between the parametric cell ports and the standard cell ports.

[0013] In a third aspect, an embodiment of the present application provides a method for replacing a standard cell circuit with the above-mentioned parametric cell circuit, including:

[0014] Determine the original standard cell to be replaced in the circuit;

[0015] Call the parametric cell corresponding to the original standard cell according to the cell mapping information;

[0016] Call the parametric cell schematic diagram corresponding to the original standard cell to replace the original standard cell schematic diagram according to the port mapping information;

[0017] Delete the original standard cell schematic diagram;

[0018] Modify the parametric cell parameters to the original standard cell parameters to form a new standard cell.

[0019] In a fourth aspect, an embodiment of the present application provides a device for replacing a standard cell circuit with the above-mentioned parametric cell circuit, including:

[0020] A standard cell determination module for determining the original standard cell to be replaced in the circuit;

[0021] A parametric cell calling module for calling the parametric cell corresponding to the original standard cell according to the cell mapping information;

[0022] A replacement module for deleting the original standard cell schematic diagram; modifying the parametric cell parameters to the original standard cell parameters according to the port mapping information, calling the parametric cell schematic diagram corresponding to the original standard cell to replace the original standard cell schematic diagram, and forming a new standard cell.

[0023] In a fifth aspect, an embodiment of the present application provides a storage medium that stores a program suitable for replacing a standard cell circuit to implement the method for replacing a standard cell circuit provided by the embodiment of the present application.

[0024] In a sixth aspect, an embodiment of the present application provides an electronic device, which may include the storage medium provided above in the embodiment of the present application.

[0025] The replacement method of standard cells provided by the embodiments of the present application first establishes a parametric cell. The established parametric cell includes a parametric cell symbol for identifying the parametric cell, a parametric cell function description language consistent with the standard cell function description language, and parametric cell ports corresponding to the standard cell ports. Configure the mapping relationship between the parametric cell and the standard cell. The mapping relationship includes cell mapping information representing the parametric cell - standard cell mapping relationship and port mapping information representing the parametric cell port - standard cell port mapping relationship. Call the parametric cell through the mapping information to replace the standard cell in the pre-designed circuit, ensuring that the function of the pre-designed circuit remains unchanged. Finally, complete the replacement of the standard cell by modifying the parameters of the parametric cell. It can be understood that as long as the parametric cell is used to replace the replaced standard cell for the first time and the function of the pre-designed circuit is ensured to remain unchanged, only the parameters of the parametric cell need to be modified in subsequent replacements to complete batch replacement.

[0026] It can be seen that for the replacement method of standard cells provided by the embodiments of the present application, except for the need to make connections when using the parametric cell to replace the standard cell for the first time, different standard cells can be called by changing the parameters, without having to delete and connect the wires, nor having to check the port information when the port names are inconsistent. Thus, the results of the first replacement can be reused, facilitating and efficiently replacing different standard cells, modifying the pre-designed circuit faster, serving the call of custom integrated circuits, and improving the design efficiency of custom integrated circuits. Further, by uniformly calling the parameters of parametric cells with the same function in the circuit, batch modification of replacing a certain standard cell in the circuit with another standard cell can be achieved simultaneously, further improving the design efficiency of the integrated circuit. Finally, as long as the parametric cell is traversed and called once, each standard cell corresponding to the parametric cell is called and verified, it can be ensured that all subsequent calls of the parametric cell to the standard cell through parameters are correct. Similarly, as long as the pre-designed circuit and the parametric cell are connected to the circuit formed after calling the replaced standard cell in the pre-designed circuit and a consistency verification is performed once, it can be ensured that all subsequent calls to the parametric cell on this circuit are correctly called, thus achieving a more convenient effect for function verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1a , a circuit schematic diagram of a circuit containing a standard cell circuit;

[0028] Figure 1b , a schematic diagram of step 1 of the existing standard cell circuit replacement process;

[0029] Figure 1c , a schematic diagram of step 2 of the existing standard cell circuit replacement process;

[0030] Figure 1d , Schematic diagram of step three in the existing standard cell circuit replacement process;

[0031] Figure 1e , Schematic diagram of step four in the existing standard cell circuit replacement process;

[0032] Figure 2 , A flowchart of the parametric cell circuit establishment method provided by an embodiment of the present application;

[0033] Figure 3 , Another flowchart of the parametric cell circuit establishment method provided by an embodiment of the present application;

[0034] Figure 4 , Schematic diagram of the mapping relationship between the parametric cell and the standard cell in an embodiment of the present application;

[0035] Figure 5 , Schematic diagram of the parametric cell circuit in an embodiment of the present application;

[0036] Figure 6 , Schematic diagram of another embodiment of the parametric cell circuit of the present application;

[0037] Figure 7 , A flowchart of the standard cell circuit replacement method provided by an embodiment of the present application;

[0038] Figure 8 , Block diagram of the standard cell circuit replacement device provided by an embodiment of the present application. Detailed implementation manners

[0039] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present application.

[0040] For the convenience of understanding the content of the present invention, the existing standard cell circuit replacement method is introduced below.

[0041] Please refer to Figure 1a , The pre-designed circuit 100 includes standard cells 110, 120, 130, 140 and the connections between the standard cell ports.

[0042] The standard cell 110 has two input ports and one output port; one input port of the standard cell 110 is connected to the output port of the standard cell 120, and the other input port is connected to the output port of the standard cell 130. The output port of the standard cell 110 is connected to the input port of the standard cell 140. The standard cell 110 can be an AND gate. Only when the output signals of both the standard cell 120 and the standard cell 130 are valid signals, the standard cell 110 outputs a valid signal.

[0043] Please refer to Figure 1b As shown, if you want to replace the standard cell 110, you can first delete the standard cell 110 in the circuit 100. As shown in the figure, although the standard cell 110 is deleted, the connection lines connected to the standard cell 110 will not disappear actively. The wire ends of the connection lines originally connected to the ports of the standard cell 110 become in a suspended state, and the whole connection line fails. If a new standard cell is placed at the position of the standard cell 110 without deleting the failed connection line, since the wire ends of the connection lines in the suspended state will not actively connect to the ports of the new standard cell, the connection line still fails, and the new standard cell is not connected to the circuit, and the circuit function cannot be realized normally.

[0044] Since the connection line is visually normally connected to the port of the standard cell, it is difficult to detect false connections during the design stage. It is often not until an error is reported during the simulation stage that it will be discovered and modified. The number of ports of standard cells varies. Some powerful standard cells have many ports. Therefore, in the case of a false connection of a connection line, all ports still need to be reconnected to eliminate the false connection.

[0045] Please refer to Figure 1c As shown, in order to prevent false connections, the prior art usually deletes all the failed connection lines connected to the standard cell 110 after deleting the standard cell 110. In some embodiments, the failed connection lines can also not be deleted, and the new standard cell can be correctly connected to the circuit by adjusting the connection of the suspended wire ends of the failed connection lines to the ports of the standard cell one by one. However, due to reasons such as complex operation and easy omission of failed connection lines resulting in false connections, it is not often used.

[0046] Please refer to Figure 1d As shown, for example, the standard cell 150 is used to replace the standard cell 110. The symbols of the standard cell 150 and the standard cell 110 are different, and the port names, process dimensions and other parameters can be the same or different, but the circuit functions are the same. Since the circuit functions are the same, the standard cell 150 can have the same number of ports as the standard cell 110, both having two input ports and one output port. However, the positions of the input and output ports of the standard cell 150 and the input and output ports of the replaced standard cell 110 in the circuit 100 may be different. Therefore, the standard cell 150 is reconnected to the standard cells 120, 130 and 140.

[0047] Combine as Figure 1e As shown, connect the standard cell 150 to the circuit 100 to complete the replacement of the standard cell 110. The two input ports of the standard cell 150 are respectively connected to the output ports of the standard cell 120 and the standard cell 130, and the output port of the standard cell 150 is connected to the input port of the standard cell 140.

[0048] For example, in some embodiments, the standard cell 150 can be an AND gate. Only when the output signals of both the standard cell 120 and the standard cell 130 are valid signals, the standard cell 110 outputs a valid signal.

[0049] It can be seen that when replacing the standard cells in a pre-designed circuit with the prior art, almost all steps are completed manually, and only one standard cell can be modified individually. When a large number of standard cells in a pre-designed circuit need to be replaced, it will consume a lot of manpower and time, with low efficiency and prone to errors. In some embodiments, the specific application scenario can be the process migration of the circuit. At this time, the overall structure of the circuit does not need to be changed, but all the standard cells on the circuit need to be replaced with standard cells under the new process scale, and a large number of replacements are required. In other embodiments, the specific application scenario can be the circuit migration. For example, when adjusting the working voltage, the pre-designed circuit is originally applied to an electronic device with a relatively large working voltage, and now it needs to be applied to an electronic device with a relatively small working voltage, and all the standard cells need to be replaced with standard cells corresponding to the working voltage.

[0050] Therefore, the embodiments of the present application provide a method for establishing a parameterized unit circuit and a method for replacing a standard unit circuit, which can replace the standard unit conveniently and efficiently.

[0051] Please refer to Figure 2 As shown, an embodiment of a method for establishing a parameterized unit circuit provided by the present application includes:

[0052] Step S210, in the circuit, determine at least one standardizable unit circuit as a standard unit; wherein the circuit is a pre-designed circuit, and the standard unit includes a corresponding standard unit schematic diagram, a standard unit function description language, and at least one standard unit port. In some embodiments, the circuit can be a circuit function module that implements a certain or certain functions and is used to be connected to a larger integrated circuit.

[0053] Step S220: Establish a parameterized cell corresponding to the standard cell and having the same circuit function. For example, if the standard cell is an inverter, the corresponding parameterized cell is also an inverter, and this parameterized cell can call all standard cells with the function of an inverter. The parameterized cell includes a parameterized cell function description language that is consistent with the standard cell function description language, and parameterized cell ports corresponding to the standard cell ports. By making the parameterized cell function description language consistent with the standard cell function description language, the circuit functions of the parameterized cell and the corresponding standard cell are made consistent. Any language used to describe the function of a circuit cell belongs to the function description language described in the embodiments of the present application. In some embodiments, it may be the Verilog language. The parameterized cell may exist in the form of a library, and the library is established in advance and can be called as needed.

[0054] Step S230: Configure the mapping relationship between the parameterized cell and the standard cell. The mapping relationship includes cell mapping information indicating the parameterized cell - standard cell mapping relationship and port mapping information indicating the parameterized cell port - standard cell port mapping relationship.

[0055] Step S240: According to the cell mapping information and the port mapping information, call the corresponding standard cell schematic diagram in the parameterized cell to form a parameterized cell schematic diagram. Similarly, the standard cell can also call the corresponding parameterized cell through the cell mapping information and the port mapping information.

[0056] The standard cell described in the above embodiments refers to a circuit cell that can be standardized. For example, the standard cell circuit from the standard cell library can include various types of standard cells such as combinational logic, sequential logic, functional units, and special type units, and is the basic part in the back-end design process of an integrated circuit chip. Common standard cells can include, for example, inverters, AND gates, registers, selectors, full adders, etc. The standard cell library can include a timing model file and a netlist file corresponding to each standard component. The standard cell can also be a logic unit circuit with a combined logic function, such as custom-built. Or when the standard circuit has a certain overall function and can be standardized, a standard cell symbol needs to be generated for this combination. In some embodiments, the standard cell symbol can be generated manually, and in other embodiments, it can be generated automatically. Specifically, for example, using the software virtuoso to automatically generate the standard cell symbol according to the schematic diagram. The standard cell has a unique standard cell symbol.

[0057] Step S250: Verify whether the circuit netlist generated according to the schematic diagram of the parameterized cell is consistent with the functional description language of the parameterized cell; if the verification is consistent, execute Step S260, and then pass the verification. If the verification is inconsistent, return the mapping relationship between the configured parameterized cell and the standard cell. If it is inconsistent multiple times (for example, preset to be inconsistent 3 times), it may be that the standard cell cannot establish a corresponding parameterized cell, and then the establishment of the parameterized cell can be abandoned. It should be noted that if the verification still fails after multiple configurations, it indicates that the standard cell is relatively special and not suitable for establishing a parameterized cell for this standard cell, and the establishment of the parameterized standard cell for this standard cell should be ended.

[0058] In this way, for each standard cell, a parameterized cell is established and the corresponding parameterized cell is verified, thus ensuring the correctness of the establishment of the parameterized cell. Further, it ensures the correctness of the circuit formed by calling the standard cell after replacing the standard cell with the parameterized cell. It is easy to understand that since the call of the parameterized cell that passes the verification ensures the correctness, when the subsequent verification of the entire circuit fails, the cause of the circuit error can be found more quickly by excluding the possibility of call errors, which is beneficial to the verification of the entire circuit.

[0059] In the embodiments of the present application, the standard cell further includes a standard cell symbol and a standard cell name for identifying the standard cell. If there is no ready-made standard cell symbol for the standard cell, one can be generated by design software (such as virtuoso); and the parameterized cell includes a parameterized cell symbol and a parameterized cell name for identifying the parameterized cell.

[0060] Please refer to Figure 4 As shown, in some embodiments, the cell mapping information is mapped by the standard cell name and the parameterized cell name, that is: the cell mapping information refers to the mapping information between the parameterized cell name and the standard cell name. For example, the parameterized cell 610 corresponds to the standard cells 160, 170, and 180 with the same circuit function through the cell mapping information and the port mapping information, where the cell name of the parameterized cell 610 is mapped and corresponding to the cell names of the standard cells 160, 170, and 180 respectively. In a specific embodiment, the cell mapping information and the port mapping information can be saved in a text file, specifically, for example, in the form of a table. In the embodiments of a standard cell replacement method provided later in the present application, the text file can be accessed when calling the parameterized cell according to the standard cell to be replaced and modifying the parameters of the parameterized cell for standard cell call.

[0061] In an embodiment of the method for establishing a parameterized unit circuit of the present application, generally, the number of ports of the parameterized unit is less than or equal to the standard unit it calls, and each port of the standard unit has a corresponding parameterized unit port. It can be understood that when the number of input ports or output ports of the standard unit may be greater than the number of input ports or output ports of the corresponding parameterized unit, some ports of the parameterized unit, in addition to corresponding to the ports of the standard unit with the same function, also need to correspond to the extra ports of the standard unit. When making specific correspondences, ports with similar functions are preferably selected for correspondence. For ease of understanding, continue to refer to Figure 4 , assume that the ports of the parameterized unit 610 are I, O, VDD, and VSS, and the standard unit 160 has six ports A, Y, VDD, VSS, VBP, and VBN. Then, according to the method provided by the embodiment of the present application, each of the six ports of the standard unit 160 has a corresponding port of the parameterized unit 610. For example, the correspondence relationship can be: I-A, O-Y, VDD-VDD, VSS-VSS, VDD-VBN, and VSS-VBP. Another example, assume that the standard unit 170 has four ports A, Y, VDD, and VSS. Each of the four ports of the standard unit 170 has a corresponding port of the parameterized unit 610, and the correspondence relationship can be: I-A, O-Y, VDD-VDD, VSS-VSS.

[0062] In an embodiment of the method for establishing a parameterized unit circuit of the present application, according to the unit mapping information and port mapping information, the schematic diagram of the standard unit is called in the parameterized unit to form the schematic diagram of the parameterized unit. Specifically, in the parameterized unit, the corresponding standard unit is found through the unit mapping information, and the corresponding standard unit symbol is called by a preset script to call the standard unit. Each port of the standard unit is connected to the corresponding port of the parameterized unit, and then connected to the schematic diagram of the standard unit to form the schematic diagram of the parameterized unit. Specifically, the parameterized unit symbol and the standard unit symbol are in the form of icons. What can be seen in the schematic diagram of the circuit standard unit are all standard unit symbols; what can be seen in the schematic diagram of the parameterized unit is the parameterized unit symbol; the schematic diagram of the parameterized unit will call the standard unit symbol.

[0063] Please refer to Figure 3 shown in the following for another embodiment of the method for establishing a parameterized unit circuit provided by the present application. Step 310, in the circuit, determine two or more standardizable unit circuits with the same circuit function as the standard unit. It can be determined whether the circuit functions of two or more standardizable unit circuits are the same by using the function description language of the standardizable unit circuit.

[0064] It is easy to understand that when the standardizable unit circuit has a certain logical function as a whole and can be standardized and combined, there may be no unit symbol and no circuit function description language. Therefore, a standard unit symbol for identifying the standard unit can be established, and at the same time, its corresponding function description language can be set to describe its circuit function.

[0065] Step S320: Establish a parameterized unit corresponding to the standard unit and having the same circuit function. That is, the parameterized unit corresponds to at least two standard units.

[0066] In step S330, configure the mapping relationship between the parameterized unit and the standard unit. The parameter unit is configured with a mapping relationship with at least two standard units. It is easy to understand that the mapping relationship includes unit mapping information indicating the mapping of the parameterized unit to each standard unit respectively, and port mapping information indicating the mapping of the standard unit ports of each standard unit to the parameterized unit ports respectively. Please refer to Figure 4 As shown: The parameterized unit 610 corresponds to the standard units 160, 170, and 180 with the same circuit function through the unit mapping information and the port mapping information. Among them, the unit name of the parameterized unit 610 is mapped and corresponding to the unit names of the standard units 160, 170, and 180 respectively.

[0067] In this embodiment, each standard unit port has a corresponding parameterized unit port. For the convenience of understanding, the foregoing example is still used for illustration: Assume that the input ports of the parameterized unit 610 are I, O, VDD, and VSS, and the standard unit 160 has six ports A, Y, VDD, VSS, VBP, and VBN. Then, according to the method provided in the embodiment of the present application, all six ports of the standard unit 160 have corresponding parameterized unit 610 ports. For example, the corresponding relationship can be: I - A, O - Y, VDD - VDD, VSS - VSS, VDD - VBN, and VSS - VBP. Another example, assume that the standard unit 170 has four ports A, Y, VDD, and VSS. All four ports of the standard unit 170 have corresponding parameterized unit 610 ports, and the corresponding relationship can be: I - A, O - Y, VDD - VDD, and VSS - VSS.

[0068] In step S340, according to the unit mapping information and the port mapping information, call the schematic diagram of each corresponding standard unit in the parameterized unit to establish the schematic diagram of the parameterized unit corresponding to each standard unit. The parameterized unit includes a schematic diagram of the parameterized unit corresponding to the schematic diagrams of at least two standard units.

[0069] It is easy to understand that a schematic diagram is established between the parametric unit and each corresponding standard unit. The parametric schematic diagram includes the parametric unit schematic diagrams corresponding to each standardized unit. That is, when corresponding to at least two standard units, the parametric unit will establish at least two schematic diagrams. This step can be implemented through a script. According to the selected different standard units, different parametric unit schematic diagrams are created.

[0070] Specifically, in the parametric unit, the standard unit symbols of the selected standard units are called through a preset script to call the standard units, and each standard unit port of the selected standard unit is connected to the corresponding parametric unit port, and then connected to the standard unit schematic diagram of the selected standard unit to form a corresponding parametric unit schematic diagram; furthermore, the parametric unit schematic diagrams corresponding to each standardized unit are established.

[0071] In step S350, it is verified whether the circuit netlist generated according to the parametric unit schematic diagram is consistent with the parametric unit functional description language, that is, whether the circuit netlist generated by the parametric unit schematic diagram corresponding to each standard unit is consistent with the parametric unit functional description language. Specifically, an EDA tool (ESP) can be used to verify the circuit netlist generated by the parametric unit schematic diagram and the parametric unit functional description language such as Verilog. If the verification is consistent, step S360 is executed to pass the verification, and the establishment of the parametric unit is completed; otherwise, step S330 is executed to continue configuring the mapping relationship between the parametric unit and the standard unit, for example, continue to configure the mapping relationship with inconsistent verification results. There may be two cases of inconsistent verification. One case is that the ports between the parametric unit and the standard unit are wrongly corresponded, and the mapping relationship is reconfigured so that the corresponding ports are correct. Another case is that the functions of the standard unit and the parametric unit are inconsistent, and at this time, the correct parametric unit needs to be found again.

[0072] In this way, the parametric unit corresponding to at least two standard units is verified, and the schematic diagrams of the parametric unit corresponding to different standard units are verified, thereby ensuring the correctness of the establishment of the parametric unit. Further, the correctness of the circuit formed by calling the standard unit after replacing the standard unit with the parametric unit is ensured. It is easy to understand that because the call of the parametric unit that passes the verification ensures the correctness, when the subsequent verification of the entire circuit fails, the cause of the circuit error can be found more quickly by excluding the possibility of incorrect calls, which is beneficial to the verification of the entire circuit.

[0073] An embodiment of a parameterized unit circuit provided by this application, the parameterized unit is obtained by the embodiment of the parameterized unit circuit establishment method described above. The parameterized unit has the same circuit function as the corresponding standard unit circuit, and includes: a parameterized unit function description language, which is the same as the standard unit function description language of the corresponding standard unit; parameterized unit ports, which correspond to the standard unit ports of the corresponding standard unit; and, a parameterized unit schematic diagram, which is formed by calling the standard unit schematic diagram in the parameterized unit according to the unit mapping information representing the parameterized unit - standard unit mapping relationship and the port mapping information representing the parameterized unit port - standard unit port mapping relationship. Please refer to Figure 5 As shown, the parameterized unit 510 corresponds to the standard unit 150 and has the same circuit function; the parameterized unit 510 function description language is the same as that of the standard unit 150; the parameterized unit 510 includes three ports: A1, A2, and Z; the standard unit 150 includes three ports: A, B, and Y, and the port mapping relationship between the parameterized unit 510 and the standard unit 150 is: A1 - A, A2 - B, and Z - Y; the parameterized unit 510 schematic diagram is formed by calling the standard unit 150 schematic diagram according to the unit mapping information and the port mapping information. The parameterized unit 510 further includes a parameterized unit symbol and a parameterized unit name for identifying the parameterized unit 150, and the parameterized unit has a unique parameterized unit symbol. The unit mapping information can be mapped by the standard unit name and the parameterized unit name. Each port of the standard unit 150 has a corresponding port of the parameterized unit 510. Among them, the unit mapping information and the port mapping information please refer to Figure 4 and related descriptions.

[0074] The parameterized unit corresponds to two or more standard units with the same circuit function; the unit mapping information includes the mapping relationships between the parameterized unit and each standard unit respectively; the port mapping information includes the mapping relationships between the standard unit ports of each standard unit and the parameterized unit ports respectively; the parameterized schematic diagram includes the parameterized unit schematic diagrams corresponding to each standardized unit. Multiple standard units with the same circuit function correspond to the same parameterized unit. Since there may be some differences in the standard unit symbols of each standard unit, it is also necessary to create their respective corresponding parameterized unit schematic diagrams. Please refer to Figure 6 Combined with Figure 4As shown, the parametric cell 610 corresponds to the standard cells 160 and 170 with the same circuit function. The cell name of the parametric cell 610 is mapped to the cell names of the standard cells 160 and 170 respectively. The ports of the parametric cell 610 are I, O, VDD, and VSS, while the standard cell 160 has six ports A, Y, VDD, VSS, VBP, and VBN. All six ports of the standard cell 160 correspond to the ports of the parametric cell 610. For example, the corresponding relationships can be: I - A, O - Y, VDD - VDD, VSS - VSS, VDD - VBN, and VSS - VBP. The standard cell 170 has four ports A, Y, VDD, and VSS. All four ports of the standard cell 170 correspond to the ports of the parametric cell 610. The corresponding relationships can be: I - A, O - Y, VDD - VDD, and VSS - VSS. The schematic diagram of the parametric cell 610 includes connecting the ports of the parametric cell 610 to the corresponding ports of the standard cells 160 and 170 through a script, and calling the schematic diagrams of the standard cells 160 and 170 to form the schematic diagram of the parametric cell 610.

[0075] Please refer to Figure 7 As shown, using the method for replacing the standard cell circuit of the parametric cell circuit provided by the above embodiment includes the following steps:

[0076] Step S710: Back up the original standard cell to form a backup standard cell. Of course, the original standard cell refers to the standard cell in the circuit before replacement and modification. Before replacement, back up the original standard cell, or the entire circuit can also be backed up. In this way, it can prevent the loss of the circuit caused by improper circuit modification operations.

[0077] Step S720: Determine the original standard cell to be replaced in the circuit. In some embodiments, the original standard cell to be replaced can be determined through a pre-designed script.

[0078] Step S730: Call the parametric cell corresponding to the original standard cell according to the cell mapping information. Of course, the cell mapping information is pre-established information. For details, please refer to Figure 4 And the description of the mapping relationship between the standard cell and the parametric cell in the previous text. The standard cell and the parametric cell can call each other. In some embodiments, the parametric cell corresponding to the original standard cell can be called through a script according to the cell mapping information.

[0079] In step S740, according to the port mapping information, call the schematic diagram of the parametric cell corresponding to the original standard cell to replace the schematic diagram of the original standard cell. The port mapping information is pre-established information. For details, please refer to Figure 4And according to the foregoing description of the mapping relationship between the standard cell and the parametric cell, the standard cell and the parametric cell can be called mutually. The call of the parametric cell schematic diagram can specifically be performed through the parametric cell symbol. In some embodiments, the parametric cell schematic diagram corresponding to the original standard cell can be called by a script according to the port mapping information to replace the original standard cell schematic diagram.

[0080] Step S750: Delete the original standard cell schematic diagram.

[0081] It should be noted that there is no sequence requirement for the steps of deleting the original standard cell schematic diagram and calling the parametric cell. Figure 7 Only an example is shown where the parametric cell is called first, then the schematic diagram is called, and then the original standard cell schematic diagram is deleted. In some other embodiments, step S750 can be executed first, and then steps S730 and S740 are executed, that is, the original standard cell schematic diagram is deleted first, and then the corresponding parametric cell and the corresponding parametric cell schematic diagram are called.

[0082] In S760, modify the parameters of the called parametric cell to the parameters of the original standardized cell to form a new standard cell. It can be understood that the parametric cell parameters refer to the parameters for controlling the call of the parametric schematic diagram, and modifying to the original standard cell parameters means calling the schematic diagram of the parametric cell corresponding to the original standard cell. Modify the parametric cell parameters to the appropriate original standard cell parameters as needed, so as to realize the replacement of the standard cell. In some embodiments, the parametric cell parameters are the parametric cell name, and the original standardized cell parameters are the original standard cell name; the name of the called parametric cell is modified to the original standard cell name.

[0083] In the circuit containing the new standard cell, for subsequent process migration or circuit modification that requires re-modifying the new standard cell, only step S760 needs to be executed, and only the parameters need to be modified to complete.

[0084] In this way, the standard cell circuit replacement method provided by the embodiments of the present application completes the modification of the circuit, and realizes repeated utilization by calling parameters to replace the standard cell after the replacement is completed, replacing the standard cell conveniently and efficiently. The standard cell circuit replacement method provided by the embodiments of the present application reduces the steps of manual operation and the manpower for circuit modification; because the wiring in the circuit is not modified, the risk of wiring error correction is reduced; replacing only by modifying the parameters can conveniently verify the connection correctness before and after process migration and perform the function verification of the cell.

[0085] In step S770, verify whether the new standard cell netlist is consistent with the corresponding backup standard cell netlist. If it is, execute step S780; otherwise, execute step S730. Of course, if the circuit netlist generated according to the parametric cell schematic diagram has been verified to be consistent with the parametric cell functional description language in terms of circuit function, then when verifying whether the new standard cell netlist is consistent with the corresponding backup standard cell netlist, the circuit function correctness of the parametric cell itself can be ignored, thereby improving efficiency.

[0086] In step S780, pass the verification. By passing the verification, the circuit replacement is completed. In this way, the correctness of the circuit formed by calling the new standard cell after replacing the standard cell with the parametric cell is ensured. Further, the correctness of subsequent circuit modifications is ensured.

[0087] Please refer to Figure 8 As shown, the embodiment of the present application further provides a standard cell circuit replacement device.

[0088] A standard cell determination module 810 determines the original standard cell to be replaced in the circuit.

[0089] A parametric cell calling module 820 calls the parametric cell corresponding to the original standard cell according to the cell mapping information.

[0090] A replacement module 830 deletes the original standard cell schematic diagram; according to the port mapping information, modifies the parameters of the parametric cell to the parameters of the original standard cell, and calls the parametric cell schematic diagram corresponding to the original standard cell to replace the original standard cell schematic diagram to form a new standard cell. The parameters of the parametric cell may be the parametric cell name, and the parameters of the original standard cell may be the original standard cell name. The call of the parametric cell schematic diagram can specifically be performed through the parametric cell symbol.

[0091] The standard cell circuit replacement device further includes a backup module 840 that backs up the original standard cell before replacing the original standard cell to form a backup standard cell, and a verification module 850 that is adapted to verify whether the new standard cell netlist is consistent with the corresponding backup standard cell netlist; if it is consistent, then it passes the verification. The verification module 850 is further adapted to, if it is inconsistent, return to call the parametric cell corresponding to the original standard cell according to the cell mapping information.

[0092] The embodiment of the present application further provides a storage medium that stores a program suitable for the standard cell circuit replacement method to implement the standard cell circuit replacement method provided by the embodiment of the present application.

[0093] The embodiment of the present application further provides an electronic device, which may include the storage medium provided above in the embodiment of the present application.

[0094] Although the embodiments of the present application are disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the protection scope of the present application shall be subject to the scope defined by the claims.

Claims

1. A method for establishing a parameterized unit circuit, characterized in that, it includes: In a circuit, determine at least one standardizable unit circuit as a standard unit, where the standard unit includes a corresponding standard unit schematic diagram, a standard unit function description language, and at least one standard unit port; Establish a parameterized unit corresponding to the standard unit and having the same circuit function, where the parameterized unit includes a parameterized unit function description language consistent with the standard unit function description language and parameterized unit ports corresponding to the standard unit ports; Configure the mapping relationship between the parameterized unit and the standard unit, and the mapping relationship includes unit mapping information representing the mapping relationship between the parameterized unit and the standard unit and port mapping information representing the mapping relationship between the parameterized unit port and the standard unit port; According to the unit mapping information and the port mapping information, call the standard unit schematic diagram in the parameterized unit to form a parameterized unit schematic diagram.

2. The method for establishing a parameterized unit circuit according to claim 1, characterized in that, it further includes: Verify whether the circuit function is consistent according to the circuit netlist generated by the parameterized unit schematic diagram and the parameterized unit function description language; If the verification is consistent, then pass the verification.

3. The method for establishing a parameterized unit circuit according to claim 2, characterized in that, it further includes: If the verification is inconsistent, then return to configure the mapping relationship between the parameterized unit and the standard unit.

4. The method for establishing a parameterized unit circuit according to claim 1, characterized in that, the standard unit includes a standard unit name, the parameterized unit includes a parameterized unit name, and the unit mapping information is mapped by the standard unit name and the parameterized unit name.

5. The method for establishing a parameterized unit circuit according to claim 1, characterized in that, each port of the standard unit has a corresponding parameterized unit port.

6. The method for establishing a parameterized unit circuit according to claim 5, characterized in that, the standard unit includes a standard unit symbol for identifying the standard unit; the step of calling the standard unit schematic diagram in the parameterized unit according to the unit mapping information and the port mapping information to form a parameterized unit schematic diagram includes: calling the standard unit schematic diagram in the parameterized unit by calling the standard unit symbol through a preset script, connecting each standard unit port to the corresponding parameterized unit port, and then connecting to the standard unit schematic diagram to form a parameterized unit schematic diagram.

7. The method for establishing a parameterized unit circuit according to claim 5, characterized in that, the parameterized unit corresponds to two or more standard units with the same circuit function, where: Configure the mapping relationship between the parameterized unit and the standard unit, where the mapping relationship includes unit mapping information representing the mapping of the parameterized unit to each standard unit respectively, and port mapping information representing the mapping of the standard unit ports of each standard unit to the parameterized unit ports respectively; According to the unit mapping information and the port mapping information, call the corresponding standard unit schematic diagram in the parameterized unit to establish a parameterized unit schematic diagram corresponding to each standardized unit.

8. The method for establishing a parameterized unit circuit according to claim 7, wherein, according to the unit mapping information and port mapping information, calling each corresponding standard cell schematic diagram in the parameterized unit to establish a parameterized unit schematic diagram corresponding to each standardized unit, including: calling the standard cell in the parameterized unit by a preset script to call the standard cell symbol of the selected standard cell, connecting each standard cell port of the selected standard cell to the corresponding parameterized unit port, and then connecting to the standard cell schematic diagram of the selected standard cell to form a corresponding parameterized unit schematic diagram; thereby establishing a parameterized unit schematic diagram corresponding to each standardized unit.

9. The method for establishing a parameterized unit circuit according to claim 8, wherein, verifying whether the circuit netlist generated by the parameterized unit schematic diagram corresponding to each standard cell is consistent with the circuit function of the parameterized unit by using the parameterized unit function description language; if the verification is consistent, the parameterized unit passes the verification.

10. The method for establishing a parameterized unit circuit according to claim 9, wherein, including: if it is inconsistent, return to configure the mapping relationship between the parameterized unit and the standard unit.

11. A parameterized unit circuit, wherein, the parameterized unit has the same circuit function as the corresponding standard unit circuit, including: the parameterized unit function description language is the same as the standard unit function description language of the corresponding standard unit; the parameterized unit ports correspond to the standard unit ports of the corresponding standard unit; and, the parameterized unit schematic diagram is formed by calling the standard unit schematic diagram in the parameterized unit according to the unit mapping information representing the parameterized unit - standard unit mapping relationship and the port mapping information representing the parameterized unit port - standard unit port mapping relationship.

12. The parameterized unit circuit according to claim 11, wherein, each port of the standard unit has a corresponding parameterized unit port.

13. The parameterized unit circuit according to claim 11, wherein, the standard unit includes a standard unit name, the parameterized unit includes a parameterized unit name, and the unit mapping information is mapped by the standard unit name and the parameterized unit name.

14. The parameterized unit circuit according to claim 11, wherein, the parameterized unit corresponds to two or more standard units with the same circuit function; the unit mapping information includes the mapping relationship between the parameterized unit and each standard unit respectively; the port mapping information includes the mapping relationship between each standard unit port of each standard unit and the parameterized unit port respectively; the parameterized unit schematic diagram includes the parameterized unit schematic diagram corresponding to each standardized unit.

15. The parameterized unit circuit according to claim 11, wherein, the parameterized unit further includes a parameterized unit symbol for identifying the parameterized unit.

16. A method for replacing a standard unit circuit using the parameterized unit circuit according to any one of claims 11 - 15, wherein, including: determining the original standard unit to be replaced in the circuit; Call the parameterized cell corresponding to the original standard cell according to the cell mapping information; Call the schematic diagram of the parameterized cell corresponding to the original standard cell to replace the schematic diagram of the original standard cell according to the port mapping information; Delete the schematic diagram of the original standard cell; Modify the parameters of the parameterized cell to the parameters of the original standard cell to form a new standard cell.

17. The method for replacing a standard cell circuit according to claim 16, wherein, the parameters of the parameterized cell are the name of the parameterized cell, and the parameters of the original standard cell are the name of the original standard cell.

18. The method for replacing a standard cell circuit according to any one of claims 16 or 17, wherein, further comprising, before replacing the original standard cell, backing up the original standard cell to form a backup standard cell.

19. The method for replacing a standard cell circuit according to claim 18, wherein, further comprising: Verify whether the netlist of the new standard cell is consistent with the netlist of the corresponding backup standard cell; If they are consistent, the verification is passed.

20. The method for replacing a standard cell circuit according to claim 19, wherein, further comprising: If they are inconsistent, return to call the parameterized cell corresponding to the original standard cell according to the cell mapping information.

21. A device for replacing a standard cell circuit, wherein, comprising: A standard cell determination module that determines the original standard cell to be replaced in the circuit; A parameterized cell call module that calls the parameterized cell corresponding to the original standard cell according to the cell mapping information; A replacement module that deletes the schematic diagram of the original standard cell; according to the port mapping information, modifies the parameters of the parameterized cell to the parameters of the original standard cell, and calls the schematic diagram of the parameterized cell corresponding to the original standard cell to replace the schematic diagram of the original standard cell to form a new standard cell.

22. The device for replacing a standard cell circuit according to claim 21, wherein, the replacement module deletes the schematic diagram of the original standard cell; according to the port mapping information, modifies the parameters of the parameterized cell to the parameters of the original standard cell, and calls the schematic diagram of the parameterized cell corresponding to the original standard cell to replace the schematic diagram of the original standard cell to form a new standard cell, including: the parameters of the parameterized cell are the name of the parameterized cell, and the parameters of the original standard cell are the name of the original standard cell.

23. The device for replacing a standard cell circuit according to any one of claims 21 or 22, wherein, further comprising: A backup module that backs up the original standard cell to form a backup standard cell before replacing the original standard cell.

24. The device for replacing a standard cell circuit according to claim 23, wherein, further comprising: A verification module adapted to verify whether the netlist of the new standard cell is consistent with the netlist of the corresponding backup standard cell; If they are consistent, the verification is passed.

25. The device for replacing a standard cell circuit according to claim 24, wherein, the verification module is further adapted to, if they are inconsistent, return to call the parameterized cell corresponding to the original standard cell according to the cell mapping information.

26. A storage medium, wherein, The storage medium stores a program suitable for replacing a standard cell circuit to implement the standard cell circuit replacement method according to any one of claims 16-20.

27. An electronic device, characterized in that it includes the storage medium according to claim 26.

Citation Information

Patent Citations

  • Process design kit (PDK) with design scan script

    US10719657B1

  • Hierarchical layout method for integrated circuits

    US20020194575A1