SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente (20)

Logic gates
Logic gatesLogic gates
Logic gates
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adder
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Adder and subtrctor DLD
Adder and subtrctor  DLDAdder and subtrctor  DLD
Adder and subtrctor DLD
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplification
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
12.Representation of signed binary numbers. Binary codes - BCD code, Gray co...
12.Representation of signed binary numbers.  Binary codes - BCD code, Gray co...12.Representation of signed binary numbers.  Binary codes - BCD code, Gray co...
12.Representation of signed binary numbers. Binary codes - BCD code, Gray co...
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Signed Binary Numbers
Signed Binary NumbersSigned Binary Numbers
Signed Binary Numbers
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
 
Logic gate
Logic gateLogic gate
Logic gate
 
Logic gates presentation
Logic gates presentationLogic gates presentation
Logic gates presentation
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
 
Presentation On Logic Gate
Presentation On Logic Gate Presentation On Logic Gate
Presentation On Logic Gate
 
Registers
RegistersRegisters
Registers
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 

Similar a 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
 
Combinational Circuits.pptx
Combinational Circuits.pptxCombinational Circuits.pptx
Combinational Circuits.pptxAshokRachapalli1
 
Lata digital electronics
Lata digital electronicsLata digital electronics
Lata digital electronicslata kushwaha
 
Computer logic and gates
Computer logic and gatesComputer logic and gates
Computer logic and gatessamina khan
 
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
 
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
 

Similar a 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.
 
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
 
Computer logic and gates
Computer logic and gatesComputer logic and gates
Computer logic and gates
 
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
 
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
 
Logic gates (1)
Logic gates (1)Logic gates (1)
Logic gates (1)
 

Más de Vanitha Chandru

Más de 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
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Último (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.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
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

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.