LOGIC CIRCUITS

Abstract: A transparent latch, having a signal input (D), an output (Q) and a control input (C) for selecting one of two operating modes, functions by either allowing the output to follow the input (in an enable mode) or by blocking any subsequent changes in input signal level (in an inhibit mode). Owing to the design of the latch, relative propagation delays through gates and interconnecting wires cannot cause a wrong value to be latched, this being in contrast with known arrangements. Therefore constraints on the physical layout of the latch are removed. In one embodiment the latch comprises two pairs of NAND gates (5, 6, 7, 8) each pair being connected in a feedback configuration.

Description: LOGIC CIRCUITS This invention relates to digital electronic circuits and in particular to transparent latches. A transparent latch is a digital function which has one signal input (D), one signal output (Q) and a control input C. The control input is used to select one of two modes of operation. In a first mode, the output (Q) changes to follow any changes in the input (D). In the second mode, the output remains set to the input condition existing at the point of mode change. The above function can be represented by either of the following Boolean expression: Q = D.C + Q.C " when the first mode is such that C is true: or by its dual: Q=D.C + Q.C when the first mode is such that C is false The above expressions can be realised in a number of known ways, one of which is shown in Fig. 1. The transparent latch of Fig 1 and other known versions are described in Texas Instruments Data Book Vol I 1989. The truth table (where H = true and L = false) for the circuit of Fig 1 is as below: D C Q H H H L H L H L Qo L L Qo i.e. when the control input (C) is high, the latch is transparent, with Q following D, and when the control input (C) is low the output Q remains latched at its previous level Qo- The circuit of Fig 1 comprises first and second AND gates 1, 2 whose outputs are fed to an OR gate 3 which provides the final output Q. Inputs D and C are fed to the first AND gate 1 while the second AND gate 2 receives the final output Q and C as inputs. C is derived from C by means of an inverter/NOT gate 4. As can readily be seen from inspection of Fig 1, the OR gate 3 makes the choice between D or the existing value of Q, the choice being controlled by the current state of C, this being the principle of operation of all known transparent latches. It will also be noted that for correct operation of the circuit under all possible conditions^ Particular care must be taken in the layout of the latch so that propagation delays through gates and interconnecting wires and are accounted for. This constraint on the design layout is inherent in all known latches. If these propagation delays are not properly accounted for then a failure condition can occur. For example, when the control input (C) is high and D is high, the input to gate 3 from gate 1 will be high and the input to gate 3 from gate 2 will be low. If the control input (C) is now taken low and the input to gate 3 from gate 1 goes low before the input to gate 3 from gate 2 goes high, the output (Q) can be erroneously latched low. An object of this invention is to provide a transparent latch design in which the above constraint is removed. Accordingly, this invention comprises a transparent latch having a signal input, D, an operating mode control input,C, and an output,Q, and including logic gate means for allowing the output signal level to follow the input signal level in a first operating mode, and for blocking any level change in the input signal from propagating through to the output in a second operating mode. A transparent latch in accordance with the invention will always latch the correct value no matter what combination of propagation delays through gates or wires (or switching speed of gates) exist in the physical realisation. In contrast with known transparent latches, the present invention does not use a control signal C and its inverse C, but just one control, C. Owing to the design of the latch of the present invention, relative propagation delays through gates and interconnecting wires do not affect the value latched, therefore there are no constraints on its physical layout. Also in contrast with known devices which latch by selecting the existing output level, the latch of the present invention stays latched by blocking any subsequent changes in signal input level. In a specific embodiment, the latch consists of two pairs of logic gates in which the output of each gate comprising a pair is fed back to the input of the other gate comprising the same pair. The control input, C, is applied to both pairs, with the signal input, D, being applied just to a first pair. The output of the first pair is then connected to an input of the second. An embodiment of the invention will now be described, by way of example only, with reference to Fig.2. Fig.2 is logic diagram of a transparent latch which consists of four NAND gates 5, 6, 7, 8, each gate having two inputs. A control signal C is fed into a first input of gates 5 and 7 and a signal input D is fed into a first input of gate 6. The output Y of gate 6 is fed back into the second input of gate 5 and the output of gate 5 is applied to the second input of gate 6. The output Y of gate 6 is also applied to a first input of gate 8 whose output Q is fed back to the second input of gate 7. The output of gate 7 is fed to the second input of gate 8. Thus the latch has two inputs; D, the signal input and C, a control input; and one output Q. The latch operates so that the output Q either follows the signal input D or remains set irrespective of changes in D, depending on the state of the control input, C. A truth table for the transparent latch of Fig 2 is shown below. In this example, H=true and L=false for D and Q: and H=false and L=true for C. The Boolean function for the transparent latch of Fig. 2 can be written: Q = [D.(C.Y)] . [CQ] with the gates 5 and 6 performing the function: Y = D.(C.Y) and the gates 7 and 8 performing the function Q = Y.C.Q The transparent latch of Fig 2 operates as follows There are two modes of operation. When the control input C is low, the latch is transparent with the output Q following the input D. When C is high, the output Q is latched at the value that existed before C changed state i.e. Q 0 . In this Latter, "inhibit" mode any changes in D are prevented from getting through to the output. Referring now to the truth table in conjunction with Fig 2. Under conditions 1 and 2 i.e an "enable" condition, with the control input C low, the outputs of gates 5 and 7 will always be high, irrespective of the existing levels of Y and Q. Thus, the gates 6 and 8 allow the inverse of their inputs (D and Y respectively) through to their outputs. Hence Q will always follow D as long as C is low. Under conditions 3 and 4, control input C is now high (which is an inhibit condition) and the value of D remains as it was before any change of state of C (ie D = Q o ) . Taking the case where D=l, when C changes from low to high, there will be no change of state in the outputs of gates 5 and 6, but gate 7 output will change to low. However, with Y still held low, gate 8 will maintain Q high. Under condition 4 where D=0, when C changes from low to high, the output of gate 5 will go low. However with D low, Y is maintained high at the output of gate 6. The output states of gates 7 and 8 remain as they were when C was low and so Q is maintained low. Conditions 5 and 6 refer to situations where C is set to high ie inhibit and the level of D changes while C is still high. These changes are blocked from reaching the output Q by the action of the gates as explained below. When D moves from high to low, both gates 5 and 6 change their output states, with Y moving from low to high. However, because the second input of gate 8 is low, the change in Y is blocked from getting through and altering the state of the output Q. Hence, due to the combined actions of gates 7 and 8 Q remains latched at Q 0 (high) . Finally, under condition 6 when D moves from low to high, gates 5 and 6 ensure that this change cannot be propagated. Thus Y remains high with no possible changes to the states of gates 7 and 8. Hence Q remains latched at Q o (low). While the transparent latch of the specific example has been configured using four NAND gates, it will be appreciated by those skilled in the art that other combinations of gates whose Boolean functions are identical with that of the circuit of Fig 2 will achieve the same result.

Claims: CLAIMS 1. A transparent latch having a signal input, (D), an operating mode control input, (C), and an output, (Q), and including logic gate means (5,6,7,8) for allowing the output signal level (Q) to follow the input signal level (D) in a first operating mode, and for blocking any level change in the input signal (D) from propagating through to the output (Q) in a second operating mode. 2. A transparent latch having a signal input, (D), an operating mode control input, (C) and an output, (Q), and comprising logic gate means consisting of two stages (5,6,7,8), a first stage (5,6) having an output (Y) whose logic function is governed by the Boolean expression; Y = D. (CY) or any mathematical equivalent thereof, and a second stage (7,8) whose logic function is governed by the Boolean expression; Q = Y.(CQ) or any mathematical equivalent thereof. 3. A transparent latch according to either preceding claim in which said logic gate (5,6,7,8) means includes two pairs of logic gates in which the output of each gate comprising a pair is fed back to the input of the other gate comprising the same pair. 4. A transparent latch according to claim 3 in which the logic gates are NAND gates (5,6,7,8).

Inventors: CAMPBELL ERIC RALPH, CAMPBELL, ERIC, RALPH
Applicants: BRITISH AEROSPACE, CAMPBELL ERIC RALPH, BRITISH AEROSPACE PUBLIC LIMITED COMPANY, CAMPBELL, ERIC, RALPH
Application year: 1996
Main classification: H03K3
IPC codes: H03K3