DDCO Module 2
DDCO 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.
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 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.
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
• 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 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 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.
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–
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 characteristic equation for the JK flip-flop can be derived from the
characteristic table: Q(t + 1) = JQ’ + K’Q