SlideShare ist ein Scribd-Unternehmen logo
1 von 29
COMPUTER ORGANIZATION
Logic Gates, Boolean Algebra,
Combinational Circuits
Logic Gates
A logic gate is an elementary building block of a
digital circuit. Most logic gates have two input
and one output.
At any given moment, every terminal is in one
of the two binary conditions low (0) or high (1),
represented by different voltage levels.
There are seven basic logic gates: AND, OR,
XOR, NOT, NAND, NOR, and XNOR.
0 is called "false" and 1 is called "true,”
AND Gate
• The output is "true" when both inputs are
"true." Otherwise, the output is "false."
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 0
1 1 1
OR Gate
• The OR gate gets its name from the fact that it
behaves after the fashion of the logical
inclusive "or." The output is "true" if either or
both of the inputs are "true." If both inputs
are "false," then the output is "false.“
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 1
XOR Gate
• The XOR ( exclusive-OR ) gate acts in the same
way as the logical "either/or." The output is
"true" if either, but not both, of the inputs are
"true." The output is "false" if both inputs are
"false" or if both inputs are "true."
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 0
NOT Gate
• logical inverter , sometimes called a NOT gate
to differentiate it from other types of
electronic inverter devices, has only one
input. It reverses the logic state.
Input Output
1 0
0 1
NAND Gate
• The NAND gate operates as an AND gate
followed by a NOT gate. It acts in the manner
of the logical operation "and" followed by
negation. The output is "false" if both inputs
are "true." Otherwise, the output is "true."
Input 1 Input 2 Output
0 0 1
0 1 1
1 0 1
1 1 0
NOR Gate
• The NOR gate is a combination OR gate
followed by an inverter. Its output is "true" if
both inputs are "false." Otherwise, the output
is "false."
Input 1 Input 2 Output
0 0 1
0 1 0
1 0 0
1 1 0
XNOR Gate
• The XNOR (exclusive-NOR) gate is a
combination XOR gate followed by an
inverter. Its output is "true" if the inputs are
the same, and"false" if the inputs are different
Input 1 Input 2 Output
0 0 1
0 1 0
1 0 0
1 1 1
• Using combinations of logic gates, complex operations
can be performed. In theory, there is no limit to the
number of gates that can be arrayed together in a single
device.
• But in practice, there is a limit to the number of gates
that can be packed into a given physical space.
• Arrays of logic gates are found in digital integrated
circuits (ICs).
• As IC technology advances, the required physical volume
for each individual logic gate decreases and digital
devices of the same or smaller size become capable of
performing ever-more-complicated operations at ever-
increasing speeds.
Boolean Algebra
• A set of rules formulated by the English mathematician
George Boole describe certain propositions whose
outcome would be either true or false.
• With regard to digital logic, these rules are used to
describe circuits whose state can be either, 1 (true) or 0
(false).
• In order to fully understand this, the relation between
the an AND gate, OR gate and NOT gate operations
should be appreciated.
• A number of rules can be derived from these relations
as shown in the below table.
Boolean Laws
Using the truth table:
• Example 1
solving algebraically
Example 2
Example 3
Combinational Circuits
• Combinational circuit is circuit in which we combine
the different gates in the circuit for example encoder,
decoder, multiplexer and demultiplexer. Some of the
characteristics of combinational circuits are following.
• The output of combinational circuit at any instant of
time, depends only on the levels present at input
terminals.
• The combinational circuit do not use any memory.
• The previous state of input does not have any effect
on the present state of the circuit.
• A combinational circuit can have a n number of inputs
and m number of outputs.
Block Diagram
• Half Adder
• Half adder is a combinational logic circuit with two
input and two output.
• The half adder circuit is designed to add two single
bit binary number A and B.
• It is the basic building block for addition of two single
bit numbers.
• This circuit has two outputs carry and sum.
Half Adder
• Full Adder
Full adder is developed to overcome the
drawback of Half Adder circuit.
It can add two one-bit numbers A and B, and
carry c.
The full adder is a three input and two
output combinational circuit.
Full Adder
• N-Bit Parallel Adder
• The Full Adder is capable of adding only two
single digit binary number along with a carry
input.
• But in practical we need to add binary numbers
which are much longer than just one bit.
• To add two n-bit binary numbers we need to use
the n-bit parallel adder.
• It uses a number of full adders in cascade.
• The carry output of the previous full adder is
connected to carry input of the next full adder.
4 Bit Parallel Adder
• In the block diagram, A0 and B0 represent the LSB
of the four bit words A and B. Hence Full Adder-
0 is the lowest stage.
• Hence its Cin has been permanently made 0. The
rest of the connections are exactly same as
those of n-bit parallel adder is shown in fig.
• The four bit parallel adder is a very common
logic circuit.
• N-Bit Parallel Subtractor
• The subtraction can be carried out by taking
the 1's or 2's complement of the number to be
subtracted.
• For example we can perform the subtraction
(A-B) by adding either 1's or 2's complement
of B to A.
• That means we can use a binary adder to
perform the binary subtraction.
• 4 Bit Parallel Subtractor
The number to be subtracted (B) is first passed through
inverters to obtain its 1's complement.
The 4-bit adder then adds A and 2's complement of B
to produce the subtraction.
S3 S2 S1 S0 represent the result of binary subtraction (A-
B) and carry output Cout represents the polarity of the
result.
If A > B then Cout =0 and the result of binary form (A-
B) then Cout = 1 and the result is in the 2's complement
form.
4 Bit Parallel SUBTRACTOR
• Half Subtractors
• Half subtractor is a combination
circuit with two inputs and two
outputs (difference and
borrow).
• It produces the difference
between the two binary bits at
the input and also produces a
output (Borrow) to indicate if a
1 has been borrowed.
• In the subtraction (A-B), A is
called as Minuend bit and B is
called as Subtrahend bit.
• Full Subtractors
• The disadvantage of a half subtractor is
overcome by full subtractor.
• The full subtractor is a combinational circuit
with three inputs A,B,C and two output D and
C'. A is the minuend, B is subtrahend, C is the
borrow produced by the previous stage, D is
the difference output and C' is the borrow
output.
Full Subtractors
By S.Vanitha,Chennai

Weitere ähnliche Inhalte

Was ist angesagt?

boolean algrebra and logic gates in short
boolean algrebra and logic gates in shortboolean algrebra and logic gates in short
boolean algrebra and logic gates in shortRojin Khadka
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparatorSyed Saeed
 
NAND and NOR implementation and Other two level implementation
NAND and NOR implementation and  Other two level implementationNAND and NOR implementation and  Other two level implementation
NAND and NOR implementation and Other two level implementationMuhammad Akhtar
 
Transistor Transistor Logic
Transistor Transistor LogicTransistor Transistor Logic
Transistor Transistor Logicsurat murthy
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adderanu surya
 
Computer logic and gates
Computer logic and gatesComputer logic and gates
Computer logic and gatessamina khan
 
Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraHanu Kavi
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraelfeds916
 
basic logic gates
 basic logic gates basic logic gates
basic logic gatesvishal gupta
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 

Was ist angesagt? (20)

BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
boolean algrebra and logic gates in short
boolean algrebra and logic gates in shortboolean algrebra and logic gates in short
boolean algrebra and logic gates in short
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
 
NAND and NOR implementation and Other two level implementation
NAND and NOR implementation and  Other two level implementationNAND and NOR implementation and  Other two level implementation
NAND and NOR implementation and Other two level implementation
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
Transistor Transistor Logic
Transistor Transistor LogicTransistor Transistor Logic
Transistor Transistor Logic
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adder
 
Computer logic and gates
Computer logic and gatesComputer logic and gates
Computer logic and gates
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebra
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
 
full subtractor
full subtractorfull subtractor
full subtractor
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Datapath design
Datapath designDatapath design
Datapath design
 
Computer Arithmetic
Computer ArithmeticComputer Arithmetic
Computer Arithmetic
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
 

Ähnlich wie COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits

UNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxUNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxGaganaP13
 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfTamiratDejene1
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Satya P. Joshi
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Satya P. Joshi
 
Combinational Circuits.pptx
Combinational Circuits.pptxCombinational Circuits.pptx
Combinational Circuits.pptxAshokRachapalli1
 
Lata digital electronics
Lata digital electronicsLata digital electronics
Lata digital electronicslata kushwaha
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxWilliamJosephat1
 
Logic Gate.pptx
Logic Gate.pptxLogic Gate.pptx
Logic Gate.pptxHrRajon2
 
L1 - Logic Gate & Truth Tables - student.pdf
L1 - Logic Gate & Truth Tables - student.pdfL1 - Logic Gate & Truth Tables - student.pdf
L1 - Logic Gate & Truth Tables - student.pdflcabey
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptxAravindaAKumar1
 
Combinational circuits r011
Combinational circuits   r011Combinational circuits   r011
Combinational circuits r011arunachalamr16
 
11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptxElisée Ndjabu
 

Ähnlich wie COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits (20)

UNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxUNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptx
 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdf
 
Electronics: Logic Gates
Electronics: Logic GatesElectronics: Logic Gates
Electronics: Logic Gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
logic gates
logic gates logic gates
logic gates
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Combinational Circuits.pptx
Combinational Circuits.pptxCombinational Circuits.pptx
Combinational Circuits.pptx
 
Lata digital electronics
Lata digital electronicsLata digital electronics
Lata digital electronics
 
LOGIC GATES
LOGIC GATESLOGIC GATES
LOGIC GATES
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
Logic Gate.pptx
Logic Gate.pptxLogic Gate.pptx
Logic Gate.pptx
 
L1 - Logic Gate & Truth Tables - student.pdf
L1 - Logic Gate & Truth Tables - student.pdfL1 - Logic Gate & Truth Tables - student.pdf
L1 - Logic Gate & Truth Tables - student.pdf
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptx
 
Combinational circuits r011
Combinational circuits   r011Combinational circuits   r011
Combinational circuits r011
 
Logic gates
Logic gatesLogic gates
Logic gates
 
11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx
 

Mehr von Vanitha Chandru

Mehr von Vanitha Chandru (10)

Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
Binary tree
Binary  treeBinary  tree
Binary tree
 
Shift Register
Shift RegisterShift Register
Shift Register
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
 
Text-Elements of multimedia
Text-Elements of multimediaText-Elements of multimedia
Text-Elements of multimedia
 
Light effect
Light effectLight effect
Light effect
 
Alexander the Great
Alexander the GreatAlexander the Great
Alexander the Great
 
Swami Vivekananda's Quotes
Swami Vivekananda's QuotesSwami Vivekananda's Quotes
Swami Vivekananda's Quotes
 
Customers
CustomersCustomers
Customers
 

Kürzlich hochgeladen

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
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
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
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
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 

Kürzlich hochgeladen (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
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
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits

  • 1. COMPUTER ORGANIZATION Logic Gates, Boolean Algebra, Combinational Circuits
  • 2. Logic Gates A logic gate is an elementary building block of a digital circuit. Most logic gates have two input and one output. At any given moment, every terminal is in one of the two binary conditions low (0) or high (1), represented by different voltage levels. There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR. 0 is called "false" and 1 is called "true,”
  • 3. AND Gate • The output is "true" when both inputs are "true." Otherwise, the output is "false." Input 1 Input 2 Output 0 0 0 0 1 0 1 0 0 1 1 1
  • 4. OR Gate • The OR gate gets its name from the fact that it behaves after the fashion of the logical inclusive "or." The output is "true" if either or both of the inputs are "true." If both inputs are "false," then the output is "false.“ Input 1 Input 2 Output 0 0 0 0 1 1 1 0 1 1 1 1
  • 5. XOR Gate • The XOR ( exclusive-OR ) gate acts in the same way as the logical "either/or." The output is "true" if either, but not both, of the inputs are "true." The output is "false" if both inputs are "false" or if both inputs are "true." Input 1 Input 2 Output 0 0 0 0 1 1 1 0 1 1 1 0
  • 6. NOT Gate • logical inverter , sometimes called a NOT gate to differentiate it from other types of electronic inverter devices, has only one input. It reverses the logic state. Input Output 1 0 0 1
  • 7. NAND Gate • The NAND gate operates as an AND gate followed by a NOT gate. It acts in the manner of the logical operation "and" followed by negation. The output is "false" if both inputs are "true." Otherwise, the output is "true." Input 1 Input 2 Output 0 0 1 0 1 1 1 0 1 1 1 0
  • 8. NOR Gate • The NOR gate is a combination OR gate followed by an inverter. Its output is "true" if both inputs are "false." Otherwise, the output is "false." Input 1 Input 2 Output 0 0 1 0 1 0 1 0 0 1 1 0
  • 9. XNOR Gate • The XNOR (exclusive-NOR) gate is a combination XOR gate followed by an inverter. Its output is "true" if the inputs are the same, and"false" if the inputs are different Input 1 Input 2 Output 0 0 1 0 1 0 1 0 0 1 1 1
  • 10. • Using combinations of logic gates, complex operations can be performed. In theory, there is no limit to the number of gates that can be arrayed together in a single device. • But in practice, there is a limit to the number of gates that can be packed into a given physical space. • Arrays of logic gates are found in digital integrated circuits (ICs). • As IC technology advances, the required physical volume for each individual logic gate decreases and digital devices of the same or smaller size become capable of performing ever-more-complicated operations at ever- increasing speeds.
  • 11. Boolean Algebra • A set of rules formulated by the English mathematician George Boole describe certain propositions whose outcome would be either true or false. • With regard to digital logic, these rules are used to describe circuits whose state can be either, 1 (true) or 0 (false). • In order to fully understand this, the relation between the an AND gate, OR gate and NOT gate operations should be appreciated. • A number of rules can be derived from these relations as shown in the below table.
  • 13. Using the truth table: • Example 1 solving algebraically
  • 15. Combinational Circuits • Combinational circuit is circuit in which we combine the different gates in the circuit for example encoder, decoder, multiplexer and demultiplexer. Some of the characteristics of combinational circuits are following. • The output of combinational circuit at any instant of time, depends only on the levels present at input terminals. • The combinational circuit do not use any memory. • The previous state of input does not have any effect on the present state of the circuit. • A combinational circuit can have a n number of inputs and m number of outputs.
  • 17. • Half Adder • Half adder is a combinational logic circuit with two input and two output. • The half adder circuit is designed to add two single bit binary number A and B. • It is the basic building block for addition of two single bit numbers. • This circuit has two outputs carry and sum.
  • 19. • Full Adder Full adder is developed to overcome the drawback of Half Adder circuit. It can add two one-bit numbers A and B, and carry c. The full adder is a three input and two output combinational circuit.
  • 21. • N-Bit Parallel Adder • The Full Adder is capable of adding only two single digit binary number along with a carry input. • But in practical we need to add binary numbers which are much longer than just one bit. • To add two n-bit binary numbers we need to use the n-bit parallel adder. • It uses a number of full adders in cascade. • The carry output of the previous full adder is connected to carry input of the next full adder.
  • 22. 4 Bit Parallel Adder • In the block diagram, A0 and B0 represent the LSB of the four bit words A and B. Hence Full Adder- 0 is the lowest stage. • Hence its Cin has been permanently made 0. The rest of the connections are exactly same as those of n-bit parallel adder is shown in fig. • The four bit parallel adder is a very common logic circuit.
  • 23. • N-Bit Parallel Subtractor • The subtraction can be carried out by taking the 1's or 2's complement of the number to be subtracted. • For example we can perform the subtraction (A-B) by adding either 1's or 2's complement of B to A. • That means we can use a binary adder to perform the binary subtraction.
  • 24. • 4 Bit Parallel Subtractor The number to be subtracted (B) is first passed through inverters to obtain its 1's complement. The 4-bit adder then adds A and 2's complement of B to produce the subtraction. S3 S2 S1 S0 represent the result of binary subtraction (A- B) and carry output Cout represents the polarity of the result. If A > B then Cout =0 and the result of binary form (A- B) then Cout = 1 and the result is in the 2's complement form.
  • 25. 4 Bit Parallel SUBTRACTOR
  • 26. • Half Subtractors • Half subtractor is a combination circuit with two inputs and two outputs (difference and borrow). • It produces the difference between the two binary bits at the input and also produces a output (Borrow) to indicate if a 1 has been borrowed. • In the subtraction (A-B), A is called as Minuend bit and B is called as Subtrahend bit.
  • 27. • Full Subtractors • The disadvantage of a half subtractor is overcome by full subtractor. • The full subtractor is a combinational circuit with three inputs A,B,C and two output D and C'. A is the minuend, B is subtrahend, C is the borrow produced by the previous stage, D is the difference output and C' is the borrow output.