CS2100 Computer Organisation

Slides:



Advertisements
Similar presentations
Chapter 3 Gate-Level Minimization
Advertisements

Boolean Algebra and Logic Gates
Adders Used to perform addition, subtraction, multiplication, and division (sometimes) Half-adder adds rightmost (least significant) bit Full-adder.
Advanced Piloting Cruise Plot.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
CS1104 – Computer Organization
Princess Sumaya University
Chapter 3 Basic Logic Gates 1.
Chapter 4 Gates and Circuits.
Chapter 4 Gates and Circuits Nell Dale • John Lewis.
Chapter 4 Gates and Circuits.
ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Discrete Mathematical Structures: Theory and Applications
CS1103 Digital Logic Design
Karnaugh Map Adjacent Squares
Other Gate Types Why? Gate classifications
Chapter 3 Gate-Level Minimization
Chapter 3 Logic Gates.
Gates and Circuits Nell Dale & John Lewis (adaptation by Erin Chambers and Michael Goldwasser)
CT455: Computer Organization Logic gate
Digital Logic Design Gate-Level Minimization
Introduction to Logic Gates
Chap. 3 Logic Gates and Boolean Algebra
Overview Part 1 – Gate Circuits and Boolean Equations
L14: Boolean Logic and Basic Gates
The scale of IC design Small-scale integrated, SSI: gate number usually less than 10 in a IC. Medium-scale integrated, MSI: gate number ~10-100, can operate.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
Other Gate Types COE 202 Digital Logic Design Dr. Aiman El-Maleh
Exclusive-OR and Exclusive-NOR Gates
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Chapter3: Gate-Level Minimization Part 2
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 3.
Karnaugh Map Adjacent Squares
©2004 Brooks/Cole FIGURES FOR CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES Click the mouse to move to the next page. Use the ESC key to exit.
Figure 3–1 Standard logic symbols for the inverter (ANSI/IEEE Std
Boolean Algebra and Logic Gates
01 Introduction to Digital Logic
VOORBLAD.
Chapter 4 Gates and Circuits.
Name Convolutional codes Tomashevich Victor. Name- 2 - Introduction Convolutional codes map information to code bits sequentially by convolving a sequence.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Boolean Logic ITI 1121 N. El Kadri. 2 What is a switching network? Switching Network X1X1 XmXm X2X2 Z1Z1 ZmZm Z2Z2 Combinatorial Network: A stateless.
© 2012 National Heart Foundation of Australia. Slide 2.
CS 121 Digital Logic Design
Chapter 5 Test Review Sections 5-1 through 5-4.
Princess Sumaya University
25 seconds left…...
Week 1.
We will resume in: 25 Minutes.
PSSA Preparation.
CENG 241 Digital Design 1 Lecture 2 Amirali Baniasadi
CENG 241 Digital Design 1 Lecture 3 Amirali Baniasadi
Morgan Kaufmann Publishers
CS2100 Computer Organisation
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.
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Chapter 10_1 Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
CS2100 Computer Organisation MSI Components (AY2015/6 Semester 1)
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.
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.
Chapter 5 Combinational Logic 组合逻辑
CS2100 Computer Organisation
CS2100 Computer Organisation
CS2100 Computer Organisation
CS2100 Computer Organisation
Introduction to Logic Gates
Presentation transcript:

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

Logic Gates and Circuits WHERE ARE WE NOW? Preparation: 2 weeks Number systems and codes Boolean algebra Logic gates and circuits Simplification Combinational circuits Sequential circuits Performance Assembly language The processor: Datapath and control Pipelining Memory hierarchy: Cache Input/output Logic Design: 3 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 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' Every input must be connected in a working circuit. 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 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 F4 = ? 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’. 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. 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