Dept. of Electrical and Computer Eng., NCTU 1 Lab 2. NAND and XOR Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.

Slides:



Advertisements
Similar presentations
CT455: Computer Organization Logic gate
Advertisements

Logic Gates & Circuits. AND Gate Input AInput BOutput X AND Logic Gate AND Truth Table X = A. B AND Boolean Expression.
ECE 2373 Modern Digital System Design Exam 2. ECE 2372 Exam 2 Thursday March 5 You may use two 8 ½” x 11” pages of information, front and back, write.
Boolean Algebra and Logic Gate
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
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.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
In this module you will learn: What the various logic gates do. How to represent logic gates on a circuit diagram. The truth tables for the logic gates.
TODAY YOU ARE LEARNING to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams.
Rise and rise again until lambs become lions 授課老師:伍紹勳 課程助教:邱麟凱、江長庭 有情助教:蔡東倫.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
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.
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.
+ CS 325: CS Hardware and Software Organization and Architecture Gates and Boolean Algebra Part 2.
Basic logic gates  AND gate:The truth table is given by A.BBA
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
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.
Logic Gates. AND gate Produces an output only if both inputs are on Input AInput BOutput (Q) Q=
Dept. of Electrical and Computer Eng., NCTU 1 Lab 4. BCD Adder Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 9. Up Counter Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU
ECE2030 Introduction to Computer Engineering Lecture 5: Boolean Algebra Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 8. D-type Flip-Flop Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 1. Full Adder Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 7. 8-to-1 Multiplexer Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 5. 3-to-8 Decoder Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Combinational Logic Analysis. Basic Combinational Logic Circuits AND-OR logic AND-OR logic AND-OR logic produces an SOP expression. AND-OR logic produces.
NAND, NOR, and EXOR (more primitive logical gates) CS Computer Architecture David Mayer.
Logic Gates and Boolean Algebra Introduction to Logic II.
The First lesson on Digital Logic Rachaen M. Huq1 Rachaen Huq. Dept. of EEE, BRACU.
Circuit Synthesis A logic function can be represented in several different forms:  Truth table representation  Boolean equation  Circuit schematic 
Logic Gates Digital Logic Design. What is a logic gate? A switch with an output that will only turn on when inputs are in particular positions.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 10. Up/Down Counter Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Basic Gates and ICs 74LS00 Quad 2-Input NAND gate 74LS02 Quad 2-Input NOR gate 74LS04 Quad 2-Input NOT gate 74LS08 Quad 2-Input AND gate 74LS32 Quad 2-Input.
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.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Computer Architecture & Operations I
Computer Architecture & Operations I
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Morgan Kaufmann Publishers
Eng. Mai Z. Alyazji October, 2016
Dept. of Electrical and Computer Eng., NCTU
Logic Gates and Boolean Algebra
Dept. of Electrical and Computer Eng., NCTU
Logic Gates.
Dept. of Electrical and Computer Eng., NCTU
Practice #Digital Logic Mr. Burleson
Boolean logic in CMOS.
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Logic Gates.
Week 7: Gates and Circuits: PART II
Logic Gates.
Logic Gates.
13 Digital Logic Circuits.
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Digital Logic.
Today You are Learning simple logic diagrams using the operations AND, OR and NOT truth tables combining Boolean operators using AND, OR and NOT.
Logic Gates.
Chapter 4 Gates and Circuits.
Digital Logic Experiment
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Eng. Ahmed M Bader El-Din October, 2018
Dept. of Electrical and Computer Eng., NCTU
Dept. of Electrical and Computer Eng., NCTU
Presentation transcript:

Dept. of Electrical and Computer Eng., NCTU 1 Lab 2. NAND and XOR Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu

Logic DesignLab 2. NAND and XORChun-Hsien Ko Dept. of Electrical and Computer Eng., NCTU 2 Outlines Learning how to put theory into practice From equations to implementations NAND and XOR Boolean algebra representation of NAND Truth table of NAND Boolean algebra representation of XOR Truth table of XOR The logic transformation of different gates LAB 2 Implement XOR by NAND gate

Logic DesignLab 2. NAND and XORChun-Hsien Ko Boolean algebra representation of NAND A NAND B = NOT(A AND B) Y= (AB)’ Truth table of NAND Dept. of Electrical and Computer Eng., NCTU 3 Input AInput BOutput Y When S1 and S2 are ON, Q is equal to GND. Otherwise, Q is equal to VDD.

Logic DesignLab 2. NAND and XORChun-Hsien Ko Boolean algebra representation of XOR XOR = exclusive OR Y = A ⊕ B = AB’+A’B (sum of product) Truth table of XOR Dept. of Electrical and Computer Eng., NCTU 4 Input AInput BOutput Y

Logic DesignLab 2. NAND and XORChun-Hsien Ko LAB 2: Implement XOR by NAND gate Experiment Materials Bread board Power supply IC:7400 (4 NAND gates) Light-emitting diode (LED) Dept. of Electrical and Computer Eng., NCTU 5

Logic DesignLab 2. NAND and XORChun-Hsien Ko Implement XOR by NAND gate Y = A ⊕ B = AB’+A’B Most of all digital circuits can be implemented by NAND gates NOT gate: A’ = (AA)’ AND gate: AB = ((AB)’)’ OR gate: A+B = ((A’)(B’))’ with De Morgan's law Combinational logic: AB+CD = ((AB)’(CD)’)’ Dept. of Electrical and Computer Eng., NCTU 6

Logic DesignLab 2. NAND and XORChun-Hsien Ko Dept. of Electrical and Computer Eng., NCTU 7

Logic DesignLab 2. NAND and XORChun-Hsien Ko Dept. of Electrical and Computer Eng., NCTU 8 A simple example A XOR B = A AND B’ OR A’ AND B = (A AND B’)’ NAND (A’ AND B)’ = (A’ NAND B) NAND (B’ NAND A) = ((A NAND A) NAND B) NAND ( (B NAND B) NAND A)