Edge triggered flip flop with multiple clocked functions
BACKGROUND OF THE INVENTION 
     This invention relates to edge triggered flip flops and more particularly to a circuit arrangment for integrating into a single flip flop multiple clocked functions that would normally require multiple flip flops. 
     In logic design many flip flops require set and/or reset functions triggered by different clocks. Conventionally, this would be accomplished by setting and resetting individual flip flops for each function and then merging all these flip flop outputs together into a single flip flop. This requires complicated circuitry and increased circuit area. 
     SUMMARY OF THE INVENTION 
     The foregoing disadvantages are avoided by means of the greatly simplified circuitry of the invention. According to the invention, a single flip flop is integrated with circuitry which enables the single flip flop to be triggered by each of several individual clocked functions without interfering with one another. 
     A flip flop is arranged in a circuit which includes trigger circuit means for controlling the flip flop and having a clock input and at least one of a set input and a reset input. Thus the trigger circuit means have either a set input with a clock input, or a reset input with a clock input, or both a set input and a reset input with a clock input. The trigger circuit means are coupled to the flip flop so that during the application of a set signal to the set input, the occurrence of a first low to high logic level transition of a clock signal applied to the clock input will set the flip flop to one state; and during the application of a reset signal to reset input, the occurrence of a second low to high logic level transition of the clock signal will set the flip flop to another state opposite to said one state. In addition, means are provided coupled between the flip flop and the trigger circuit means to temporarily disconnect the trigger circuit means from the flip flop during the time period between two successive low to high logic level transitions of the same clock signal, whereby the flip flop can be controlled during the last mentioned time period by coupling another trigger circuit means to the flip flop. 
    
    
     BRIEF DESCRIPTION OF THE DRAWING 
     FIG. 1 is a schematic diagram of an edge triggered flip flop arranged to be triggered by multiple clocked functions in accordance with the invention. 
     FIG. 2 is a timing diagram of waveforms associated with the circuitry of the invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Referring now to FIG. 1, only two clocked functions are shown, for simplicity. The first function is S 1  and R 1  set and reset, clocked by φ 1  and φ 1  complementary clock inputs. The second function is S 2  and R 2  set and reset, clocked by φ 2  and φ 2  complementary clock inputs. The circuitry is shown implemented with metal-oxide-semiconductor field effect transistors (MOSFET). Thus, transistors Q 1 , Q 2 , Q 3 , Q 4  form a cross-coupled latch or flip flop. A first load transistor Q 1   is connected in series with a first driver transistor Q 3 , and a second load transistor Q 2  is connected in series with a second driver transistor Q 4 . The sources of the driver transistors Q 3  and Q 4  are connected together to ground. The drains of the load transistors Q 1  and Q 2  are connected together to a positive voltage supply V DD . 
     The gate of the first driver transistor Q 3  is connected to the gate of the second load transistor Q 2  and to a common output node F. The drain of the second driver transistor Q 4  and the source of the second load transistor Q 2  are also connected to the output node F. 
     The gate of the second driver transistor Q 4  is connected to the gate of the first load transistor Q 1  and to a second common output node or complementary output node F. The drain of the first driver transistor Q 3  and the source of the first load transistor Q 1  are also connected to the complementary output node F. 
     In the drawing, the solid triangle next to each of the load transistors Q 1  and Q 2  denotes that these transistors Q 1  and Q 2  are depletion type. All other transistors are enhancement type. The flip flop and the associated trigger circuit means are preferably implemented by the use of well proven N channel silicon gate depletion load MOS technology. 
     A pair of trigger circuits are shown coupled to the flip flop output nodes F and F respectively. One of the trigger circuits is used to set the flip flop and the other trigger circuit is used to reset the flip flop. The setting trigger circuit is coupled to the complementary output node F and includes two serially connected driver transistors Q 10  and Q 13 . One driver transistor Q 10  receives a clock input φ 1  on its gate, and has its drain connected to the complementary output node F and its source connected to the drain of the other driver transistor Q 13 . The latter transistor Q 13  has its source grounded and its gate connected to a storage node N 11  in common with the source of a transfer transistor Q 11 . The transfer transistor Q 11  receives a set signal S 1  on its drain and a complementary clock signal φ 1  on its gate. 
     In accordance with an important feature of the invention, two serially connected transistors Q 15  and Q 16  are coupled to the storage node N 11  and function to discharge the potential on that storage node N 11 , thereby temporarily disconnecting the setting trigger circuit from the flip flop during the time period between two successive low to high logic level transitions of the first clock signal φ 1 , whereby the flip flop can be controlled by different clocked functions, such as S 2 , R 2  clocked by φ 2  and φ 2 . The storage node N 11  is discharged by feeding the high level on output node F back to the gate of transistor Q 15  while the lock signal φ 1  is applied to the gate of transistor Q 16 . 
     The resetting trigger circuit is coupled to the node F and includes two serially connected driver transistors Q 19  and Q 14 . One driver transistor Q 19  receives the clock signal input φ 1  on its gate and has its drain connected to the output node F and its source connected to the drain of the other driver transistor Q 14 . The latter transistor Q 14  has its source grounded and its gate connected to a storage node N 12  in common with the source of a transfer transistor Q 12 . The transfer transistor Q 12  receives a reset signal R 1  on its drain and the complementary clock signal φ 1  on its gate. 
     Two transistors Q 17  and Q 18  are serially connected to the storage node N 12  so that node N 12  can be discharged by feeding the high level on the complementary output node F back to the gate of transistor Q 17  while the clock signal φ 1  is applied to the gate of transistor Q 18 . 
     Similarly, a second clocked function S 2  and R 2  clocked by φ 2  and φ 2  includes set and reset trigger circuits which are identical to the ones already described. The set trigger circuit includes transistors Q 20 , Q 21 , Q 23 , Q 25 , Q 26 , and the reset trigger circuit includes transistors Q 29 , Q 22 , Q 24 , Q 27 , Q 28 . 
     The operation will now be described with the aid of the waveform diagram of FIG. 2. Let it first be assumed that output node F is low and output node F is high, clock signal φ 1  is low and the clock signal φ 1  is high. When S 1  is driven high, the high level is transferred to storage node N 11  through the transfer transistor Q 11 , which is turned on by the high logic level of φ 1 . The high level on storage node N 11  turns on transistor Q 13 , but transistor Q 10  is held off by φ 1  being low, and therefore F remains high. 
     With output node F high and output node F low, transistor Q 4  is on, and transistor Q 3  is off. 
     The above describes the conditions occurring at time T 0  in FIG. 2. 
     F will remain high and F will remain low until the first clock signal φ 1  goes high, at time T 1  shown in FIG. 2. When φ 1  goes high, or in other words φ 1  makes a low to high logic level transistion, it turns on transistor Q 10  in the setting trigger circuit. The complement of the clock signal, namely φ 1 , goes low and turns off transistor Q 11 , and the high logic level that was present at the storage node N 11  just before φ 1  went low is trapped at the storage node N 11 . The complementary output node F is pulled low by both transistors Q 10  and Q 13  being on. Flip flop transistor Q 4  turns off, allowing the output node F to charge up, and by feedback action, flip flop transistor Q 3  turns on. 
     The flip flop is thus set with the output node F high and the complementary output node F low. Since the output node F is tied to the gate of transistor Q 15 , the level which appears at output node F when the flip flop is set will appear on the gate of transistor Q 15 , turning it on and providing a discharge path for the high level on the storage node N 11  through transistor Q 16 , which was turned on when the clock signal φ 1  went high. When the storage node N 11  goes low, it turns off transistor Q 13 , thereby disconnecting at least temporarily the set trigger circuit from the flip flop. So long as the first clock signal φ 1  remains high, or goes low and remains low, the flip flop will not be affected by the first clock function. Thus, until such time as the first clock signal φ 1  makes another low to high logic level transition, the flip flop will be in a condition to be triggered by other clocked functions without any interaction from the first clocked function. 
     A second clocked function will now be described, namely set signal S 2  and reset signal R 2  clocked by complementary clock signals φ 2  and φ 2 . At time T 2  shown in FIG. 2, for example, φ 2  is low and its complement φ 2  is high and the reset trigger circuit of the second clocked function is energized by R 2  going high and S 2  going low. When R 2  goes high, the high logic level is transmitted to storage node N 22  through transfer transistor Q 22 , which is turned on by Q 2  being high. Transistor Q 24  is turned on, but since φ 2  is low, transistor Q 29  is off and the output node F remains high. Since F is low, transistor Q 27  is off and transistor Q 28  is also off because φ 2  is low. 
     The above conditions prevail until time T 3  when the second clock signal φ 2  goes high. At this time transistor Q 29  turns on and so does transistor Q 28 . Because transistors Q 29  and Q 24  are both on, the output node F goes low and its complement output node F goes high. Transistor Q 27  turns on when F goes high and the high level on storage node N 22  is discharged through turned on transistors Q 27  and Q 28 . When node N 22  goes low, it turns off transistor Q 24  and temporarily disconnects the second trigger circuit from the flip flop until such time as the second clock signal φ 2  makes its next low to high logic level transition. Before that occurs, however, the flip flop can be triggered by another clocked function without interference from the second clocked function. 
     For example, let the next clocked function be a set function clocked by the second clock signal φ 2 . At time T 4 , φ 2  goes low and its complement φ 2  goes high. Transistors Q 20  and Q 29  turn off and the logic levels appearing at the output nodes F and F remain the same. The state of the flip flop does not change. 
     At time T 5 , set signal S 2  goes high and reset signal R 2  goes low. When S 2  goes high and φ 2  is still high, the high level of S 2  is transferred through the transfer transistor Q 21   to storage node N 21 , turning on transistor Q 23  and thereby conditioning the trigger circuit for triggering by the next low to high logic level transition of the second clock signal φ 2 . 
     At time T 6 , φ 2  goes high, turning on transistor Q 20 . The high level then appearing on output node F discharges through transistors Q 20  and Q 23 , so node F goes low and node F goes high. The high level on the storage node N 21  discharges through transistors Q 25  and Q 26 , which are turned on respectively by the high level fed back from output node F to transistor Q 25  and by the high level of the clock signal φ 2  applied to transistor Q 26 . When storage node N 21  goes low, transistor Q 23  turns off, thereby disconnecting the second clocked function from the flip flop until the next low to high logic level transition of the second clock signal φ 2 .