In an embodiment of the invention, a flip-flop circuit contains a 2-input multiplexer, a master latch, a transfer gate and a slave latch. The scan enable control signals SE and SEN of the multiplexer determine whether data or scan data is input to the master latch. clock signals CKT and CLKZ and retention control signals RET and RETN determine when the master latch is latched. The slave latch is configured to receive the output of the master latch, a second data bit D2, the clock signals CKT and CLN, the retain control signals RET and RETN, the slave control signals SS and SSN. The signals CKT, CLKZ, RET, RETN, SS, SSN and PREN determine whether the output of the master latch or the second data bit D2 is latched in the slave latch. control signals RET and RETN determine when data is stored in the slave latch during retention mode.
|
1. A flip-flop circuit comprising:
a multiplexer configured to receive a first data bit, a scan data bit, a scan enable control signal and a binary logical compliment signal of the scan enable control signal, wherein the scan enable control signal and the binary logical compliment signal of the scan enable control signal determine whether a data output of the multiplexer is the binary compliment of the first data bit or the binary compliment of scan data bit;
a master latch configured to receive the data output of the multiplexer, a clock signal, a binary logical compliment signal of the clock signal, a retain control signal and a binary logical compliment signal of the retain control signal, a reset signal and a binary logical compliment signal of the reset signal wherein the signals clock signal, the binary logical compliment signal of the clock signal, the retain control signal the binary logical compliment signal of the retain control signal, the reset signal and the binary logical compliment signal of the reset signal determine when the binary logical value of the data output of the multiplexer is presented on the output of the master latch and when the output of the master latch is latched in the master latch,
wherein the master latch comprises: a first clocked inverter, the first clocked inverter having a data input, two control inputs and a data output wherein the data input of the first clocked inverter is electrically connected to the data output of the multiplexer, the first control input of the first clocked inverter is electrically connected to the clock signal, and the second control input of the first clocked inverter is connected to the binary logical compliment signal of the clock signal; a tri-state inverter, the tri-state inverter having a data input, two control inputs and a data output wherein the data input of the tri-state inverter is electrically connected to the data output of the first clocked inverter, the first control input of the tri-state inverter is electrically connected to the retain control signal, the second control input of the tri-state inverter is connected to the binary logical compliment signal of the retain control signal and the third control input is connected to the binary logical compliment signal of the reset signal; a second clocked inverter, the second clocked inverter having a data input, two control inputs and a data output wherein the data input of the second clocked inverter is electrically connected to the data output of the tri-state inverter, the first control input of the second clocked inverter is electrically connected to the clock signal, the second control input of the second clocked inverter is connected to the binary logical compliment signal of the clock signal and the output of the second clocked inverter is electrically connected to the output of the first clocked inverter and to the input of the tri-state inverter;
a transfer gate wherein the transfer gate transfers data from the output of the master latch to the output of the transfer gate when the clock signal transitions from a low logical value to a logical high value;
a slave latch configured to receive the output of the transfer gate, a second data bit, the clock signal, the binary logical compliment signal of the clock signal, the retain control signal, the binary logical compliment signal of the retain control signal, a slave control signal and a binary logical compliment signal of the slave control signal wherein the clock signal, the binary logical compliment signal of the clock signal, the retain control signal, the binary logical compliment signal of the retain control signal, the slave control signal and the binary logical compliment signal of the slave control signal determine whether the output of the transfer gate or the second data bit is latched in the slave latch.
2. The flip-flop circuit of
3. The flip-flop circuit of
4. The flip-flop circuit of
5. The flip-flop of
6. The flip-flop of
7. The flip-flop circuit of
8. The flip-flop of
an NMOS transistor having a gate, drain and source wherein the gate of the NMOS transistor is electrically connected to the clock signal;
a PMOS transistor having a gate, drain and source wherein the gate of the PMOS transistor is electrically connected to the binary logical compliment signal of the clock signal, the drains of the NMOS and PMOS transistors are electrically connected and the sources of the NMOS and PMOS transistors are electrically connected.
9. The flip-flop of
a first tri-state inverter, the first tri-state inverter having a data input, two control inputs and a data output wherein the data input of the first tri-state inverter is electrically connected to the output of the transfer gate, the first control input of the first tri-state inverter is electrically connected to the slave control signal, and the second control input of the first tri-state inverter is connected to the binary logical compliment signal of the slave control signal;
a second tri-state inverter, the second tri-state inverter having a data input, two control inputs and a data output wherein the data input of the second tri-state inverter is electrically connected to the second data bit, the first control input of the second tri-state inverter is electrically connected to the slave control signal, and the second control input of the second tri-state inverter is connected to the binary logical compliment signal of the slave control signal and the outputs of the first and second tri-state inverter are electrically connected to each other;
a clocked inverter, the clocked inverter having a data input, four control inputs and a data output wherein the data input of the clocked inverter is electrically connected to the data output of the first and second tri-state inverters, a first control input of the clocked inverter is electrically connected to the clock signal, a second control input of the clocked inverter is connected to the binary logical compliment signal of the clock signal, a third control input of the clocked inverter is electrically connected to the retain control signal, a fourth control input of the clocked inverter is electrically connected to the binary logical compliment signal of the retain control signal and the output of the clocked inverter is electrically connected to the input of the first tri-state inverter.
10. The flip-flop circuit of
11. The flip-flop circuit of
12. The flip-flop circuit of
|
This Application claims priority from Provisional Application No. 61/766,228, filed Feb. 19, 2013.
Several trends presently exist in the semiconductor and electronics industry. Devices are continually being made smaller, faster and requiring less power. One reason for these trends is that more personal devices are being fabricated that are relatively small and portable, thereby relying on a battery as their primary supply. For example, cellular phones, personal computing devices, and personal sound systems are devices that are in great demand in the consumer market. It is also important that data on these devices be retained even when no power is supplied to the electronic device. Non-volatile memory circuits and non-volatile logic circuits are often used to meet these requirements.
Non-volatile logic implementation often requires updating sequential elements, such as flip-flops, from a source external to the sequential element, such as a non-volatile memory. When non-volatile logic circuits are implemented to allow the updating of sequential elements, it is desired that the implementation of the non-volatile logic circuit does not significantly slow the operation of a sequential element.
In an embodiment of the invention, a flip-flop circuit contains a 2-input multiplexer, a master latch, a transfer gate and a slave latch. The multiplexer is configured to receive a first data bit D1, a scan data bit SD, a scan enable control signal SE and a binary logical compliment signal SEN of the scan enable control signal SE. The scan enable control signals SE and SEN determine when the data output MXO of the multiplexer is the compliment of data bit D1 or scan data bit SD. The master latch is configured to receive the data output MXO from the multiplexer, a clock signal CKT, a binary logical compliment signal CLKZ of the clock signal CKT, a retain control signal RET, the binary logical compliment signal RETN of the retain control signal RET, a reset signal RE and the binary logical compliment REN of the reset signal RE. The signals CKT, CLKZ, RET RETN, RE and REN determine when the binary logical value of the data output MXO from the multiplexer is presented on the output MLO of the latch and when the MLO of the master latch is latched in the master latch or when MLO is tri-stated or is kept high.
A transfer gate transfers data from the output MLO of the master latch to the slave latch when the clock signal CKT transitions from a low logical value to a logical high value. The slave latch is configured to receive the output of the transfer gate, a second data bit D2, the clock signal CKT, the binary logical compliment signal CLKZ of the clock signal CKT, the retain control signal RET, the binary logical compliment signal RETN of the retain control signal RET, a slave control signal SS and the binary logical compliment signal SSN of the slave control signal SS. The signals CKT, CLKZ, RET, RETN, SS and SSN determine whether the binary logical value of the output of transfer gate or the second data bit (D2) is latched in the slave latch.
Non-volatile logic implementations often require updating sequential elements (e.g. flip-flops) from an external source (e.g. non-volatile memory). In an embodiment of the invention, the slave latch includes a second data input (port). The second data input is used to insert data from an external source. A tri-state inverter is added to the slave latch to accommodate the second data input. This will be explained in more detail later in the specification. When external data needs to be inserted into the slave latch, the tri-state inverter is enabled. During this time, the latch feedback is disabled by causing a forward inverter to be tri-stated with the opposite control signal as the former tri-state inverter.
The added circuitry used to add the second input to the slave latch are not part of the critical timing path of the flip-flop. As a result, change to the regular performance of the flip-flop is negligible.
When the clock signal CKT transitions from a high to a low logical level, the logical compliment of the data on the input IN of the master latch 104 is presented on node 308 of the master latch 104. Because the flop-flop 100 is operating in the functional mode, the tri-state inverter 306 is active and drives the output MLO of the master latch 104 to the same logical value as the input MXO of the master latch 104. When the clock signal CKT transitions from the low logical level to a high logical level (i.e. positive edge of CKT), the logical level on node 308 is latched and the logical level on the output MLO of the master latch 104 is transferred by the transfer gate 106 to QN. Inverter 110 passes the complement of the output MLO of the master latch to the output Q. In this embodiment of the invention, the overall signal path from the input D1 of the multiplexor 102 to the Q output of inverter 110 in the slave latch 108 is non-inverting. However, in other embodiments, the overall signal path can be inverting.
Because the flop-flop 100 is operating in the functional mode, the tri-state inverter 502 is active and drives node SX of the slave latch 108 to the complimentary logical value as the QN of the slave latch 108. When the clock signal CKT transitions from a high logical level to a low logical level, the logical level on the QN is latched by the clocked inverter 504. In this embodiment of the invention, an inverter 110 is used to buffer the QN of the slave latch 108. However, non-inverting buffers may be used as well. The tri-state inverter 506 is tri-stated in this mode because SS is a logical low level and SSN is a logical high level. As a result, D2 is not transferred to node SX.
However, during another functional mode of operation, data D2 may be written directly to the slave latch 108 (See
When control signal SS is held at a logical high level and control signal SSN is held at logical low level, tri-state inverter 506 is able to drive the complimentary value of D2 onto node SX of the slave latch 108. Because CKT and RET are held at logical low levels and CLKZ and RETN are held at logical high levels, the clocked inverter 504 is active and drives node QN to the logical value of D2. The inverter 110 then inverts the logical value on node QN to its compliment. In this example, the compliment of D2 is presented on node Q. Data signal D2 must be held for the period t3 to insure that the correct value of D2 is latched. Also, control signal SS must remain at logical high value for time t2 to insure that the correct value D2 is latched.
When control signal SS is driven from a logical high level to a logical low level and SSN is driven from a logical low level to a logical high level, the tri-state inverter 506 is tri-stated and tri-state inverter 502 becomes active latching the logical value on node QN of the slave latch 108.
In a scan (i.e. test) mode of operation, the scan enable signal SE is driven to a high logical level and the binary compliment signal SEN of SE is held a logical low level. Because the flip-flop 100 is being operated in the scan mode, the retention mode signal RET is held at a logical low level, the binary compliment signal RETN of signal RET is held at a logical high level, the slave control signal SS is held at a logical low level, the binary compliment signal SSN of the slave control signal is held at a logical high level, RE is held at a logical low level and REN is held at a logical high level. Power is needed for functional scan operation so power supply VDD1 and power supply VDD2 are applied to the flip-flop 100.
The flip-flop 100 can also be operated to retain data (RET mode) in the slave latch 108 (power supply VDD2 is active) while the 2-to-1 multiplexer 102, the master slave 104 and the inverter 110 are powered off (i.e. power supply VDD1 is inactivated). In RET mode of operation, the value of the SE, SEN, REN and RE don't matter. Because the flip-flop 100 is being operated in the RET mode, the retention mode signal RET is held at a logical high level and the binary compliment signal RETN of signal RET is held at a logical low level. In this embodiment, the slave control signal SS is held at a logical low level, and the binary compliment signal SSN of the slave control signal is held at a logical high level. The value of the clock signals CKT and CLKZ don't matter. As stated earlier, power is only applied to the slave latch 108 by power supply VDD2.
Because power is not supplied to the 2-to-1 multiplexer 102 and the master latch 104, the data presented to the input IN of the transfer gate 106 is guaranteed not to have a path to VDD or ground (VSS) via the RET and RETN functionality embodied in the tri-state inverter 306 in the master latch 104. In this manner, the data being retained in the slave latch 108 will not be inadvertently corrupted by the indeterminate value of the input to the tri-state inverter 308 (the input is indeterminate as the supply VDD1 is inactive or floating).
Because the flop-flop 100 is operating in the retention mode, the tri-state inverter 502 is active and drives node SX of the slave latch 108 to the complimentary logical value of the value stored on QN of the slave latch 108. Because RET is a logical high value and RETN is a logical low value, the clocked inverter 504 latches the logical value on QN. The tri-state inverter 506 is tri-stated in this mode because SS is a logical low level and SSN is a logical high level. As a result, the logical value on D2 is not transferred to node SX.
However, during another retention mode of operation, data D2 may be written directly to the slave latch 108. During this retention mode, the slave control signal SS is driven to a logical high level following RET being driven to a logical high value (see
Because the slave control signal SS is driven to a logical high level following RET being driving to a logical high value, the tri-state inverter 502 is tri-stated and does not drive node SX of the slave latch 108. Because the slave control signal SS is driven to a logical high and slave control signal SSN is driven to a logical low value, the tri-state inverter 506 is active and drives node SX to the complimentary value presented on D2. Because RET is a logical high value and RETN is a logical low value, the clocked inverter 504 is active and drives node QN. When the slave control signal SS returns to a logic low level and SSN returns to a logic high level, the value stored on node QN is latched between tri-state inverter 502 and clocked inverter 504 while tri-state inverter 506 is tri-stated. Data signal D2 must be held for the period t3 to insure that the correct value of D2 is latched. Also, control signal SS must remain at logical high value for time t2 to insure that the correct value D2 is latched. Under this condition, the data written from D2 remains latched in the slave latch 108 during retention mode.
When an embodiment of the invention is asynchronously reset during functional mode (i.e. the reset signal can be issued at any time irrespective of the logical value of the clock signal and the master and slave stages of the flip-flop will be reset), the master latch 104 shown in
Inverters internal to the flip-flops 100 and 1200 may be used in an embodiment of the invention to invert signals SE, RET, SS and RE.
The foregoing description has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed, and other modifications and variations may be possible in light of the above teachings. The embodiments were chosen and described in order to best explain the applicable principles and their practical application to thereby enable others skilled in the art to best utilize various embodiments and various modifications as are suited to the particular use contemplated. It is intended that the appended claims be construed to include other alternative embodiments except insofar as limited by the prior art.
Bartling, Steven, Khanna, Sudhanshu
Patent | Priority | Assignee | Title |
9007111, | Feb 20 2013 | Texas Instruments Incorporated | Negative edge reset flip-flop with dual-port slave latch |
9099998, | Feb 19 2013 | Texas Instruments Incorporated | Positive edge preset reset flip-flop with dual-port slave latch |
Patent | Priority | Assignee | Title |
5668490, | May 01 1996 | Oracle America, Inc | Flip-flop with full scan capability |
6753714, | Oct 22 2002 | Texas Instruments Incorporated | Reducing power and area consumption of gated clock enabled flip flops |
7375567, | Jun 30 2005 | Texas Instruments Incorporated | Digital storage element architecture comprising dual scan clocks and preset functionality |
7982514, | Jan 30 2007 | Marvell International Ltd. | State-retentive master-slave flip flop to reduce standby leakage current |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Apr 29 2013 | BARTLING, STEVEN | Texas Instruments Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 030334 | /0726 | |
Apr 29 2013 | KHANNA, SUDHANSHU | Texas Instruments Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 030334 | /0726 | |
May 02 2013 | Texas Instruments Incorporated | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Jan 17 2018 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Jan 19 2022 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Date | Maintenance Schedule |
Aug 12 2017 | 4 years fee payment window open |
Feb 12 2018 | 6 months grace period start (w surcharge) |
Aug 12 2018 | patent expiry (for year 4) |
Aug 12 2020 | 2 years to revive unintentionally abandoned end. (for year 4) |
Aug 12 2021 | 8 years fee payment window open |
Feb 12 2022 | 6 months grace period start (w surcharge) |
Aug 12 2022 | patent expiry (for year 8) |
Aug 12 2024 | 2 years to revive unintentionally abandoned end. (for year 8) |
Aug 12 2025 | 12 years fee payment window open |
Feb 12 2026 | 6 months grace period start (w surcharge) |
Aug 12 2026 | patent expiry (for year 12) |
Aug 12 2028 | 2 years to revive unintentionally abandoned end. (for year 12) |