SlideShare a Scribd company logo
1 of 53
Download to read offline
Combinational Logic
D.R.V.L.B Thambawita
September 24, 2017
D.R.V.L.B Thambawita Combinational Logic
https://sites.google.com/view/vajira-thambawita/leaning-materials/slides
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.
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.
D.R.V.L.B Thambawita Combinational Logic
What will we learn?
1 Analyze the behavior of a given logic circuit
2 Synthesize a circuit that will have a given behavior
3 Write hardware description language (HDL) models for some
common circuits.
First task:ANALYSIS PROCEDURE
This task starts with a given logic diagram and culminates with a
set of Boolean functions, a truth table, or, possibly, an explanation
of the circuit operation.
D.R.V.L.B Thambawita Combinational Logic
ANALYSIS PROCEDURE
The ļ¬rst step in the analysis is to make sure that the given
circuit is combinational and not sequential. The diagram of a
combinational circuit has logic gates with no feedback paths
or memory elements.
To obtain the output Boolean functions from a logic diagram, we
proceed as follows:
1 Label all gate outputs that are a function of input variables with
arbitrary symbols but with meaningful names. Determine the
Boolean functions for each gate output.
2 Label the gates that are a function of input variables and previously
labeled gates with other arbitrary symbols. Find the Boolean
functions for these gates.
3 Repeat the process outlined in step 2 until the outputs of the circuit
are obtained.
4 By repeated substitution of previously deļ¬ned functions, obtain the
output Boolean functions in terms of input variables.
D.R.V.L.B Thambawita Combinational Logic
Analysis example
D.R.V.L.B Thambawita Combinational Logic
ANALYSIS PROCEDURE
The outputs of gates that are a function only of input
variables are T1 and T2
Output F2 can easily be derived from the input variables.
F2 = AB + AC + BC
T1 = A + B + C
T2 = ABC
Next, we consider outputs of gates that are a function of
already deļ¬ned symbols:
T3 = F2T1
F1 = T3 + T2
D.R.V.L.B Thambawita Combinational Logic
ANALYSIS PROCEDURE
To obtainF1 as a function ofA ,B , andC , we form a series of
substitutions as follows:
D.R.V.L.B Thambawita Combinational Logic
ANALYSIS PROCEDURE
To obtain the truth table directly from the logic diagram without
going through the derivations of the Boolean functions, we proceed
as follows:
1 Determine the number of input variables in the circuit. For n
inputs, form the 2n possible input combinations and list the
binary numbers from 0 to (2n āˆ’ 1) in a table.
2 Label the outputs of selected gates with arbitrary symbols.
3 Obtain the truth table for the outputs of those gates which
are a function of the input variables only.
4 Proceed to obtain the truth table for the outputs of those
gates which are a function of previously deļ¬ned values until
the columns for all outputs are determined.
D.R.V.L.B Thambawita Combinational Logic
ANALYSIS PROCEDURE
D.R.V.L.B Thambawita Combinational Logic
DESIGN PROCEDURE
The procedure involves the following steps:
1 From the speciļ¬cations of the circuit, determine the required
number of inputs and outputs and assign a symbol to each.
2 Derive the truth table that deļ¬nes the required relationship
between inputs and outputs.
3 Obtain the simpliļ¬ed 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).
D.R.V.L.B Thambawita Combinational Logic
DESIGN PROCEDURE
Example:An example that converts binary coded decimal (BCD) to
the excess-3 code for the decimal digits.
D.R.V.L.B Thambawita Combinational Logic
DESIGN PROCEDURE
Code Conversion Example
D.R.V.L.B Thambawita Combinational Logic
DESIGN PROCEDURE
Code Conversion Example
D.R.V.L.B Thambawita Combinational Logic
DESIGN PROCEDURE
Code Conversion Example
D.R.V.L.B Thambawita Combinational Logic
DESIGN PROCEDURE
Code Conversion Example
D.R.V.L.B Thambawita Combinational Logic
BINARY ADDER-SUBTRACTOR
A combinational circuit that performs the addition of two bits
is called a half adder.
One that performs the addition of three bits (two signiļ¬cant
bits and a previous carry) is a full adder.
A binary adder - subtractor is a combinational circuit that
performs the arithmetic operations of addition and subtraction
with binary numbers.
D.R.V.L.B Thambawita Combinational Logic
BINARY ADDER-SUBTRACTOR
Half Adder
We assign symbols x and y to the two inputs and S(for sum) and
C(for carry) to the outputs
D.R.V.L.B Thambawita Combinational Logic
BINARY ADDER-SUBTRACTOR
Implementation of half adder
D.R.V.L.B Thambawita Combinational Logic
BINARY ADDER-SUBTRACTOR
Full Adder
It consists of three inputs and two outputs.
Two of the input variables, denoted by x and y, represent the
two signiļ¬cant bits to be added. The third input, z, represents
the carry from the previous lower signiļ¬cant position.
D.R.V.L.B Thambawita Combinational Logic
BINARY ADDER-SUBTRACTOR
Full Adder: K-Maps for full adder
D.R.V.L.B Thambawita Combinational Logic
BINARY ADDER-SUBTRACTOR
Full Adder
D.R.V.L.B Thambawita Combinational Logic
BINARY ADDER-SUBTRACTOR
Implementation of full adder in sum-of-products form
D.R.V.L.B Thambawita Combinational Logic
BINARY ADDER-SUBTRACTOR
Implementation of full adder with two half adders and an OR gate
D.R.V.L.B Thambawita Combinational Logic
BINARY ADDER-SUBTRACTOR
TheS output from the second half adder is the exclusive-OR of z
and the output of the ļ¬rst half adder, giving
D.R.V.L.B Thambawita Combinational Logic
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.
Addition of n-bit numbers requires a chain of n full adders or
a chain of one-half adder and n-1 full adders.
D.R.V.L.B Thambawita Combinational Logic
Binary Adder
Four-bit adder
Do you know?
Observe that the design of this circuit by the classical method
would require a truth table with 29 = 512 entries, since there are
nine inputs to the circuit.
D.R.V.L.B Thambawita Combinational Logic
Carry Propagation
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.
D.R.V.L.B Thambawita Combinational Logic
Full adder with P and G shown
D.R.V.L.B Thambawita Combinational Logic
Carry Propagation
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*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.
The carry propagation time is an important attribute of the
adder because it limits the speed with which two numbers are
added.
Outputs will not be correct unless the signals are given
enough time to propagate through the gates connected from
the inputs to the outputs
D.R.V.L.B Thambawita Combinational Logic
Carry Propagation
solution for reducing the carry propagation delay time
The most widely used technique employs the principle of carry
lookahead logic.
For above circuit
Gi is called a carry generate ā†’ it produces a carry of 1 when
both Ai and Bi are 1, regardless of the input carry Ci .
Pi is called a carry propagate ā†’ because it determines
whether a carry into stage i will propagate into stage i + 1
With new binary variables:
D.R.V.L.B Thambawita Combinational Logic
Carry Propagation
We now write the Boolean functions for the carry outputs of each
stage and substitute the value of each Ci from the previous
equations:
D.R.V.L.B Thambawita Combinational Logic
Carry Propagation
Logic diagram of carry lookahead generator
D.R.V.L.B Thambawita Combinational Logic
Carry Propagation
Four-bit adder with carry lookahead
D.R.V.L.B Thambawita Combinational Logic
Binary Subtractor
Remember that 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 signiļ¬cant 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.
D.R.V.L.B Thambawita Combinational Logic
Four-bit adder-subtractor (with overļ¬‚ow detection)
D.R.V.L.B Thambawita Combinational Logic
Decimal Adder
Computers or calculators that perform arithmetic operations
directly in the decimal number system represent decimal
numbers in binary coded form.
An adder for such a computer must employ arithmetic circuits
that accept coded decimal numbers and present results in the
same code.
A decimal adder requires a minimum of nine inputs and ļ¬ve
outputs, since four bits are required to code each decimal
digit and the circuit must have an input and output carry.
D.R.V.L.B Thambawita Combinational Logic
BCD Adder
Since each input digit does not exceed 9, the output sum cannot
be greater than 9 + 9 + 1 = 19, the 1 in the sum being an input
carry.
D.R.V.L.B Thambawita Combinational Logic
BCD Adder
The output sum of two decimal digits must be represented in
BCD and should appear in the form listed in the columns
under ā€BCD Sumā€.
The problem is to ļ¬nd a rule by which the binary sum is
converted to the correct BCD digit representation of the
number in the BCD sum.
hen the binary sum is greater than 1001, we obtain an invalid
BCD representation. The addition of binary 6 (0110) to the
binary sum converts it to the correct BCD representation and
also produces an output carry as required.
C = K + Z8Z4 + Z8Z2
D.R.V.L.B Thambawita Combinational Logic
BCD Adder
D.R.V.L.B Thambawita Combinational Logic
DECODERS
A decoder is a combinational circuit that converts binary
information from n input lines to a maximum of 2n unique
output lines.
The decoders presented here are called n-to- m-line decoders,
where m ā‰¤ 2n
D.R.V.L.B Thambawita Combinational Logic
DECODERS
D.R.V.L.B Thambawita Combinational Logic
DECODERS
Truth Table of a Three-to-Eight-Line Decoder
D.R.V.L.B Thambawita Combinational Logic
DECODERS
Two-to-four-line decoder with enable input
D.R.V.L.B Thambawita Combinational Logic
DECODERS
4 x 16 decoder constructed with two 3 x 8 decoders
D.R.V.L.B Thambawita Combinational Logic
DECODERS
Combinational Logic Implementation
From the truth table of the full adder , we obtain the functions
for the combinational circuit in sum-of-minterms form:
S(x, y, z) = Ī£(1, 2, 4, 7)
C(x, y, z) = Ī£(3, 5, 6, 7)
D.R.V.L.B Thambawita Combinational Logic
DECODERS
Combinational Logic Implementation: Implementation of a full
adder with a decoder
D.R.V.L.B Thambawita Combinational Logic
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 encoder deļ¬ned in below has the limitation that only one
input can be active at any given time.
D.R.V.L.B Thambawita Combinational Logic
ENCODERS
Truth Table of an Octal-to-Binary Encoder
D.R.V.L.B Thambawita Combinational Logic
Priority Encoder
Truth Table of a Priority Encoder
D.R.V.L.B Thambawita Combinational Logic
Priority Encoder
Maps for a priority encoder
D.R.V.L.B Thambawita Combinational Logic
Priority Encoder
D.R.V.L.B Thambawita Combinational Logic
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.
Two-to-one-line multiplexer
D.R.V.L.B Thambawita Combinational Logic
MULTIPLEXERS
Four-to-one-line multiplexer
D.R.V.L.B Thambawita Combinational Logic

More Related Content

What's hot

Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuitsgourav kottawar
Ā 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual Shankar Gangaju
Ā 
microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)Nemish Bhojani
Ā 
8085 arithmetic instructions
8085 arithmetic instructions8085 arithmetic instructions
8085 arithmetic instructionsprashant1271
Ā 
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGNSEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGNQAU ISLAMABAD,PAKISTAN
Ā 
Reversible logic gate
Reversible logic gateReversible logic gate
Reversible logic gateDebraj Maji
Ā 
Combinational logic circuits by Tahir Yasin
Combinational logic circuits by Tahir YasinCombinational logic circuits by Tahir Yasin
Combinational logic circuits by Tahir YasinTAHIR YASIN
Ā 
Instruction set 8085
Instruction set 8085Instruction set 8085
Instruction set 8085varun sukheja
Ā 
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...Hsien-Hsin Sean Lee, Ph.D.
Ā 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECESeshaVidhyaS
Ā 
Digital Logic Rcs
Digital Logic RcsDigital Logic Rcs
Digital Logic RcsRamzi Alqrainy
Ā 
Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits warda aziz
Ā 
Compiler unit 2&3
Compiler unit 2&3Compiler unit 2&3
Compiler unit 2&3BBDITM LUCKNOW
Ā 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amitAmith Bhonsle
Ā 
Instruction set of 8085 microprocessor
Instruction set of 8085 microprocessorInstruction set of 8085 microprocessor
Instruction set of 8085 microprocessorRahul Sahu
Ā 

What's hot (20)

Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
Ā 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
Ā 
Logic Fe Tcom
Logic Fe TcomLogic Fe Tcom
Logic Fe Tcom
Ā 
microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)
Ā 
8085 arithmetic instructions
8085 arithmetic instructions8085 arithmetic instructions
8085 arithmetic instructions
Ā 
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGNSEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
Ā 
Reversible logic gate
Reversible logic gateReversible logic gate
Reversible logic gate
Ā 
Combinational logic circuits by Tahir Yasin
Combinational logic circuits by Tahir YasinCombinational logic circuits by Tahir Yasin
Combinational logic circuits by Tahir Yasin
Ā 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
Ā 
Compiler unit 5
Compiler  unit 5Compiler  unit 5
Compiler unit 5
Ā 
Instruction set 8085
Instruction set 8085Instruction set 8085
Instruction set 8085
Ā 
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Ā 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
Ā 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Ā 
Digital Logic Rcs
Digital Logic RcsDigital Logic Rcs
Digital Logic Rcs
Ā 
Dld ppt
Dld  pptDld  ppt
Dld ppt
Ā 
Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits
Ā 
Compiler unit 2&3
Compiler unit 2&3Compiler unit 2&3
Compiler unit 2&3
Ā 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amit
Ā 
Instruction set of 8085 microprocessor
Instruction set of 8085 microprocessorInstruction set of 8085 microprocessor
Instruction set of 8085 microprocessor
Ā 

Similar to Lec 05 - Combinational Logic

Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational LogicEr. Nawaraj Bhandari
Ā 
DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx
DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptxDLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx
DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptxSaveraAyub2
Ā 
Digital electronics lab
Digital electronics labDigital electronics lab
Digital electronics labswatymanoja
Ā 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design Abhinay Potlabathini
Ā 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfTamiratDejene1
Ā 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).pptThanmayiKumar
Ā 
Digital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdfDigital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdfKannan Kanagaraj
Ā 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsmarangburu42
Ā 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsmarangburu42
Ā 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuitsBindu Madhavi
Ā 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuitsBindu Madhavi
Ā 
C0421013019
C0421013019C0421013019
C0421013019ijceronline
Ā 
Digital design chap 3
Digital design   chap 3Digital design   chap 3
Digital design chap 3Mohammad Bappy
Ā 

Similar to Lec 05 - Combinational Logic (20)

Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
Ā 
DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx
DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptxDLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx
DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx
Ā 
Digital Logic Design
Digital Logic Design Digital Logic Design
Digital Logic Design
Ā 
Digital electronics lab
Digital electronics labDigital electronics lab
Digital electronics lab
Ā 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
Ā 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdf
Ā 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
Ā 
Digital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdfDigital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdf
Ā 
Chapter4_4Web.ppt
Chapter4_4Web.pptChapter4_4Web.ppt
Chapter4_4Web.ppt
Ā 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
Ā 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
Ā 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
Ā 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
Ā 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
Ā 
C0421013019
C0421013019C0421013019
C0421013019
Ā 
Digital design chap 3
Digital design   chap 3Digital design   chap 3
Digital design chap 3
Ā 
5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt
Ā 
DCF-Combinational circuit
DCF-Combinational circuitDCF-Combinational circuit
DCF-Combinational circuit
Ā 
Logic gates
Logic gatesLogic gates
Logic gates
Ā 
Arithmetic and logic unit
Arithmetic and logic unitArithmetic and logic unit
Arithmetic and logic unit
Ā 

More from Vajira Thambawita

Lecture 4 principles of parallel algorithm design updated
Lecture 4   principles of parallel algorithm design updatedLecture 4   principles of parallel algorithm design updated
Lecture 4 principles of parallel algorithm design updatedVajira Thambawita
Ā 
Lecture 3 parallel programming platforms
Lecture 3   parallel programming platformsLecture 3   parallel programming platforms
Lecture 3 parallel programming platformsVajira Thambawita
Ā 
Lecture 2 more about parallel computing
Lecture 2   more about parallel computingLecture 2   more about parallel computing
Lecture 2 more about parallel computingVajira Thambawita
Ā 
Lecture 1 introduction to parallel and distributed computing
Lecture 1   introduction to parallel and distributed computingLecture 1   introduction to parallel and distributed computing
Lecture 1 introduction to parallel and distributed computingVajira Thambawita
Ā 
Lecture 12 localization and navigation
Lecture 12 localization and navigationLecture 12 localization and navigation
Lecture 12 localization and navigationVajira Thambawita
Ā 
Lecture 11 neural network principles
Lecture 11 neural network principlesLecture 11 neural network principles
Lecture 11 neural network principlesVajira Thambawita
Ā 
Lecture 10 mobile robot design
Lecture 10 mobile robot designLecture 10 mobile robot design
Lecture 10 mobile robot designVajira Thambawita
Ā 
Lecture 08 robots and controllers
Lecture 08 robots and controllersLecture 08 robots and controllers
Lecture 08 robots and controllersVajira Thambawita
Ā 
Lecture 07 more about pic
Lecture 07 more about picLecture 07 more about pic
Lecture 07 more about picVajira Thambawita
Ā 
Lecture 06 pic programming in c
Lecture 06 pic programming in cLecture 06 pic programming in c
Lecture 06 pic programming in cVajira Thambawita
Ā 
Lecture 05 pic io port programming
Lecture 05 pic io port programmingLecture 05 pic io port programming
Lecture 05 pic io port programmingVajira Thambawita
Ā 
Lecture 04 branch call and time delay
Lecture 04  branch call and time delayLecture 04  branch call and time delay
Lecture 04 branch call and time delayVajira Thambawita
Ā 
Lecture 03 basics of pic
Lecture 03 basics of picLecture 03 basics of pic
Lecture 03 basics of picVajira Thambawita
Ā 
Lecture 02 mechatronics systems
Lecture 02 mechatronics systemsLecture 02 mechatronics systems
Lecture 02 mechatronics systemsVajira Thambawita
Ā 
Lecture 1 - Introduction to embedded system and Robotics
Lecture 1 - Introduction to embedded system and RoboticsLecture 1 - Introduction to embedded system and Robotics
Lecture 1 - Introduction to embedded system and RoboticsVajira Thambawita
Ā 
Lec 08 - DESIGN PROCEDURE
Lec 08 - DESIGN PROCEDURELec 08 - DESIGN PROCEDURE
Lec 08 - DESIGN PROCEDUREVajira Thambawita
Ā 
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITSLec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITSVajira Thambawita
Ā 
Lec 06 - Synchronous Sequential Logic
Lec 06 - Synchronous Sequential LogicLec 06 - Synchronous Sequential Logic
Lec 06 - Synchronous Sequential LogicVajira Thambawita
Ā 
Lec 04 - Gate-level Minimization
Lec 04 - Gate-level MinimizationLec 04 - Gate-level Minimization
Lec 04 - Gate-level MinimizationVajira Thambawita
Ā 

More from Vajira Thambawita (20)

Lecture 4 principles of parallel algorithm design updated
Lecture 4   principles of parallel algorithm design updatedLecture 4   principles of parallel algorithm design updated
Lecture 4 principles of parallel algorithm design updated
Ā 
Lecture 3 parallel programming platforms
Lecture 3   parallel programming platformsLecture 3   parallel programming platforms
Lecture 3 parallel programming platforms
Ā 
Lecture 2 more about parallel computing
Lecture 2   more about parallel computingLecture 2   more about parallel computing
Lecture 2 more about parallel computing
Ā 
Lecture 1 introduction to parallel and distributed computing
Lecture 1   introduction to parallel and distributed computingLecture 1   introduction to parallel and distributed computing
Lecture 1 introduction to parallel and distributed computing
Ā 
Lecture 12 localization and navigation
Lecture 12 localization and navigationLecture 12 localization and navigation
Lecture 12 localization and navigation
Ā 
Lecture 11 neural network principles
Lecture 11 neural network principlesLecture 11 neural network principles
Lecture 11 neural network principles
Ā 
Lecture 10 mobile robot design
Lecture 10 mobile robot designLecture 10 mobile robot design
Lecture 10 mobile robot design
Ā 
Lecture 09 control
Lecture 09 controlLecture 09 control
Lecture 09 control
Ā 
Lecture 08 robots and controllers
Lecture 08 robots and controllersLecture 08 robots and controllers
Lecture 08 robots and controllers
Ā 
Lecture 07 more about pic
Lecture 07 more about picLecture 07 more about pic
Lecture 07 more about pic
Ā 
Lecture 06 pic programming in c
Lecture 06 pic programming in cLecture 06 pic programming in c
Lecture 06 pic programming in c
Ā 
Lecture 05 pic io port programming
Lecture 05 pic io port programmingLecture 05 pic io port programming
Lecture 05 pic io port programming
Ā 
Lecture 04 branch call and time delay
Lecture 04  branch call and time delayLecture 04  branch call and time delay
Lecture 04 branch call and time delay
Ā 
Lecture 03 basics of pic
Lecture 03 basics of picLecture 03 basics of pic
Lecture 03 basics of pic
Ā 
Lecture 02 mechatronics systems
Lecture 02 mechatronics systemsLecture 02 mechatronics systems
Lecture 02 mechatronics systems
Ā 
Lecture 1 - Introduction to embedded system and Robotics
Lecture 1 - Introduction to embedded system and RoboticsLecture 1 - Introduction to embedded system and Robotics
Lecture 1 - Introduction to embedded system and Robotics
Ā 
Lec 08 - DESIGN PROCEDURE
Lec 08 - DESIGN PROCEDURELec 08 - DESIGN PROCEDURE
Lec 08 - DESIGN PROCEDURE
Ā 
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITSLec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Ā 
Lec 06 - Synchronous Sequential Logic
Lec 06 - Synchronous Sequential LogicLec 06 - Synchronous Sequential Logic
Lec 06 - Synchronous Sequential Logic
Ā 
Lec 04 - Gate-level Minimization
Lec 04 - Gate-level MinimizationLec 04 - Gate-level Minimization
Lec 04 - Gate-level Minimization
Ā 

Recently uploaded

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
Ā 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
Ā 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
Ā 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
Ā 
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø9953056974 Low Rate Call Girls In Saket, Delhi NCR
Ā 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
Ā 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
Ā 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
Ā 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Ā 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
Ā 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
Ā 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
Ā 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
Ā 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
Ā 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
Ā 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
Ā 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
Ā 

Recently uploaded (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
Ā 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
Ā 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
Ā 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
Ā 
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
Ā 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Ā 
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Ā 
Model Call Girl in Bikash Puri Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Bikash Puri  Delhi reach out to us at šŸ”9953056974šŸ”Model Call Girl in Bikash Puri  Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Bikash Puri Delhi reach out to us at šŸ”9953056974šŸ”
Ā 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Ā 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Ā 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Ā 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
Ā 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
Ā 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Ā 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
Ā 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
Ā 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
Ā 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
Ā 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
Ā 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
Ā 

Lec 05 - Combinational Logic

  • 1. Combinational Logic D.R.V.L.B Thambawita September 24, 2017 D.R.V.L.B Thambawita Combinational Logic https://sites.google.com/view/vajira-thambawita/leaning-materials/slides
  • 2. 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. 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. D.R.V.L.B Thambawita Combinational Logic
  • 3. What will we learn? 1 Analyze the behavior of a given logic circuit 2 Synthesize a circuit that will have a given behavior 3 Write hardware description language (HDL) models for some common circuits. First task:ANALYSIS PROCEDURE This task starts with a given logic diagram and culminates with a set of Boolean functions, a truth table, or, possibly, an explanation of the circuit operation. D.R.V.L.B Thambawita Combinational Logic
  • 4. ANALYSIS PROCEDURE The ļ¬rst step in the analysis is to make sure that the given circuit is combinational and not sequential. The diagram of a combinational circuit has logic gates with no feedback paths or memory elements. To obtain the output Boolean functions from a logic diagram, we proceed as follows: 1 Label all gate outputs that are a function of input variables with arbitrary symbols but with meaningful names. Determine the Boolean functions for each gate output. 2 Label the gates that are a function of input variables and previously labeled gates with other arbitrary symbols. Find the Boolean functions for these gates. 3 Repeat the process outlined in step 2 until the outputs of the circuit are obtained. 4 By repeated substitution of previously deļ¬ned functions, obtain the output Boolean functions in terms of input variables. D.R.V.L.B Thambawita Combinational Logic
  • 6. ANALYSIS PROCEDURE The outputs of gates that are a function only of input variables are T1 and T2 Output F2 can easily be derived from the input variables. F2 = AB + AC + BC T1 = A + B + C T2 = ABC Next, we consider outputs of gates that are a function of already deļ¬ned symbols: T3 = F2T1 F1 = T3 + T2 D.R.V.L.B Thambawita Combinational Logic
  • 7. ANALYSIS PROCEDURE To obtainF1 as a function ofA ,B , andC , we form a series of substitutions as follows: D.R.V.L.B Thambawita Combinational Logic
  • 8. ANALYSIS PROCEDURE To obtain the truth table directly from the logic diagram without going through the derivations of the Boolean functions, we proceed as follows: 1 Determine the number of input variables in the circuit. For n inputs, form the 2n possible input combinations and list the binary numbers from 0 to (2n āˆ’ 1) in a table. 2 Label the outputs of selected gates with arbitrary symbols. 3 Obtain the truth table for the outputs of those gates which are a function of the input variables only. 4 Proceed to obtain the truth table for the outputs of those gates which are a function of previously deļ¬ned values until the columns for all outputs are determined. D.R.V.L.B Thambawita Combinational Logic
  • 10. DESIGN PROCEDURE The procedure involves the following steps: 1 From the speciļ¬cations of the circuit, determine the required number of inputs and outputs and assign a symbol to each. 2 Derive the truth table that deļ¬nes the required relationship between inputs and outputs. 3 Obtain the simpliļ¬ed 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). D.R.V.L.B Thambawita Combinational Logic
  • 11. DESIGN PROCEDURE Example:An example that converts binary coded decimal (BCD) to the excess-3 code for the decimal digits. D.R.V.L.B Thambawita Combinational Logic
  • 12. DESIGN PROCEDURE Code Conversion Example D.R.V.L.B Thambawita Combinational Logic
  • 13. DESIGN PROCEDURE Code Conversion Example D.R.V.L.B Thambawita Combinational Logic
  • 14. DESIGN PROCEDURE Code Conversion Example D.R.V.L.B Thambawita Combinational Logic
  • 15. DESIGN PROCEDURE Code Conversion Example D.R.V.L.B Thambawita Combinational Logic
  • 16. BINARY ADDER-SUBTRACTOR A combinational circuit that performs the addition of two bits is called a half adder. One that performs the addition of three bits (two signiļ¬cant bits and a previous carry) is a full adder. A binary adder - subtractor is a combinational circuit that performs the arithmetic operations of addition and subtraction with binary numbers. D.R.V.L.B Thambawita Combinational Logic
  • 17. BINARY ADDER-SUBTRACTOR Half Adder We assign symbols x and y to the two inputs and S(for sum) and C(for carry) to the outputs D.R.V.L.B Thambawita Combinational Logic
  • 18. BINARY ADDER-SUBTRACTOR Implementation of half adder D.R.V.L.B Thambawita Combinational Logic
  • 19. BINARY ADDER-SUBTRACTOR Full Adder It consists of three inputs and two outputs. Two of the input variables, denoted by x and y, represent the two signiļ¬cant bits to be added. The third input, z, represents the carry from the previous lower signiļ¬cant position. D.R.V.L.B Thambawita Combinational Logic
  • 20. BINARY ADDER-SUBTRACTOR Full Adder: K-Maps for full adder D.R.V.L.B Thambawita Combinational Logic
  • 21. BINARY ADDER-SUBTRACTOR Full Adder D.R.V.L.B Thambawita Combinational Logic
  • 22. BINARY ADDER-SUBTRACTOR Implementation of full adder in sum-of-products form D.R.V.L.B Thambawita Combinational Logic
  • 23. BINARY ADDER-SUBTRACTOR Implementation of full adder with two half adders and an OR gate D.R.V.L.B Thambawita Combinational Logic
  • 24. BINARY ADDER-SUBTRACTOR TheS output from the second half adder is the exclusive-OR of z and the output of the ļ¬rst half adder, giving D.R.V.L.B Thambawita Combinational Logic
  • 25. 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. Addition of n-bit numbers requires a chain of n full adders or a chain of one-half adder and n-1 full adders. D.R.V.L.B Thambawita Combinational Logic
  • 26. Binary Adder Four-bit adder Do you know? Observe that the design of this circuit by the classical method would require a truth table with 29 = 512 entries, since there are nine inputs to the circuit. D.R.V.L.B Thambawita Combinational Logic
  • 27. Carry Propagation 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. D.R.V.L.B Thambawita Combinational Logic
  • 28. Full adder with P and G shown D.R.V.L.B Thambawita Combinational Logic
  • 29. Carry Propagation 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*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. The carry propagation time is an important attribute of the adder because it limits the speed with which two numbers are added. Outputs will not be correct unless the signals are given enough time to propagate through the gates connected from the inputs to the outputs D.R.V.L.B Thambawita Combinational Logic
  • 30. Carry Propagation solution for reducing the carry propagation delay time The most widely used technique employs the principle of carry lookahead logic. For above circuit Gi is called a carry generate ā†’ it produces a carry of 1 when both Ai and Bi are 1, regardless of the input carry Ci . Pi is called a carry propagate ā†’ because it determines whether a carry into stage i will propagate into stage i + 1 With new binary variables: D.R.V.L.B Thambawita Combinational Logic
  • 31. Carry Propagation We now write the Boolean functions for the carry outputs of each stage and substitute the value of each Ci from the previous equations: D.R.V.L.B Thambawita Combinational Logic
  • 32. Carry Propagation Logic diagram of carry lookahead generator D.R.V.L.B Thambawita Combinational Logic
  • 33. Carry Propagation Four-bit adder with carry lookahead D.R.V.L.B Thambawita Combinational Logic
  • 34. Binary Subtractor Remember that 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 signiļ¬cant 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. D.R.V.L.B Thambawita Combinational Logic
  • 35. Four-bit adder-subtractor (with overļ¬‚ow detection) D.R.V.L.B Thambawita Combinational Logic
  • 36. Decimal Adder Computers or calculators that perform arithmetic operations directly in the decimal number system represent decimal numbers in binary coded form. An adder for such a computer must employ arithmetic circuits that accept coded decimal numbers and present results in the same code. A decimal adder requires a minimum of nine inputs and ļ¬ve outputs, since four bits are required to code each decimal digit and the circuit must have an input and output carry. D.R.V.L.B Thambawita Combinational Logic
  • 37. BCD Adder Since each input digit does not exceed 9, the output sum cannot be greater than 9 + 9 + 1 = 19, the 1 in the sum being an input carry. D.R.V.L.B Thambawita Combinational Logic
  • 38. BCD Adder The output sum of two decimal digits must be represented in BCD and should appear in the form listed in the columns under ā€BCD Sumā€. The problem is to ļ¬nd a rule by which the binary sum is converted to the correct BCD digit representation of the number in the BCD sum. hen the binary sum is greater than 1001, we obtain an invalid BCD representation. The addition of binary 6 (0110) to the binary sum converts it to the correct BCD representation and also produces an output carry as required. C = K + Z8Z4 + Z8Z2 D.R.V.L.B Thambawita Combinational Logic
  • 39. BCD Adder D.R.V.L.B Thambawita Combinational Logic
  • 40. DECODERS A decoder is a combinational circuit that converts binary information from n input lines to a maximum of 2n unique output lines. The decoders presented here are called n-to- m-line decoders, where m ā‰¤ 2n D.R.V.L.B Thambawita Combinational Logic
  • 42. DECODERS Truth Table of a Three-to-Eight-Line Decoder D.R.V.L.B Thambawita Combinational Logic
  • 43. DECODERS Two-to-four-line decoder with enable input D.R.V.L.B Thambawita Combinational Logic
  • 44. DECODERS 4 x 16 decoder constructed with two 3 x 8 decoders D.R.V.L.B Thambawita Combinational Logic
  • 45. DECODERS Combinational Logic Implementation From the truth table of the full adder , we obtain the functions for the combinational circuit in sum-of-minterms form: S(x, y, z) = Ī£(1, 2, 4, 7) C(x, y, z) = Ī£(3, 5, 6, 7) D.R.V.L.B Thambawita Combinational Logic
  • 46. DECODERS Combinational Logic Implementation: Implementation of a full adder with a decoder D.R.V.L.B Thambawita Combinational Logic
  • 47. 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 encoder deļ¬ned in below has the limitation that only one input can be active at any given time. D.R.V.L.B Thambawita Combinational Logic
  • 48. ENCODERS Truth Table of an Octal-to-Binary Encoder D.R.V.L.B Thambawita Combinational Logic
  • 49. Priority Encoder Truth Table of a Priority Encoder D.R.V.L.B Thambawita Combinational Logic
  • 50. Priority Encoder Maps for a priority encoder D.R.V.L.B Thambawita Combinational Logic
  • 52. 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. Two-to-one-line multiplexer D.R.V.L.B Thambawita Combinational Logic