Department of Preparatory Year, Umm Al Qura University CSCI 240 Digital Logic.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Department of Computer and Information Science, School of Science, IUPUI CSCI 240 Digital Logic.
Logic Gates.
CT455: Computer Organization Logic gate
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
Chapter 2 Logic Circuits.
CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
1 Boolean Algebra & Logic Design. 2 Developed by George Boole in the 1850s Mathematical theory of logic. Shannon was the first to use Boolean Algebra.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Propositional Calculus Math Foundations of Computer Science.
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Logical Circuit Design Week 5: Combinational Logic Circuits Mentor Hamiti, MSc Office ,
Binary Numbers.
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 & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 4: Other Gates.
Basic Logic Operations and Standard Logic Gates (Lecture #1) ECE 331 – Digital System Design.
Logic Gates. Outline  Logic Gates  The Inverter  The AND Gate  The OR Gate  The NAND Gate  The NOR Gate  The XOR Gate  The XNOR Gate  Drawing.
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.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
CS203 Discrete Mathematical Structures Logic (2).
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
© BYU 03 BA1 Page 1 ECEn 224 Boolean Algebra – Part 1.
Lecture 4 Introduction to Boolean Algebra. Binary Operators In the following descriptions, we will let A and B be Boolean variables and define a set of.
5 - Digital Logic with Boolean Algebra
1 CHAPTER 3 DIGITAL LOGIC DESIGN © Prepared By: Razif Razali.
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
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,
1/16/ CSEE, UQ Lecture 3 Hardware Description Methods, Review of Switching Algebra.
C.S. Choy21 BOOLEAN ALGEGRA The Mathematics of logic Boolean variables have only two possible values (binary) Operators:. Product+ SumComplement A.B A+B.
Basic Logic Operations and Standard Logic Gates [Lecture:1] Instructor: Sajib Roy Lecturer, ETE, ULAB ETE 204 – Digital Electronics.
Logic Gates Ghader Kurdi Adapted from the slides prepared by DEPARTMENT OF PREPARATORY YEAR.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Binary Logic Derrington KCL CPD/SKE Binary We’ve seen how data of all different sorts and kinds can be represented as binary bits… 0s and 1s 1 is.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
Digital Logic. Boolean Algebra to Logic Gates Logic circuits are built from components called logic gates. The logic gates correspond to Boolean operations.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Morgan Kaufmann Publishers
Department of Preparatory Year, Umm Al Qura University
Eng. Mai Z. Alyazji October, 2016
Logic Gates and Boolean Algebra
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Logic Gates and Boolean Algebra
ECE 331 – Digital System Design
Logic Gates.
Princess Sumaya University
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
Boolean Algebra.
Boolean Algebra & Logic Circuits
Basic Logic Gates 1.
Number Systems Decimal (base 10) { }
King Fahd University of Petroleum and Minerals
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Logic Gates.
Boolean Algebra.
Week 7: Gates and Circuits: PART II
Logic Gates.
Logic Gates.
Logic Gates.
XOR Function Logic Symbol  Description  Truth Table 
Department of Electronics
Eng. Ahmed M Bader El-Din October, 2018
Presentation transcript:

Department of Preparatory Year, Umm Al Qura University CSCI 240 Digital Logic

Boolean Algebra to Logic Gates Logic circuits are built from components called logic gates. The logic gates correspond to Boolean operations +, *, ’. Binary operations have two inputs, unary has one OR + AND * NOT’

AND A B A*B Logic Gate: Series Circuit: ABABA*B Truth Table: A*B

A B A+B Logic Gate: Parallel Circuit: A B ABA+B Truth Table: A+BOR

NOT A A’ or A Logic Gate: (also called an inverter) Single-throw Double-pole Switch: A aA Truth Table: A’ or A

n -input Gates Because + and * are binary operations, they can be cascaded together to OR or AND multiple inputs. A B C A B C A+B+C A B A B C ABC C

n -bit Inputs For convenience, it is sometimes useful to think of the logic gates processing n -bits at a time. This really refers to n instances of the logic gate, not a single logic gate with n -inputs

Logic Circuits ≡ Boolean Expressions All logic circuits are equivalent to Boolean expressions and any boolean expression can be rendered as a logic circuit. AND-OR logic circuits are equivalent to sum-of-products form. Consider the following circuits: A C B abc aBc Ab y=abc+aBc+Ab y A B C Y y=aB+Bc Deduce the truth table for each

NAND and NOR Gates NAND and NOR gates can greatly simplify circuit diagrams. As we will see, can you use these gates wherever you could use AND, OR, and NOT. NAND NORAB ABABABAB AB ABABABAB

XOR and XNOR Gates XOR is used to choose between two mutually exclusive inputs. Unlike OR, XOR is true only when one input or the other is true, not both. XOR XNOR AB ABABABAB ABA B

Properties of NAND AND NOR NAND and NOR have special properties, but neither satisfies the distributive or associative laws. NANDNOR x  1=X x  0=X x  0=1 x  1=0 x  x=X x  x=X x  y=X+Y x  y=XY X  Y=x+y X  Y=xy not (x  y)=xy not (x  y)=x+y It should be clear by looking at these properties that NAND and NOR are duals.

NAND and NOR as Universal Logic Gates Any logic circuit can be built using only NAND gates, or only NOR gates. They are the only logic gate needed. Here are the NAND equivalents:

NAND and NOR as Universal Logic Gates (cont) Here are the NOR equivalents: NAND and NOR can be used to reduce the number of required gates in a circuit.

Example Problem A hall light is controlled by two light switches, one at each end. Find (a) a truth function, (b) a Boolean expression, and (c) a logic network that allows the light to be switched on or off by either switch. xy f(x,y) (What kind of gate has this truth table? Let x and y be the switches: