SlideShare ist ein Scribd-Unternehmen logo
1 von 39
Er. Nawaraj Bhandari
Digital Logic
Chapter 5:
Combinational Logic with MSI and
LSI
INTRODUCTION
 The purpose of Boolean-algebra simplification is to
obtain an algebraic expression that, when implemented,
results in a low-cost circuit.
 Two circuits that perform the same function, the one that
requires fewer gates is preferable because it will cost
less.
 But this is not necessarily true when integrated circuits
are used. With integrated circuits, it is not the count of
gates that determines the cost, but the number and types
of ICs employed and the number of interconnections
needed to implement the digital circuits of varying
complexities (I mean circuits with different level of
integrations viz. SSI, MSI, LSI, VLSI, ULSI etc).
 MSI components perform specific digital functions commonly needed in the
design of digital systems.
 Combinational circuit-type MSI components that are readily available in IC
packages are
 binary adders
 subtractors
 comparators,
 decoders,
 encoders, and
 multiplexers.
 These components are also used as standard modules within more complex LSI
and VLSI circuits and hence used extensively as basic building blocks in the
design of digital computers and systems.
ADDERS
 This circuit sums up two binary numbers A and B of n-bits
using full-adders to add each bit-pair & carry from
previous bit position.
 The sum of A and B can be generated in two ways:
either in a serial fashion or in parallel.
 1. 4-bit parallel binary adder
 2. Binary Parallel adder
 3. Decimal Adder – BCD adder

4-Bit parallel adder using full adder
 This circuit sums up two binary numbers A and B of n-bits
using full-adders to add each bit-pair & carry from
previous bit position.
 The outputs carry from one full-adder is connected to the
input carry of the full-adder one position to its left.
 As soon as the carries are generated, the correct sum
bits emerge from the sum outputs of all full-adders.
 Let’s assume A=A3 A2 A1 A0
 B=B3 B2 B1 B0 AND INITIALY
carry is Cin =0
Bcd Adder
 Computers or calculators that perform arithmetic operations
directly in the decimal number system represent decimal
numbers in binary-coded form
 Where decimal is 0-9
 And bcd also 0-9, greater than 9 is don’t care
 In the bcd adder it sis cmbination of two 4bit adder.
 And output will be 18 0r 19 bit
 Let assume A=0-3,B=0-3
 Binary code-0000 to 1001 from both side
 Total=9+9+1=19
 Or 9+9=18 without adding carry.
 Also Known as 8421 digit.
 A 4-bit binary adder.
 Adds two 4-bit digits having a BCD.
 Resulting format 4-bit output digit.
 Sum exceeding decimal value of 9, a carry’s generated.
What is BCD ADDER?
Conversion and Coding
(12)10
1100 00010010Conversion
Coding
(using BCD code
for each digit)
FUNCTIONS OF BCD ADDER
 A 4-bit BCD code’s used to represent 0 to 9 digits.
 Adding BCD numbers using BCD addition.
 Adding 6 with the sum while exceeding 9 and generating a carry.
 By adding 6 to the sum, make an invalid digit valid.
Addition with bcd adder
Maximum sum is 9+9 + 1 = 19
Max digit Carry from previous digits
Bcd adder (sum up to 9)
Number C S3 S2 S1 S0
0 0 0 0 0 0
1 0 0 0 0 1
2 0 0 0 1 0
3 0 0 0 1 1
4 0 0 1 0 0
5 0 0 1 0 1
6 0 0 1 1 0
7 0 0 1 1 1
8 0 1 0 0 0
9 0 1 0 0 1
Bcd adder (sum is 10 to 19)
Number C S3 S2 S1 S0
10 1 0 0 0 0
11 1 0 0 0 1
12 1 0 0 1 0
13 1 0 0 1 1
14 1 0 1 0 0
15 1 0 1 0 1
16 1 0 1 1 0
17 1 0 1 1 1
18 1 1 0 0 0
19 1 1 0 0 1
Bcd adder (sum is 10 to 19)
BCD adder sum Binary sum
Number
C S3 S2 S1 S0
10 1 0 0 0 0
11 1 0 0 0 1
12 1 0 0 1 0
13 1 0 0 1 1
14 1 0 1 0 0
15 1 0 1 0 1
16 1 0 1 1 0
17 1 0 1 1 1
18 1 1 0 0 0
19 1 1 0 0 1
K s3 s2 s1 s0
0 1 0 1 0
0 1 0 1 1
0 1 1 0 0
0 1 1 0 1
0 1 1 1 0
0 1 1 1 1
1 0 0 0 0
1 0 0 0 1
1 0 0 1 0
1 0 0 1 1
+6
Algorithm for bcd adder
 If sum is up to 9
Use the regular Adder.
 If the sum > 9
Use the regular adder and add 6 to the result
Why add 6 to the result?
 Sum of two BCD digits exceeding 9.
 A carry is generated.
 Converting the invalid digit into valid digit.
 Carry generated by adding 6 to the invalid BCD digit’s
passed on to the next BCD digit.
When is the result>9
Binary sum
Number
K S3 S2 S1 S0
10 0 1 0 1 0
11 0 1 0 1 1
12 0 1 1 0 0
13 0 1 1 0 1
14 0 1 1 1 0
15 0 1 1 1 1
16 1 0 0 0 0
17 1 0 0 0 1
18 1 0 0 1 0
19 1 0 0 1 1
C = K +
When is the result>9
Binary sum
Number
K S3 S2 S1 S0
10 0 1 0 1 0
11 0 1 0 1 1
12 0 1 1 0 0
13 0 1 1 0 1
14 0 1 1 1 0
15 0 1 1 1 1
16 1 0 0 0 0
17 1 0 0 0 1
18 1 0 0 1 0
19 1 0 0 1 1
C = K + S3*S2+
When is the result>9
Binary sum
Number
K S3 S2 S1 S0
10 0 1 0 1 0
11 0 1 0 1 1
12 0 1 1 0 0
13 0 1 1 0 1
14 0 1 1 1 0
15 0 1 1 1 1
16 1 0 0 0 0
17 1 0 0 0 1
18 1 0 0 1 0
19 1 0 0 1 1
C = K + S3*S2+
S3*S1
4-bit bcd adder
4-bit Adder
4-bit Adder
0 0
s3 s2 s1 s0
S3 S2 S1 S0
Cin
K
0 1 1 00 1 1
1
1 1 0 1
0
1 1 0 1
1 1
1
0 0 1 1
1
0
1
Magnitude Comparator
 A digital comparator or magnitude comparator is a
hardware electronic device that takes two numbers as
input in binary form and determines whether one number
is greater than,
 less than or
 equal to the other number.
 Comparators are used in central processing unit s
(CPUs) and microcontrollers (MCUs).
 Magnitude Comparator – a Magnitude Comparator is a
digital comparator which has three output terminals, one
each for equality,
 A = B greater than, A > B and less than A < B
 1-bit Digital Comparator Circuit
Inputs Outputs
B A
A >
B
A = B
A <
B
0 0 0 1 0
0 1 1 0 0
1 0 0 0 1
1 1 0 1 0
 4-bit Magnitude Comparator
Some commercially available digital comparators such as
the
TTL 74LS85 or
CMOS 4063
4-bit magnitude comparator have additional input
terminals that allow more individual comparators to be
“cascaded” together to compare words larger than 4-bits
with magnitude comparators of “n”-bits being produced
 A = A3A2A1A0
 B = B3B2B1B0
 if A3 = B3 and A2 = B2 and A1 = B1 and A0 = B0
 Xi = AiBi + Ai’Bi’, i = 0, 1, 2, 3
 Algorithm
 (A = B)
 For the equality condition to exist, all Xi variables must be
equal to 1. This dictates an AND operation of all variables:
 (A = B) = X3X2X1X0
 A > B: If the corresponding digit of A is 1 and that of B is 0.
 A < B: If the corresponding digit of A is 0 and that of B is 1.
 (A > B) = A3B3’ + X3A2B2’ + x3x2A1B1’ + X3X2X1A0B0’
 (A < B) = A3’B3 + X3A2’B2 + x3x2A1’B1 + X3X2X1A0’B0
Encoder
 Encoder, decoder and multiplexer is the part of MSI
 Encoder have n input and m outputs
 Function of decoder is opposite to the encoder
 Encoder can encode code in minimum no.of dataline and decoder decode it.
 If we have 4*2 encoder it means 2*4 decoder is used.
 So relation between encoder and decoder is:
 N=2M
 in 4*2, 8*3,16*4 encoder the input will be 4,8,16 resp. and output will be 2,3,4
dataline.
 Decoder is a combinational circuit that converts binary information from n
input lines to a maximum of 2n unique output lines.
 If the n-bit decoded information has unused or don't-care combinations, the
decoder output will have fewer than 2n outputs.
 Priority encoders
 Decimal to BCD encoder
 Octal to binary encoder
 Hexadecimal to binary encoder
 Priority encoders:-This is a special type of encoder. Priority
is given to the input lines. If two or more input line are 1 at
the same time, then the input line with highest priority will be
considered. There are four input D0, D1, D2, D3 and two
output Y0, Y1. Out of the four input D3 has the highest
priority and D0 has the lowest priority. That means if D3 = 1
then Y1 Y1 = 11 irrespective of the other inputs. Similarly if
D3 = 0 and D2 = 1 then Y1 Y0 = 10 irrespective of the other
inputs.
Octal to Binary encoder
 An encoder is a digital function that produces a reverse
operation from that of a decoder.
 An encoder has 2n (or less) input lines and n output lines.
The output lines generate the binary code for the 2n input
variables.
 The octal-to-binary encoder consists of eight inputs, one for
each of the eight digits,
 and three outputs that generate the corresponding binary
number.
 It is constructed with OR gate whose inputs can be determined
from the truth table.
 Let A=4+5+6+7
 B=2+3+6+7
 C=1+2+5+7
Decoder
 A decoder is a combinational circuit. It has n input and to a
maximum m = 2n outputs. Decoder is identical to a
demultiplexer without any data input.
 It performs operations which are exactly opposite to those
of an encoder.
 A decoder can take minimum input and generate maximum
output of its combination.
 N=2n where N is no. of inputs and 2n is output.

Combinational logic
Implementation
 A decoder provides the 2n minterm of n input variables.
 Boolean function can be expressed in sum of minterms
canonical form, one can use a decoder to generate the
minterms and an external OR gate to form the sum.
 Any combinational circuit with n inputs and m outputs
can be implemented with an n-to-2n- line decoder and m
OR gates.
 Example: Implement a full-adder circuit with a decoder.
Multiplexers
 A digital multiplexer is a combinational circuit that selects
binary information from one of many input lines and directs it
to a single output line.
 The selection of a particular input line is controlled by a set
of selection lines.
 Normally, there are 2n input lines and n selection lines whose
bit combinations determine which input is selected
 A demultiplexer is a circuit that receives information on a
single line and transmits this information on one of 2n
possible output lines. The selection of a specific output line is
controlled by the bit values of n selection lines.
 o A Decoder with an enable input can function as a
demultiplexer.
 Boolean Function implementation
 As decoder can be used to implement a Boolean function
by employing an external OR gate, we can implement any
Boolean function (in SOP) with multiplexer since
multiplexer is essentially a decoder with the OR gate
already available
 Example: Implement Boolean function F(A,B,C)= Σ(1,3,5,6)
with multiplexer.
Rom
 A read-only memory (ROM) is a device that includes both
the decoder and the OR gates within a single IC package.
 The connections between the outputs of the decoder and
the inputs of the OR gates can be specified for each
particular configuration.
 32 x 4 ROM (unit consists of 32 words of 8 bits each)
 In this example the input size is 32 so input size will be 5
and output size for variable will be 32 for decoder.
Combinational logic
implementation
 Example: Consider a following truth table:
Combinational-circuit
implementation with a
4 x 2 ROM
Types of ROM
 1. ROMs
 2. PROM
 3. EPROM
 4. EEPROM
 ROMs: For simple ROMs, mask programming is done by
the manufacturer during the fabrication process of the
unit. The procedure for fabricating a ROM requires that
the customer fill out the truth table the ROM is to satisfy
 This procedure is costly because the vendor charges the
customer a special fee for custom masking a ROM
 PROMs: Programmable read-only memory or PROM units
contain all 0's (or all 1's) in every bit of the stored words.
 The approach called field programming is applied for fuses in
the PROM which are blown by application of current pulses
through the output terminals.
 This allows the user to program the unit in the laboratory to
achieve the desired relationship between input addresses and
stored words.
 EPROMs: The hardware procedure for programming ROMs or
PROMs is irreversible and, once programmed, the fixed pattern
is permanent and cannot be altered.
 Once a bit pattern has been established, the unit must be
discarded if the bit pattern is to be changed.
 A third type of unit available is called erasable PROM, or
EPROM. EPROMs can be restructured to the initial value (all 0's
or all 1's) even though they have been changed previously
 EEPROMs: Certain ROMs can be erased with electrical signals instead
of ultraviolet light, and these are called electrically erasable PROMs,
or EEPROMs
 The function of a ROM can be interpreted in two different ways:
 The first interpretation is of a unit that implements any combinational
circuit.
 From this point of view, each output terminal is considered separately
as the output of a Boolean function expressed in sum of minterms.
 The second interpretation considers the ROM to be a storage unit
having a fixed pattern of bit strings called words.
 From this point of view, the inputs specify an address to a specific
stored word, which is then applied to the outputs.
 This is the reason why the unit is given the name read-only memory.
Memory is commonly used to designate a storage unit
Programmable Logic Array (PLA)
 A combinational circuit may occasionally have don't-care
conditions.
 When implemented with a ROM, a don't care condition
becomes an address input that will never occur.
 The words at the don't-care addresses need not be
programmed and may be left in their original state (all 0's
or all 1's).
 The result is that not all the bit patterns available in the
ROM are used, which may be considered a waste of
available equipment.
 Programmable Logic Array or PLA is LSI component that
can be used in economically as an alternative to ROM
where number of don’t-care conditions is excessive.
 PLA diagram consists of n inputs, m outputs, k product
terms, and m sum terms. The product terms constitute a
group of k AND gates and the sum terms constitute a
group of m OR gates. Fuses are inserted between all n
inputs and their complement values to each of the AND
gates. Fuses are also provided between the outputs of
the AND gates and the inputs of the OR gates.

Weitere ähnliche Inhalte

Was ist angesagt?

Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adderanu surya
 
Carry look ahead adder
Carry look ahead adderCarry look ahead adder
Carry look ahead adderdragonpradeep
 
Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexervishalgohel12195
 
integrator and differentiator op-amp
integrator and differentiator op-ampintegrator and differentiator op-amp
integrator and differentiator op-ampdanish iqbal
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicJames Evangelos
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERSkumari36
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebraSARITHA REDDY
 
Bcd to excess 3 code converter
Bcd to excess 3 code converterBcd to excess 3 code converter
Bcd to excess 3 code converterUshaswini Chowdary
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsLekashri Subramanian
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits DrSonali Vyas
 
Latch and flip flop
Latch and flip flopLatch and flip flop
Latch and flip flopGargiKhanna1
 
Binary multipliers
Binary multipliersBinary multipliers
Binary multipliersSyed Saeed
 

Was ist angesagt? (20)

PAL And PLA ROM
PAL And PLA ROMPAL And PLA ROM
PAL And PLA ROM
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adder
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
Carry look ahead adder
Carry look ahead adderCarry look ahead adder
Carry look ahead adder
 
Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexer
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
integrator and differentiator op-amp
integrator and differentiator op-ampintegrator and differentiator op-amp
integrator and differentiator op-amp
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Bcd to excess 3 code converter
Bcd to excess 3 code converterBcd to excess 3 code converter
Bcd to excess 3 code converter
 
Feedback amplifiers
Feedback amplifiersFeedback amplifiers
Feedback amplifiers
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 units
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Latch and flip flop
Latch and flip flopLatch and flip flop
Latch and flip flop
 
Binary multipliers
Binary multipliersBinary multipliers
Binary multipliers
 
Subtractor
SubtractorSubtractor
Subtractor
 

Ähnlich wie Chapter 5: Cominational Logic with MSI and LSI

Unit 4 combinational circuit
Unit 4 combinational circuitUnit 4 combinational circuit
Unit 4 combinational circuitKalai Selvi
 
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic CircuitsFYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic CircuitsArti Parab Academics
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).pptThanmayiKumar
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logicDeepak John
 
I semester Unit 4 combinational circuits.pptx
I semester Unit 4 combinational circuits.pptxI semester Unit 4 combinational circuits.pptx
I semester Unit 4 combinational circuits.pptxMayank Pandey
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfshubhangisonawane6
 
EFFICIENT MULTIPLIERS FOR 1-OUT-OF-3 BINARY SIGNED-DIGIT NUMBER SYSTEM
EFFICIENT MULTIPLIERS FOR 1-OUT-OF-3 BINARY SIGNED-DIGIT NUMBER SYSTEMEFFICIENT MULTIPLIERS FOR 1-OUT-OF-3 BINARY SIGNED-DIGIT NUMBER SYSTEM
EFFICIENT MULTIPLIERS FOR 1-OUT-OF-3 BINARY SIGNED-DIGIT NUMBER SYSTEMelelijjournal
 
Comparators_and_Code_Convertersv.pptx.ppt
Comparators_and_Code_Convertersv.pptx.pptComparators_and_Code_Convertersv.pptx.ppt
Comparators_and_Code_Convertersv.pptx.pptHardikGupta400524
 
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 VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxSanjaiPrasad
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuitsBindu Madhavi
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuitsBindu Madhavi
 

Ähnlich wie Chapter 5: Cominational Logic with MSI and LSI (20)

Unit 4 combinational circuit
Unit 4 combinational circuitUnit 4 combinational circuit
Unit 4 combinational circuit
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic CircuitsFYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Digital Logic Design
Digital Logic Design Digital Logic Design
Digital Logic Design
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logic
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
 
BCDCONVERTER.pptx
BCDCONVERTER.pptxBCDCONVERTER.pptx
BCDCONVERTER.pptx
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
DLD Chapter-4.pdf
DLD Chapter-4.pdfDLD Chapter-4.pdf
DLD Chapter-4.pdf
 
I semester Unit 4 combinational circuits.pptx
I semester Unit 4 combinational circuits.pptxI semester Unit 4 combinational circuits.pptx
I semester Unit 4 combinational circuits.pptx
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
 
DCF-Combinational circuit
DCF-Combinational circuitDCF-Combinational circuit
DCF-Combinational circuit
 
EFFICIENT MULTIPLIERS FOR 1-OUT-OF-3 BINARY SIGNED-DIGIT NUMBER SYSTEM
EFFICIENT MULTIPLIERS FOR 1-OUT-OF-3 BINARY SIGNED-DIGIT NUMBER SYSTEMEFFICIENT MULTIPLIERS FOR 1-OUT-OF-3 BINARY SIGNED-DIGIT NUMBER SYSTEM
EFFICIENT MULTIPLIERS FOR 1-OUT-OF-3 BINARY SIGNED-DIGIT NUMBER SYSTEM
 
Comparators_and_Code_Convertersv.pptx.ppt
Comparators_and_Code_Convertersv.pptx.pptComparators_and_Code_Convertersv.pptx.ppt
Comparators_and_Code_Convertersv.pptx.ppt
 
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
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
 

Mehr von Er. Nawaraj Bhandari

Data mining approaches and methods
Data mining approaches and methodsData mining approaches and methods
Data mining approaches and methodsEr. Nawaraj Bhandari
 
Research trends in data warehousing and data mining
Research trends in data warehousing and data miningResearch trends in data warehousing and data mining
Research trends in data warehousing and data miningEr. Nawaraj Bhandari
 
Mining Association Rules in Large Database
Mining Association Rules in Large DatabaseMining Association Rules in Large Database
Mining Association Rules in Large DatabaseEr. Nawaraj Bhandari
 
Introduction to data mining and data warehousing
Introduction to data mining and data warehousingIntroduction to data mining and data warehousing
Introduction to data mining and data warehousingEr. Nawaraj Bhandari
 
Classification and prediction in data mining
Classification and prediction in data miningClassification and prediction in data mining
Classification and prediction in data miningEr. Nawaraj Bhandari
 
Chapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionChapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionEr. Nawaraj Bhandari
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesEr. Nawaraj Bhandari
 
Introduction to Electronic Commerce
Introduction to Electronic CommerceIntroduction to Electronic Commerce
Introduction to Electronic CommerceEr. Nawaraj Bhandari
 
Using macros in microsoft excel part 2
Using macros in microsoft excel   part 2Using macros in microsoft excel   part 2
Using macros in microsoft excel part 2Er. Nawaraj Bhandari
 
Using macros in microsoft excel part 1
Using macros in microsoft excel   part 1Using macros in microsoft excel   part 1
Using macros in microsoft excel part 1Er. Nawaraj Bhandari
 
Application software and business processes
Application software and business processesApplication software and business processes
Application software and business processesEr. Nawaraj Bhandari
 

Mehr von Er. Nawaraj Bhandari (20)

Data mining approaches and methods
Data mining approaches and methodsData mining approaches and methods
Data mining approaches and methods
 
Research trends in data warehousing and data mining
Research trends in data warehousing and data miningResearch trends in data warehousing and data mining
Research trends in data warehousing and data mining
 
Mining Association Rules in Large Database
Mining Association Rules in Large DatabaseMining Association Rules in Large Database
Mining Association Rules in Large Database
 
Introduction to data mining and data warehousing
Introduction to data mining and data warehousingIntroduction to data mining and data warehousing
Introduction to data mining and data warehousing
 
Data warehouse testing
Data warehouse testingData warehouse testing
Data warehouse testing
 
Data warehouse physical design
Data warehouse physical designData warehouse physical design
Data warehouse physical design
 
Data warehouse logical design
Data warehouse logical designData warehouse logical design
Data warehouse logical design
 
Classification and prediction in data mining
Classification and prediction in data miningClassification and prediction in data mining
Classification and prediction in data mining
 
Chapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionChapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean Function
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic Gates
 
Chapter 1: Binary System
 Chapter 1: Binary System Chapter 1: Binary System
Chapter 1: Binary System
 
Introduction to Electronic Commerce
Introduction to Electronic CommerceIntroduction to Electronic Commerce
Introduction to Electronic Commerce
 
Evaluating software development
Evaluating software developmentEvaluating software development
Evaluating software development
 
Using macros in microsoft excel part 2
Using macros in microsoft excel   part 2Using macros in microsoft excel   part 2
Using macros in microsoft excel part 2
 
Using macros in microsoft excel part 1
Using macros in microsoft excel   part 1Using macros in microsoft excel   part 1
Using macros in microsoft excel part 1
 
Using macros in microsoft access
Using macros in microsoft accessUsing macros in microsoft access
Using macros in microsoft access
 
Testing software development
Testing software developmentTesting software development
Testing software development
 
Application software and business processes
Application software and business processesApplication software and business processes
Application software and business processes
 
An introduction to vba and macros
An introduction to vba and macrosAn introduction to vba and macros
An introduction to vba and macros
 

Kürzlich hochgeladen

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Kürzlich hochgeladen (20)

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

Chapter 5: Cominational Logic with MSI and LSI

  • 1. Er. Nawaraj Bhandari Digital Logic Chapter 5: Combinational Logic with MSI and LSI
  • 2. INTRODUCTION  The purpose of Boolean-algebra simplification is to obtain an algebraic expression that, when implemented, results in a low-cost circuit.  Two circuits that perform the same function, the one that requires fewer gates is preferable because it will cost less.  But this is not necessarily true when integrated circuits are used. With integrated circuits, it is not the count of gates that determines the cost, but the number and types of ICs employed and the number of interconnections needed to implement the digital circuits of varying complexities (I mean circuits with different level of integrations viz. SSI, MSI, LSI, VLSI, ULSI etc).
  • 3.  MSI components perform specific digital functions commonly needed in the design of digital systems.  Combinational circuit-type MSI components that are readily available in IC packages are  binary adders  subtractors  comparators,  decoders,  encoders, and  multiplexers.  These components are also used as standard modules within more complex LSI and VLSI circuits and hence used extensively as basic building blocks in the design of digital computers and systems.
  • 4. ADDERS  This circuit sums up two binary numbers A and B of n-bits using full-adders to add each bit-pair & carry from previous bit position.  The sum of A and B can be generated in two ways: either in a serial fashion or in parallel.  1. 4-bit parallel binary adder  2. Binary Parallel adder  3. Decimal Adder – BCD adder 
  • 5. 4-Bit parallel adder using full adder  This circuit sums up two binary numbers A and B of n-bits using full-adders to add each bit-pair & carry from previous bit position.  The outputs carry from one full-adder is connected to the input carry of the full-adder one position to its left.  As soon as the carries are generated, the correct sum bits emerge from the sum outputs of all full-adders.  Let’s assume A=A3 A2 A1 A0  B=B3 B2 B1 B0 AND INITIALY carry is Cin =0
  • 6. Bcd Adder  Computers or calculators that perform arithmetic operations directly in the decimal number system represent decimal numbers in binary-coded form  Where decimal is 0-9  And bcd also 0-9, greater than 9 is don’t care  In the bcd adder it sis cmbination of two 4bit adder.  And output will be 18 0r 19 bit  Let assume A=0-3,B=0-3  Binary code-0000 to 1001 from both side  Total=9+9+1=19  Or 9+9=18 without adding carry.
  • 7.  Also Known as 8421 digit.  A 4-bit binary adder.  Adds two 4-bit digits having a BCD.  Resulting format 4-bit output digit.  Sum exceeding decimal value of 9, a carry’s generated. What is BCD ADDER?
  • 8. Conversion and Coding (12)10 1100 00010010Conversion Coding (using BCD code for each digit)
  • 9. FUNCTIONS OF BCD ADDER  A 4-bit BCD code’s used to represent 0 to 9 digits.  Adding BCD numbers using BCD addition.  Adding 6 with the sum while exceeding 9 and generating a carry.  By adding 6 to the sum, make an invalid digit valid.
  • 10. Addition with bcd adder Maximum sum is 9+9 + 1 = 19 Max digit Carry from previous digits
  • 11. Bcd adder (sum up to 9) Number C S3 S2 S1 S0 0 0 0 0 0 0 1 0 0 0 0 1 2 0 0 0 1 0 3 0 0 0 1 1 4 0 0 1 0 0 5 0 0 1 0 1 6 0 0 1 1 0 7 0 0 1 1 1 8 0 1 0 0 0 9 0 1 0 0 1
  • 12. Bcd adder (sum is 10 to 19) Number C S3 S2 S1 S0 10 1 0 0 0 0 11 1 0 0 0 1 12 1 0 0 1 0 13 1 0 0 1 1 14 1 0 1 0 0 15 1 0 1 0 1 16 1 0 1 1 0 17 1 0 1 1 1 18 1 1 0 0 0 19 1 1 0 0 1
  • 13. Bcd adder (sum is 10 to 19) BCD adder sum Binary sum Number C S3 S2 S1 S0 10 1 0 0 0 0 11 1 0 0 0 1 12 1 0 0 1 0 13 1 0 0 1 1 14 1 0 1 0 0 15 1 0 1 0 1 16 1 0 1 1 0 17 1 0 1 1 1 18 1 1 0 0 0 19 1 1 0 0 1 K s3 s2 s1 s0 0 1 0 1 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 0 0 0 0 1 0 0 0 1 1 0 0 1 0 1 0 0 1 1 +6
  • 14. Algorithm for bcd adder  If sum is up to 9 Use the regular Adder.  If the sum > 9 Use the regular adder and add 6 to the result
  • 15. Why add 6 to the result?  Sum of two BCD digits exceeding 9.  A carry is generated.  Converting the invalid digit into valid digit.  Carry generated by adding 6 to the invalid BCD digit’s passed on to the next BCD digit.
  • 16. When is the result>9 Binary sum Number K S3 S2 S1 S0 10 0 1 0 1 0 11 0 1 0 1 1 12 0 1 1 0 0 13 0 1 1 0 1 14 0 1 1 1 0 15 0 1 1 1 1 16 1 0 0 0 0 17 1 0 0 0 1 18 1 0 0 1 0 19 1 0 0 1 1 C = K +
  • 17. When is the result>9 Binary sum Number K S3 S2 S1 S0 10 0 1 0 1 0 11 0 1 0 1 1 12 0 1 1 0 0 13 0 1 1 0 1 14 0 1 1 1 0 15 0 1 1 1 1 16 1 0 0 0 0 17 1 0 0 0 1 18 1 0 0 1 0 19 1 0 0 1 1 C = K + S3*S2+
  • 18. When is the result>9 Binary sum Number K S3 S2 S1 S0 10 0 1 0 1 0 11 0 1 0 1 1 12 0 1 1 0 0 13 0 1 1 0 1 14 0 1 1 1 0 15 0 1 1 1 1 16 1 0 0 0 0 17 1 0 0 0 1 18 1 0 0 1 0 19 1 0 0 1 1 C = K + S3*S2+ S3*S1
  • 19. 4-bit bcd adder 4-bit Adder 4-bit Adder 0 0 s3 s2 s1 s0 S3 S2 S1 S0 Cin K 0 1 1 00 1 1 1 1 1 0 1 0 1 1 0 1 1 1 1 0 0 1 1 1 0 1
  • 20. Magnitude Comparator  A digital comparator or magnitude comparator is a hardware electronic device that takes two numbers as input in binary form and determines whether one number is greater than,  less than or  equal to the other number.  Comparators are used in central processing unit s (CPUs) and microcontrollers (MCUs).  Magnitude Comparator – a Magnitude Comparator is a digital comparator which has three output terminals, one each for equality,  A = B greater than, A > B and less than A < B
  • 21.  1-bit Digital Comparator Circuit Inputs Outputs B A A > B A = B A < B 0 0 0 1 0 0 1 1 0 0 1 0 0 0 1 1 1 0 1 0
  • 22.  4-bit Magnitude Comparator Some commercially available digital comparators such as the TTL 74LS85 or CMOS 4063 4-bit magnitude comparator have additional input terminals that allow more individual comparators to be “cascaded” together to compare words larger than 4-bits with magnitude comparators of “n”-bits being produced
  • 23.  A = A3A2A1A0  B = B3B2B1B0  if A3 = B3 and A2 = B2 and A1 = B1 and A0 = B0  Xi = AiBi + Ai’Bi’, i = 0, 1, 2, 3  Algorithm  (A = B)  For the equality condition to exist, all Xi variables must be equal to 1. This dictates an AND operation of all variables:  (A = B) = X3X2X1X0  A > B: If the corresponding digit of A is 1 and that of B is 0.  A < B: If the corresponding digit of A is 0 and that of B is 1.
  • 24.  (A > B) = A3B3’ + X3A2B2’ + x3x2A1B1’ + X3X2X1A0B0’  (A < B) = A3’B3 + X3A2’B2 + x3x2A1’B1 + X3X2X1A0’B0
  • 25. Encoder  Encoder, decoder and multiplexer is the part of MSI  Encoder have n input and m outputs  Function of decoder is opposite to the encoder  Encoder can encode code in minimum no.of dataline and decoder decode it.  If we have 4*2 encoder it means 2*4 decoder is used.  So relation between encoder and decoder is:  N=2M  in 4*2, 8*3,16*4 encoder the input will be 4,8,16 resp. and output will be 2,3,4 dataline.  Decoder is a combinational circuit that converts binary information from n input lines to a maximum of 2n unique output lines.  If the n-bit decoded information has unused or don't-care combinations, the decoder output will have fewer than 2n outputs.
  • 26.  Priority encoders  Decimal to BCD encoder  Octal to binary encoder  Hexadecimal to binary encoder  Priority encoders:-This is a special type of encoder. Priority is given to the input lines. If two or more input line are 1 at the same time, then the input line with highest priority will be considered. There are four input D0, D1, D2, D3 and two output Y0, Y1. Out of the four input D3 has the highest priority and D0 has the lowest priority. That means if D3 = 1 then Y1 Y1 = 11 irrespective of the other inputs. Similarly if D3 = 0 and D2 = 1 then Y1 Y0 = 10 irrespective of the other inputs.
  • 27. Octal to Binary encoder  An encoder is a digital function that produces a reverse operation from that of a decoder.  An encoder has 2n (or less) input lines and n output lines. The output lines generate the binary code for the 2n input variables.  The octal-to-binary encoder consists of eight inputs, one for each of the eight digits,  and three outputs that generate the corresponding binary number.  It is constructed with OR gate whose inputs can be determined from the truth table.  Let A=4+5+6+7  B=2+3+6+7  C=1+2+5+7
  • 28. Decoder  A decoder is a combinational circuit. It has n input and to a maximum m = 2n outputs. Decoder is identical to a demultiplexer without any data input.  It performs operations which are exactly opposite to those of an encoder.  A decoder can take minimum input and generate maximum output of its combination.  N=2n where N is no. of inputs and 2n is output. 
  • 29. Combinational logic Implementation  A decoder provides the 2n minterm of n input variables.  Boolean function can be expressed in sum of minterms canonical form, one can use a decoder to generate the minterms and an external OR gate to form the sum.  Any combinational circuit with n inputs and m outputs can be implemented with an n-to-2n- line decoder and m OR gates.  Example: Implement a full-adder circuit with a decoder.
  • 30. Multiplexers  A digital multiplexer is a combinational circuit that selects binary information from one of many input lines and directs it to a single output line.  The selection of a particular input line is controlled by a set of selection lines.  Normally, there are 2n input lines and n selection lines whose bit combinations determine which input is selected  A demultiplexer is a circuit that receives information on a single line and transmits this information on one of 2n possible output lines. The selection of a specific output line is controlled by the bit values of n selection lines.  o A Decoder with an enable input can function as a demultiplexer.
  • 31.
  • 32.  Boolean Function implementation  As decoder can be used to implement a Boolean function by employing an external OR gate, we can implement any Boolean function (in SOP) with multiplexer since multiplexer is essentially a decoder with the OR gate already available  Example: Implement Boolean function F(A,B,C)= Σ(1,3,5,6) with multiplexer.
  • 33. Rom  A read-only memory (ROM) is a device that includes both the decoder and the OR gates within a single IC package.  The connections between the outputs of the decoder and the inputs of the OR gates can be specified for each particular configuration.  32 x 4 ROM (unit consists of 32 words of 8 bits each)  In this example the input size is 32 so input size will be 5 and output size for variable will be 32 for decoder.
  • 34. Combinational logic implementation  Example: Consider a following truth table: Combinational-circuit implementation with a 4 x 2 ROM
  • 35. Types of ROM  1. ROMs  2. PROM  3. EPROM  4. EEPROM  ROMs: For simple ROMs, mask programming is done by the manufacturer during the fabrication process of the unit. The procedure for fabricating a ROM requires that the customer fill out the truth table the ROM is to satisfy  This procedure is costly because the vendor charges the customer a special fee for custom masking a ROM
  • 36.  PROMs: Programmable read-only memory or PROM units contain all 0's (or all 1's) in every bit of the stored words.  The approach called field programming is applied for fuses in the PROM which are blown by application of current pulses through the output terminals.  This allows the user to program the unit in the laboratory to achieve the desired relationship between input addresses and stored words.  EPROMs: The hardware procedure for programming ROMs or PROMs is irreversible and, once programmed, the fixed pattern is permanent and cannot be altered.  Once a bit pattern has been established, the unit must be discarded if the bit pattern is to be changed.  A third type of unit available is called erasable PROM, or EPROM. EPROMs can be restructured to the initial value (all 0's or all 1's) even though they have been changed previously
  • 37.  EEPROMs: Certain ROMs can be erased with electrical signals instead of ultraviolet light, and these are called electrically erasable PROMs, or EEPROMs  The function of a ROM can be interpreted in two different ways:  The first interpretation is of a unit that implements any combinational circuit.  From this point of view, each output terminal is considered separately as the output of a Boolean function expressed in sum of minterms.  The second interpretation considers the ROM to be a storage unit having a fixed pattern of bit strings called words.  From this point of view, the inputs specify an address to a specific stored word, which is then applied to the outputs.  This is the reason why the unit is given the name read-only memory. Memory is commonly used to designate a storage unit
  • 38. Programmable Logic Array (PLA)  A combinational circuit may occasionally have don't-care conditions.  When implemented with a ROM, a don't care condition becomes an address input that will never occur.  The words at the don't-care addresses need not be programmed and may be left in their original state (all 0's or all 1's).  The result is that not all the bit patterns available in the ROM are used, which may be considered a waste of available equipment.  Programmable Logic Array or PLA is LSI component that can be used in economically as an alternative to ROM where number of don’t-care conditions is excessive.
  • 39.  PLA diagram consists of n inputs, m outputs, k product terms, and m sum terms. The product terms constitute a group of k AND gates and the sum terms constitute a group of m OR gates. Fuses are inserted between all n inputs and their complement values to each of the AND gates. Fuses are also provided between the outputs of the AND gates and the inputs of the OR gates.