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)

Ripple Carry Adder
Ripple Carry AdderRipple Carry Adder
Ripple Carry Adder
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adder
 
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
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Boolean algebra & logic gates
Boolean algebra & logic gatesBoolean algebra & logic gates
Boolean algebra & logic gates
 
Decoders
DecodersDecoders
Decoders
 
halfadder & halfsubtractor using 4:1 MUX
halfadder & halfsubtractor using 4:1 MUXhalfadder & halfsubtractor using 4:1 MUX
halfadder & halfsubtractor using 4:1 MUX
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplification
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
What is Adder-Half and Full Adder
What is Adder-Half and Full AdderWhat is Adder-Half and Full Adder
What is Adder-Half and Full Adder
 
DIGITAL ELECTRONICS- Logic Gates
DIGITAL ELECTRONICS- Logic GatesDIGITAL ELECTRONICS- Logic Gates
DIGITAL ELECTRONICS- Logic Gates
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 

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

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

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

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
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
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 

Último (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
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
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

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.