A compact T flip-flop circuit with asynchronous reset
By introducing a combination of clock-controlled switching devices and NAND gates into the T flip-flop circuit, it is possible to add an asynchronous reset function to the T flip-flop without increasing area and power consumption, solving the problem of adding a reset function to the T flip-flop. It achieves the same performance as the traditional T flip-flop while eliminating the area and power consumption issues.
Patent Information
- Application Number
- CN202010187985.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-17
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-03-17
AI Technical Summary
In integrated circuits, T flip-flops usually introduce additional area and power consumption overhead when adding asynchronous reset functions, making it difficult to implement without increasing circuit area and power consumption.
A compact T flip-flop circuit with asynchronous reset is designed by using a first clock-controlled switching device, a second clock-controlled switching device, a third clock-controlled switching device, a fourth clock-controlled switching device, a NAND gate and an inverter The combination of phasers uses the clock signal to control the staggered opening to realize the asynchronous reset function, and adds the asynchronous reset function without increasing additional area and power consumption.
It is possible to introduce an asynchronous reset function into the T flip-flop without increasing the area and power consumption, and the T flip-flop of this structure is equivalent to the traditional T flip-flop in terms of power consumption, area and speed, and only increases in the circuit structure. 2 NAND gates and 2 inverters are eliminated.
Smart Images

Figure CN111294016B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of integrated circuits and relates to the design of a T flip-flop circuit, in particular to a compact T flip-flop circuit with asynchronous reset. Background Art
[0002] With the rapid development of integrated circuit technology, the integrated circuit industry has entered the nano era. The scale of circuits continues to increase, and the requirements for circuit functions are gradually increasing. The addition of additional functions often brings additional area and power consumption. When adding new circuit functions, ensuring area and power consumption becomes a key issue.
[0003] The T flip-flop circuit is an important timing circuit in digital design and is widely used in functional modules such as frequency divider circuits and counter circuits. Adding an asynchronous reset function to the T flip-flop can increase the scalability and applicability of the T flip-flop. The function of the T flip-flop is to implement the switching of the output 0 or 1 in the timing logic. Whenever the clock rises, the output switches from 0 to 1 or from 1 to 0, otherwise it remains unchanged. The common T flip-flop is converted from the D flip-flop. The circuit is as follows Figure 1 As shown in FIG. 1 , the T flip-flop consists of 4 transmission gates and 5 inverters, and has no asynchronous reset function. However, adding an asynchronous reset function to a T flip-flop often increases additional area and power consumption. Summary of the invention
[0004] In view of the shortcomings of the above-mentioned T flip-flop without reset function and the additional area and power consumption caused by adding the reset function, the present invention proposes a compact T flip-flop circuit with asynchronous reset function, which introduces the asynchronous reset function without increasing the area and power consumption.
[0005] The technical solution of the present invention is:
[0006] A compact T-flip-flop circuit with asynchronous reset includes a first clock-controlled switch device, a second clock-controlled switch device, a third clock-controlled switch device, a fourth clock-controlled switch device, a first NAND gate, a second NAND gate, a first inverter and a second inverter.
[0007] The first input end of the first NAND gate and the first input end of the second NAND gate are connected to the enable signal, the output end of the first NAND gate is connected to the input end of the first clock-controlled switch device, the input end of the second clock-controlled switch device and the input end of the first inverter, and the output end of the second NAND gate is connected to the input end of the third clock-controlled switch device;
[0008] The output terminal of the first inverter outputs the output signal of the T flip-flop circuit;
[0009] An output terminal of the first clock-controlled switching device is connected to an output terminal of the third clock-controlled switching device and an input terminal of the second inverter;
[0010] The input end of the fourth clock-controlled switch device is connected to the output end of the second inverter and the second input end of the second NAND gate, and the output end thereof is connected to the output end of the second clock-controlled switch device and the second input end of the first NAND gate;
[0011] When the clock signal output is in the first state, the first clock-controlled switch device and the second clock-controlled switch device are turned on, and the input signals of the first clock-controlled switch device and the second clock-controlled switch device are inverted and output; when the clock signal output is in the second state, the first clock-controlled switch device and the second clock-controlled switch device are turned off;
[0012] When the clock signal output is in the first state, the third clock-controlled switch device and the fourth clock-controlled switch device are turned off; when the clock signal output is in the second state, the third clock-controlled switch device and the fourth clock-controlled switch device are turned on to output the input signals of the third clock-controlled switch device and the fourth clock-controlled switch device.
[0013] Specifically, the first clock-controlled switch device and the second clock-controlled switch device have the same structure.
[0014] The first clock control switch device includes a first NMOS transistor, a second NMOS transistor, a first PMOS transistor and a second PMOS transistor.
[0015] The gate of the first PMOS tube is connected to the gate of the second NMOS tube and serves as the input end of the first clock control switch device, the source of the first PMOS tube is connected to the power supply voltage, and the drain of the first PMOS tube is connected to the source of the second PMOS tube;
[0016] The gate of the second PMOS tube is connected to the clock signal, and the drain thereof is connected to the drain of the first NMOS tube and serves as the output end of the first clock control switch device;
[0017] The gate of the first NMOS tube is connected to the inverted signal of the clock signal, and the source thereof is connected to the drain of the second NMOS tube;
[0018] The source of the second NMOS tube is grounded.
[0019] Specifically, the gate signal of the second PMOS tube and the gate signal of the first NMOS tube in the first clock control switch device are interchanged, the gate of the second PMOS tube is connected to the inverted signal of the clock signal, and the gate of the first NMOS tube is connected to the clock signal.
[0020] Specifically, the third clock-controlled switch device and the fourth clock-controlled switch device are transmission gates, which include a third NMOS tube and a third PMOS tube. The gate of the third NMOS tube is connected to the clock signal, the drain of the third NMOS tube is connected to the drain of the third PMOS tube and serves as the input of the transmission gate, and the source of the third NMOS tube is connected to the source of the third PMOS tube and serves as the output of the transmission gate; the gate of the third PMOS tube is connected to the inverted signal of the clock signal.
[0021] Specifically, the third clock-controlled switch device and the fourth clock-controlled switch device are transmission gates, which include a third NMOS tube and a third PMOS tube. The gate of the third NMOS tube is connected to the inverted signal of the clock signal, the drain of the third NMOS tube is connected to the drain of the third PMOS tube and serves as the input of the transmission gate, and the source of the third NMOS tube is connected to the source of the third PMOS tube and serves as the output of the transmission gate; the gate of the third PMOS tube is connected to the clock signal.
[0022] Beneficial effects of the present invention: In the T flip-flop proposed by the present invention, the first clock-controlled switch device, the second clock-controlled switch device, the third clock-controlled switch device, and the fourth clock-controlled switch device are turned on alternately under the control of the clock signal, thereby realizing the function of the T flip-flop with asynchronous reset; and the present invention adds the asynchronous reset function to the T flip-flop without increasing the additional area and power consumption; in the embodiment, C 2 MOS inverters realize the first clock control switch device and the second clock control switch device, and transmission gates realize the third clock control switch device and the fourth clock control switch device. Figure 1 Compared with the traditional T flip-flop without asynchronous reset function, the structure only adds two NAND gates and saves two inverters to realize the function of T flip-flop with asynchronous reset. The T flip-flop of this structure is comparable to the traditional T flip-flop in power consumption, area and speed. Figure 1 The T flip-flop is equivalent to. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a commonly used T flip-flop circuit diagram.
[0024] Figure 2 The present invention provides a circuit diagram of a compact T-flip-flop circuit with asynchronous reset in an embodiment.
[0025] Figure 3 The present invention provides a timing diagram of a compact T-flip-flop circuit with asynchronous reset in an embodiment. DETAILED DESCRIPTION
[0026] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0027] The present invention provides a compact T-flip-flop circuit with asynchronous reset, comprising a first clock-controlled switch device, a second clock-controlled switch device, a third clock-controlled switch device, a fourth clock-controlled switch device, a first NAND gate NAND1, a second NAND gate NAND2, a first inverter INV2 and a second inverter INV3, a first input end of the first NAND gate NAND1 and a first input end of the second NAND gate NAND2 connected to an enable signal EN, an output end of the first NAND gate NAND1 connected to an input end of the first clock-controlled switch device, an input end of the second clock-controlled switch device and a first inverter INV3 The input end of an inverter INV2 and the output end of the second NAND gate NAND2 are connected to the input end of the third clock-controlled switch device; the output end of the first inverter INV2 outputs the output signal of the T flip-flop circuit; the output end of the first clock-controlled switch device is connected to the output end of the third clock-controlled switch device and the input end of the second inverter INV3; the input end of the fourth clock-controlled switch device is connected to the output end of the second inverter INV3 and the second input end of the second NAND gate NAND2, and its output end is connected to the output end of the second clock-controlled switch device and the second input end of the first NAND gate NAND1.
[0028] The first clock-controlled switch device, the second clock-controlled switch device, the third clock-controlled switch device, and the fourth clock-controlled switch device are controlled by the clock signal CLK, and their functions are that when the clock signal CLK outputs the first state, the first clock-controlled switch device and the second clock-controlled switch device are turned on, and the input signals of the first clock-controlled switch device and the second clock-controlled switch device are inverted and output; when the clock signal CLK outputs the second state, the first clock-controlled switch device and the second clock-controlled switch device are turned off. When the clock signal CLK outputs the first state, the third clock-controlled switch device and the fourth clock-controlled switch device are turned off; when the clock signal CLK outputs the second state, the third clock-controlled switch device and the fourth clock-controlled switch device are turned on, and the input signals of the third clock-controlled switch device and the fourth clock-controlled switch device are output. When the first state of the clock signal CLK is a high level, its second state is a low level; when the first state of the clock signal CLK is a low level, its second state is a high level.
[0029] In some embodiments, the first clock-controlled switch device and the second clock-controlled switch device may be C 2 MOS Inverter (Clocked CMOS Inverter), C 2 MOS inverter for the clock signal CLK and the inverted signal of the clock signal is not sensitive to overlap. Figure 2As shown, the first clock-controlled switch device includes a first NMOS tube, a second NMOS tube, a first PMOS tube and a second PMOS tube. The gate of the first PMOS tube is connected to the gate of the second NMOS tube and serves as the input end of the first clock-controlled switch device, the source of the first PMOS tube is connected to the power supply voltage VDD, and the drain of the first PMOS tube is connected to the source of the second PMOS tube; the gate of the second PMOS tube is connected to the clock signal CLK, the drain of the second PMOS tube is connected to the drain of the first NMOS tube and serves as the output end of the first clock-controlled switch device; the gate of the first NMOS tube is connected to the inverted signal of the clock signal CLK, and the source of the first NMOS tube is connected to the drain of the second NMOS tube; the source of the second NMOS tube is grounded.
[0030] The third clock control switch device and the fourth clock control switch device can adopt a transmission gate, which includes a third NMOS tube and a third PMOS tube. The gate of the third NMOS tube is connected to the clock signal CLK, the drain of the third NMOS tube is connected to the drain of the third PMOS tube and serves as the input of the transmission gate, and the source of the third NMOS tube is connected to the source of the third PMOS tube and serves as the output of the transmission gate; the gate of the third PMOS tube is connected to the inverted signal of the clock signal CLK. Of course, in addition to C 2 The MOS inverter and the transmission gate, the first clock-controlled switch device, the second clock-controlled switch device, the third clock-controlled switch device and the fourth clock-controlled switch device can also be replaced by devices of other structures to achieve the same function.
[0031] In this embodiment, the clock signal CLK is passed through an inverter INV1 to obtain its inverted signal , CLK and A pair of inverse control clocks of the first clock-controlled switching device C2MOS1 and the second clock-controlled switching device C2MOS2 using C2MOS inverters and the third clock-controlled switching device TG1 and the fourth clock-controlled switching device TG2 using transmission gates.
[0032] The working process and working principle of this embodiment are as follows:
[0033] The enable signal EN and the third intermediate signal L3 at the output end of the second clock control switch device C2MOS2 and the fourth clock control switch device TG2 are coupled to the first NAND gate NAND1 to obtain a signal Signal The signal Q is obtained through the first inverter INV2. The T flip-flop proposed in the present invention has a pair of inverting outputs.
[0034] Signal The second intermediate signal L2 is obtained through the first clock-controlled switching device C2MOS1 and the third intermediate signal L3 is obtained through the second clock-controlled switching device C2MOS2, wherein the second intermediate signal L2 is obtained through the second inverter INV3 to obtain the first intermediate signal L1, and the first intermediate signal L1 is obtained through the fourth clock-controlled switching device TG2 formed by the transmission gate to obtain the third intermediate signal L3.
[0035] The enable signal EN and the first intermediate signal L1 are coupled to the second NAND gate NAND2 to obtain a fourth intermediate signal L0 . The fourth intermediate signal L0 is coupled to the third clock-controlled switch device TG1 formed by a transmission gate to obtain a second intermediate signal L2 .
[0036] The working sequence diagram of this embodiment is as follows: Figure 3 The detailed description is as follows:
[0037] 1) When the enable signal EN is 0, due to the action of the first NAND gate NAND1, the signal If Q remains at 1, the output signal Q of the T flip-flop remains at 0, that is, when the asynchronous enable EN=0, the output Q remains at 0. If Q=1 at this time, Q is reset to make Q=1.
[0038] The change of the intermediate signal is as follows Figure 3 As shown: In the initial state, the clock signal CLK = 0, C 2 MOS1 and C 2 MOS2 is turned on, TG1 and TG2 are turned off, L2 and L3 are controlled by C 2 MOS1 and C 2 MOS2 controls L2=L3=0 at this time, L2 passes through the second inverter INV3 to make L1=1, because TG1 and TG2 are turned off, L2 and L3 remain at 0, L1 remains at 1, and because EN=0, L0 remains at 1 through the NAND gate NAND2.
[0039] When the clock signal CLK rises, TG1 and TG2 are turned on, and C 2 MOS1 and C 2 MOS2 is turned off, and L2 and L3 are controlled by TG1 and TG2. At this time, L2=L0=1. L2 passes through the second inverter INV3, making L1=0. Since L1=1 before, a glitch is generated, and finally L3=0.
[0040] When the falling edge of the clock signal CLK arrives, TG1 and TG2 are turned off, and C 2 MOS1 and C 2 MOS2 is turned on, and this state is the same as the initial state.
[0041] 2) When the enable signal EN = 1, the first NAND gate NAND1 and the second NAND gate NAND2 are equivalent to inverters. If the clock signal CLK = 0 at this time, C 2 MOS1 and C 2 MOS2 is turned on, TG1 and TG2 are turned off, then L2=L3=0, L1=1, Q=0, since EN=1, L1=1, then L0=0.
[0042] When the next clock signal CLK rises, TG1 and TG2 are turned on, and C 2 MOS1 and C 2 MOS2 is turned off, L2=L0=0, L3=L1=1, and EN=1, and after passing through the first NAND gate NAND1, With Q flip, that is Q=1.
[0043] When the next clock signal CLK falls, C 2 MOS1 and C 2 MOS2 is turned on, TG1 and TG2 are turned off, L2=L3=1, keep Q=1, L2 passes through the second inverter INV3, making L1=0, and L1 passes through the second NAND gate NAND2, making L0=1.
[0044] When the next clock signal CLK rises, TG1 and TG2 are turned on, and C 2 MOS1 and C 2 MOS2 is turned off, L2=L0=1, L3=L1=0, making With Q flip, that is Q=0. And so on. Whenever the rising edge of the clock signal CLK comes, With Q flip.
[0045] According to the above analysis, in this embodiment, when the enable signal EN=0, the output is reset and the Q=0; when the enable signal EN=1, starting from the next rising edge of the clock signal CLK, every time the rising edge of the clock signal CLK arrives, And Q flip. Therefore, the present invention realizes the function of T flip-flop with asynchronous reset.
[0046] Similarly, the first clock control switch device and the second clock control switch device use C 2 In the MOS inverter, and in the transmission gates used by the third clock control switch device and the fourth clock control switch device, the clock control can also be performed by exchanging the clock signal CLK and the inverted signal of the clock signal CLK, that is, C 2The gate signal of the second PMOS tube in the MOS inverter is interchanged with the gate signal of the first NMOS tube. The gate of the second PMOS tube is connected to the inverted signal of the clock signal CLK, and the gate of the first NMOS tube is connected to the clock signal CLK. At the same time, the gate of the third NMOS tube in the transmission gate is connected to the inverted signal of the clock signal CLK, and the gate of the third PMOS tube is connected to the clock signal CLK. At this time, when the enable signal EN=0, the output is reset. When the enable signal EN=1, starting from the next falling edge of the clock signal CLK, every time the falling edge of the clock signal CLK arrives, With Q flip.
[0047] like Figure 2 As shown, in this embodiment, two transmission gates, three inverters (one of which is used to generate an inverted signal of a clock signal), and two C 2 MOS inverter and two NAND gates realize T flip-flop with asynchronous reset. Figure 1 The traditional T flip-flop circuit without asynchronous reset is shown in the figure. The two transmission gates TG in the traditional structure are replaced by C 2 MOS inverter, two inverters are replaced by NAND gates, and asynchronous multiplexing function is added while maintaining the same area, power consumption and speed.
[0048] In this embodiment, C 2 MOS inverters are used to implement the first clock-controlled switching device and the second clock-controlled switching device, and transmission gates are used to implement the third clock-controlled switching device and the fourth clock-controlled switching device. However, devices with other structures can also be used to implement the first clock-controlled switching device, the second clock-controlled switching device, the third clock-controlled switching device and the fourth clock-controlled switching device, and the specific clock control can also be flexibly adjusted. Simple replacements based on the design concept of the present invention should fall within the scope of protection of the present invention.
[0049] A person skilled in the art may make various other specific modifications and combinations based on the technical inspirations disclosed in the present invention without departing from the essence of the present invention, and these modifications and combinations are still within the protection scope of the present invention.
Claims
1. A compact T-flip flop circuit with asynchronous reset, characterized in that: The invention comprises a first clock-controlled switch device, a second clock-controlled switch device, a third clock-controlled switch device, a fourth clock-controlled switch device, a first NAND gate, a second NAND gate, a first inverter and a second inverter, The first input end of the first NAND gate and the first input end of the second NAND gate are connected to the enable signal, the output end of the first NAND gate is connected to the input end of the first clock-controlled switch device, the input end of the second clock-controlled switch device and the input end of the first inverter, and the output end of the second NAND gate is connected to the input end of the third clock-controlled switch device; The output terminal of the first inverter outputs the output signal of the T flip-flop circuit; An output terminal of the first clock-controlled switching device is connected to an output terminal of the third clock-controlled switching device and an input terminal of the second inverter; The input end of the fourth clock-controlled switch device is connected to the output end of the second inverter and the second input end of the second NAND gate, and the output end thereof is connected to the output end of the second clock-controlled switch device and the second input end of the first NAND gate; When the clock signal output is in the first state, the first clock-controlled switch device and the second clock-controlled switch device are turned on, and the input signals of the first clock-controlled switch device and the second clock-controlled switch device are inverted and then output; When the clock signal output is in the second state, the first clock-controlled switch device and the second clock-controlled switch device are turned off; When the clock signal output is in the first state, the third clock-controlled switch device and the fourth clock-controlled switch device are turned off; when the clock signal output is in the second state, the third clock-controlled switch device and the fourth clock-controlled switch device are turned on to output the input signals of the third clock-controlled switch device and the fourth clock-controlled switch device.
2. The compact T-flip flop circuit with asynchronous reset according to claim 1, characterized in that: The first clock-controlled switch device and the second clock-controlled switch device have the same structure, The first clock control switch device includes a first NMOS transistor, a second NMOS transistor, a first PMOS transistor and a second PMOS transistor. The gate of the first PMOS tube is connected to the gate of the second NMOS tube and serves as the input end of the first clock control switch device, the source of the first PMOS tube is connected to the power supply voltage, and the drain of the first PMOS tube is connected to the source of the second PMOS tube; The gate of the second PMOS tube is connected to the clock signal, and the drain thereof is connected to the drain of the first NMOS tube and serves as the output end of the first clock control switch device; The gate of the first NMOS tube is connected to the inverted signal of the clock signal, and the source thereof is connected to the drain of the second NMOS tube; The source of the second NMOS tube is grounded.
3. The compact T-flip flop circuit with asynchronous reset according to claim 2, characterized in that: The gate signal of the second PMOS tube and the gate signal of the first NMOS tube in the first clock control switch device are interchanged, the gate of the second PMOS tube is connected to the inverted signal of the clock signal, and the gate of the first NMOS tube is connected to the clock signal.
4. The compact T-flip flop circuit with asynchronous reset according to any one of claims 1 or 2, characterized in that: The third clock-controlled switch device and the fourth clock-controlled switch device are transmission gates, and the transmission gates include a third NMOS tube and a third PMOS tube, the gate of the third NMOS tube is connected to the clock signal, the drain of the third NMOS tube is connected to the drain of the third PMOS tube and serves as the input of the transmission gate, and the source of the third NMOS tube is connected to the source of the third PMOS tube and serves as the output of the transmission gate; The gate of the third PMOS tube is connected to the inverted signal of the clock signal.
5. The compact T-flip flop circuit with asynchronous reset according to claim 3, characterized in that: The third clock-controlled switch device and the fourth clock-controlled switch device are transmission gates, and the transmission gates include a third NMOS tube and a third PMOS tube, the gate of the third NMOS tube is connected to the inverted signal of the clock signal, the drain of the third NMOS tube is connected to the drain of the third PMOS tube and serves as the input end of the transmission gate, and the source of the third NMOS tube is connected to the source of the third PMOS tube and serves as the output end of the transmission gate; The gate of the third PMOS tube is connected to the clock signal.
Citation Information
Patent Citations
T trigger circuit with asynchronous reset
CN210986064U
Flexible synchronous / asynchronous cell structure for a high density programmable logic device
US5811986A
