Differential circuit layout generation method, device, electronic device and storage medium
Through automatic placement and routing technology, differential circuit layouts are generated based on RTL codes and single-ended timing library files, which solves the problems of low manual drawing efficiency and high error rate, and achieves efficient differential circuit layout design.
Patent Information
- Application Number
- CN202410742660.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-11
AI Technical Summary
In the existing technology, manual fully customized differential circuit layout drawing is inefficient and error-prone. Especially when implementing digital interface protocols, the number of transistors is large, making it difficult to complete efficiently.
Generate netlist files based on single-ended timing library files based on RTL code and differential standard cells, use digital placement and routing tools for automatic placement and routing, process initial pins and connection lines to comply with differential circuit rules, and replace single-ended layout files with double-ended Layout file to generate the target differential circuit layout.
It realizes the automatic layout and wiring of differential circuits, improves drawing efficiency, reduces error rates, and eliminates the need for manual full custom drawing. It is suitable for complex digital interface protocol circuits.
Smart Images

Figure CN118313337B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of integrated circuit layout design, and in particular, to a differential circuit layout generation method, device, electronic device and storage medium. Background Art
[0002] At present, when designing the layout of differential circuits (differential signal logic circuits, which are analog circuits), they are all drawn manually and fully customized, and only fully customized layout design can be performed for differential circuits with less logic. If differential circuits are used to implement digital interface protocols, such as SPI (Serial Peripheral Interface) and I2C (Inter-Integrated Circuit) protocols, the number of transistors required is very large, and the method of manually drawing fully customized layouts is inefficient and prone to errors. Summary of the invention
[0003] The present application provides a differential circuit layout generation method, device, electronic device and storage medium to solve the problem that the method of manually fully customizing the differential circuit layout in the prior art is inefficient and prone to errors.
[0004] In a first aspect, the present application provides a differential circuit layout generation method, comprising: generating a netlist file based on the RTL (Register-Transfer Level) code of the differential circuit to be drawn and the single-ended timing library file of the differential standard unit; wherein the single-ended timing library file is obtained according to a preset single-ended layout file library of the differential standard unit; obtaining a single-ended circuit layout based on the preset single-ended layout file library and the netlist file; wherein two differential signal pins in each layout file in the single-ended layout file library are connected through the same metal area; obtaining a connection information file corresponding to the single-ended circuit layout, wherein the connection information file is used to describe the connection relationship between different differential standard units; processing the initial pin of the differential standard unit described in the connection information file as a first pin and a second pin, and processing the initial connection line used to connect different initial pins as a first connection line and a second connection line. Wiring is performed to obtain a target connection information file; wherein, the first pin and the second pin corresponding to the same differential standard unit are not connected, and the first connection line and the second connection line corresponding to the same initial connection line are parallel and do not intersect; the first pin is connected to the first connection line, and the second pin is connected to the second connection line; based on the target connection information file, the dual-end layout file library and the dual-end timing library file of the differential standard unit, a target differential circuit layout is obtained; wherein, the two differential signal lines in each layout file in the dual-end layout file library are parallel and do not intersect; each layout file in the dual-end layout file library corresponds one-to-one to each layout file in the single-end layout file library, and the dual-end timing library file is obtained according to the dual-end layout file library.
[0005] In the embodiment of the present application, a single-ended layout file is laid out using a digital layout and routing tool to obtain a single-ended circuit layout. Then, based on the connection information, the initial connection line in the initial differential layout is processed into a first connection line and a second connection line, and the initial pin is processed into a first pin and a second pin, so that the connection lines between different standard differential units and the connection relationship between the connection lines and the pins conform to the rules of the differential circuit. The single-ended layout file is replaced with a dual-end layout file, so that there are two differential signal lines in the final target differential circuit layout, thereby obtaining the target differential circuit layout, realizing the automatic layout and routing of the differential circuit, without the need for manual full-custom drawing of the differential circuit layout, improving the efficiency of drawing the differential circuit layout, and reducing the error rate.
[0006] In combination with the technical solution provided in the first aspect above, in some possible implementations, the initial pin of the differential standard unit described in the connection information file is processed into a first pin and a second pin, including: copying the initial pin; reducing the initial pin according to a first preset ratio at a preset first reference position to obtain a first pin; reducing the copied initial pin according to a second preset ratio at a preset second reference position to obtain the second pin; wherein the first preset ratio and the second preset ratio are both greater than 50%, and the first reference position and the second reference position are different.
[0007] In the embodiment of the present application, since the first preset ratio and the second preset ratio are both greater than 50%, and the first reference position and the second reference position are different, the shrunk first pin and the second pin can be disconnected, thereby ensuring that the final target differential circuit layout meets the layout drawing rules.
[0008] In combination with the technical solution provided in the first aspect above, in some possible implementations, the initial connection line is processed into a first connection line and a second connection line, including: copying the initial connection line; reducing the initial connection line according to a third preset ratio at a preset third reference position to obtain a first connection line; reducing the copied initial connection line according to a fourth preset ratio at a preset fourth reference position to obtain the second connection line; wherein the third preset ratio and the fourth preset ratio are both greater than 50%, and the third reference position and the fourth reference position are different.
[0009] In the embodiment of the present application, since the third preset ratio and the fourth preset ratio are both greater than 50%, and the third reference position and the fourth reference position are different, the first connecting line and the second connecting line after shrinking can not intersect, thereby ensuring that the final target differential circuit layout meets the layout drawing rules.
[0010] In combination with the technical solution provided in the first aspect above, in some possible implementations, the single-ended layout file library includes layout files of at least one circuit among an AND gate, an inverter, an OR gate, an XOR gate, and a D flip-flop.
[0011] In combination with the technical solution provided in the first aspect above, in some possible implementations, a single-ended circuit layout is obtained based on a preset single-ended layout file library and the netlist file, including: obtaining a single-ended timing view LIB (Liberty, timing library format) file and a single-ended LEF (Library-Exchange Format, library exchange format) view based on the single-ended layout file library; and using the digital layout and routing tool to perform automatic layout and routing processing based on the netlist file, the single-ended timing view LIB file, and the single-ended LEF view to obtain the single-ended circuit layout.
[0012] In an embodiment of the present application, a digital layout and routing tool can be used to perform automatic layout and routing processing based on a netlist file, a single-ended timing view LIB file, and a single-ended LEF view to obtain a single-ended circuit layout, without the need to develop additional layout and routing tools, thereby reducing costs.
[0013] In combination with the technical solution provided in the first aspect above, in some possible implementations, the height of each layout file in the single-end layout file library and the height of each layout file in the dual-end layout file library are N times the height of the standard unit under the specified process, where N is a positive integer greater than or equal to 2.
[0014] In an embodiment of the present application, by setting the height of each layout file in the single-ended layout file library and the height of each layout file in the dual-ended layout file library to N times the height of the standard unit under the specified process, and N is greater than or equal to 2, sufficient winding and routing resources can be guaranteed.
[0015] In combination with the technical solution provided in the first aspect above, in some possible implementations, the width of each layout file in the single-end layout file library and the width of each layout file in the dual-end layout file library are both integer multiples of the standard width of the specified process.
[0016] In the second aspect, the present application provides a differential circuit layout generation device, including: a first processing module, a second processing module, a third processing module, a fourth processing module, and a fifth processing module, the first processing module is used to generate a netlist file based on the RTL code of the differential circuit to be drawn and the single-ended timing library file of the differential standard unit; wherein the single-ended timing library file is obtained according to a preset single-ended layout file library of the differential standard unit; the second processing module is used to obtain a single-ended circuit layout based on a preset single-ended layout file library and the netlist file; wherein the two differential signal pins in each layout file in the single-ended layout file library are connected through the same metal area; the third processing module is used to obtain a connection information file corresponding to the single-ended circuit layout, and the connection information file is used to describe the connection relationship between different differential standard units; the fourth processing module is used to convert the initialization of the differential standard unit described in the connection information file into the netlist file. The pins are processed into first pins and second pins, and the initial connection lines used to connect different initial pins are processed into first connection lines and second connection lines to obtain a target connection information file; wherein, the first pin and the second pin corresponding to the same differential standard unit are not connected, and the first connection line and the second connection line corresponding to the same initial connection line are parallel and do not intersect; the first pin is connected to the first connection line, and the second pin is connected to the second connection line; the fifth processing module is used to obtain a target differential circuit layout based on the target connection information file, a dual-end layout file library and a dual-end timing library file of the differential standard unit; wherein, the two differential signal lines in each layout file in the dual-end layout file library are parallel and do not intersect; each layout file in the dual-end layout file library corresponds one-to-one to each layout file in the single-end layout file library, and the dual-end timing library file is obtained according to the dual-end layout file library.
[0017] In a third 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; and 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.
[0018] In a fourth 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, the computer program executes the method described in the first aspect and / or in combination with any possible implementation of the first aspect.
[0019] Beneficial effect: The single-ended layout file is laid out using a digital layout and routing tool to obtain a single-ended circuit layout. Then, based on the connection information, the initial connection line in the initial differential layout is processed into a first connection line and a second connection line, and the initial pin is processed into a first pin and a second pin, so that the connection lines between different standard differential units and the connection relationship between the connection lines and the pins conform to the rules of the differential circuit. The single-ended layout file is replaced with a dual-ended layout file, so that there are two differential signal lines in the final target differential circuit layout, thereby obtaining the target differential circuit layout, realizing the automatic layout and routing of the differential circuit, without the need for manual full-custom drawing of the differential circuit layout, improving the efficiency of drawing the differential circuit layout, and reducing the error rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] 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.
[0021] Figure 1 A schematic flow chart of a differential circuit layout generation method according to an embodiment of the present application;
[0022] Figure 2 A schematic diagram of a single-ended layout file shown in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of a dual-end layout file shown in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of a single-ended circuit layout shown in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of a target differential circuit layout shown in an embodiment of the present application;
[0026] Figure 6 A structural block diagram of a differential circuit layout generation device shown in an embodiment of the present application;
[0027] Figure 7 A structural block diagram of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0028] 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.
[0029] 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.
[0030] The technical solution of the present application will be described in detail below with reference to the accompanying drawings.
[0031] The interface circuit is often located around the pins of the chip, and because the chip pins are exposed, the area around the chip pins is susceptible to radiation and interference. Differential circuits can effectively resist radiation and interference, but the layout of the differential circuit requires a fully customized design. However, the circuit scale of the digital interface protocol is often large, and it is very difficult and time-consuming to fully customize the differential layout of such a circuit, and the process cannot be reused. In view of this, the present application provides a differential circuit layout generation method, device, electronic device and storage medium to improve the drawing speed of the differential circuit layout.
[0032] See also Figure 1 , Figure 1 A schematic diagram of a differential circuit layout generation method is shown in the embodiment of the present application. Figure 1 Describe the steps it involves.
[0033] S100: Obtaining a single-ended circuit layout based on the RTL code of the differential circuit to be drawn and a preset single-ended layout file library.
[0034] Generate a netlist file based on the RTL code of the differential circuit to be drawn and the single-ended timing library file of the differential standard cell.
[0035] The single-ended timing library file is obtained according to a preset single-ended layout file library of a differential standard cell.
[0036] Based on the preset single-ended layout file library and netlist file, a single-ended circuit layout is obtained.
[0037] Among them, two differential signal pins in each layout file in the single-ended layout file library are connected through the same metal area.
[0038] Among them, two differential signal pins in each layout file in the single-ended layout file library are connected through the same metal area.
[0039] For easier understanding, see Figure 2 . Figure 2 The black part (i.e. Pin_A) in the circuit diagram is connected to two differential signal pins (the two differential signal pins are Figure 3 The metal area of Pin_A+, Pin_A-) in the circuit layout shown.
[0040] In one implementation, a specific method of generating a netlist file based on the RTL code of the differential circuit to be drawn and the single-ended timing library file of the differential standard cell is: first obtain the RTL code, and then generate a netlist file based on the RTL code and the single-ended timing library file of the differential standard cell.
[0041] The single-ended timing library file is obtained according to the single-ended layout file library of the differential standard cell. The specific process of obtaining the DEF file based on the layout file is well known to those skilled in the art and will not be described here for the sake of simplicity.
[0042] A specific method of obtaining the single-ended timing library file may be: performing HSPICE (a circuit simulation software) simulation on each single-ended layout file in the single-ended layout file to obtain the corresponding single-ended timing library file.
[0043] Alternatively, a timing simulation may be performed on a circuit corresponding to each single-ended layout file in the single-ended layout file to obtain a corresponding single-ended timing library file.
[0044] Optionally, based on the RTL code and the single-ended timing library file of the differential standard cell, a specific method of generating a netlist file may be: using an existing synthesis tool to read in the RTL code and the single-ended timing library file of the differential standard cell, and synthesizing them to obtain a netlist file.
[0045] The specific method of obtaining a netlist file using a synthesis tool is well known to those skilled in the art, and will not be described here for brevity. The synthesis tool can be any existing type of synthesis tool, and its specific type is not limited here.
[0046] S200: Obtaining a single-ended circuit layout based on the netlist file and a preset single-ended layout file library.
[0047] Among them, two differential signal pins in each layout file in the single-ended layout file library are connected through the same metal area.
[0048] Optionally, the specific method of obtaining the single-ended circuit layout based on the netlist file and the preset single-ended layout file library can be: based on the single-ended layout file library, obtain the single-ended timing view LIB file and the single-ended LEF view; use the digital layout and routing tool to perform automatic layout and routing processing based on the netlist file, the single-ended timing view LIB file, and the single-ended LEF view to obtain the single-ended circuit layout. The single-ended circuit layout is a chip layout formed by connecting multiple layout files in the single-ended layout file library through single-ended signal routing.
[0049] Since two differential signal pins in each layout file in the single-ended layout file are connected through the same metal area, the existing digital layout and routing tools can use the single-ended layout files in the single-ended layout file library for layout.
[0050] S300: Acquire a connection information file corresponding to a single-ended circuit layout, where the connection information file is used to describe connection relationships between different differential standard cells.
[0051] The connection information file may be acquired in advance and stored in a storage medium, and can be directly called when needed; or the connection information file may be acquired in real time when needed.
[0052] Optionally, the connection information file can be output by a digital automatic layout and routing tool when it is needed and the tool receives a command to output the connection information file.
[0053] Optionally, the connection information file may be a connection information file in a DEF (Design Exchange Format) format.
[0054] S400: Processing the initial pins of the differential standard cell described in the connection information file into the first pin and the second pin, and processing the initial connection lines for connecting different initial pins into the first connection line and the second connection line, to obtain a target connection information file.
[0055] The first pin and the second pin corresponding to the same differential standard unit are not connected, and the first connection line and the second connection line corresponding to the same initial connection line are parallel and do not intersect.
[0056] Since the initial connection line in the connection information file is connected to the initial pin, the first connection line obtained after modification is connected to the first pin, and the second connection line is connected to the second pin. Alternatively, the first connection line obtained after modification is connected to the second pin, and the second connection line is connected to the first pin.
[0057] Since the two differential signal pins in the single-ended layout file are represented by the same metal area, and the actual layout corresponding to the differential standard cell should have two differential signal pins, the initial pins of the differential standard cell need to be processed as the first pin and the second pin.
[0058] Correspondingly, in the single-ended circuit layout, the initial connection lines connecting different initial pins also need to be processed as two different connection lines.
[0059] In one implementation, the specific method of processing the initial pin of the differential standard unit described in the connection information file into the first pin and the second pin can be: first copy the initial pin; then, at a preset first reference position, reduce the initial pin according to a first preset ratio to obtain the first pin; and at a preset second reference position, reduce the copied initial pin according to a second preset ratio to obtain the second pin; wherein the first preset ratio and the second preset ratio are both greater than 50%, and the first reference position and the second reference position are different.
[0060] Since the first preset ratio and the second preset ratio are both greater than 50%, and the first reference position and the second reference position are different, the shrunk first pin and the second pin can be disconnected, thereby ensuring the accuracy of the final target differential circuit layout.
[0061] Optionally, the first reference position and the second reference position can be set according to actual needs. Since a rectangular metal layer is usually used as a pin in layout design, the two vertices of the rectangular metal layer can be used as the first reference position and the second reference position respectively.
[0062] To facilitate subsequent wiring, the two vertices on the diagonal line can be used as the first reference position and the second reference position respectively. For example, the upper right vertex of the rectangular metal layer can be used as the first reference position, and the lower left vertex of the rectangular metal layer can be used as the second reference position; or, the upper left vertex of the rectangular metal layer can be used as the first reference position, and the lower right vertex of the rectangular metal layer can be used as the second reference position.
[0063] Optionally, in order to make the first pin and the second pin meet the layout design rule, the first preset ratio and the second preset ratio may be set to be less than or equal to 40% and greater than or equal to 10%.
[0064] For ease of understanding, Figure 4 , Figure 5 Take this as an example to illustrate. Figure 4 The rectangle Pin_A in the layout shown is the initial pin. The upper left corner vertex of the rectangle Pin_A is used as the first reference position, and the first preset ratio is 40%. The rectangle Pin_A is reduced. The reduced rectangle Pin_A is as shown in Figure 5Rectangle Pin_A+ shown.
[0065] Similarly, with the lower right corner vertex of rectangle Pin_A as the second reference position and the second preset ratio as 40%, rectangle Pin_A is copied and the copied rectangle Pin_A is reduced to obtain the following: Figure 5 The rectangle shown is Pin_A-. The specific ratio should be greater than or equal to the minimum threshold of the design rules of the process library, such as line width, line spacing, etc.
[0066] In one implementation, the metal area connecting the two differential signal pins is a square, and the two differential signal pins are distributed at both ends of the diagonal of the square.
[0067] The examples given here are only for ease of understanding and should not be construed as limiting the present application.
[0068] In one implementation, the specific process of processing the initial connection line into the first connection line and the second connection line can be: first copy the initial connection line; then, at a preset third reference position, reduce the initial connection line according to a third preset ratio to obtain the first connection line; and at a preset fourth reference position, reduce the copied initial connection line according to a fourth preset ratio to obtain the second connection line.
[0069] The third preset ratio and the fourth preset ratio are both greater than 50%, and the third reference position and the fourth reference position are different.
[0070] Since the third preset ratio and the fourth preset ratio are both greater than 50%, and the third reference position and the fourth reference position are different, the shrunken first connecting line and the second connecting line do not intersect, thereby ensuring the accuracy of the final target differential circuit layout.
[0071] Optionally, in order to make the first connecting line and the second connecting line meet the layout design rule, the third preset ratio and the fourth preset ratio may be set to be less than or equal to 40% and greater than or equal to 10%.
[0072] Optionally, the third reference position and the fourth reference position may be two edges of the initial connection line respectively.
[0073] For example, when the initial connection line is set in the horizontal direction, the third reference position may be the upper edge of the initial connection line, and the fourth reference position may be the lower edge of the initial connection line. Alternatively, when the initial connection line is set in the vertical direction, the third reference position may be the left edge of the initial connection line, and the fourth reference position may be the right edge of the initial connection line. When the initial connection line is a non-straight line such as a broken line or an arc, the third reference position is the first edge of the initial connection line, and the fourth reference position is the second edge of the initial connection line, and the first edge and the second edge are different, and the first edge and the second edge are parallel.
[0074] For ease of understanding, Figure 4 , Figure 5 Take this as an example to illustrate. Figure 4 The connecting line NET_1 in the figure is the initial connecting line. The upper edge of the connecting line NET_1 is taken as the third reference position. The third preset ratio is 40%. The connecting line is reduced. The reduced connecting line NET_1 is as shown in FIG. Figure 5 Connect wire NET_1+ as shown.
[0075] Accordingly, the lower edge of the connection line NET_1 is taken as the fourth reference position, the fourth preset ratio is 40%, and the connection line is reduced. The reduced connection line NET_1 is as shown in FIG. Figure 5 Connect wire NET_1- as shown.
[0076] The examples given here are only for ease of understanding and should not be construed as limiting the present application.
[0077] S500: Obtain a target differential circuit layout based on a target connection information file, a dual-terminal layout file library of a differential standard cell, and a dual-terminal timing library file.
[0078] Among them, the two differential signal lines in each layout file in the dual-end layout file library are parallel and do not intersect; each layout file in the dual-end layout file library corresponds one-to-one to each layout file in the single-end layout file library, and the dual-end timing library file is obtained according to the dual-end layout file library.
[0079] For easier understanding, see Figure 4 , Figure 5 , Figure 5 That is, part of the target differential circuit layout.
[0080] Optionally, a specific implementation method for obtaining the target differential circuit layout based on the target connection information file, the dual-terminal layout file library of the differential standard cell, and the dual-terminal timing library file may be to use a digital automatic layout and routing tool to read in the target connection information file, the dual-terminal layout file library of the differential standard cell, and the dual-terminal timing library file to generate the target differential circuit layout.
[0081] A specific method of obtaining the differential timing library file may be: performing a timing simulation on each dual-terminal layout file in the dual-terminal layout file to obtain a corresponding differential timing library file.
[0082] Alternatively, a timing simulation may be performed on the circuit corresponding to each dual-terminal layout file in the dual-terminal layout file to obtain a corresponding differential timing library file.
[0083] Before S100, the differential circuit layout generation method further includes: designing and manufacturing a differential standard cell. The type of the differential standard cell may include at least one of an AND gate, an inverter, an OR gate, an XOR gate, and a D flip-flop. During the design, for the same type, multiple differential standard cells of different sizes (transistor sizes) may be designed. For example, multiple differential standard cells of AND gate type of different sizes may be designed.
[0084] In addition to the differential standard cells exemplified above, the types of differential standard cells may also include other circuits, and the specific types may be set according to actual requirements, and are not limited here.
[0085] The specific method of designing and manufacturing the differential standard cell may be to first design the circuit of each differential standard cell, and then simulate each designed circuit to ensure that the designed circuit of the differential standard cell meets the use requirements. The circuit after the simulation is completed is the differential standard cell.
[0086] Among them, the simulation of each designed circuit can be any way to simulate a circuit, for example, the circuit can be simulated by HSPICE. The example here is only for ease of understanding and should not be regarded as a limitation to this application.
[0087] Usage requirements include correct logical functions, and may also include any one or more of the following performances: frequency, input and output rise time, output drive capability, etc.
[0088] Optionally, by simulating each designed circuit, a timing library file corresponding to each differential standard cell can also be obtained.
[0089] After obtaining the differential standard cell, the layout file corresponding to each differential standard cell can be drawn.
[0090] Since the differential circuit includes two signal lines, in order to use digital layout and routing tools for layout, when making the layout corresponding to the differential standard cell, it is necessary to make a single-ended layout file and a double-ended layout file for each differential standard cell. In the single-ended layout file, the two differential signal pins of the differential standard cell are connected through the same metal area. The double-ended layout file is the standard layout file of the differential standard cell.
[0091] Optionally, the single-ended layout file library includes layout files of at least one circuit among an AND gate, an inverter, an OR gate, an XOR gate, and a D flip-flop.
[0092] Correspondingly, the two-terminal layout file library includes a layout file of at least one circuit among an AND gate, an inverter, an OR gate, an XOR gate, and a D flip-flop.
[0093] In order to ensure that there are sufficient winding and routing resources, in one implementation, the height of each layout file in the single-ended layout file library and the height of each layout file in the dual-ended layout file library can be set to N times the height of the standard unit under the specified process, where N is a positive integer greater than or equal to 2.
[0094] The standard cell under the specified process is the standard cell of the digital circuit under the specified process. Accordingly, N times the height of the standard cell under the specified process is also N times the height of the standard cell of the digital circuit under the specified process.
[0095] The specific type of the designated process may be selected according to actual needs, for example, it may be a 180nm TSMC (Taiwan Semiconductor Manufacturing Co., Ltd.) process, etc., and its specific type is not limited here.
[0096] In order to ensure automatic layout using digital automatic layout and routing tools, in one implementation, the width of each layout file in the single-ended layout file library and the width of each layout file in the dual-ended layout file library are set to be integer multiples of the standard width of the specified process.
[0097] In one implementation, when a digital interface protocol circuit needs to be manufactured, the specific process of the differential circuit layout generation method may be:
[0098] First, the corresponding RTL code is obtained according to the digital interface protocol. Then the circuit diagram of the differential standard cell is made, and the circuit diagram is simulated by HSPICE / SPECTRE to ensure that the circuit schematic meets the performance requirements and the functions of the circuit schematic are correct. After that, the dual-terminal layout file of the differential standard cell is made according to the circuit diagram, and the dual-terminal layout file is simulated by HSPICE / SPECTRE to ensure that the circuit layout meets the performance requirements. The dual-terminal LEF view of the dual-terminal layout file is extracted, and the dual-terminal timing view LIB file of the differential standard cell is extracted to provide the dual-terminal LEF view and the dual-terminal timing view LIB file to the subsequent automatic layout and routing tools.
[0099] Similarly, a single-ended layout file of the differential standard cell is prepared. Specifically, the two differential signal pins in the obtained double-ended layout file are connected with the same rectangular metal to obtain the single-ended layout file of the differential standard cell. The single-ended timing view LIB file and single-ended LEF view corresponding to the single-ended layout file are extracted and provided to the subsequent automatic layout and routing tools.
[0100] The single-ended timing view LIB file, the single-ended LEF view and the timing constraint file are used to synthesize a netlist file, and the netlist file, the single-ended timing view LIB file and the single-ended LEF view are provided to an automatic placement and routing tool to obtain a single-ended circuit layout.
[0101] The connection information file of the single-ended circuit layout is obtained, the initial pin of the differential standard cell described in the connection information file is processed into the first pin and the second pin, and the initial connection line used to connect different initial pins is processed into the first connection line and the second connection line to obtain the target connection information file. Based on the target connection information file, the dual-end LEF view and the dual-end timing view LIB file, the target differential circuit layout is obtained.
[0102] Based on the same technical concept, the present application also provides a differential circuit layout generation device, such as Figure 6 As shown, the differential circuit layout generating device 100 includes a first processing module 110 , a second processing module 120 , a third processing module 130 , a fourth processing module 140 , and a fifth processing module 150 .
[0103] The first processing module 110 is used to generate a netlist file based on the RTL code of the differential circuit to be drawn and the single-ended timing library file of the differential standard cell; wherein the single-ended timing library file is obtained according to a preset single-ended layout file library of the differential standard cell.
[0104] The second processing module 120 is used to obtain a single-ended circuit layout based on a preset single-ended layout file library and the netlist file; wherein two differential signal pins in each layout file in the single-ended layout file library are connected through the same metal area.
[0105] The third processing module 130 is used to obtain a connection information file corresponding to the single-ended circuit layout, where the connection information file is used to describe the connection relationship between different differential standard cells.
[0106] The fourth processing module 140 is used to process the initial pins of the differential standard unit described in the connection information file into the first pin and the second pin, and to process the initial connection line used to connect different initial pins into the first connection line and the second connection line, so as to obtain a target connection information file; wherein, the first pin and the second pin corresponding to the same differential standard unit are not connected, and the first connection line and the second connection line corresponding to the same initial connection line are parallel and do not intersect; the first pin is connected to the first connection line, and the second pin is connected to the second connection line.
[0107] The fifth processing module 150 is used to obtain a target differential circuit layout based on the target connection information file, the dual-end layout file library and the dual-end timing library file of the differential standard cell; wherein the two differential signal lines in each layout file in the dual-end layout file library are parallel and do not intersect; each layout file in the dual-end layout file library corresponds one-to-one to each layout file in the single-end layout file library, and the dual-end timing library file is obtained according to the dual-end layout file library.
[0108] The fourth processing module 140 is specifically used to copy the initial pin; at a preset first reference position, reduce the initial pin according to a first preset ratio to obtain a first pin; at a preset second reference position, reduce the copied initial pin according to a second preset ratio to obtain a second pin; wherein the first preset ratio and the second preset ratio are both greater than 50%, and the first reference position and the second reference position are different.
[0109] The fourth processing module 140 is specifically used to copy the initial connection line; at a preset third reference position, reduce the initial connection line according to a third preset ratio to obtain a first connection line; at a preset fourth reference position, reduce the copied initial connection line according to a fourth preset ratio to obtain the second connection line; wherein the third preset ratio and the fourth preset ratio are both greater than 50%, and the third reference position and the fourth reference position are different.
[0110] In one implementation, the single-ended layout file library includes a layout file of at least one circuit selected from the group consisting of an AND gate, an inverter, an OR gate, an XOR gate, and a D flip-flop.
[0111] The second processing module 120 is specifically used to obtain a single-ended timing view LIB file and a single-ended LEF view based on the single-ended layout file library; and use the digital layout and routing tool to perform automatic layout and routing processing based on the netlist file, the single-ended timing view LIB file, and the single-ended LEF view to obtain the single-ended circuit layout.
[0112] In one implementation, the height of each layout file in the single-end layout file library and the height of each layout file in the dual-end layout file library are N times the height of a standard cell under a specified process, where N is a positive integer greater than or equal to 2.
[0113] In one implementation, the width of each layout file in the single-end layout file library and the width of each layout file in the dual-end layout file library are integer multiples of a standard width of a specified process.
[0114] The differential circuit 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 differential circuit 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 differential circuit layout generation method embodiment.
[0115] See also Figure 7 , which is an electronic device 200 provided in an embodiment of the present application. The electronic device 200 includes: a processor 210 and a memory 220.
[0116] The memory 220 and the processor 210 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 220 is used to store computer programs, such as storing Figure 6 The software function module shown in the figure is the differential circuit layout generation device 100. The differential circuit layout generation device 100 includes at least one software function module that can be stored in the memory 220 in the form of software or firmware or fixed in the operating system (OS) of the electronic device 200. The processor 210 is used to execute the executable module stored in the memory 220, such as the software function module or computer program included in the differential circuit layout generation device 100. At this time, the processor 210 is used to generate a netlist file based on the RTL code of the differential circuit to be drawn and the single-ended timing library file of the differential standard unit; wherein the single-ended timing library file is obtained according to the single-ended layout file library of the preset differential standard unit; based on the preset single-ended layout file library and the netlist file, a single-ended circuit layout is obtained; wherein two differential signal pins in each layout file in the single-ended layout file library are connected through the same metal area; obtain a connection information file corresponding to the single-ended circuit layout, wherein the connection information file is used to describe the connection relationship between different differential standard units; process the initial pins of the differential standard unit described in the connection information file as the first pin and the second pin, and process the initial connection line used to connect different initial pins as A first connection line and a second connection line are used to obtain a target connection information file; wherein, the first pin and the second pin corresponding to the same differential standard unit are not connected, and the first connection line and the second connection line corresponding to the same initial connection line are parallel and do not intersect; the first pin is connected to the first connection line, and the second pin is connected to the second connection line; based on the target connection information file, the dual-end layout file library and the dual-end timing library file of the differential standard unit, a target differential circuit layout is obtained; wherein, the two differential signal lines in each layout file in the dual-end layout file library are parallel and do not intersect; each layout file in the dual-end layout file library corresponds one-to-one to each layout file in the single-end layout file library, and the dual-end timing library file is obtained according to the dual-end layout file library.
[0117] Among them, the memory 220 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.
[0118] The processor 210 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 210 may also be any conventional processor, etc.
[0119] The electronic device 200 mentioned above includes but is not limited to a personal computer, a server, etc.
[0120] 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 200, the above-mentioned differential circuit layout generation method 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.
[0121] 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 differential circuit layout, characterized in that: include: Generate a netlist file based on the RTL code of the differential circuit to be drawn and the single-ended timing library file of the differential standard cell; wherein the single-ended timing library file is obtained according to a preset single-ended layout file library of the differential standard cell; Based on a preset single-ended layout file library and the netlist file, a single-ended circuit layout is obtained; wherein two differential signal pins in each layout file in the single-ended layout file library are connected through the same metal area; Acquire a connection information file corresponding to the single-ended circuit layout, wherein the connection information file is used to describe the connection relationship between different differential standard cells; Processing the initial pins of the differential standard unit described in the connection information file into the first pin and the second pin, and processing the initial connection lines used to connect different initial pins into the first connection line and the second connection line, to obtain a target connection information file; wherein the first pin and the second pin corresponding to the same differential standard unit are not connected, and the first connection line and the second connection line corresponding to the same initial connection line are parallel and do not intersect; the first pin is connected to the first connection line, and the second pin is connected to the second connection line; Based on the target connection information file, the dual-end layout file library and the dual-end timing library file of the differential standard cell, a target differential circuit layout is obtained; wherein, the two differential signal lines in each layout file in the dual-end layout file library are parallel and do not intersect; each layout file in the dual-end layout file library corresponds one-to-one to each layout file in the single-end layout file library, and the dual-end timing library file is obtained according to the dual-end layout file library.
2. The method according to claim 1, characterized in that Processing the initial pins of the differential standard cell described in the connection information file into the first pin and the second pin includes: Copying said initial pin; At a preset first reference position, the initial pin is reduced according to a first preset ratio to obtain a first pin; The second pin is obtained by reducing the copied initial pin at a second preset ratio at a preset second reference position; wherein the first preset ratio and the second preset ratio are both greater than 50%, and the first reference position and the second reference position are different.
3. The method according to claim 1, characterized in that Processing the initial connection line into a first connection line and a second connection line includes: Copying the initial connection line; At a preset third reference position, the initial connection line is reduced according to a third preset ratio to obtain a first connection line; The second connecting line is obtained by reducing the copied initial connecting line according to a fourth preset ratio at a preset fourth reference position; wherein the third preset ratio and the fourth preset ratio are both greater than 50%, and the third reference position and the fourth reference position are different.
4. The method according to claim 1, characterized in that: The single-ended layout file library includes a layout file of at least one circuit among an AND gate, an inverter, an OR gate, an XOR gate, and a D flip-flop.
5. The method according to claim 1, characterized in that Based on the preset single-ended layout file library and the netlist file, a single-ended circuit layout is obtained, including: Based on the single-ended layout file library, a single-ended timing view LIB file and a single-ended LEF view are obtained; A digital layout and routing tool is used to perform automatic layout and routing processing based on the netlist file, the single-ended timing view LIB file, and the single-ended LEF view to obtain the single-ended circuit layout.
6. The method according to any one of claims 1 to 5, characterized in that: The height of each layout file in the single-end layout file library and the height of each layout file in the dual-end layout file library are N times the height of a standard cell under a specified process, where N is a positive integer greater than or equal to 2.
7. The method according to any one of claims 1 to 5, characterized in that: The width of each layout file in the single-end layout file library and the width of each layout file in the dual-end layout file library are both integer multiples of the standard width of the specified process.
8. A differential circuit layout generation device, characterized in that: include: A first processing module is used to generate a netlist file based on the RTL code of the differential circuit to be drawn and the single-ended timing library file of the differential standard cell; wherein the single-ended timing library file is obtained according to a preset single-ended layout file library of the differential standard cell; A second processing module is used to obtain a single-ended circuit layout based on a preset single-ended layout file library and the netlist file; wherein two differential signal pins in each layout file in the single-ended layout file library are connected through the same metal area; A third processing module, used for acquiring a connection information file corresponding to the single-ended circuit layout, wherein the connection information file is used for describing the connection relationship between different differential standard cells; a fourth processing module, configured to process the initial pin of the differential standard unit described in the connection information file into a first pin and a second pin, and process the initial connection line used to connect different initial pins into a first connection line and a second connection line, to obtain a target connection information file; wherein the first pin and the second pin corresponding to the same differential standard unit are not connected, and the first connection line and the second connection line corresponding to the same initial connection line are parallel and do not intersect; the first pin is connected to the first connection line, and the second pin is connected to the second connection line; The fifth processing module is used to obtain the target differential circuit layout based on the target connection information file, the dual-end layout file library and the dual-end timing library file of the differential standard unit; wherein the two differential signal lines in each layout file in the dual-end layout file library are parallel and do not intersect; each layout file in the dual-end layout file library corresponds one-to-one to each layout file in the single-end layout file library, and the dual-end timing library file is obtained according to the dual-end layout file library.
9. 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 to 7.
10. 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 7 is executed.
