Lecture 4 – Binary Logic and Logic Gates

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 2 – Chapter.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 3 – Combinational.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 4 Technology.
Boolean Algebra. Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic.
Gate Circuits and Boolean Equations BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
Overview Part 1 Part 2 Sequential Circuit Design
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 3 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.
Binary Logic and Gates Binary variables take on one of two values.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Overview Part 1 – Gate Circuits and Boolean Equations
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 3 – Chapter.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
Boolean Algebra and Logic Gates CSE-1108 Ahsanullah University of Science and Technology (AUST)
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
CS151 Introduction to Digital Design Chapter 2: Combinational Logic Circuits Lecture 5: Binary Logic and Gates.
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,
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Logic gates.
Basics of Logic gates - Part 1
Digital Fundamentals Floyd Chapter 3 Tenth Edition
Overview Part 1 - Implementation Technology and Logic Design
4.
Engr. Micaela Renee Bernardo
Overview Part 1 – Gate Circuits and Boolean Equations
Lecture 3 – Binary Arithmetic
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Overview Part 1 – Logic Circuits and Boolean Functions
Digital Fundamentals Floyd Chapter 3 Tenth Edition
Gate Circuits and Boolean Equations
Logic Gates.
Overview Part 1 – Gate Circuits and Boolean Equations
Gate & Circuit Design.
Overview Part 1 – Gate Circuits and Boolean Equations
Overview Part 1 – Design Procedure Beginning Hierarchical Design
Dr. Clincy Professor of CS
How Boolean logic is implemented
Schematics 201 Lecture Topic: Electrical Symbols
Digital Electronics Lab 2 Instructor:
Digital Fundamentals Floyd Chapter 3 Tenth Edition
JC Technology Logic Gates.
CS Chapter 3 (3A and ) Part 3 of 8
Logic Gates.
EE2174: Digital Logic and Lab
Lecture 26 – Hardwired and Microprogrammed Control
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
Overview Part 1 - Registers, Microoperations and Implementations
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Copyright © Cengage Learning. All rights reserved.
Boolean Algebra and Gate Networks
Presentation transcript:

Lecture 4 – Binary Logic and Logic Gates

Outline Binary Logic and Variables Logical Operations Truth Tables Logic Implementation Logic Gates

Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic logical operators are the logic functions AND, OR and NOT. Logic gates implement logic functions. Boolean Algebra: a useful mathematical system for specifying and transforming logic functions. We study Boolean algebra as foundation for designing and analyzing digital systems!

Recall that the two binary values have different names: Binary Variables Recall that the two binary values have different names: True/False On/Off Yes/No 1/0 We use 1 and 0 to denote the two values. Variable identifier examples: A, B, y, z, or X1 for now RESET, START_IT, or ADD1 later

The three basic logical operations are: AND OR NOT AND is denoted by a dot (·). OR is denoted by a plus (+). NOT is denoted by an overbar ( ¯ ), a single quote mark (') after, or (~) before the variable.

Notation Examples Examples: Note: The statement: is not the same as is read “Y is equal to A AND B.” is read “z is equal to x OR y.” is read “X is equal to NOT A.” Y = A × B y x z + = A X Note: The statement: 1 + 1 = 2 (read “one plus one equals two”) is not the same as 1 + 1 = 1 (read “1 or 1 equals 1”).

Operator Definitions 0 · 0 = 0 0 + 0 = 0 = 1 0 · 1 = 0 0 + 1 = 1 Operations are defined on the values "0" and "1" for each operator: AND   0 · 0 = 0 0 · 1 = 0 1 · 0 = 0 1 · 1 = 1 OR 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 1 NOT 1 =

Truth Tables Truth table - a tabular listing of the values of a function for all possible combinations of values on its arguments Example: Truth tables for the basic logic operations: 1 Z = X·Y Y X AND OR X Y Z = X+Y 1 1 X NOT Z =

Logic Function Implementation Using Switches For inputs: logic 1 is switch closed logic 0 is switch open For outputs: logic 1 is light on logic 0 is light off. NOT uses a switch such that: logic 1 is switch open logic 0 is switch closed Switches in parallel => OR Switches in series => AND C Normally-closed switch => NOT

Logic Function Implementation (Continued) Example: Logic Using Switches Light is on (L = 1) for L(A, B, C, D) = and off (L = 0), otherwise. Useful model for relay circuits and for CMOS gate circuits, the foundation of current digital logic technology B C A D A ((B C') + D) = A B C' + A D L (A, B, C, D) = A ((B C') + D) = A B C' + A D

Logic Gates In the earliest computers, switches were opened and closed by magnetic fields produced by energizing coils in relays. The switches in turn opened and closed the current paths. Later, vacuum tubes that open and close current paths electronically replaced relays. Today, transistors are used as electronic switches that open and close current paths.

Logic Gates (continued) Implementation of logic gates with transistors (See Reading Supplement - CMOS Circuits) The transistor without the “bubble” on its input is an N-type field effect transistor. It acts like a closed switch between its top and bottom terminals with an H (1) applied to its input on its left. It acts like an open switch with an L (0) applied to its input. The transistor with the “bubble” on its input is a P-type field effect transistor. The +V at the top provides an H (1) and the Ground symbol at the bottom provides an L (0). By modeling the two types of field effect transistors as switches, one can see how the series and parallel interconnections can produce 1’s and 0’s on the outputs on the right in response to applied 1’s and 0’s on the inputs on the left. NOR and NAND are OR and AND, each followed by a NOT respectively. Transistor or tube implementations of logic functions are called logic gates or just gates Transistor gate circuits can be modeled by switch circuits

Logic Gate Symbols and Behavior Logic gates have special symbols: And waveform behavior in time as follows:

Logic Diagrams and Expressions Truth Table 1 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0 X Y Z Z Y X F × + = Equation Z Y X F + = X Y F Z Logic Diagram Boolean equations, truth tables and logic diagrams describe the same function! Truth tables are unique; expressions and logic diagrams are not. This gives flexibility in implementing functions.

Summary Binary Logic and Variables Logical Operations Truth Tables Logic Implementation Logic Gates

Terms of Use © 2004 by Pearson Education,Inc. All rights reserved. The following terms of use apply in addition to the standard Pearson Education Legal Notice. Permission is given to incorporate these materials into classroom presentations and handouts only to instructors adopting Logic and Computer Design Fundamentals as the course text. Permission is granted to the instructors adopting the book to post these materials on a protected website or protected ftp site in original or modified form. All other website or ftp postings, including those offering the materials for a fee, are prohibited. You may not remove or in any way alter this Terms of Use notice or any trademark, copyright, or other proprietary notice, including the copyright watermark on each slide. Return to Title Page