0% found this document useful (0 votes)
27 views

DDCO Module 2

Uploaded by

begaxab741
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

DDCO Module 2

Uploaded by

begaxab741
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 73

MODULE-2

Combinational Logic
(Chapter-4)

Sequential Logic
(Chapter-5)
Combinational Logic
(Chapter-4)
INTRODUCTION
• Logic circuits for digital systems may be combinational or
sequential.

• A combinational circuit consists of logic gates whose outputs at


any time are determined from only the present combination of
inputs. A combinational circuit performs an operation that can be
specified logically by a set of Boolean functions.

• Sequential circuits employ storage elements in addition to logic


gates. Their outputs are a function of the inputs and the state of
the storage elements.

• The outputs of a sequential circuit depend not only on present


values of inputs, but also on past inputs, and the circuit behavior
must be specified by a time sequence of inputs and internal states.
COMBINATIONAL CIRCUITS
• A combinational circuit consists of an interconnection of logic
gates. Combinational logic gates react to the input signals and
produce the value of the output signal, transforming binary
information from the given input data to a required output data.

For n input variables, there are 2n possible combinations of the


binary inputs. For each possible input combination, there is one
possible value for each output variable. Thus, a combinational circuit
can be specified with a truth table that lists the output values for
each combination of input variables.
COMBINATIONAL CIRCUITS
A combinational circuit also can be described by m Boolean
functions, one for each output variable. Each output function is
expressed in terms of the n input variables.

There are several combinational circuits that are employed


extensively in the design of digital systems. These circuits are
available in integrated circuits and are classified as standard
components. They perform specific digital functions commonly
needed in the design of digital systems.

In this chapter, we introduce the most important standard


combinational circuits, such as adders, subtractors, comparators,
decoders, encoders, and multiplexers. These components are
available in integrated circuits as medium-scale integration (MSI)
circuits.
DESIGN PROCEDURE
The procedure for the design of combinational circuits involves the
following steps:
1. From the specifications of the circuit, determine the required
number of inputs and outputs and assign a symbol to each.
2. Derive the truth table that defines the required relationship
between inputs and outputs.
3. Obtain the simplified Boolean functions for each output as a
function of the input variables.
4. Draw the logic diagram and verify the correctness of the design
(manually or by simulation).

• A truth table for a combinational circuit consists of input columns


and output columns.
• The input columns are obtained from the 2n binary numbers for
the n input variables.
• The output functions specified in the truth table give the exact
definition of the combinational circuit.
DESIGN PROCEDURE
Code Conversion Example: The circuit design procedure to convert
binary coded decimal (BCD) to the excess-3 code for the decimal
digits.
The truth table relating the input and output variables is shown in
Table below:
DESIGN PROCEDURE
The maps are plotted to obtain simplified Boolean functions for the
outputs.
DESIGN PROCEDURE
The expressions obtained from Karnaugh maps may be manipulated
algebraically for the purpose of using common gates for two or more
outputs.
DESIGN PROCEDURE
BINARY ADDER-SUBTRACTOR
• A combinational circuit that performs the addition of two bits is
called a half adder .

• A combinational circuit that performs the addition of three bits


(two significant bits and a previous carry) is called a full adder .

• The two half adders can be employed to implement a full adder.

• A binary adder–subtractor is a combinational circuit that performs


the arithmetic operations of addition and subtraction with binary
numbers.
Half Adder
The Half Adder circuit needs two binary inputs and two binary
outputs. The input variables designate the augend and addend bits;
the output variables produce the sum and carry.

We assign symbols x and y to the two inputs and S (for sum) and C
(for carry) to the outputs. The truth table for the half adder is listed
in the Table given below . The C output is 1 only when both inputs
are 1. The S output represents the least significant bit of the sum.

The simplified sum-of-products expressions are


S = xy’ + x’y
C = xy
Half Adder
Implementation of half adder
Full Adder
A full adder is a combinational circuit that forms the arithmetic sum of
three bits. It consists of three inputs and two outputs. Two of the input
variables, denoted by x and y , represent the two significant bits to be
added. The third input, z , represents the carry from the previous lower
significant position.

The two outputs are designated by the symbols S for sum and C for
carry. The binary variable S gives the value of the least significant bit of
the sum. The binary variable C gives the output carry formed by adding
the input carry and the bits of the words.
Full Adder
Implementation using basic gates.

The simplified expressions are


S = x’y’z + x’yz’ + xy’z’ + xyz
C = xy + xz + yz
Full Adder
Binary Adder
A binary adder is a digital circuit that produces the arithmetic sum of
two binary numbers. It can be constructed with full adders
connected in cascade, with the output carry from each full adder
connected to the input carry of the next full adder in the chain.

Four-bit binary ripple carry adder:


• An n -bit adder requires n full adders, with each output carry
connected to the input carry of the next higher order full adder.
Binary Adder
• The augend bits of A and the addend bits of B are denoted by
subscript numbers from right to left. The carries are connected in a
chain through the full adders. The input carry to the adder is C0, and
it ripples through the full adders to the output carry C4. The S
outputs generate the required sum bits.
• An n -bit adder requires n full adders, with each output carry
connected to the input carry of the next higher order full adder.

Consider the two binary numbers A = 1011 and B = 0011. Their sum
S = 1110 is formed with the four-bit adder as follows:

The bits are added with full adders, starting from the least significant position (subscript
0), to form the sum bit and carry bit.
Binary Adder
Carry Propagation:
As in any combinational circuit, the signal must propagate through the
gates before the correct output sum is available in the output
terminals. The total propagation time is equal to the propagation
delay of a typical gate, times the number of gate levels in the circuit.
• The longest propagation delay time in an adder is the time it takes
the carry to propagate through the full adders.
• Since each bit of the sum output depends on the value of the input
carry, the value of Si at any given stage in the adder will be in its
steady-state final value only after the input carry to that stage has
been propagated.
Binary Adder
Carry Propagation:
• The signals at Pi and Gi settle to their steady-state values after they
propagate through their respective gates. These two signals are common to
all half adders and depend on only the input augend and addend bits
• The signal from the input carry Ci to the output carry Ci+1 propagates
through an AND gate and an OR gate, which constitute two gate levels.
• If there are four full adders in the adder, the output carry C4 would have
2 x 4 = 8 gate levels from C0 to C4. For an n -bit adder, there are 2n gate
levels for the carry to propagate from input to output.
Binary Adder
Carry lookahead logic : Consider the circuit of the full adder shown below:
Binary Adder
carry lookahead logic : Consider the circuit of the full adder shown below:
We now write the Boolean functions for the carry outputs of each stage and
substitute the value of each Ci from the previous equations:

C0 = input carry
C1 = G0 + P0C0
C2 = G1 + P1C1
= G1 + P1(G0 + P0C0)
= G1 + P1G0 + P1P0C0
C3 = G2 + P2C2
= G2 + P2(G1 + P1G0 + P1P0C0 )
= G2 + P2G1 + P2P1G0 +P2P1P0C0

The three Boolean functions


for C1, C2, and C3 are
Implemented in the carry
lookahead generator
shown in Fig.
Binary Adder
The construction of a four-bit adder with a carry lookahead scheme is shown in Fig.
Binary Subtractor
• The subtraction of unsigned binary numbers can be done by means
of complements.
• The subtraction A - B can be done by taking the 2’s complement of
B and adding it to A .
The 2’s complement can be obtained by taking the 1’s complement and
adding 1 to the least significant pair of bits. The 1’s complement can be
implemented with inverters, and a 1 can be added to the sum through
the input carry.
Overflow
• When two numbers with n digits each are added and the sum is a number
occupying n + 1 digits, we say that an overflow occurred.
• The detection of an overflow after the addition of two binary numbers
depends on whether the numbers are considered to be signed or
unsigned.
• When two unsigned numbers are added, an overflow is detected from the
end carry out of the most significant position.
• In the case of signed numbers, two details are important:
 the leftmost bit always represents the sign, and
 negative numbers are in 2’s-complement form
• When two signed numbers are added, the sign bit is treated as part of the
number and the end carry does not indicate an overflow.
• An overflow may occur if the two numbers added are both positive or both
negative.
• An overflow condition can be detected by observing the carry into the
sign bit position and the carry out of the sign bit position. If these two
carries are not equal, an overflow has occurred.
Overflow
The binary adder–subtractor circuit with outputs C and V is shown in Fig. 4.13 .
• If the two binary numbers are unsigned, then the C bit detects a carry after
addition or a borrow after subtraction.
• If the numbers are signed, then the V bit detects an overflow.
 If V = 0 after an addition or subtraction, then no overflow occurred and the
n -bit result is correct.
 If V = 1, then the result of the operation contains n + 1 bits, but only the
rightmost n bits of the number fit in the space available, so an overflow has
occurred.
• The (n + 1) th bit is the actual sign and has been shifted out of position.
DECODERS
• Discrete quantities of information are represented in digital
systems by binary codes. A binary code of n bits is capable of
representing up to 2n distinct elements of coded information.
• A decoder is a combinational circuit that converts binary
information from n input lines to a maximum of 2n unique output
lines.
• If the n-bit coded information has unused combinations, the
decoder may have fewer than 2n outputs.

• These decoders are called n -to- m -line decoders, where m <= 2n.
Their purpose is to generate the 2n (or fewer) minterms of n input
variables. Each combination of inputs will assert a unique output.

• The name decoder is also used in conjunction with other code


converters, such as a BCD-to-seven-segment decoder.
DECODERS
As an example, a three-to-eight-line decoder circuit is shown in Fig. The
three inputs are decoded into eight outputs, each representing one of
the minterms of the three input variables.
DECODERS
Two-to-four-line decoder with enable input:
Some decoders are constructed with NAND gates. Decoders include one
or more enable inputs to control the circuit operation. A two-to-four-
line decoder with an enable input constructed with NAND gates is
shown in Fig. The circuit operates with complemented outputs and a
complement enable input. The decoder is enabled when E is equal to 0
(i.e., active-low enable).
DECODERS
Demultiplexer: A decoder with enable input can function as a
demultiplexer. Demultiplexer is a circuit that receives information from a
single line and directs it to one of 2n possible output lines. The selection of
a specific output is controlled by the bit combination of n selection lines.
The decoder of Fig. 4.19 can function as a one-to-four-line demultiplexer when E is
taken as a data input line and A and B are taken as the selection inputs.
DECODERS
Design of Larger Decoders:
Decoders with enable inputs can be connected together to form a larger
decoder circuit. Figure 4.20 shows two 3-to-8-line decoders with enable
inputs connected to form a 4-to-16-line decoder.
• When w = 0, the top
decoder is enabled and the
other is disabled.
• The bottom decoder
outputs are all 0’s, and the
top eight outputs generate
minterms 0000 to 0111.
• When w = 1, the enable
conditions are reversed: The
bottom decoder outputs
generate minterms 1000 to
1111, while the outputs of
the top decoder are all 0’s.
DECODERS
Combinational Logic Implementation: Any Boolean function can be
expressed in sum-of-minterms form. A decoder with an external OR gate
will form their logical sum. Hence it provides a hardware implementation of
the function.
In this way, any combinational circuit with n inputs and m outputs can be
implemented with an n -to-2n -line decoder and m OR gates.
Example: To implement a full-adder circuit. From the truth table of the full
adder, we obtain the functions for the combinational circuit in sum-of-minterms
form:

Since there are three


inputs and a total of eight
minterms, we need a
three-to-eight-line
decoder.
ENCODERS
• An encoder is a digital circuit that performs the inverse operation of a
decoder. An encoder has 2n (or fewer) input lines and n output lines. The
output lines, as an aggregate, generate the binary code corresponding to
the input value.
• An example of an encoder is the octal-to-binary encoder whose truth
table is given in Table 4.7 . It has eight inputs (one for each of the octal
digits) and three outputs that generate the corresponding binary number.
• It is assumed that only one input has a value of 1 at any given time.
ENCODERS
The encoder can be implemented with OR gates whose inputs are
determined directly from the truth table.
Output z is equal to 1 when the input octal digit is 1, 3, 5, or 7.
Output y is 1 for octal digits 2, 3, 6, or 7, and
Output x is 1 for digits 4, 5, 6, or 7.

These conditions can be expressed by the following Boolean output


functions:

The encoder can be implemented with three OR gates.


ENCODERS
Ambiguity:
1. The encoder defined in Table 4.7 has the limitation that only one input can
be active at any given time. If two inputs are active simultaneously, the
output produces an undefined combination. To resolve this ambiguity,
encoder circuits must establish an input priority to ensure that only one
input is encoded.
2. An output with all 0’s is generated when all the inputs are 0; but this output
is the same as when D0 is equal to 1. The discrepancy can be resolved by
providing one more output to indicate whether at least one input is equal
to 1.
Priority Encoder
A priority encoder is an encoder circuit that includes the priority
function. The operation of the priority encoder is such that if two or
more inputs are equal to 1 at the same time, the input having the
highest priority will take precedence.

The truth table of a four-input priority encoder is given in Table 4.8 .


In addition to the two outputs x and y , the circuit has a third output
designated by V ; this is a valid bit indicator that is set to 1 when one
or more inputs are equal to 1. If all inputs are 0, there is no valid
input and V is equal to 0.

The other two outputs are not inspected when V equals 0 and are
specified as don’t-care conditions.
Priority Encoder
A priority encoder is an encoder circuit that includes the priority function.
The operation of the priority encoder is such that if two or more inputs are
equal to 1 at the same time, the input having the highest priority will take
precedence.

The truth table of a four-input priority encoder is given in Table 4.8 . In


addition to the two outputs x and y , the circuit has a third output
designated by V ; this is a valid bit indicator that is set to 1 when one or
more inputs are equal to 1. If all inputs are 0, there is no valid input and V is
equal to 0.
The other two outputs are
not inspected when V
equals 0 and are specified
as don’t-care conditions.
Priority Encoder
• According to Table 4.8 , the higher the subscript number, the higher the
priority of the input.
• Input D3 has the highest priority, so, regardless of the values of the other
inputs, when this input is 1, the output for xy is 11 (binary 3).
• D2 has the next priority level. The output is 10 if D2 = 1, provided that D3
= 0, regardless of the values of the other two lower priority inputs.
• The output for D1 is generated only if higher priority inputs are 0, and so
on down the priority levels.
Priority Encoder
• The maps for simplifying outputs x and y are shown in Fig. 4.22 .
• The minterms for the two functions are derived from Table 4.8.
Priority Encoder
• The simplified Boolean expressions for the priority encoder are obtained
from the maps.
• The condition for output V is an OR function of all the input variables.
• The priority encoder is implemented in Fig. 4.23 according to the
following Boolean functions:
MULTIPLEXERS
• A multiplexer is a combinational circuit that selects binary information
from one of many input lines and directs it to a single output line.
• The selection of a particular input line is controlled by a set of selection
lines.
• Normally, there are 2n input lines and n selection lines. The bit
combinations of selection lines determine which input is selected.

A two-to-one-line multiplexer is shown in Fig. 4.24 . The multiplexer acts


like an electronic switch that selects one of two sources.

The multiplexer
is often labeled
“MUX” in block
diagrams.
MULTIPLEXERS
A four-to-one-line multiplexer is shown in Fig. 4.25 .
MULTIPLEXERS
• A multiplexer is also called a data selector , since it selects one of
many inputs and steers the binary information to the output line.
• As in decoders, multiplexers may have an enable input to control
the operation of the unit. When the enable input is in the inactive
state, the outputs are disabled, and when it is in the active state,
the circuit functions as a normal multiplexer.
MULTIPLEXERS
Boolean Function Implementation
• The minterms of a function are generated in a multiplexer by the
circuit associated with the selection inputs.
• The individual minterms can be selected by the data inputs,
thereby providing a method of implementing a Boolean function
of n variables with a multiplexer that has n selection inputs and 2n
data inputs, one for each minterm.

• Boolean function of n variables can be implemented with a


multiplexer that has n - 1 selection inputs.
 The first n - 1 variables of the function are connected to the
selection inputs of the multiplexer.
 The remaining single variable of the function is used for the
data inputs.
 If the single variable is denoted by z , each data input of the
multiplexer will be z , z’, 1, or 0.
MULTIPLEXERS
Boolean Function Implementation
Example: consider the Boolean function F (x, y, z) = ∑(1, 2, 6, 7)
This function of three variables can be implemented with a four-to-one-line
multiplexer as shown in Fig. 4.27
MULTIPLEXERS
Boolean Function Implementation
Example: consider the implementation of the Boolean function
F (A, B, C, D) = ∑ (1, 3, 4, 11, 12, 13, 14, 15). This function is implemented with a
multiplexer with three selection inputs as shown in Fig. 4.28 . in Fig. 4.27
MULTIPLEXERS
Three-State Gates
• three-state gates are digital circuits that exhibit three states.
• Two of the states are signals equivalent to logic 1 and logic 0.
• The third state is a high-impedance state in which –
(1) the logic behaves like an open circuit, which means that the output
appears to be disconnected,
(2) the circuit has no logic significance, and
(3) the circuit connected to the output of the three-state gate is not
affected by the inputs to the gate.

The graphic symbol for a three-state buffer gate is shown in Fig. 4.29 . The
buffer has a normal input, an output, and a control input that determines
the state of the output.
MULTIPLEXERS
Three-State Gates
• The construction of a four-to-one-line multiplexer is shown in Fig. 4.30(b)
.
HDL MODELS OF COMBINATIONAL CIRCUITS
.
Sequential Logic
(Chapter-5)
[5.1, 5.2, 5.3, 5.4]
INTRODUCTION
The digital circuits considered are–

Combinational circuits - their output depends only and immediately


on their inputs—they have no memory, i.e., output is not depending
on past values of their inputs.

Sequential circuits - act as storage elements and have memory. They


can store, retain, and then retrieve information when needed at a
later time.
SEQUENTIAL CIRCUITS
• A block diagram of a sequential circuit is shown in Fig. 5.1 .
• It consists of a combinational circuit to which storage elements
are connected to form a feedback path.
• The storage elements are devices capable of storing binary
information.
• The binary information stored in these elements at any given time
defines the state of the sequential circuit at that time.
• The outputs in a sequential circuit are a function not only of the
inputs, but also of the present state of the storage elements.
SEQUENTIAL CIRCUITS
There are two main types of sequential circuits

Asynchronous: These sequential circuit depends upon the input


signals at any instant of time and the order in which the inputs
change.
An asynchronous sequential circuit may be regarded as a
combinational circuit with feedback

Synchronous: The circuit behavior can be defined from the knowledge


of its signals at discrete instants of time.
• Synchronization is achieved by a timing device called a clock
generator, which provides a clock signal having the form of a
periodic train of clock pulses .

The clock pulses determine when computational activity will occur


within the circuit, and other signals (external inputs) determine what
changes will take place affecting the storage elements and the
outputs.
SEQUENTIAL CIRCUITS
• Synchronous sequential circuits that use clock pulses to control
storage elements are called clocked sequential circuits.
• They are called synchronous circuits because the activity within the
circuit and the resulting updating of stored values is synchronized
to the occurrence of clock pulses.
SEQUENTIAL CIRCUITS
• The storage elements (memory) used in clocked sequential circuits
are called flipflops.
• A flip-flop is a binary storage device capable of storing one bit of
information. In a stable state, the output of a flip-flop is either 0 or 1.
STORAGE ELEMENTS: LATCHES
• A storage element in a digital circuit can maintain a binary state
indefinitely (as long as power is delivered to the circuit), until
directed by an input signal to switch states.
• Latches: These are storage elements that operate with signal
levels (rather than signal transitions)- here outputs can change
as soon as the inputs change.
• Flip-flops: These are storage elements controlled by a clock
transition (flip flops are edge-triggered i.e only changes state
when a control signal goes from high to low or low to high).
• Latches are said to be level sensitive devices; flip-flops are edge-
sensitive devices.
• The two types of storage elements are related because latches are
the basic circuits from which all flip-flops are constructed.
STORAGE ELEMENTS: LATCHES
SR Latch
The SR latch is a circuit with two cross-coupled NOR gates or two
cross-coupled NAND gates, and two inputs labeled S for set and R for
reset.

• When output Q = 1 and Q = 0, the latch is said to be in the set state .


• When Q = 0 and Q = 1, it is in the reset state .
• Outputs Q and Q are normally the complement of each other.
STORAGE ELEMENTS: LATCHES
The SR latch with two cross-coupled NAND gates is shown in Fig. 5.4 .
STORAGE ELEMENTS: LATCHES
An SR latch with a control input is shown in Fig. 5.5 . It consists of the
basic SR latch and two additional NAND gates. The control input En
acts as an enable signal for the other two inputs. The outputs of the
NAND gates stay at the logic-1 level as long as the enable signal
remains at 0.
STORAGE ELEMENTS: LATCHES
D Latch (Transparent Latch)
One way to eliminate the undesirable condition of the indeterminate
state in the SR latch is to ensure that inputs S and R are never equal
to 1 at the same time.
This is done in the D latch. This latch has only two inputs: D (data)
and En (enable). The D input goes directly to the S input, and its
complement is applied to the R input.
STORAGE ELEMENTS: LATCHES
Graphics symbols for Latches
STORAGE ELEMENTS: FLIP-FLOPS
• The state of a latch or flip-flop is switched by a change in the control
input. This momentary change is called a trigger, and the transition it
causes is said to trigger the flip-flop.
• The D latch with pulses in its control input is essentially a flip-flop
that is triggered every time the pulse goes to the logic-1 level. As long
as the pulse input remains at this level, any changes in the data input
will change the output and the state of the latch.
STORAGE ELEMENTS: FLIP-FLOPS
Clock response in latch and flip-flop
STORAGE ELEMENTS: FLIP-FLOPS
Edge-Triggered D Flip-Flop
The construction of a D flip-flop with two D latches and an inverter is
shown in Fig. 5.9 . The first latch is called the master and the second
the slave.
• a change in the output of the flip-flop can be triggered only by and
during the transition of the clock from 1 to 0.
STORAGE ELEMENTS: FLIP-FLOPS
Edge-Triggered D Flip-Flop
The behavior of the master–slave flip-flop just described dictates that
(1) the output may change only once,
(2) a change in the output is triggered by the negative edge of the
clock, and
(3) the change may occur only during the clock’s negative level.

The value that is produced at the output of the flip-flop is the value
that was stored in the master stage immediately before the negative
edge occurred .
STORAGE ELEMENTS: FLIP-FLOPS
The graphic symbol for the edge-triggered D flip-flop is shown in
Fig. 5.11 .
• The dynamic indicator (>) denotes the fact that the flip-flop
responds to the edge transition of the clock.
• A bubble outside the block adjacent to the dynamic indicator
designates a negative edge for triggering the circuit.
• The absence of a bubble designates a positive-edge response.
STORAGE ELEMENTS: FLIP-FLOPS
Other Flip-Flops:

• The most economical and efficient flip-flop constructed is the


edge-triggered D flipflop, because it requires the smallest number
of gates.
• Other types of flip-flops can be constructed by using the D flip-
flop and external logic. Two flip-flops less widely used in the
design of digital systems are the JK and T flip-flops.
• There are three operations that can be performed with a flip-flop:
Set it to 1, reset it to 0, or complement its output.
• With only a single input, the D flip-flop can set or reset the output,
depending on the value of the D input immediately before the
clock transition.
STORAGE ELEMENTS: FLIP-FLOPS
Other Flip-Flops: JK flip-flop
JK flip-flop has two inputs and performs all three operations- Set it to 1, reset it
to 0, or complement its output.
• The J input sets the flip-flop to 1, the K input resets it to 0, and
• When both inputs are enabled, the output is complemented.
This can be verified by the D input as : D = JQ’ + K’Q

When J = 1 and K = 0, D = Q’ + Q = 1, so the next clock edge sets the output to 1.


When J = 0 and K = 1, D = 0, so the next clock edge resets the output to 0.
When both J = K = 1 and D = Q’, the next clock edge complements the output.
When both J = K = 0 and D = Q, the clock edge leaves the output unchanged.
STORAGE ELEMENTS: FLIP-FLOPS
Other Flip-Flops: T flip-flop
The T (toggle) flip-flop is a complementing flip-flop and can be
obtained from a JK flip-flop when inputs J and K are tied together.
• When T = 0 (J = K = 0), a clock edge does not change the output.
• When T = 1 (J = K = 1), a clock edge complements the output.
The complementing flip-flop is useful for designing binary counters.
STORAGE ELEMENTS: FLIP-FLOPS
Other Flip-Flops: T flip-flop
The T flip-flop can be constructed with a D flip-flop and an XOR gate.
• The expression for the D input is
• When T = 0, D = Q and there is no change in the output.
• When T = 1, D = Q’ and the output complements.
The graphic symbol for this flip-flop has a T symbol in the input.
STORAGE ELEMENTS: FLIP-FLOPS
Characteristic Tables
A characteristic table defines the logical properties of a flip-flop by
describing its operation in tabular form.
Q ( t ) refers to the
present state (i.e., the
state present prior to the
application of a clock
edge).

Q(t + 1) is the next state


one clock period later.
STORAGE ELEMENTS: FLIP-FLOPS
Characteristic Equations
The logical properties of a flip-flop, as described in the characteristic
table, can be expressed algebraically with a characteristic equation.

For the D flip-flop, we have the characteristic equation Q(t + 1) = D


which states that the next state of the output will be equal to the
value of input D in the present state.

The characteristic equation for the JK flip-flop can be derived from the
characteristic table: Q(t + 1) = JQ’ + K’Q

The characteristic equation for the T flip-flop is


END

You might also like