Boolean Algebra.

Slides:



Advertisements
Similar presentations
ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Advertisements

Logic Gates A logic gate is an elementary building block of a digital circuit Most logic gates have two inputs and one output At any given moment, every.
Logic Gates.
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR.
Chapter 4 Gates and Circuits.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
The Laws of Logic: Boolean Algebra A State High Math Club Presentation START==TRUE.
GK-12 Student designed project (AP physics) Digital logic and Boolean algebra exercise. IC logic gates brought from Stevens were used in making simple.
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Binary Numbers.
Binary Addition CSC 103 September 17, 2007.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Logic Gates. Transistors as Switches ¡EB voltage controls whether the transistor conducts in a common base configuraiton. ¡Logic circuits can be built.
Transistors and Logic Circuits. Transistor control voltage in voltage out control high allows current to flow -- switch is closed (on) control low stops.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Exclusive OR Gate. Logically, the exclusive OR (XOR) operation can be seen as either of the following operations:exclusive OR (XOR) 1. A AND NOT B OR.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
Logic Gates Informatics INFO I101 February 3, 2003 John C. Paolillo, Instructor.
5 - Digital Logic with Boolean Algebra
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
Chapter 3 Digital Logic Structures
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
Logic Gates and Boolean Algebra Introduction to Logic II.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Combinational Circuits
Morgan Kaufmann Publishers
Transistors and Logic Circuits
Logic Gates and Boolean Algebra
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Exclusive OR Gate.
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
XOR, XNOR, and Binary Adders
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Boolean Algebra & Logic Circuits
XOR, XNOR, & Binary Adders
Number Systems Decimal (base 10) { }
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Logic Gates.
Week 7: Gates and Circuits: PART II
Logic Gates.
Logic Gates.
Boolean Algebra.
Logic Gates.
COMS 361 Computer Organization
DIGITAL ELECTRONICS B.SC FY
Logic Gates.
Logic Circuits I Lecture 3.
XOR, XNOR, and Binary Adders
Special Gates Combinational Logic Gates
XOR Function Logic Symbol  Description  Truth Table 
LOGIC Circuits.
Department of Electronics
XOR, XNOR, and Binary Adders
Combinational Logic Circuit
Presentation transcript:

Boolean Algebra

AND In order for current to flow, both switches must be closed Logic notation AB = C (Sometimes AB = C) A B C 1

OR Current flows if either switch is closed Logic notation A + B = C A 1

Properties of AND and OR Commutation A + B = B + A A  B = B  A Same as Same as

Commutation Circuit A  B B  A B + A A + B

Properties of AND and OR Associative Property A + (B + C) = (A + B) + C A  (B  C) = (A  B)  C =

Properties of AND and OR Distributive Property A + B  C = (A + B)  (A + C) A + B  C A B C Q 1

Distributive Property (A + B)  (A + C) A B C Q 1

Notice that the carry results are the same as AND Binary Addition A B S C(arry) 1 Notice that the carry results are the same as AND C = A  B

Inversion (NOT) A Q 1 Logic:

Exclusive OR (XOR) Either A or B, but not both This is sometimes called the inequality detector, because the result will be 0 when the inputs are the same and 1 when they are different. The truth table is the same as for S on Binary Addition. S = A  B A B S 1

Getting the XOR A B S 1 Two ways of getting S = 1

Circuit for XOR Accumulating our results: Binary addition is the result of XOR plus AND

Half Adder Called a half adder because we haven’t allowed for any carry bit on input. In elementary addition of numbers, we always need to allow for a carry from one column to the next. 18 25 3 (plus a carry) 4

Half Adder

Full Adder INPUTS OUTPUTS A B CIN COUT S 1

Full Adder Circuit

Chaining the Full Adder Possible to use the same scheme for subtraction by noting that A – B = A + (-B)

Binary Counting Use 1 for ON Use 0 for OFF = 00101011 So our example has 25 + 23 + 21 + 20 = 32 + 8 + 2 + 1 = 43

Counting in Binary 1 11 1011 21 10101 2 10 12 1100 22 10110 3 13 1101 23 10111 4 100 14 1110 24 11000 5 101 15 1111 25 11001 6 110 16 10000 26 11010 7 111 17 10001 27 11011 8 1000 18 10010 28 11100 9 1001 19 10011 29 11101 1010 20 10100 30 11110

NAND (NOT AND) A B Q 1

NOR (NOT OR) A B Q 1

DeMorgan’s Theorem A NAND gate is equivalent to an inversion followed by an OR A NOR gate is equivalent to an inversion followed by and AND

DeMorgan Truth Table A B 1 NAND NOR

Exclusive NOR A B Q 1 Equality Detector

Summary for all 2-input gates Inputs Output of each gate  A   B  AND NAND  OR  NOR XOR XNOR 1

Logic Gates and Symbols NAND

More Gates and Symbols OR NOR NOT

And More XOR NXOR

Multi-input Gates

Three input OR

Logic Gate ICs

Example 7400

More ICs

And More