DDCO Module 2 - first part
DDCO Module 2 - first part
MODULE-2
Combinational Logic: Introduction, Combinational Circuits, Design Procedure, Binary Adder-
Subtractor,Decoders, Encoders, Multiplexers. HDL Models of Combinational Circuits – Adder, Multiplexer,
Encoder
Sequential Logic: Introduction, Sequential Circuits, Storage Elements: Latches, Flip-Flops.
COMBINATIONAL LOGIC
2.1 Introduction
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 canbe specified logically by a set of Boolean
functions.
Sequential circuitsemploy storage elements in addition to logic gates. Their outputs are a function of
theinputs and the state of the storage elements.
Because the state of the storage elementsis a function of previous inputs, the outputs of a sequential
circuit depend not only onpresent values of inputs, but also on past inputs, and the circuit behavior must
be specified by a time sequence of inputs and internal states.
Fig (a): The logic diagram of the half adder implemented using AND and OR gate
Fig (b): The logic diagram of the half adder implemented in using EX-OR and an AND gate
2.4.2 Full Adder
Addition of n-bit binary numbers requires the use of a full adder, and the process of addition proceeds on a bit-
by-bit basis, right to left, beginning with the least significant bit. Afterthe least significant bit, addition at each
position adds not only the respective bits of thewords, but must also consider a possible Carry bit from addition
at the previous position.
A full adder is a combinational circuit that forms the arithmetic sum of three bits. Itconsists of three
inputs and two outputs.Three of the input variables, denoted by x, y and z he 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 binaryvariable C gives the output Carry formed by adding the input Carry and the bits of thewords.
S = x’y’z + x’yz’ + xy’z’ + xyz
C = xy + xz + yz
Fig: The logic diagram of the Full adder implemented in sum-of-products form
2.4.3 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.the interconnection of four full-adder (FA) circuits toprovide a four-bit binary
ripple Carry adder. The augend bits of A and the addend bitsof B are designated by subscript numbers from
right to left, with subscript 0 denotingthe least significant bit. The carries are connected in a chain through the
full adders. Theinput Carry to the adder is C0, and it ripples through the full adders to the output CarryC4. 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.
Fig: Implementation of full adder with two half adders and an OR gate
Dept. of CSE AIET, Mijar, Moodabidri Page 6
Digital Design and Computer Organization BCS302
To demonstrate with a specific example, consider the two binary numbers A = 1011and 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 (subscript0), to form the sum bit
and Carry bit. The input Carry C0 in the least significant positionmust be 0. The value of Ci+1 in a given
significant position is the output Carry of the fulladder. This value is transferred into the input Carry of the full
adder that adds the bitsone higher significant position to the left. The sum bits are thus generated starting
fromthe rightmost position and are available as soon as the corresponding previous Carrybit is generated. All
the carries must be generated for the correct sum bits to appear atthe outputs.
Four-bit adder: