1 / 26

CS2100 Computer Organisation comp.nus.sg/~cs2100/

CS2100 Computer Organisation http://www.comp.nus.edu.sg/~cs2100/. Logic Gates and Circuits (AY2008/9) Semester 2. Preparation: 2 weeks. Logic Design: 3 weeks. Computer organisation. WHERE ARE WE NOW?. Number systems and codes Boolean algebra Logic gates and circuits Simplification

berryg
Download Presentation

CS2100 Computer Organisation comp.nus.sg/~cs2100/

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS2100 Computer Organisationhttp://www.comp.nus.edu.sg/~cs2100/ Logic Gates and Circuits (AY2008/9) Semester 2

  2. Preparation: 2 weeks Logic Design: 3 weeks Computer organisation WHERE ARE WE NOW? • 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 Gates and Circuits

  3. 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! Logic Gates and Circuits

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

  5. A A' A A' A B A+B A B A  B INVERTER/AND/OR GATES • Inverter (NOT gate) • AND gate • OR gate Logic Gates and Circuits 

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

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

  8. x y F1 z' z 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) Logic Gates and Circuits

  9. x x F2 F2 y' y z y'z z y'z If complemented literals are available If complemented literals are not available x x.y' x x.y' y y' F3 F3 x' z x'.z z x'.z LOGIC CIRCUITS (2/2) • Example: F2 = x + y'z • Example: F3 = xy' + x'z Logic Gates and Circuits

  10. A B C F4 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 = ? Logic Gates and Circuits 

  11. QUICK REVIEW QUESTIONS (1) • DLD page 77Questions 4-1 to 4-4. Logic Gates and Circuits

  12. 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) Logic Gates and Circuits

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

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

  15. QUICK REVIEW QUESTIONS (2) • DLD page 77Questions 4-6 to 4-8. Logic Gates and Circuits

  16. A B C F D E 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 Logic Gates and Circuits

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

  18. A B C G D E 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 Logic Gates and Circuits

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

  20. READING ASSIGNMENT • Propagation Delay • Read up DLD section 4.5, pg 69 – 71. • Integrated Circuit Logic Families • Read up DLD section 4.6, pg 71 – 72. Logic Gates and Circuits

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

  22. 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’. Logic Gates and Circuits

  23. PLA EXAMPLE (1/2) Logic Gates and Circuits

  24. PLA EXAMPLE (2/2) • Simplified representation of previous PLA. Logic Gates and Circuits

  25. 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. Logic Gates and Circuits

  26. END Logic Gates and Circuits

More Related