






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







A block diagram of a sequential circuit (Mealy model) is shown in Figure 1.1. It consists of a combinational circuit to which memory elements (flip-flops (FFs)) are connected to form a feedback path. The memory elements are devices capable of storing binary information within them. The binary information stored in the memory elements at any given time defines the state of the sequential circuit. The sequential circuit receives binary information from external inputs. These inputs, together with the present state of the memory elements, determine the binary value at the output terminals. They also determine the condition for changing the state in the memory elements.
There are two main types of sequential circuits: Synchronous and asynchronous sequential circuits
Mealy and Moore are two models that are used for implementing synchronous sequential circuits. Sequential circuits, in which the outputs depend on the inputs, as well as, on the present states, are referred to as Mealy model circuit, Figure 1.1(a). On the other hand, if the outputs depend only on the present states, the circuits are referred to as Moore circuit as shown in Figure 1.2. Each model is named after its originator.
Memory Elements
A latch is a binary storage device that is capable of storing one bit of information. A latch circuit can be constructed from two NAND gates or two NOR gates, as shown in Figures 1.3(a) and 1.3(b), respectively. How these two latches operate are shown in truth tables 1.1 and 1.2 for NAND and NOR latch, respectively.
The truth table for the NAND latch can be derived as follows. First, as shown in Table 1.1 assume S (Set) = 1 and R (Reset) = 0. Since, 0 input to NAND gates is considered a dominant signal, it forces the output of a NAND gate to 1 regardless of
0 1 (Reset state)
0 1 (no change) 0
1
1 0 (Set state)
1 0 (no change) 0 0 1 1 (undefined)
1 0 (set state)
1 0 (no change) 0
0
0 1 (reset state)
0 1 (no change) 1 1 0 0 (undefined)
the other inputs thus we must first consider the effect of the input R. R = 0 forces the output to be 1. This output is fed back to the NAND gate whose output is Q and since both inputs to the NAND gate are 1, then the output Q evaluates to 0 (reset state). When both S and R signals are 1 the output Q of the latch remains unchanged. On other hand, S = 0 and R = 1 force Q to evaluate to 1 since S = 0 and to 0 giving a set state. When both S and R signals to the latch are 0, the state of the latch becomes undefined because this input combination requests at the same time to set and rest the latch which is ambiguous and therefore not acceptable and should be avoided. Similarly, the truth table for the NOR latch can be derived by taking the input with value 1 as the dominant signal when evaluating the latch circuit and its effect should be considered first. Figure 1.3(c) gives a timing diagram for the basic latch built with (NOR) gates, assuming that the propagation delay through the NOR gates is negligible.
The basic latch as it stands is asynchronous sequential circuit. By adding gates to the inputs of the basic latches of Figure 1.3, it can be made to respond to input levels during the occurrence of a clock pulse. Two clocked RS latches, which are obtained
J K Q(t+1) 0 0 Q(t) (No change) 0 1 0 (Reset) 1 0 1 (Set) 1 1 (Toggle)
The T latch is a single input version of JK latch. As shown in Figure 1.7, the T latch is obtained from a JK latch if both inputs are tied together. The designation T comes from the ability of the latch to "Toggle", or change state.
All latches we have studied so far are responsive or sensitive to pulse duration of the clock. That is, in these level-sensitive latches, the state of the latch keeps changing according to the values of input signals during the period when the clock signal is active. The result is an unpredictable situation, since the state may keep changing and continue to change until the clock signal becomes inactive. Because of this unreliable operation, the output of a latch cannot be applied directly to the input of another latch when all the latches are triggered by a single clock signal. Thus, there is a need for storage elements that can change their states no more than once during one clock cycle. We will next study two types of circuits that exhibit such behavior.
Consider the circuit given in Figure 1.8(a), which consists of two gated D latches. The first, called master , changes its state while clock = 1. The second, called slave , changes its state while clock = 0. The operation of the circuit is such that when the clock is high, the master tracks the value of the D input signal and the slave does not change. Thus the value of follows any changes in D, and the value of Qs remains constant. When the clock signal changes to 0 the master stage stops following the changes in the D input. At the same time, the slave stage responds to the value of the signal and changes state accordingly. Since does not change when clock = 0, the slave stage can undergo at most one change of state during a clock cycle. From the external observer's point of view, namely, the circuit connected to the output of the slave stage, the master-slave circuit changes its state at the negative-going edge of the clock. The negative edge is the edge where the clock signal changes from 1 to 0. Regardless of the number of changes in the D input to the master stage during one clock cycle, the
observer of the signal will see only the change that corresponds to the D input at the negative edge of the clock. The circuit in Figure 1.8 is called a master-slave D flip-flop. The term flip-flop denotes a storage element that changes its output state at the edge of a controlling clock signal. The timing diagram for this flip-flop is shown in Figure 1.8(b). A graphical symbol is given in Figure 1.8(c). In the symbol we use the > mark to denote that the flip-flop responds to the "positive edge" of the clock whereas a bubble placed on the clock input indicates that the circuit responds to the negative edge of the clock.
The output of the master-slave D flip-flop in Figure 1.8(a) responds on the negative edge of the clock signal. The circuit can be changed to respond to the positive clock edge by connecting the slave stage directly to the clock and the master stage to the complement of the clock. A different circuit that accomplishes the same task is presented in Figure 1.9(a). It requires only six NAND gates and, hence, fewer transistors. The operation of the circuit is as follows. When clock = 0, the outputs of gates 2 and 3 are high. Thus, P1 = P2 = 1 , which maintains the output latch, comprising gates 5 and 6, in its present state. At the same time, the signal P3 is equal to D, and P4 is equal to its complement. When clock changes to 1, the following changes take place. The values of P3 and P4 are transmitted through gates 2 and 3 to cause P1 = and P2 = D , which sets Q = D and_._ To operate reliably, P3 and P4 must be stable when clock changes from 0 to 1. For that to occur the data to be clocked into a flip-flop must be stable t (^) su time before the active clock edge and must remain stable time after the clock edge. Hence, from the figure, the setup time ( t (^) su ) of the flip-flop is equal to the delay from the D input through gates 4 and 1 to P3. The hold time () is given by the delay through gate 3 because once P2 is stable; the changes in D no longer matter.
For proper operation it is necessary to show that, after clock changes to 1, any further changes in D will not affect the output latch as long as clock = 1. We have to consider two cases. Suppose first that D = 0 when the clock is inactive (clock = 0). Since, clock = 0, P1 = P2 = 1. Then at the positive edge of the clock P2 = 0 , which will keep the output of gate 4 equal to 1 as long as clock = 1 , regardless of the value of the D input. The second case is D = 1 when the clock is inactive (clock = 0). Then at the positive edge of the clock P1 = 0, which forces the outputs of gate 1 and gate 3 (P2) to remain at 1, regardless of the D input. That is, the flip-flop ignores changes in the D input while clock = 1. Figure 1.9(b) gives a graphical symbol for this flip-flop. The clock input indicates that the positive edge of the clock is the active edge. A similar circuit, constructed with (NOR) gates, can be used as a negative-edge-triggered flip-flop.
Figure 1.10 shows three different types of storage elements that are driven by the same data and clock inputs. The first element is a gated D latch, which is level
JK latch except that its state is affected by the input only at the active edge of the clock.
T Flip-flop
The T flip-flop is obtained from a JK flip-flop if both inputs are tied together as shown in Figure 1.14(a). If T = 0, D = Q that is the state remains unchanged, Q (t+1) = Q (t). Whereas if T = 1, then D = and the new state becomes Q (t + 1) =. Thus, the overall operation of the flip-flop is that it retains its present state if T = 0, and complements its present state if T = 1. The operation of the flip-flop is specified as a function table in Figure 1.14(b) which is the same as that for T latch except that any change in the state occurs at the active edge of the clock.
In the previous sections, two types of memory elements are introduced: latches and flip-flops. Latches are termed pulse or level triggered since during an active clock pulse any change in the inputs of a latch may cause the state of the latch to change as well. That is, the state of the latch may change several times during an active clock pulse. Thus, for a latch to operate properly and avoid ambiguity in its state its inputs must be set up (stable) prior to the rising edge of the active clock pulse and remain unchanged until the falling edge of the active clock pulse.
On the other hand, flip-flops are termed edge triggered. An edge-triggered flip-flop changes its state once either at the positive edge (rising edge) or at the negative edge (falling edge) of the clock pulse. When the triggering occurs on the positive going edge of the clock, it is called positive edge triggered whereas when the triggering occurs on the negative edge of the clock it is called negative edge triggered.
Flip-flop and latch characteristics and excitation tables
A characteristic (or function) table defines the logical operations of a flip-flop or a latch by describing its operation in tabular form. The characteristic tables of the four flip-flops presented in the previous sections are shown Table 1.1. They define the next state as a function of the inputs and present state. , refers to the present state and to the next state after the occurrence of a clock pulse.
(a) SR Flip-Flop (b) JK Flip-Flop S R Q (t + 1) Operation J K Q (t + 1) Operation 0 0 Q (t) No change 0 0 Q (t) No change
0 1 0 Reset 0 1 0 Reset 1 0 1 Set 1 0 1 Set 1 1? Undefined 1 1 (t) Complement
(c) D Flip-Flop (d) T Flip-Flop D Q (t + 1) Operation T Q (t + 1) Operation 0 0 Reset 0 Q (t) No change 1 1 Set 1 (t) Complement
The characteristic table is useful for analysis and for defining the operation of the flip-flop. It specifies the next state when the inputs and present state are known. During the design process we usually know the transition from present state to next state and wish to find the flip-flop input conditions that will cause the required transition. For this reason, we need a table that lists the required inputs for a given change of state. Such a list is called an excitation table. Table 1.2 presents the excitation tables for the four types of flip-flops (SR, D, JK, and T).
Table 1. Flip-Flop Excitation Tables
(a) SR Flip-Flop (b) JK Flip-Flop Q (t) Q (t + 1) S R Q (t) Q (t + 1) J K 0 0 0 X 0 0 0 X 0 1 1 0 0 1 1 X 1 0 0 1 1 0 X 1 1 1 X 0 1 1 X 0
(c) D Flip-Flop (d) T Flip-Flop Q (t) Q (t + 1) D Q (t) Q (t + 1) T 0 0 0 0 0 0 0 1 1 0 1 1 1 0 0 1 0 1 1 1 1 1 1 0