SlideShare ist ein Scribd-Unternehmen logo
1 von 53
Downloaden Sie, um offline zu lesen
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

Weitere Àhnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

KĂŒrzlich hochgeladen

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 

KĂŒrzlich hochgeladen (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 

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