A simulation construction method for CMOS circuit and CMOS circuit

By adding voltage compensation and transmission circuits to the CMOS circuit model, combined with simulation optimization, the problem of poor compatibility of CMOS circuits under different interface voltages is solved, and multi-voltage mode compatibility and performance optimization are achieved.

CN118569182BActive Publication Date: 2024-10-11TIANSHUI TIANGUANG SEMICON
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411060418.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-11
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

Existing CMOS circuits cannot work properly when connected to different interface voltages, and are not compatible with application scenarios of multiple interface voltages.

Method used

By adding a voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model to the input end of the single-voltage mode CMOS circuit model, a multi-voltage mode CMOS circuit model is constructed, and through simulation verification and optimization, it is suitable for different interfaces. The voltage is related to the channel width to length ratio to achieve voltage compensation and transmission.

Benefits of technology

It realizes the normal operation of CMOS circuits under multiple interface voltages, meets the compatibility of multiple interface voltage application scenarios, and achieves good power consumption and transmission delay time performance requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569182B_ABST
    Figure CN118569182B_ABST
Patent Text Reader

Abstract

The present application discloses a simulation construction method of a CMOS circuit and a CMOS circuit, which belongs to the field of simulation design of CMOS circuits. The method constructs a second CMOS circuit model with multiple voltage modes by adding a voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model to the input end of a first CMOS circuit model in a single voltage mode, and simulates and verifies the voltage compensation performance of the voltage compensation circuit model, the voltage transmission performance of the voltage transmission circuit model and the input and output voltage waveforms, and obtains a first proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage compensation circuit model and a second proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage transmission circuit model. The present application realizes the rapid construction of a CMOS circuit with multiple voltage modes and achieves good performance requirements for power consumption current and transmission delay time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of simulation design of CMOS circuits, and in particular to a simulation construction method of a CMOS circuit and a CMOS circuit. Background Art

[0002] CMOS circuits are integrated circuits implemented based on complementary metal oxide semiconductors. They have the characteristics of low power consumption, low noise, high reliability and durability. They are mainly used to realize digital logic functions, such as logic gates, triggers, registers, decoders, etc. In the prior art, CMOS circuits usually design corresponding series of circuit devices for different interface voltages. For example, the 54HC series logic gate circuits and the 54HCT series logic gate circuits are CMOS circuit devices suitable for different interface voltages. Among them, the 54HC series is suitable for CMOS interface voltages, and the 54HCT series is suitable for TTL interface voltages, and the two have different interface voltage standards. Since different series of CMOS circuits are suitable for different interface voltages, they cannot work normally when connected to an interface voltage different from the interface voltage they are adapted to, and cannot be compatible with the device usage requirements in application scenarios with multiple interface voltages. Therefore, an improved technical solution is urgently needed to solve these technical problems. Summary of the invention

[0003] In view of this, the present application proposes a simulation construction method of a CMOS circuit and a CMOS circuit, which can quickly construct a multi-voltage mode CMOS circuit based on the existing single-voltage mode CMOS circuit, and can achieve good performance requirements of power consumption current and transmission delay time.

[0004] In a first aspect, the present application proposes a simulation construction method of a CMOS circuit, comprising:

[0005] A voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model are added to the input end of the first CMOS circuit model in a single voltage mode to construct a second CMOS circuit model in a multi-voltage mode, wherein the voltage compensation circuit model is used to perform voltage compensation on the connected first interface voltage to output a third interface voltage to drive the first CMOS circuit model when the voltage mode selection circuit model is in a first voltage mode of a first interface voltage, and the voltage transmission circuit model is used to transmit the connected second interface voltage to output a third interface voltage to drive the first CMOS circuit model when the voltage mode selection circuit model is in a second voltage mode of a second interface voltage;

[0006] Simulating and verifying the voltage compensation performance of the voltage compensation circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the first voltage mode, obtaining a first proportional relationship between the channel width-to-length ratios of a plurality of target transistors in the voltage compensation circuit model, and optimizing the voltage compensation circuit model based on the first proportional relationship;

[0007] Simulating and verifying the voltage transmission performance of the voltage transmission circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the second voltage mode, obtaining a second proportional relationship between the channel width-to-length ratios of a plurality of target transistors in the voltage transmission circuit model, and optimizing the voltage transmission circuit model based on the second proportional relationship;

[0008] The output ends of the voltage compensation circuit model and the voltage transmission circuit model are both connected to the input end of the first CMOS circuit model, the input end of the voltage mode selection circuit model is connected to the voltage mode enable signal, the output end of the voltage mode selection circuit model is respectively connected to the first input end of the voltage compensation circuit model and the first input end of the voltage transmission circuit model, the second input end of the voltage compensation circuit model and the second input end of the voltage transmission circuit model are connected to the first interface voltage or the second interface voltage, wherein the first interface voltage is a TTL interface voltage, and the second interface voltage and the third interface voltage are CMOS interface voltages.

[0009] In an optional embodiment, when the voltage mode enable signal determines that the second input terminal of the voltage compensation circuit model and the second input terminal of the voltage transmission circuit model are connected to the first interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit model causes the voltage compensation circuit model to be turned on and the voltage transmission circuit model to be turned off; when the voltage mode enable signal determines that the second input terminal of the voltage compensation circuit model and the second input terminal of the voltage transmission circuit model are connected to the second interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit model causes the voltage compensation circuit model to be turned off and the voltage transmission circuit model to be turned on.

[0010] In an optional embodiment, the voltage compensation circuit model includes a first NMOS tube, a second NMOS tube, a first PMOS tube, a first inverter composed of a second PMOS tube and a third NMOS tube, and a second inverter composed of a third PMOS tube and a fourth NMOS tube; wherein the source and substrate of the first NMOS tube are connected to the source of the second PMOS tube; the drains of the second PMOS tube and the third NMOS tube are connected, and the source of the third NMOS tube is connected to the drain of the second NMOS tube; the gates of the first NMOS tube and the second NMOS tube are both connected to the output end of the voltage mode selection circuit model, and the second PMOS tube and the third NMOS tube are connected to the output end of the voltage mode selection circuit model. The gate of the S tube is connected to the first interface voltage or the second interface voltage; the drains of the third PMOS tube and the fourth NMOS tube are connected and output the third interface voltage, and the gates of the third PMOS tube and the fourth NMOS tube are both connected to the drains of the second PMOS tube and the third NMOS tube; the drain of the first PMOS tube is connected to the gates of the third PMOS tube and the fourth NMOS tube, and the gate of the first PMOS tube is connected to the drains of the third PMOS tube and the fourth NMOS tube; the drain of the first NMOS tube, the source of the first PMOS tube and the third PMOS tube are all connected to the power supply voltage, and the source of the second NMOS tube and the fourth NMOS tube is grounded.

[0011] In an optional embodiment, the voltage mode selection circuit model includes a third inverter; the voltage transmission circuit model includes a fourth PMOS tube, a fifth NMOS tube, and a fourth inverter; wherein the input end of the third inverter is connected to the voltage mode enable signal, and the output end of the third inverter is connected to the gates of the first NMOS tube and the second NMOS tube and is simultaneously connected to the gate of the fourth PMOS tube and the input end of the fourth inverter; the sources of the fourth PMOS tube and the fifth NMOS tube are connected and simultaneously connected to the drains of the third PMOS tube and the fourth NMOS tube, the drains of the fourth PMOS tube and the fifth NMOS tube are connected and connected to the first interface voltage or the second interface voltage, and the gate of the fifth NMOS tube is connected to the output end of the fourth inverter.

[0012] In an optional embodiment, the voltage compensation performance of the voltage compensation circuit model in the first voltage mode and the input and output voltage waveforms of the second CMOS circuit model are simulated and verified to obtain a first proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage compensation circuit model, and the voltage compensation circuit model is optimized based on the first proportional relationship, including:

[0013] Using a first ratio of channel width to length ratios among the first NMOS transistor, the second PMOS transistor, and the third NMOS transistor as a first model parameter for simulation optimization of voltage compensation performance of the voltage compensation circuit model;

[0014] And a second ratio of the channel width to length ratio between the first PMOS tube and the third PMOS tube is used as a second model parameter for simulation optimization of the voltage compensation performance of the voltage compensation circuit model.

[0015] In an optional embodiment, the voltage transmission performance of the voltage transmission circuit model and the input and output voltage waveforms of the second CMOS circuit model are simulated and verified when in the second voltage mode, a second proportional relationship between the channel width-to-length ratios of a plurality of target transistors in the voltage transmission circuit model is obtained, and the voltage transmission circuit model is optimized based on the second proportional relationship, including:

[0016] A third ratio of the channel width to length ratio between the fourth PMOS transistor and the fifth NMOS transistor is used as a third model parameter for simulation optimization of the voltage transmission performance of the voltage transmission circuit model.

[0017] In a second aspect, the present application further proposes a CMOS circuit constructed according to the simulation construction method described in any of the aforementioned embodiments, comprising: a first CMOS circuit, a voltage compensation circuit, a voltage transmission circuit and a voltage mode selection circuit; wherein the output ends of the voltage compensation circuit and the voltage transmission circuit are both connected to the input end of the first CMOS circuit, the input end of the voltage mode selection circuit is connected to a voltage mode enable signal, the output end of the voltage mode selection circuit is respectively connected to the first input end of the voltage compensation circuit and the first input end of the voltage transmission circuit, and the second input end of the voltage compensation circuit and the second input end of the voltage transmission circuit are connected to a first interface voltage or a second interface voltage; wherein the voltage compensation circuit is used to perform voltage compensation on the connected first interface voltage to output a third interface voltage to drive the first CMOS circuit when the voltage mode selection circuit is in a first voltage mode of the first interface voltage, and the voltage transmission circuit is used to transmit the connected second interface voltage to output a third interface voltage to drive the first CMOS circuit when the voltage mode selection circuit is in a second voltage mode of the second interface voltage, the first interface voltage is a TTL interface voltage, and the second interface voltage and the third interface voltage are CMOS interface voltages.

[0018] In an optional embodiment, when the voltage mode enable signal determines that the second input terminal of the voltage compensation circuit and the second input terminal of the voltage transmission circuit are connected to the first interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit causes the voltage compensation circuit to be turned on and the voltage transmission circuit to be turned off; when the voltage mode enable signal determines that the second input terminal of the voltage compensation circuit and the second input terminal of the voltage transmission circuit are connected to the second interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit causes the voltage compensation circuit to be turned off and the voltage transmission circuit to be turned on.

[0019] In an optional embodiment, the voltage compensation circuit includes a first NMOS tube, a second NMOS tube, a first PMOS tube, a first inverter composed of a second PMOS tube and a third NMOS tube, and a second inverter composed of a third PMOS tube and a fourth NMOS tube; wherein the source and substrate of the first NMOS tube are connected to the source of the second PMOS tube; the drains of the second PMOS tube and the third NMOS tube are connected, and the source of the third NMOS tube is connected to the drain of the second NMOS tube; the gates of the first NMOS tube and the second NMOS tube are both connected to the output end of the voltage mode selection circuit, and the second PMOS tube and the third NMOS tube are connected to the output end of the voltage mode selection circuit. The gate of the third PMOS tube is connected to the first interface voltage or the second interface voltage; the drains of the third PMOS tube and the fourth NMOS tube are connected and output the third interface voltage, and the gates of the third PMOS tube and the fourth NMOS tube are connected to the drains of the second PMOS tube and the third NMOS tube; the drain of the first PMOS tube is connected to the gates of the third PMOS tube and the fourth NMOS tube, and the gate of the first PMOS tube is connected to the drains of the third PMOS tube and the fourth NMOS tube; the drain of the first NMOS tube, the source of the first PMOS tube and the third PMOS tube are all connected to the power supply voltage, and the source of the second NMOS tube and the fourth NMOS tube is grounded;

[0020] The voltage mode selection circuit includes a third inverter; the voltage transmission circuit includes a fourth PMOS tube, a fifth NMOS tube, and a fourth inverter; wherein the input end of the third inverter is connected to the voltage mode enable signal, and the output end of the third inverter is connected to the gates of the first NMOS tube and the second NMOS tube, and is simultaneously connected to the gate of the fourth PMOS tube and the input end of the fourth inverter; the sources of the fourth PMOS tube and the fifth NMOS tube are connected and simultaneously connected to the drains of the third PMOS tube and the fourth NMOS tube, the drains of the fourth PMOS tube and the fifth NMOS tube are connected and connected to the first interface voltage or the second interface voltage, and the gate of the fifth NMOS tube is connected to the output end of the fourth inverter.

[0021] This application can at least achieve the following beneficial effects:

[0022] The present application constructs a second CMOS circuit model with multiple voltage modes by adding a voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model to the input end of a first CMOS circuit model in a single voltage mode, and simulates and verifies the voltage compensation performance of the voltage compensation circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the first voltage mode, and obtains a first proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage compensation circuit model, and simulates and verifies the voltage transmission performance of the voltage transmission circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the second voltage mode, and obtains a second proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage transmission circuit model, and optimizes the voltage compensation circuit model and the voltage transmission circuit model based on the first proportional relationship and the second proportional relationship, and finally obtains the desired multi-voltage mode CMOS circuit through simulation optimization, so that a multi-voltage mode CMOS circuit can be quickly constructed based on the existing single-voltage mode CMOS circuit, and the simulation-optimized multi-voltage mode CMOS circuit can achieve good performance requirements of power consumption current and transmission delay time. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of the present application.

[0024] Figure 1 is a flow chart of a simulation construction method of a CMOS circuit according to the first embodiment of the present application;

[0025] Figure 2 is a circuit structure diagram of a second CMOS circuit model according to the first embodiment of the present application;

[0026] Figure 3 is a circuit structure diagram of a voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model according to the first embodiment of the present application;

[0027] Figure 4 is a schematic diagram of an exemplary first simulation curve of the threshold voltage of the first inverter T1;

[0028] Figure 5 is a schematic diagram of an exemplary second simulation curve of the threshold voltage of the first inverter T1;

[0029] Figure 6 is a schematic diagram of a first simulation curve of an input and output voltage waveform of a voltage compensation circuit model;

[0030] Figure 7 is a schematic diagram of a second simulation curve of input and output voltage waveforms of the voltage compensation circuit model;

[0031] Figure 8 is a schematic diagram of a third simulation curve of input and output voltage waveforms of the second CMOS circuit model in the first voltage mode;

[0032] Fig. 9 is a schematic diagram of a fourth simulation curve of input and output voltage waveforms of the second CMOS circuit model in the second voltage mode;

[0033] Fig.10 is a circuit structure diagram of a CMOS circuit according to a second embodiment of the present application;

[0034] Fig.11 It is a circuit structure diagram of a voltage compensation circuit, a voltage transmission circuit and a voltage mode selection circuit according to the second embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings of the embodiment of the present application. However, it should be understood that the described embodiments are only some exemplary embodiments of the present application, rather than all embodiments, and therefore the following detailed description of the embodiment of the present application is not intended to limit the scope of the present application for protection. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of this application are only used to distinguish and describe similar objects, rather than to describe a specific order or sequence, and cannot be understood as indicating or implying relative importance.

[0037] As mentioned above, since different series of CMOS circuits are applicable to different interface voltages, they cannot work properly when connected to an interface voltage different from the interface voltage they are adapted to, and cannot be compatible with the device usage requirements in application scenarios with multiple interface voltages. To this end, the present application proposes a simulation construction method for a CMOS circuit and a CMOS circuit, which can quickly construct a multi-voltage mode CMOS circuit based on an existing single-voltage mode CMOS circuit, and can achieve good performance requirements for power consumption current and transmission delay time.

[0038] First embodiment

[0039] Figure 1 FIG. 1 is a flow chart of a simulation construction method of a CMOS circuit according to the first embodiment of the present application. Figure 1 As shown, the simulation construction method of the CMOS circuit described in the embodiment of the present application includes:

[0040] Step S110, adding a voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model to the input end of the first CMOS circuit model in a single voltage mode to construct a second CMOS circuit model in a multi-voltage mode, wherein the voltage compensation circuit model is used to perform voltage compensation on the connected first interface voltage to output a third interface voltage to drive the first CMOS circuit model when the voltage mode selection circuit model is in a first voltage mode of a first interface voltage, and the voltage transmission circuit model is used to transmit the connected second interface voltage to output a third interface voltage to drive the first CMOS circuit model when the voltage mode selection circuit model is in a second voltage mode of a second interface voltage.

[0041] In this embodiment, the first interface voltage may be a TTL interface voltage, and the second interface voltage and the third interface voltage may be CMOS interface voltages. The TTL interface voltage generally has an input high level ≥ 2.0V and an input low level ≤ 0.8V; the CMOS interface voltage generally has an input high level ≥ 0.7VDD and an input low level ≤ 0.3VDD, where VDD is the power supply voltage, i.e., when VDD is 4.5V, the input high level of the CMOS interface voltage is generally ≥ 3.15V and the input low level ≤ 1.35V. For CMOS circuit devices whose operating voltage is suitable for the CMOS interface voltage, the TTL interface voltage cannot directly drive them to work normally.

[0042] In this embodiment, the first CMOS circuit model in the single voltage mode may be a CMOS circuit model applicable to the CMOS interface voltage. The second CMOS circuit model in the multi-voltage mode is a CMOS circuit model applicable to both the CMOS interface voltage and the TTL interface voltage. In one implementation, the first CMOS circuit model and the second CMOS circuit model may include circuit models such as logic gates, triggers, registers, and decoders implemented based on CMOS devices.

[0043] Figure 2 FIG. 2 is a schematic diagram of the circuit structure of the second CMOS circuit model 200 according to the first embodiment of the present application. Figure 2As shown, the second CMOS circuit model 200 includes a first CMOS circuit model 210, a voltage compensation circuit model 220, a voltage transmission circuit model 230 and a voltage mode selection circuit model 240. The output ends of the voltage compensation circuit model 220 and the voltage transmission circuit model 230 are both connected to the input end of the first CMOS circuit model 210, the input end of the voltage mode selection circuit model 240 is connected to the voltage mode enable signal EN, the output end of the voltage mode selection circuit model 240 is respectively connected to the first input end of the voltage compensation circuit model 220 and the first input end of the voltage transmission circuit model 230, the second input end of the voltage compensation circuit model 220 and the second input end of the voltage transmission circuit model 230 are connected to the interface voltage A, and the interface voltage A can be a first interface voltage or a second interface voltage, such as a TTL interface voltage or a CMOS interface voltage.

[0044] In this embodiment, when the voltage mode enable signal EN determines that the interface voltage A currently connected to the second CMOS circuit model 200 belongs to the first voltage mode of the first interface voltage, that is, when it is determined that the second input end of the voltage compensation circuit model 220 and the second input end of the voltage transmission circuit model 230 are connected to the first interface voltage, the output voltage signal of the output end of the voltage mode selection circuit model 240 causes the voltage compensation circuit model 220 to be turned on, and the voltage compensation circuit model 220 performs voltage compensation on the currently connected interface voltage A to output a third interface voltage A1 to drive the first CMOS circuit model 210; at the same time, the output voltage signal of the output end of the voltage mode selection circuit model 240 causes the voltage transmission circuit model 230 to be turned off.

[0045] When the voltage mode enable signal EN determines that the interface voltage A currently connected to the second CMOS circuit model 200 belongs to the second voltage mode of the second interface voltage, that is, when it is determined that the second input terminal of the voltage compensation circuit model 220 and the second input terminal of the voltage transmission circuit model 230 are connected to the second interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit model 240 causes the voltage compensation circuit model 220 to be turned off, and at the same time causes the voltage transmission circuit model 230 to be turned on, and the voltage transmission circuit model 230 transmits the currently connected second interface voltage, so that the voltage transmission circuit model 230 outputs a third interface voltage A1 equal to the second interface voltage to drive the first CMOS circuit model 210.

[0046] Step S120, simulate and verify the voltage compensation performance of the voltage compensation circuit model when in the first voltage mode and the input and output voltage waveforms of the second CMOS circuit model, obtain a first proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage compensation circuit model, and optimize the voltage compensation circuit model based on the first proportional relationship.

[0047] In this embodiment, the voltage compensation performance of the voltage compensation circuit model 220 and the input and output voltage waveforms of the second CMOS circuit model 200 directly affect whether the second CMOS circuit model 200 can achieve the expected performance indicators when in the first voltage mode. In one embodiment, the voltage compensation circuit model 220 may include a voltage compensation circuit composed of multiple PMOS transistors and multiple NMOS transistors.

[0048] Figure 3 The circuit structure diagram of an exemplary voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model is shown in FIG. Figure 3 As shown, the voltage compensation circuit model 220 includes a first NMOS transistor n1, a second NMOS transistor n2, a first PMOS transistor p1, a first inverter T1 composed of a second PMOS transistor p11 and a third NMOS transistor n11, and a second inverter T2 composed of a third PMOS transistor p22 and a fourth NMOS transistor n22. The source and substrate of the first NMOS transistor n1 are connected to the source of the second PMOS transistor p11; the drains of the second PMOS transistor p11 and the third NMOS transistor n11 in the first inverter T1 are connected, the source of the third NMOS transistor n11 is connected to the drain of the second NMOS transistor n2, the gates of the first NMOS transistor n1 and the second NMOS transistor n2 are both connected to the output end of the voltage mode selection circuit model, and the gates of the second PMOS transistor p11 and the third NMOS transistor n11 are both connected to the first interface voltage or the second interface voltage.

[0049] The drains of the third PMOS tube p22 and the fourth NMOS tube n22 in the second inverter T2 are connected and output the third interface voltage A1, and the gates of the third PMOS tube p22 and the fourth NMOS tube n22 are connected to the drains of the second PMOS tube p11 and the third NMOS tube n11; the drain of the first PMOS tube p1 is connected to the gates of the third PMOS tube p22 and the fourth NMOS tube n22, and the gate of the first PMOS tube p1 is connected to the drains of the third PMOS tube p22 and the fourth NMOS tube n22. The drain of the first NMOS tube n1, the source of the first PMOS tube p1 and the third PMOS tube p22 are connected to the power supply voltage VDD, and the source of the second NMOS tube n2 and the fourth NMOS tube n22 is grounded to gnd.

[0050] Furthermore, if Figure 3 As shown, the voltage mode selection circuit model 240 may include a third inverter T3. The voltage transmission circuit model 230 may include a fourth PMOS tube p33, a fifth NMOS tube n33, and a fourth inverter T4. The input end of the third inverter T3 is connected to the voltage mode enable signal EN, the output end of the third inverter T3 is connected to the gate of the first NMOS tube n1 and the second NMOS tube n2, and the output end of the third inverter T3 is simultaneously connected to the gate of the fourth PMOS tube p33 and the input end of the fourth inverter T4. The source of the fourth PMOS tube p33 is connected to the source of the fifth NMOS tube n33, and is simultaneously connected to the drain of the third PMOS tube p22 and the fourth NMOS tube n22, that is, the third interface voltage A1 is output; the drain of the fourth PMOS tube p33 is connected to the drain of the fifth NMOS tube n33, and is simultaneously connected to the interface voltage A, and the gate of the fifth NMOS tube n33 is connected to the output end of the fourth inverter T4.

[0051] In this embodiment, when the interface voltage A is the first interface voltage, i.e., the TTL interface voltage, the voltage mode enable signal EN inputs a low level signal, and the output end of the third inverter T3 outputs a high level signal. Correspondingly, the output end of the fourth inverter T4 outputs a low level signal. The high level signal output by the third inverter T3 drives the first NMOS tube n1 and the second NMOS tube n2 to be turned on. The high level signal output by the third inverter T3 and the low level signal output by the fourth inverter T4 respectively drive the fourth PMOS tube p33 and the fifth NMOS tube n33 to be turned off. At this time, the interface voltage A outputs the third interface voltage A1 after the compensation effect of the voltage compensation circuit model 220. The third interface voltage A1 is a CMOS interface voltage and can be used to drive the first CMOS circuit model to work.

[0052] In the voltage compensation circuit model 220, due to the effect of the first NMOS tube n1, the source voltage of the second PMOS tube p11 in the first inverter T1 is lower than the power supply voltage VDD, thereby increasing the turn-on voltage of the second PMOS tube p11, while the second NMOS tube n2 only controls the third NMOS tube n11 and has no effect on the output of the third interface voltage A1. Since the first NMOS tube n1 reduces the high level of the output end of the first inverter T1, the first PMOS tube p1 is further introduced. When the interface voltage A is at a low level, the output of the second inverter T2 is also at a low level, thereby turning on the first PMOS tube p1 and pulling the level of the output end of the first inverter T1 up to the power supply voltage VDD, thereby realizing positive feedback.

[0053] In this embodiment, the voltage compensation circuit model 220 needs to achieve good voltage compensation performance, accelerate the voltage flip speed and reduce circuit power consumption, and it is necessary to design the optimal threshold voltage of the first inverter T1. The threshold voltage of the first inverter T1 can be derived according to the following formula:

[0054] .

[0055] In the above formula, represents the threshold voltage of the first inverter T1, , are the turn-on voltages of the second PMOS tube p11 and the third NMOS tube n11, respectively; VDD is the power supply voltage, , are the conduction of the second PMOS tube p11 and the third NMOS tube n11, respectively, where:

[0056] , is the hole mobility of the second PMOS tube p11, is the electron mobility of the third NMOS tube n11, Cox is the oxide layer capacitance of the second PMOS tube p11 and the third NMOS tube n11, is the channel width to length ratio of the second PMOS tube p11, is the channel width to length ratio of the third NMOS transistor n11. It can be seen from the above formula that the threshold voltage of the first inverter T1 is related to the ratio of the channel width to length ratio of the second PMOS transistor p11 and the third NMOS transistor n11.

[0057] At the same time, considering the voltage regulation function of the first NMOS tube n1 in the voltage compensation circuit model 220, the first ratio of the channel width to length ratios between the first NMOS tube n1, the second PMOS tube p11 and the third NMOS tube n11 can be used as the first model parameter for simulation optimization of the voltage compensation performance of the voltage compensation circuit model 220. Through simulation verification by the circuit simulation tool spectre, the expected threshold voltage of the first inverter T1 is obtained.

[0058] Similarly, since the first NMOS tube n1 reduces the high level of the output end of the first inverter T1, when the interface voltage A is at a low level, the output of the second inverter T2 is also at a low level, thereby turning on the first PMOS tube p1 and pulling up the level of the output end of the first inverter T1 to the power supply voltage VDD, thereby realizing positive feedback. Since the input high level of the TTL interface voltage can reach 2.0V, in order to enable the voltage compensation circuit model 220 to achieve good voltage compensation performance, speed up the voltage flip speed and reduce the circuit power consumption, the first PMOS tube p1 that plays a positive feedback role is required to be used as a pull-up tube to make the input high level rise faster, so as to speed up the flip speed and reduce the power consumption. Therefore, the voltage compensation performance of the voltage compensation circuit model 220 is also related to the channel width length ratio of the first PMOS tube p1 and the third PMOS tube p22. Therefore, on the basis that the first inverter T1 reaches the desired threshold voltage, the second ratio of the channel width to length ratio between the first PMOS tube p1 and the third PMOS tube p22 can be used as the second model parameter for simulation optimization of the voltage compensation performance of the voltage compensation circuit model 220. Through simulation verification by the circuit simulation tool spectre, the desired input and output voltage waveforms of the second CMOS circuit model 200 can be obtained.

[0059] Figure 4 and Figure 5 1 is a schematic diagram of an exemplary first simulation curve and a second simulation curve of the threshold voltage of the first inverter T1. First, according to the default ratio of the channel width length ratio of the PMOS tube and the NMOS tube in the inverter, the channel width length ratio between the first NMOS tube n1, the second PMOS tube p11 and the third NMOS tube n11 is adjusted to the initial ratio The simulation curve obtained by using the circuit simulation tool spectre to simulate the threshold voltage is as follows Figure 4 As shown. Figure 4As shown, when the ratio of the channel width to length ratio among the first NMOS transistor n1, the second PMOS transistor p11 and the third NMOS transistor n11 is adjusted to the initial ratio, the threshold voltage of the first inverter T1 is approximately 1.65V (the intersection point A of the curve in the figure represents the threshold voltage point of the first inverter T1, and its corresponding output voltage is 1.65V), which deviates from the expected threshold voltage of 1.4V of the first inverter T1 when the interface voltage A is the TTL interface voltage. The expected threshold voltage of 1.4V of the first inverter T1 is estimated based on the median between the input high level and the input low level of the TTL interface voltage.

[0060] Subsequently, according to Figure 4 The simulation curve shown in FIG. 1 keeps the channel width-to-length ratio of the second PMOS tube p11 unchanged, and increases the ratio between the channel width-to-length ratios of the first NMOS tube n1 and the third NMOS tube n11, that is, the ratio between the channel width-to-length ratios of the first NMOS tube n1, the second PMOS tube p11 and the third NMOS tube n11 is adjusted to the updated ratio. The simulation curve obtained by using the circuit simulation tool spectre to simulate the threshold voltage is as follows Figure 5 As shown. Figure 5 As shown, when the ratio of the channel width to length ratio among the first NMOS tube n1, the second PMOS tube p11 and the third NMOS tube n11 is adjusted to the updated ratio, the threshold voltage of the first inverter T1 reaches the expected threshold voltage of 1.4V of the first inverter T1 when the interface voltage A is the TTL interface voltage (the intersection point A of the curve in the figure represents the threshold voltage point of the first inverter T1, and its corresponding output voltage is 1.4V).

[0061] Figure 6 and Figure 7 Schematic diagrams of the first simulation curve and the second simulation curve of the input and output voltage waveforms of the voltage compensation circuit model 220. On the basis that the first inverter T1 reaches the desired threshold voltage, the channel width length ratio between the first PMOS tube p1 and the third PMOS tube p22 is set to the initial ratio When using the circuit simulation tool spectre to simulate the input and output voltage waveforms, the simulation curves are as follows Figure 6 As shown. Figure 6 It can be seen that when the interface voltage A is a TTL interface voltage and the power supply voltage is 4.5V, as the interface voltage A periodically inputs high-level 2.0V and low-level 0.8V input voltage waveforms respectively, the output voltage waveform of the voltage compensation circuit model 220 is a straight line that fluctuates slightly above and below 0V, and the functional requirements of voltage compensation are not achieved.

[0062] Since the channel width-to-length ratio of the first PMOS tube p1 is too large, resulting in the output voltage waveform not meeting the requirements, the channel width-to-length ratio of the first PMOS tube p1 can be appropriately reduced, the channel width-to-length ratio of the third PMOS tube p22 can be kept unchanged, and the channel width-to-length ratio between the first PMOS tube p1 and the third PMOS tube p22 can be adjusted to the updated ratio. When using the circuit simulation tool spectre to simulate the input and output voltage waveforms, the simulation curves are as follows Figure 7 As shown. Figure 7 It can be seen that when the interface voltage A is a TTL interface voltage and the power supply voltage is 4.5V, as the interface voltage A periodically inputs input voltage waveforms of a high level of 2.0V and a low level of 0.8V, the output voltage waveform of the voltage compensation circuit model 220 is a waveform curve that is basically consistent with the period of the input voltage waveform, with an output high level close to 4.5V and an output low level of 0V. This waveform curve is a waveform curve that complies with the CMOS interface voltage standard and realizes the functional requirements of voltage compensation.

[0063] Figure 8 is a schematic diagram of a third simulation curve of the input and output voltage waveforms of the second CMOS circuit model 200 in the first voltage mode. Figure 8 It can be seen that, taking the first CMOS circuit model 210 as an example of a logic gate circuit of a CMOS inverter, when the interface voltage A is a TTL interface voltage and the power supply voltage is 4.5V, as the interface voltage A periodically inputs input voltage waveforms of a high level of 2.0V and a low level of 0.8V, the output voltage waveform curve of the second CMOS circuit model 200 is a waveform curve (upper curve in the figure) with a period that is basically consistent with the input voltage waveform curve (lower curve in the figure), an output high level of close to 4.5V, and an output low level of 0V with an opposite waveform, thereby achieving the functional requirements of the logic gate circuit of the CMOS inverter when the TTL interface voltage is connected.

[0064] Step S130, simulating and verifying the voltage transmission performance of the voltage transmission circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the second voltage mode, obtaining a second proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage transmission circuit model, and optimizing the voltage transmission circuit model based on the second proportional relationship.

[0065] In this embodiment, the voltage transmission performance and input and output voltage waveforms of the voltage transmission circuit model 230 directly affect whether the second CMOS circuit model 200 can achieve the expected performance indicators when in the second voltage mode. When the voltage mode enable signal EN determines that the interface voltage A currently connected to the second CMOS circuit model 200 belongs to the second interface voltage, i.e., the second voltage mode of the CMOS interface voltage, the output voltage signal at the output end of the voltage mode selection circuit model 240 causes the voltage compensation circuit model 220 to be turned off, and at the same time causes the voltage transmission circuit model 230 to be turned on, and the voltage transmission circuit model 230 transmits the currently connected second interface voltage, so that the voltage transmission circuit model 230 outputs a third interface voltage A1 equivalent to the second interface voltage to drive the first CMOS circuit model 210.

[0066] In this embodiment, when the interface voltage A is the second interface voltage, i.e., the CMOS interface voltage, the voltage mode enable signal EN inputs a high-level signal, the output end of the third inverter T3 outputs a low-level signal, and accordingly, the output end of the fourth inverter T4 outputs a high-level signal. The low-level signal output by the third inverter T3 drives the first NMOS transistor n1 and the second NMOS transistor n2 to be turned off, and the low-level signal output by the third inverter T3 and the high-level signal output by the fourth inverter T4 drive the fourth PMOS transistor p33 and the fifth NMOS transistor n33 to be turned on, respectively. At this time, the interface voltage A is transmitted through the voltage transmission circuit model 230 and outputs the third interface voltage A1, which is a CMOS interface voltage that complies with the CMOS interface voltage standard and is used to drive the first CMOS circuit model 210 to work. Therefore, the channel width-to-length ratio that affects the conduction performance of the fourth PMOS transistor p33 and the fifth NMOS transistor n33 is also related to the voltage transmission performance of the voltage transmission circuit model 230. Therefore, in this embodiment, the third ratio of the channel width to length ratio between the fourth PMOS tube p33 and the fifth NMOS tube n33 can be used as the third model parameter for simulation optimization of the voltage transmission performance of the voltage transmission circuit model 230, and verified by simulation using the circuit simulation tool spectre.

[0067] Fig. 9 2 is a schematic diagram of a fourth simulation curve of the input and output voltage waveforms of the second CMOS circuit model 200 in the second voltage mode. Taking the first CMOS circuit model 210 as a logic gate circuit of a CMOS inverter as an example, when the third ratio of the channel width to length ratio between the fourth PMOS transistor p33 and the fifth NMOS transistor n33 is adjusted to the updated ratio When, from Fig. 9It can be seen that when the interface voltage A is the CMOS interface voltage and the power supply voltage is 4.5V, as the interface voltage A periodically inputs input voltage waveforms of high level 3.15V and low level 1.35V respectively, the output voltage waveform curve of the second CMOS circuit model 200 is a waveform curve (upper curve in the figure) with a period that is basically consistent with the input voltage waveform curve (lower curve in the figure), an output high level close to 4.5V, and an output low level of 0V with opposite waveforms, thereby realizing the functional requirements of the logic gate circuit of the CMOS inverter when the CMOS interface voltage is connected.

[0068] Taking the first CMOS circuit model 210 as a logic gate circuit of a CMOS inverter as an example, under normal temperature conditions with a power supply voltage of 4.5V, the power consumption current and transmission delay time of the first CMOS circuit model 210 and the second CMOS circuit model 200 are simulated and compared by using the circuit simulation tool spectre, as shown in Table 1.

[0069] Table 1

[0070]

[0071] From the comparison of simulation data in Table 1, it can be seen that the second CMOS circuit model 200 of the embodiment of the present application, on the basis of adding a voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model, only increases the average power consumption current by 0.56% and the average transmission delay time by 0.39% compared with the first CMOS circuit model 210. In terms of simulation performance, the performance parameters of the second CMOS circuit model 200 are basically equivalent to those of the first CMOS circuit model 210.

[0072] In summary, the embodiment of the present application constructs a second CMOS circuit model with multiple voltage modes by adding a voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model to the input end of the first CMOS circuit model in a single voltage mode, and simulates and verifies the voltage compensation performance of the voltage compensation circuit model when in the first voltage mode and the input and output voltage waveforms of the second CMOS circuit model to obtain a first proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage compensation circuit model, and simulates and verifies the voltage transmission performance of the voltage transmission circuit model when in the second voltage mode and the input and output voltage waveforms of the second CMOS circuit model to obtain a second proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage transmission circuit model, and optimizes the voltage compensation circuit model and the voltage transmission circuit model based on the first proportional relationship and the second proportional relationship, and finally obtains the desired multi-voltage mode CMOS circuit through simulation optimization, so that a multi-voltage mode CMOS circuit can be quickly constructed based on the existing single voltage mode CMOS circuit, and the simulation-optimized multi-voltage mode CMOS circuit can achieve good performance requirements of power consumption current and transmission delay time.

[0073] Second embodiment

[0074] The embodiment of the present application further provides a CMOS circuit 300 . Fig.10 FIG. 1 is a schematic diagram of the circuit structure of a CMOS circuit 300 according to the second embodiment of the present application. Fig.10 As shown, the CMOS circuit 300 includes a first CMOS circuit 310, a voltage compensation circuit 320, a voltage transmission circuit 330, and a voltage mode selection circuit 340. The output ends of the voltage compensation circuit 320 and the voltage transmission circuit 330 are both connected to the input end of the first CMOS circuit 310, the input end of the voltage mode selection circuit 340 is connected to the voltage mode enable signal EN, the output end of the voltage mode selection circuit 340 is respectively connected to the first input end of the voltage compensation circuit 320 and the first input end of the voltage transmission circuit 330, and the second input end of the voltage compensation circuit 320 and the second input end of the voltage transmission circuit 330 are connected to the first interface voltage or the second interface voltage.

[0075] In this embodiment, when the voltage mode enable signal EN determines that the interface voltage A currently connected to the CMOS circuit 300 belongs to the first voltage mode of the first interface voltage, that is, when it is determined that the second input terminal of the voltage compensation circuit 320 and the second input terminal of the voltage transmission circuit 330 are connected to the first interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit 340 causes the voltage compensation circuit 320 to be turned on, and the voltage compensation circuit 320 performs voltage compensation on the currently connected first interface voltage to output a third interface voltage A1 to drive the first CMOS circuit 310; at the same time, the output voltage signal of the output terminal of the voltage mode selection circuit 340 causes the voltage transmission circuit 330 to be turned off.

[0076] When the voltage mode enable signal EN determines that the interface voltage A currently connected to the CMOS circuit 300 belongs to the second voltage mode of the second interface voltage, that is, when it is determined that the second input terminal of the voltage compensation circuit 320 and the second input terminal of the voltage transmission circuit 330 are connected to the second interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit 340 causes the voltage compensation circuit 320 to be turned off, and at the same time causes the voltage transmission circuit 330 to be turned on, and the voltage transmission circuit 330 transmits the currently connected second interface voltage, so that the voltage transmission circuit 330 outputs a third interface voltage A1 equivalent to the second interface voltage to drive the first CMOS circuit 310.

[0077] In one embodiment, if Fig.11 As shown, the voltage compensation circuit 320 includes a first NMOS transistor n1, a second NMOS transistor n2, a first PMOS transistor p1, a first inverter T1 composed of a second PMOS transistor p11 and a third NMOS transistor n11, and a second inverter T2 composed of a third PMOS transistor p22 and a fourth NMOS transistor n22. The source and substrate of the first NMOS transistor n1 are connected to the source of the second PMOS transistor p11; the drains of the second PMOS transistor p11 and the third NMOS transistor n11 in the first inverter T1 are connected, the source of the third NMOS transistor n11 is connected to the drain of the second NMOS transistor n2, the gates of the first NMOS transistor n1 and the second NMOS transistor n2 are both connected to the output end of the voltage mode selection circuit 340, and the gates of the second PMOS transistor p11 and the third NMOS transistor n11 are both connected to the first interface voltage or the second interface voltage.

[0078] The drains of the third PMOS tube p22 and the fourth NMOS tube n22 in the second inverter T2 are connected and output the third interface voltage A1, and the gates of the third PMOS tube p22 and the fourth NMOS tube n22 are connected to the drains of the second PMOS tube p11 and the third NMOS tube n11; the drain of the first PMOS tube p1 is connected to the gates of the third PMOS tube p22 and the fourth NMOS tube n22, and the gate of the first PMOS tube p1 is connected to the drains of the third PMOS tube p22 and the fourth NMOS tube n22. The drain of the first NMOS tube n1, the source of the first PMOS tube p1 and the third PMOS tube p22 are connected to the power supply voltage VDD, and the source of the second NMOS tube n2 and the fourth NMOS tube n22 is grounded to gnd.

[0079] Furthermore, if Fig.11 As shown, the voltage mode selection circuit 340 may include a third inverter T3. The voltage transmission circuit 330 may include a fourth PMOS tube p33, a fifth NMOS tube n33, and a fourth inverter T4. The input end of the third inverter T3 is connected to the voltage mode enable signal EN, the output end of the third inverter T3 is connected to the gate of the first NMOS tube n1 and the second NMOS tube n2, and the output end of the third inverter T3 is simultaneously connected to the gate of the fourth PMOS tube p33 and the input end of the fourth inverter T4. The source of the fourth PMOS tube p33 is connected to the source of the fifth NMOS tube n33, and is simultaneously connected to the drain of the third PMOS tube p22 and the fourth NMOS tube n22, that is, the third interface voltage A1 is output; the drain of the fourth PMOS tube p33 is connected to the drain of the fifth NMOS tube n33, and is simultaneously connected to the first interface voltage or the second interface voltage, and the gate of the fifth NMOS tube n33 is connected to the output end of the fourth inverter T4.

[0080] In this embodiment, when the interface voltage A is the first interface voltage, i.e., the TTL interface voltage, the voltage mode enable signal EN inputs a low level signal, and the output end of the third inverter T3 outputs a high level signal. Correspondingly, the output end of the fourth inverter T4 outputs a low level signal. The high level signal output by the third inverter T3 drives the first NMOS tube n1 and the second NMOS tube n2 to be turned on. The high level signal output by the third inverter T3 and the low level signal output by the fourth inverter T4 respectively drive the fourth PMOS tube p33 and the fifth NMOS tube n33 to be turned off. At this time, the interface voltage A is compensated by the voltage compensation circuit 320 to output the third interface voltage A1. The third interface voltage A1 is a CMOS interface voltage and can be used to drive the first CMOS circuit 310 to work.

[0081] In this embodiment, when the interface voltage A is the second interface voltage, i.e., the CMOS interface voltage, the voltage mode enable signal EN inputs a high-level signal, and the output end of the third inverter T3 outputs a low-level signal. Correspondingly, the output end of the fourth inverter T4 outputs a high-level signal. The low-level signal output by the third inverter T3 drives the first NMOS tube n1 and the second NMOS tube n2 to be turned off, and the low-level signal output by the third inverter T3 and the high-level signal output by the fourth inverter T4 respectively drive the fourth PMOS tube p33 and the fifth NMOS tube n33 to be turned on. At this time, the interface voltage A is transmitted through the voltage transmission circuit 330 to directly output the third interface voltage A1. The third interface voltage A1 is a CMOS interface voltage that complies with the CMOS interface voltage standard and is used to drive the first CMOS circuit 310 to work.

[0082] The simulation construction method and CMOS circuit of the CMOS circuit of the embodiment of the present application are constructed by adding a voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model to the input end of the first CMOS circuit model in a single voltage mode to obtain a second CMOS circuit model with multiple voltage modes, and the voltage compensation performance of the voltage compensation circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the first voltage mode are simulated and verified to obtain a first proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage compensation circuit model, and the voltage transmission performance of the voltage transmission circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the second voltage mode are simulated and verified to obtain a second proportional relationship between the channel width-to-length ratios of multiple target transistors in the voltage transmission circuit model, and the voltage compensation circuit model and the voltage transmission circuit model are optimized based on the first proportional relationship and the second proportional relationship, and finally the desired multi-voltage mode CMOS circuit is obtained through simulation optimization, so that the multi-voltage mode CMOS circuit can be quickly constructed based on the existing single voltage mode CMOS circuit, and the simulation-optimized multi-voltage mode CMOS circuit can achieve good performance requirements of power consumption current and transmission delay time.

[0083] Through the description of the above embodiments, it should be understood that the above exemplary embodiments are not restrictive, but illustrative, and the protection scope of the present application is not limited thereto. It should be understood that those skilled in the art can clearly understand that each embodiment of the present application can be implemented by means of hardware logic devices or a combination of hardware and software. Those skilled in the art can modify and modify the embodiments of the present application without departing from the spirit and scope of the present application, and these modifications and modifications should be within the protection scope of the present application.

Claims

1. A simulation construction method for CMOS circuits, It is characterized in that include: A voltage compensation circuit model, a voltage transmission circuit model and a voltage mode selection circuit model are added to the input end of the first CMOS circuit model in a single voltage mode to construct a second CMOS circuit model in a multi-voltage mode, wherein the voltage compensation circuit model is used to perform voltage compensation on the connected first interface voltage to output a third interface voltage to drive the first CMOS circuit model when the voltage mode selection circuit model is in a first voltage mode of a first interface voltage, and the voltage transmission circuit model is used to transmit the connected second interface voltage to output a third interface voltage to drive the first CMOS circuit model when the voltage mode selection circuit model is in a second voltage mode of a second interface voltage; Simulating and verifying the voltage compensation performance of the voltage compensation circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the first voltage mode, obtaining a first proportional relationship between the channel width-to-length ratios of a plurality of target transistors in the voltage compensation circuit model, and optimizing the voltage compensation circuit model based on the first proportional relationship; Simulating and verifying the voltage transmission performance of the voltage transmission circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the second voltage mode, obtaining a second proportional relationship between the channel width-to-length ratios of a plurality of target transistors in the voltage transmission circuit model, and optimizing the voltage transmission circuit model based on the second proportional relationship; The output ends of the voltage compensation circuit model and the voltage transmission circuit model are both connected to the input end of the first CMOS circuit model, the input end of the voltage mode selection circuit model is connected to the voltage mode enable signal, the output end of the voltage mode selection circuit model is respectively connected to the first input end of the voltage compensation circuit model and the first input end of the voltage transmission circuit model, the second input end of the voltage compensation circuit model and the second input end of the voltage transmission circuit model are connected to the first interface voltage or the second interface voltage, wherein the first interface voltage is a TTL interface voltage, and the second interface voltage and the third interface voltage are CMOS interface voltages.

2. The method for constructing a CMOS circuit according to claim 1, It is characterized in that When the voltage mode enable signal determines that the second input terminal of the voltage compensation circuit model and the second input terminal of the voltage transmission circuit model are connected to the first interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit model causes the voltage compensation circuit model to be turned on and the voltage transmission circuit model to be turned off; when the voltage mode enable signal determines that the second input terminal of the voltage compensation circuit model and the second input terminal of the voltage transmission circuit model are connected to the second interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit model causes the voltage compensation circuit model to be turned off and the voltage transmission circuit model to be turned on.

3. The simulation construction method of the CMOS circuit according to claim 2, It is characterized in that The voltage compensation circuit model includes a first NMOS tube, a second NMOS tube, a first PMOS tube, a first inverter composed of a second PMOS tube and a third NMOS tube, and a second inverter composed of a third PMOS tube and a fourth NMOS tube; wherein the source and substrate of the first NMOS tube are connected to the source of the second PMOS tube; the drains of the second PMOS tube and the third NMOS tube are connected, and the source of the third NMOS tube is connected to the drain of the second NMOS tube; the gates of the first NMOS tube and the second NMOS tube are both connected to the output end of the voltage mode selection circuit model, and the gates of the second PMOS tube and the third NMOS tube are connected to the output end of the voltage mode selection circuit model. The first interface voltage or the second interface voltage is connected; the drains of the third PMOS tube and the fourth NMOS tube are connected and output the third interface voltage, and the gates of the third PMOS tube and the fourth NMOS tube are connected to the drains of the second PMOS tube and the third NMOS tube; the drain of the first PMOS tube is connected to the gates of the third PMOS tube and the fourth NMOS tube, and the gate of the first PMOS tube is connected to the drains of the third PMOS tube and the fourth NMOS tube; the drain of the first NMOS tube, the source of the first PMOS tube and the third PMOS tube are all connected to the power supply voltage, and the source of the second NMOS tube and the fourth NMOS tube is grounded.

4. The simulation construction method of the CMOS circuit according to claim 3, It is characterized in that The voltage mode selection circuit model includes a third inverter; the voltage transmission circuit model includes a fourth PMOS tube, a fifth NMOS tube, and a fourth inverter; wherein the input end of the third inverter is connected to the voltage mode enable signal, and the output end of the third inverter is connected to the gates of the first NMOS tube and the second NMOS tube, and is simultaneously connected to the gate of the fourth PMOS tube and the input end of the fourth inverter; the sources of the fourth PMOS tube and the fifth NMOS tube are connected and simultaneously connected to the drains of the third PMOS tube and the fourth NMOS tube, the drains of the fourth PMOS tube and the fifth NMOS tube are connected and connected to the first interface voltage or the second interface voltage, and the gate of the fifth NMOS tube is connected to the output end of the fourth inverter.

5. The simulation construction method of the CMOS circuit according to claim 4, It is characterized in that The voltage compensation performance of the voltage compensation circuit model in the first voltage mode and the input and output voltage waveforms of the second CMOS circuit model are simulated and verified to obtain a first proportional relationship between the channel width-to-length ratios of a plurality of target transistors in the voltage compensation circuit model, and the voltage compensation circuit model is optimized based on the first proportional relationship, including: Using a first ratio of channel width to length ratios among the first NMOS transistor, the second PMOS transistor, and the third NMOS transistor as a first model parameter for simulation optimization of voltage compensation performance of the voltage compensation circuit model; And a second ratio of the channel width to length ratio between the first PMOS tube and the third PMOS tube is used as a second model parameter for simulation optimization of the voltage compensation performance of the voltage compensation circuit model.

6. The simulation construction method of the CMOS circuit according to claim 5, It is characterized in that The simulating and verifying the voltage transmission performance of the voltage transmission circuit model and the input and output voltage waveforms of the second CMOS circuit model when in the second voltage mode, obtaining a second proportional relationship between the channel width-to-length ratios of a plurality of target transistors in the voltage transmission circuit model, and optimizing the voltage transmission circuit model based on the second proportional relationship comprises: A third ratio of the channel width to length ratio between the fourth PMOS transistor and the fifth NMOS transistor is used as a third model parameter for simulation optimization of the voltage transmission performance of the voltage transmission circuit model.

7. A CMOS circuit constructed by the simulation construction method according to any one of claims 1 to 6, It is characterized in that include: A first CMOS circuit, a voltage compensation circuit, a voltage transmission circuit and a voltage mode selection circuit; wherein the output ends of the voltage compensation circuit and the voltage transmission circuit are both connected to the input end of the first CMOS circuit, the input end of the voltage mode selection circuit is connected to a voltage mode enable signal, the output end of the voltage mode selection circuit is respectively connected to the first input end of the voltage compensation circuit and the first input end of the voltage transmission circuit, the second input end of the voltage compensation circuit and the second input end of the voltage transmission circuit are connected to a first interface voltage or a second interface voltage; wherein the voltage compensation circuit is used to perform voltage compensation on the connected first interface voltage to output a third interface voltage to drive the first CMOS circuit when the voltage mode selection circuit is in a first voltage mode of the first interface voltage, and the voltage transmission circuit is used to transmit the connected second interface voltage to output a third interface voltage to drive the first CMOS circuit when the voltage mode selection circuit is in a second voltage mode of the second interface voltage, the first interface voltage is a TTL interface voltage, and the second interface voltage and the third interface voltage are CMOS interface voltages.

8. The CMOS circuit according to claim 7, It is characterized in that When the voltage mode enable signal determines that the second input terminal of the voltage compensation circuit and the second input terminal of the voltage transmission circuit are connected to the first interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit causes the voltage compensation circuit to be turned on and the voltage transmission circuit to be turned off; When the voltage mode enable signal determines that the second input terminal of the voltage compensation circuit and the second input terminal of the voltage transmission circuit are connected to the second interface voltage, the output voltage signal of the output terminal of the voltage mode selection circuit causes the voltage compensation circuit to be turned off and the voltage transmission circuit to be turned on.

9. The CMOS circuit according to claim 8, It is characterized in that The voltage compensation circuit includes a first NMOS tube, a second NMOS tube, a first PMOS tube, a first inverter composed of a second PMOS tube and a third NMOS tube, and a second inverter composed of a third PMOS tube and a fourth NMOS tube; wherein the source and substrate of the first NMOS tube are connected to the source of the second PMOS tube; the drains of the second PMOS tube and the third NMOS tube are connected, and the source of the third NMOS tube is connected to the drain of the second NMOS tube; the gates of the first NMOS tube and the second NMOS tube are both connected to the output end of the voltage mode selection circuit, and the gates of the second PMOS tube and the third NMOS tube are connected to the output end of the voltage mode selection circuit. The first interface voltage or the second interface voltage; the drains of the third PMOS tube and the fourth NMOS tube are connected and output the third interface voltage, and the gates of the third PMOS tube and the fourth NMOS tube are connected to the drains of the second PMOS tube and the third NMOS tube; the drain of the first PMOS tube is connected to the gates of the third PMOS tube and the fourth NMOS tube, and the gate of the first PMOS tube is connected to the drains of the third PMOS tube and the fourth NMOS tube; the drain of the first NMOS tube, the sources of the first PMOS tube and the third PMOS tube are all connected to the power supply voltage, and the sources of the second NMOS tube and the fourth NMOS tube are grounded; The voltage mode selection circuit includes a third inverter; the voltage transmission circuit includes a fourth PMOS tube, a fifth NMOS tube, and a fourth inverter; wherein the input end of the third inverter is connected to the voltage mode enable signal, and the output end of the third inverter is connected to the gates of the first NMOS tube and the second NMOS tube, and is simultaneously connected to the gate of the fourth PMOS tube and the input end of the fourth inverter; the sources of the fourth PMOS tube and the fifth NMOS tube are connected and simultaneously connected to the drains of the third PMOS tube and the fourth NMOS tube, the drains of the fourth PMOS tube and the fifth NMOS tube are connected and connected to the first interface voltage or the second interface voltage, and the gate of the fifth NMOS tube is connected to the output end of the fourth inverter.

Citation Information

Patent Citations

  • TTL and CMOS compatible input buffer

    CN101282114A

  • Simulating method of circuit stability of static random access memory

    CN101290807A

  • Leakage output buffer for univoltage supply cmos

    CN101471654A

  • Interface circuit which provides voltage conversion for TTL and CMOS circuits

    CN103607193A

  • High-speed CMOS port circuit compatible with TTL level

    CN114584131A