CS2100 Computer Organisation

Slides:



Advertisements
Similar presentations
Chapter 3 Gate-Level Minimization
Advertisements

Logic Gates.
CT455: Computer Organization Logic gate
CS2100 Computer Organisation
Combinational Logic Circuits Chapter 2 Mano and Kime.
Morgan Kaufmann Publishers
CS2100 Computer Organisation
Chapter 2 Logic Circuits.
Appendix B Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
Chapter 11_1 (chap 10 ed 8) Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean.
EECC341 - Shaaban #1 Lec # 1 Winter Introduction to Digital Systems Analog devices and systems process time-varying signals that can take.
Computer Engineering (Logic Circuits) (Karnaugh Map)
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Chapter 2: Boolean Algebra and Logic Functions
Chapter 10_1 Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
CS2100 Computer Organisation MSI Components (AY2015/6 Semester 1)
Digitale basistechniek lesplan DatumTheoriePrakticumThuis 7 januariCombinational LogicTutorial Quartus II Herhaling Tutorial 12 JanuariCombinational LogicHalfadderFulladder.
CS2100 Computer Organisation
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.
Boolean Logic and Circuits ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
PRASAD A. PAWASKAR SPN. NO DETE 2 SEMESTER lec1-11.
LOGIC GATES & BOOLEAN ALGEBRA
COE 202: Digital Logic Design Combinational Logic Part 4
1 Logic Gates and Circuits  Logic Gates Logic Gates  The Inverter The Inverter  The AND Gate The AND Gate  The OR Gate The OR Gate  The NAND Gate.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Digital Integrated Circuit Design Laboratory Department of Computer Science and Information Engineering National Cheng Kung University Experiment on digital.
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Dr. Nermin Hamza. x · y = y · x x + y = y + x x · (y · z) = (x · y) · z x + (y + z) = (x + y) + z x · (y + z) = (x · y) + (x · z) x + (y · z) = (x + y)
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Assembly Lab1 - Review.
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Chapter 5 Combinational Logic 组合逻辑
CHAPTER 3 Simplification of Boolean Functions
CS2100 Computer Organisation
Logic Gates and Logic Circuits
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Chapter 2: Boolean Algebra and Logic Functions
DIGITAL LOGIC CIRCUITS
Digital Technology.
Unit 2 Boolean Algebra.
Computer Organisation
CS2100 Computer Organisation
CS2100 Computer Organisation
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
Introduction to Logic Gates
PROPAGATION DELAY.
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Boolean Algebra and Combinational Logic
Lecture 9 Logistics Last lecture Today HW3 due Wednesday
Princess Sumaya University
Lecture 2-1 Boolean Algebra
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
Computer Architecture CST 250
DIGITAL LOGIC CIRCUITS
ECE 331 – Digital System Design
Boolean Algebra Why study Boolean Algebra?
CSE 311 Foundations of Computing I
Boolean Algebra.
BASIC & COMBINATIONAL LOGIC CIRCUIT
SCO I: Algebra Logică 2 Combinational Logic Circuits
Combinatorial Logic Circuit
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Lecture 11 Logistics Last lecture Today HW3 due now
From now on: Combinatorial Circuits:
Analysis of Logic Circuits Example 1
Circuit Simplification and
Digitale basistechniek lesplan
Presentation transcript:

CS2100 Computer Organisation http://www.comp.nus.edu.sg/~cs2100/ Logic Gates and Circuits (AY2016/7) Semester 2

Logic Gates and Circuits ROAD MAP Number systems Boolean algebra Logic gates and circuits Simplification Combinational circuits Sequential circuits Assembly language Performance The processor: Datapath and control Pipelining Memory hierarchy: Cache Input/output Preparation: 2 weeks Logic Design: 2 weeks Computer Organisation CS2100 Logic Gates and Circuits

LOGIC GATES AND CIRCUITS Gate Symbols Inverter/AND/OR/NAND/NOR/XOR/XNOR Drawing and Analysing Logic Circuits Universal Gates SOP and NAND Circuits POS and NOR Circuits Programmable Logic Array Read up DLD for details! CS2100 Logic Gates and Circuits

LOGIC GATES Gate symbols Symbol set 2 Symbol set 1 AND OR NOT NAND NOR ab a+b a' (a+b)' (ab)' a  b & 1 1 =1 EXCLUSIVE OR AND OR NOT NAND NOR Symbol set 1 Symbol set 2 (ANSI/IEEE Standard 91-1984) CS2100 Logic Gates and Circuits

INVERTER/AND/OR GATES Inverter (NOT gate) A A' 1 A A' AND gate OR gate A B A  B A B A+B A B A  B 1 A B A + B 1 CS2100 Logic Gates and Circuits

Logic Gates and Circuits NAND/NOR GATES NAND gate A B (A  B)'  A B (A  B)' 1 NAND Negative-OR  NOR gate  A B (A + B)' A B (A + B)' 1 NOR Negative-AND  CS2100 Logic Gates and Circuits 

Logic Gates and Circuits XOR/XNOR GATES XOR gate A B A  B 1 A B A  B XNOR gate A B (A  B)' 1 A B (A  B)' XNOR can be represented by  (Example: A  B) CS2100 Logic Gates and Circuits 

Logic Gates and Circuits LOGIC CIRCUITS (1/2) Fan-in: the number of inputs of a gate. Gates may have fan-in more than 2. Example: a 3-input AND gate Every input must be connected in a working circuit! Given a Boolean expression, we may implement it as a logic circuit. Example: F1 = xyz' (note the use of a 3-input AND gate) x y z F1 z' CS2100 Logic Gates and Circuits

Logic Gates and Circuits LOGIC CIRCUITS (2/2) Example: F2 = x + y'z x y' z F2 y'z If complemented literals are available If complemented literals are not available x z F2 y'z y Example: F3 = xy' + x'z Draw a solid circle to denote that the wires intersect. z F3 x'.z x.y' x y x' z F3 x'.z x.y' x y' CS2100 Logic Gates and Circuits

ANALYSING LOGIC CIRCUITS Given a logic circuit, we can analyse it to obtain the logic expression. Example: Given the logic circuit below, what is the Boolean expression of F4? F4 A B C A'B' (A'B')+C ((A'B')+C)' F4 = ((A'B')+C)' = (A+B)C' CS2100 Logic Gates and Circuits 

QUICK REVIEW QUESTIONS (1) DLD page 79 Questions 4-1 to 4-4. CS2100 Logic Gates and Circuits

Logic Gates and Circuits UNIVERSAL GATES AND/OR/NOT gates are sufficient for building any Boolean function. We call the set {AND, OR, NOT} a complete set of logic. However, other gates are also used: Usefulness (eg: XOR gate for parity bit generation) Economical Self-sufficient (eg: NAND/NOR gates) CS2100 Logic Gates and Circuits

Logic Gates and Circuits NAND GATE {NAND} is a complete set of logic. Proof: Implement NOT/AND/OR using only NAND gates. x x' (x∙x)' = x' (idempotency) x x∙y y (x∙y)' ((x∙y)'∙(x∙y)')' = ((x∙y)')' (idempotency) = x∙y (involution) x x+y y x' y' ((x∙x)'∙(y∙y)')' = (x'∙y')' (idempotency) = (x')'+(y')' (DeMorgan) = x+y (involution) CS2100 Logic Gates and Circuits

Logic Gates and Circuits NOR GATE {NOR} is a complete set of logic. Proof: Implement NOT/AND/OR using only NOR gates. x x' (x+x)' = x' (idempotency) x x∙y y x' y' ((x+x)'+(y+y)')' = (x'+y')' (idempotency) = (x')'∙(y')' (DeMorgan) = x∙y (involution) x x+y y (x+y)' ((x+y)'+(x+y)')' = ((x+y)')' (idempotency) = x+y (involution) CS2100 Logic Gates and Circuits

QUICK REVIEW QUESTIONS (2) DLD page 79 Questions 4-6 to 4-8. CS2100 Logic Gates and Circuits

SOP AND NAND CIRCUITS (1/2) An SOP expression can be easily implemented using 2-level AND-OR circuit 2-level NAND circuit Example: F = AB + C'D + E Using 2-level AND-OR circuit F A B D C E CS2100 Logic Gates and Circuits

SOP AND NAND CIRCUITS (2/2) Example: F = AB + C'D + E Using 2-level NAND circuit F A B D C E F A B D C E F A B D C E CS2100 Logic Gates and Circuits

POS AND NOR CIRCUITS (1/2) A POS expression can be easily implemented using 2-level OR-AND circuit 2-level NOR circuit Example: G = (A+B)  (C'+D)  E Using 2-level OR-AND circuit G A B D C E CS2100 Logic Gates and Circuits

POS AND NOR CIRCUITS (2/2) Example: G = (A+B)  (C'+D)  E Using 2-level NOR circuit G A B D C E G A B D C E G A B D C E CS2100 Logic Gates and Circuits

Logic Gates and Circuits READING ASSIGNMENT Propagation Delay Read up DLD section 4.5, pg 75 – 77. Integrated Circuit Logic Families Read up DLD section 4.6, pg 77 – 78. CS2100 Logic Gates and Circuits

INTEGRATED CIRCUIT (IC) CHIP 1 2 3 4 5 6 7 14 13 12 11 10 9 8 GND Vcc = 5v Example of a 74LS00 chip: Quad NAND gates. CS2100 Logic Gates and Circuits

PROGRAMMABLE LOGIC ARRAY A programmable integrated circuit – implements sum-of-products circuits (allow multiple outputs). 2 stages AND gates = product terms OR gates = outputs Connections between inputs and the planes can be ‘burned’. AND gates Inputs Outputs OR gates Product terms CS2100 Logic Gates and Circuits

Logic Gates and Circuits PLA EXAMPLE (1/2) CS2100 Logic Gates and Circuits

Logic Gates and Circuits PLA EXAMPLE (2/2) Simplified representation of previous PLA. Inputs Outputs AND plane OR plane A'B'C A'BC' A B C D E F CS2100 Logic Gates and Circuits

Logic Gates and Circuits READ ONLY MEMORY (ROM) Similar to PLA Set of inputs (called addresses) Set of outputs Programmable mapping between inputs and outputs Fully decoded: able to implement any mapping. In contrast, PLAs may not be able to implement a given mapping due to not having enough minterms. CS2100 Logic Gates and Circuits

Logic Gates and Circuits LAB ASSIGNMENTS (1/3) For the first few labs, you will implement simple circuits using the Logic Trainer CS2100 Logic Gates and Circuits

Logic Gates and Circuits LAB ASSIGNMENTS (2/3) Lab sheets will be given out in lectures. Remember to read the Lab Guidelines and Lab #1 Introductory Lab before you come for your first lab session. For subsequent labs, please read the lab sheet and fill up as much as you can before the lab, or you may not have enough time to complete your lab experiment. Aim to finish your experiment as quickly as possible. Vacate the room 10 minutes before the hour. If not, just submit your lab report. CS2100 Logic Gates and Circuits

Logic Gates and Circuits LAB ASSIGNMENTS (3/3) No make-up lab if you miss a lab. If you have valid reason, you will be given an “EX” (exempt) mark and your CA marks will not suffer. You may submit your medical certificate or other relevant document to your labTA. To attend a different group only for that week with valid reason, please seek consent from the lecturer, preferably at least two days in advance. CS2100 Logic Gates and Circuits

Logic Gates and Circuits END CS2100 Logic Gates and Circuits