SlideShare une entreprise Scribd logo
1  sur  32
Télécharger pour lire hors ligne
INTRODUCTION TO COMPUTER
SYSTEM
CSC 2313
LECTURE 4
Department of Maths and Computer-Science
Faculty of Natural andApplied Science
BY
UMAR DANJUMA MAIWADA
OBJECTIVES
 Boolean Algebra,
 Functions,
 And Minimization
2
INTRODUCTION
 Binary logic consists of binary variables and logical
operations.The variables are designated by letters of
the alphabet such asA, B, C, x, y, z, etc., with each
variable having two and only two distinct possible
values: 1 and O.There are three basic logical
operations:AND, OR, and NOT
 Logic gates are primarily implemented using diodes or
transistors acting as electronic switches, but can also
be constructed using vacuum tubes, electromagnetic
relays (relay logic), fluidic logic, pneumatic logic,
optics, molecules, or even mechanical elements.
3
DIGITAL LOGIC DESIGN
 Digital (electronic) circuits are electronics that handle
digital signals
 Digital techniques are useful because it is easier to get an
electronic device to switch into one of a number of known
states than to accurately reproduce a continuous range of
values.
 They correspond to the false and true values of the Boolean
domain respectively.
4
LOGIC GATES
 logic gate is an idealized or physical device implementing a
Boolean function; that is, it performs a logical operation on one
or more binary inputs, and produces a single binary output.
 With amplification, logic gates can be cascaded in the same way
that Boolean functions can be composed, allowing the
construction of a physical model of all of Boolean logic, and
therefore, all of the algorithms and mathematics that can be
described with Boolean logic.
5
NOT GATE
 Inversion, negation”“NOT” symbol → Z= X' (Also called the complement)
 NOT gate is more commonly called an inverter
 The circle on the symbol is called a bubble, and is used in logic diagrams to indicate a
logic negation between the external logic state and the internal logic state (1 to 0 or vice
versa). On a circuit diagram it must be accompanied by a statement asserting that the
positive logic convention or negative logic convention is being used (high voltage level = 1 or
low voltage level = 0, respectively).
6
OR GATE
 The rest of the class relies on two-valued BooleanAlgebra, i.e. B = {0, 1}We use
variables X,Y, Z,A, B, … and constants 0 and 1. **Note“0”and“1”are also called
identity elements. Binary operators → “+” called “OR”. • “OR” symbol → Z=X+Y.
2-input gates
7
.
AND GATE
 AND symbol → Z=X.Y
2-input gates
XOR
 The output of a two input exclusive-OR is true only when the two input
values are different, and false if they are equal, regardless of the value. If there
are more than two inputs, the output of the distinctive-shape symbol is
undefined.The output of the rectangular-shaped symbol is true if the
number of true inputs is exactly one or exactly the number following the
"=" in the qualifying symbol.
2-input gates
9
NAND GATE
10
NOR GATE
Inverted 2- input gates
11
XNOR GATE
Inverted 2- input gates
13
15
16
BOOLEAN OPERATIONS
17
DE MORGAN EQUIVALENT SYMBOLS
 By use of De Morgan's laws, an AND function is identical to an
OR function with negated inputs and outputs. Likewise, an OR
function is identical to an AND function with negated inputs and
outputs.A NAND gate is equivalent to an OR gate with
negated inputs, and a NOR gate is equivalent to anAND gate
with negated inputs.
 This leads to an alternative set of symbols for basic gates that
use the opposite core symbol (AND or OR) but with the inputs
and outputs negated. Use of these alternative symbols can make
logic circuit diagrams much clearer and help to show accidental
connection of an active high output to an active low input or
vice versa.
 De Morgan's theorem is most commonly used to implement
logic gates as combinations of only NAND gates, or as
combinations of only NOR gates, for economic reasons.
18
Boolean Algebra Theorems
Purpose of Theorems
TheTheorems & Huntington’s Postulates are key in our ability to reduce
the number of literal (variables) used in a function and therefore reduce
the number of gates required to implement a given function. Sometimes
they are used to simply rearrange the expression so it is easier to
implement.
19
20
22
23
Utilizing Demorgan’sTheorem NAND and NOR gates may be represented using the other’s
base signal as shown below (“not” circle indicates complement):
24
Transforming from one form to another requires only two steps:
1) Complement every input and output.
2) Swap OR and AND gates.
Example: Design an XOR using only NAND gates.
F (A, B) =A ⊕ B
Solution:
F (A, B) =A’.B + B’.A
Apply conversion rules “Complement every input and output; Swap ORs and ANDs
F (A, B) = ((A’.B)’ . (B’.A)’)’
BINARY CODED DECIMAL (BCD)
 A common way to represent the digits 0 - 9 is by the ten four-bit
patterns
 There are six bit patterns (for example 1010) that are not used, and the
question is what to do with them.
 The unused bit patterns might simply be ignored. If a decoder
encounters one, perhaps as a result of an error in transmission or an
error in encoding, it might return nothing, or might signal an output
error.
 The unused patterns might be mapped into legal values. For example,
the unused patterns might all be converted to 9, under the theory that
they represent 10, 11, 12, 13, 14, or 15, and the closest digit is 9.
 They might be decoded as 2, 3, 4, 5, 6, or 7, by setting the initial bit to
0, under the theory that the first bit might have gotten corrupted.
26
Digit Code
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
Binary Coded Decimal
ASCII
 TheAmerican Standard Code for Information Interchange
 Introduced by theAmerican National Standards Institute
(ANSI) in 1963.
 ASCII is a seven-bit code, representing the 33 control
characters and 95 printing characters (including space)
 The control characters are used to signal special conditions
27
28
ASCII Character Set
8 BITS
 ASCII characters follow a leading 0, and thus may be thought of as
the “bottom half ” of a larger code on 8-bit context.
 The 128 characters represented by codes between HEX 80 and HEX
FF (sometimes incorrectly called “highASCII” of “extendedASCII”)
have been defined differently in different contexts.
 People now appreciate the need for interoperability of computer
platforms, so more universal standards are coming into favor.
 Most people don’t want 32 more control characters (indeed, of the
33 control characters in 7-bitASCII, only about ten are regularly
used in text).
29
30
Control Characters
REFERENCES
 Digital logic Design by Norman BalabanianUniversity of Florida
Bradley Carlson SymbolTechnologies,Inc.
 Tinder,Richard F.(2000).Engineering digital design:Revised Second Edition.
pp.317–319.ISBN 0-12-691295-5.Retrieved 2008-07-04.
 Bostock,Geoff (1988).Programmable logic devices:technology and applications.
NewYork:McGraw-Hill.ISBN 978-0-07-006611-3.Retrieved 28 November
2012.
31
QUESTIONS???
THANK YOU FOR YOUR ATTENTION
32

Contenu connexe

Tendances

Reed_Solomon_Implementation
Reed_Solomon_ImplementationReed_Solomon_Implementation
Reed_Solomon_Implementation
ramya c b
 
Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gates
biswanath dehuri
 
Chap iii-Logic Gates
Chap iii-Logic GatesChap iii-Logic Gates
Chap iii-Logic Gates
Bala Ganesh
 

Tendances (20)

Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Reed_Solomon_Implementation
Reed_Solomon_ImplementationReed_Solomon_Implementation
Reed_Solomon_Implementation
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
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
 
Logic gates presentation
Logic gates presentationLogic gates presentation
Logic gates presentation
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logic
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 
LOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAVLOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAV
 
Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gates
 
Chap iii-Logic Gates
Chap iii-Logic GatesChap iii-Logic Gates
Chap iii-Logic Gates
 
Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)
 
EE8351 DLC
EE8351 DLCEE8351 DLC
EE8351 DLC
 
Number system logic gates
Number system logic gatesNumber system logic gates
Number system logic gates
 
Introduction to Boolean Algebra
Introduction to Boolean AlgebraIntroduction to Boolean Algebra
Introduction to Boolean Algebra
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
 
Bt0064 logic design1
Bt0064 logic design1Bt0064 logic design1
Bt0064 logic design1
 
Digital Logic Circuits
Digital Logic CircuitsDigital Logic Circuits
Digital Logic Circuits
 

Similaire à Csc 2313 (lecture 4)

Dd 160506122947-160630175555-160701121726
Dd 160506122947-160630175555-160701121726Dd 160506122947-160630175555-160701121726
Dd 160506122947-160630175555-160701121726
marangburu42
 
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
UmerKhan147799
 
Digital notes
Digital notesDigital notes
Digital notes
stivengo2
 

Similaire à Csc 2313 (lecture 4) (20)

chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
Chapter+13.ppt
Chapter+13.pptChapter+13.ppt
Chapter+13.ppt
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptx
 
Simplification of Circuits.pdf
Simplification of Circuits.pdfSimplification of Circuits.pdf
Simplification of Circuits.pdf
 
2dig circ
2dig circ2dig circ
2dig circ
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
combinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptxcombinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptx
 
Dd 160506122947-160630175555-160701121726
Dd 160506122947-160630175555-160701121726Dd 160506122947-160630175555-160701121726
Dd 160506122947-160630175555-160701121726
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
 
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
 
Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.
 
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Digital notes
Digital notesDigital notes
Digital notes
 
Basic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfBasic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdf
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates and Boolean Algebra_VSG
Logic gates and Boolean Algebra_VSGLogic gates and Boolean Algebra_VSG
Logic gates and Boolean Algebra_VSG
 

Plus de umardanjumamaiwada

Seminar Information Protection & Computer Security (Cryptography).pptx
Seminar Information Protection & Computer Security  (Cryptography).pptxSeminar Information Protection & Computer Security  (Cryptography).pptx
Seminar Information Protection & Computer Security (Cryptography).pptx
umardanjumamaiwada
 

Plus de umardanjumamaiwada (20)

Seminar Information Protection & Computer Security (Cryptography).pptx
Seminar Information Protection & Computer Security  (Cryptography).pptxSeminar Information Protection & Computer Security  (Cryptography).pptx
Seminar Information Protection & Computer Security (Cryptography).pptx
 
Oop using JAVA
Oop using JAVAOop using JAVA
Oop using JAVA
 
C++
C++ C++
C++
 
Computer hardware
Computer hardware Computer hardware
Computer hardware
 
2javascript web programming with JAVA script
2javascript web programming with JAVA script2javascript web programming with JAVA script
2javascript web programming with JAVA script
 
1 web programming
1 web programming1 web programming
1 web programming
 
0 csc 3311 slide internet programming
0 csc 3311 slide internet programming0 csc 3311 slide internet programming
0 csc 3311 slide internet programming
 
0 lecture 6 wp wireless protocol
0 lecture 6 wp wireless protocol0 lecture 6 wp wireless protocol
0 lecture 6 wp wireless protocol
 
0 lecture 5 wp wireless protocol
0 lecture 5 wp wireless protocol0 lecture 5 wp wireless protocol
0 lecture 5 wp wireless protocol
 
0 lecture 4 wp wireless protocol
0 lecture 4 wp wireless protocol0 lecture 4 wp wireless protocol
0 lecture 4 wp wireless protocol
 
0 lecture 3 wp wireless protocol
0 lecture 3 wp wireless protocol0 lecture 3 wp wireless protocol
0 lecture 3 wp wireless protocol
 
0 lecture 2 wp wireless protocol
0 lecture 2 wp wireless protocol0 lecture 2 wp wireless protocol
0 lecture 2 wp wireless protocol
 
0 lecture 1 wp wireless protocol
0 lecture 1 wp wireless protocol0 lecture 1 wp wireless protocol
0 lecture 1 wp wireless protocol
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
lecture 4
 lecture 4 lecture 4
lecture 4
 
lecture 3
 lecture 3  lecture 3
lecture 3
 
lecture 2
 lecture 2 lecture 2
lecture 2
 
lecture 1
 lecture 1 lecture 1
lecture 1
 
lecture 6
 lecture 6 lecture 6
lecture 6
 
lecture 5
 lecture 5 lecture 5
lecture 5
 

Dernier

Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Sérgio Sacani
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
Sérgio Sacani
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
PirithiRaju
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Sérgio Sacani
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Sérgio Sacani
 

Dernier (20)

fundamental of entomology all in one topics of entomology
fundamental of entomology all in one topics of entomologyfundamental of entomology all in one topics of entomology
fundamental of entomology all in one topics of entomology
 
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATINChromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 

Csc 2313 (lecture 4)

  • 1. INTRODUCTION TO COMPUTER SYSTEM CSC 2313 LECTURE 4 Department of Maths and Computer-Science Faculty of Natural andApplied Science BY UMAR DANJUMA MAIWADA
  • 2. OBJECTIVES  Boolean Algebra,  Functions,  And Minimization 2
  • 3. INTRODUCTION  Binary logic consists of binary variables and logical operations.The variables are designated by letters of the alphabet such asA, B, C, x, y, z, etc., with each variable having two and only two distinct possible values: 1 and O.There are three basic logical operations:AND, OR, and NOT  Logic gates are primarily implemented using diodes or transistors acting as electronic switches, but can also be constructed using vacuum tubes, electromagnetic relays (relay logic), fluidic logic, pneumatic logic, optics, molecules, or even mechanical elements. 3
  • 4. DIGITAL LOGIC DESIGN  Digital (electronic) circuits are electronics that handle digital signals  Digital techniques are useful because it is easier to get an electronic device to switch into one of a number of known states than to accurately reproduce a continuous range of values.  They correspond to the false and true values of the Boolean domain respectively. 4
  • 5. LOGIC GATES  logic gate is an idealized or physical device implementing a Boolean function; that is, it performs a logical operation on one or more binary inputs, and produces a single binary output.  With amplification, logic gates can be cascaded in the same way that Boolean functions can be composed, allowing the construction of a physical model of all of Boolean logic, and therefore, all of the algorithms and mathematics that can be described with Boolean logic. 5
  • 6. NOT GATE  Inversion, negation”“NOT” symbol → Z= X' (Also called the complement)  NOT gate is more commonly called an inverter  The circle on the symbol is called a bubble, and is used in logic diagrams to indicate a logic negation between the external logic state and the internal logic state (1 to 0 or vice versa). On a circuit diagram it must be accompanied by a statement asserting that the positive logic convention or negative logic convention is being used (high voltage level = 1 or low voltage level = 0, respectively). 6
  • 7. OR GATE  The rest of the class relies on two-valued BooleanAlgebra, i.e. B = {0, 1}We use variables X,Y, Z,A, B, … and constants 0 and 1. **Note“0”and“1”are also called identity elements. Binary operators → “+” called “OR”. • “OR” symbol → Z=X+Y. 2-input gates 7 .
  • 8. AND GATE  AND symbol → Z=X.Y 2-input gates
  • 9. XOR  The output of a two input exclusive-OR is true only when the two input values are different, and false if they are equal, regardless of the value. If there are more than two inputs, the output of the distinctive-shape symbol is undefined.The output of the rectangular-shaped symbol is true if the number of true inputs is exactly one or exactly the number following the "=" in the qualifying symbol. 2-input gates 9
  • 11. NOR GATE Inverted 2- input gates 11
  • 12. XNOR GATE Inverted 2- input gates
  • 13. 13
  • 14.
  • 15. 15
  • 17. 17
  • 18. DE MORGAN EQUIVALENT SYMBOLS  By use of De Morgan's laws, an AND function is identical to an OR function with negated inputs and outputs. Likewise, an OR function is identical to an AND function with negated inputs and outputs.A NAND gate is equivalent to an OR gate with negated inputs, and a NOR gate is equivalent to anAND gate with negated inputs.  This leads to an alternative set of symbols for basic gates that use the opposite core symbol (AND or OR) but with the inputs and outputs negated. Use of these alternative symbols can make logic circuit diagrams much clearer and help to show accidental connection of an active high output to an active low input or vice versa.  De Morgan's theorem is most commonly used to implement logic gates as combinations of only NAND gates, or as combinations of only NOR gates, for economic reasons. 18
  • 19. Boolean Algebra Theorems Purpose of Theorems TheTheorems & Huntington’s Postulates are key in our ability to reduce the number of literal (variables) used in a function and therefore reduce the number of gates required to implement a given function. Sometimes they are used to simply rearrange the expression so it is easier to implement. 19
  • 20. 20
  • 21.
  • 22. 22
  • 23. 23 Utilizing Demorgan’sTheorem NAND and NOR gates may be represented using the other’s base signal as shown below (“not” circle indicates complement):
  • 24. 24 Transforming from one form to another requires only two steps: 1) Complement every input and output. 2) Swap OR and AND gates. Example: Design an XOR using only NAND gates. F (A, B) =A ⊕ B Solution: F (A, B) =A’.B + B’.A Apply conversion rules “Complement every input and output; Swap ORs and ANDs F (A, B) = ((A’.B)’ . (B’.A)’)’
  • 25. BINARY CODED DECIMAL (BCD)  A common way to represent the digits 0 - 9 is by the ten four-bit patterns  There are six bit patterns (for example 1010) that are not used, and the question is what to do with them.  The unused bit patterns might simply be ignored. If a decoder encounters one, perhaps as a result of an error in transmission or an error in encoding, it might return nothing, or might signal an output error.  The unused patterns might be mapped into legal values. For example, the unused patterns might all be converted to 9, under the theory that they represent 10, 11, 12, 13, 14, or 15, and the closest digit is 9.  They might be decoded as 2, 3, 4, 5, 6, or 7, by setting the initial bit to 0, under the theory that the first bit might have gotten corrupted.
  • 26. 26 Digit Code 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 Binary Coded Decimal
  • 27. ASCII  TheAmerican Standard Code for Information Interchange  Introduced by theAmerican National Standards Institute (ANSI) in 1963.  ASCII is a seven-bit code, representing the 33 control characters and 95 printing characters (including space)  The control characters are used to signal special conditions 27
  • 29. 8 BITS  ASCII characters follow a leading 0, and thus may be thought of as the “bottom half ” of a larger code on 8-bit context.  The 128 characters represented by codes between HEX 80 and HEX FF (sometimes incorrectly called “highASCII” of “extendedASCII”) have been defined differently in different contexts.  People now appreciate the need for interoperability of computer platforms, so more universal standards are coming into favor.  Most people don’t want 32 more control characters (indeed, of the 33 control characters in 7-bitASCII, only about ten are regularly used in text). 29
  • 31. REFERENCES  Digital logic Design by Norman BalabanianUniversity of Florida Bradley Carlson SymbolTechnologies,Inc.  Tinder,Richard F.(2000).Engineering digital design:Revised Second Edition. pp.317–319.ISBN 0-12-691295-5.Retrieved 2008-07-04.  Bostock,Geoff (1988).Programmable logic devices:technology and applications. NewYork:McGraw-Hill.ISBN 978-0-07-006611-3.Retrieved 28 November 2012. 31
  • 32. QUESTIONS??? THANK YOU FOR YOUR ATTENTION 32