ECE434a Advanced Digital Systems L02

Slides:



Advertisements
Similar presentations
Unit 9 Multiplexers, Decoders, and Programmable Logic Devices Ku-Yaw Chang Assistant Professor, Department of Computer Science.
Advertisements

컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
Digital Design: Combinational Logic Blocks
Give qualifications of instructors: DAP
Functions and Functional Blocks
Programmable Logic PAL, PLA.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
©2004 Brooks/Cole FIGURES FOR CHAPTER 9 MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES Click the mouse to move to the next page. Use the ESC key.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Combinational Circuit – MSI Circuit ENCODER With the aid of K-map (don’t care situation), we can get D 0 =
Multiplexers, Decoders, and Programmable Logic Devices

Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Lecture 13 – Programmable.
Shannon’s Expansion Muxes and Encoders. Tri-State Buffers  A tri-state buffer has one input x, one output f and one control line e Z means high impedance,
Figure to-1 Multiplexer and Switch Analog
Combinational Logic Design
Random-Access Memory (RAM)
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
CHAPTER 9 MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
Chapter 0 - reVieW Combinational Logic Circuit, Combinational Logic Circuit, Propagation Delay, Propagation Delay, Programmable Logic. Programmable Logic.
Computer Architecture From Microprocessors To Supercomputers
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
IC design options PLD (programmable logic device)
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
1 ECE 545—Digital System Design with VHDL Lecture 1 Digital Logic Refresher Part A – Combinational Logic Building Blocks.
Programmable logic devices. CS Digital LogicProgrammable Logic Device2 Outline PLAs PALs ROMs.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
CEC 220 Digital Circuit Design Decoders, Encoders, & ROM Wed, February 19 CEC 220 Digital Circuit Design Slide 1 of 18.
1 Digital Logic Design (41-135) Chapter 6 Combinational Circuit Building Blocks Younglok Kim Dept. of Electrical Engineering Sogang University Spring 2006.
Gunjeet Kaur Dronacharya Group of Institutions. Outline Introduction Random-Access Memory Memory Decoding Error Detection and Correction Programmable.
Chapter- 9 Programmable Logic Devices DHADUK ANKITA ENRL NO Noble Engineering College- Junagadh.
This chapter in the book includes: Objectives Study Guide
Memory and Programmable Logic
ETE Digital Electronics
Chapter # 4: Programmable Logic
This chapter in the book includes: Objectives Study Guide
Computer Architecture & Operations I
DIGITAL LOGIC CIRCUITS
CS221: Digital Logic Design Combinational Circuits 3
Computer Architecture & Operations I
Logic and Computer Design Fundamentals
Lecture 9 Logistics Last lecture Today HW3 due Wednesday
DIGITAL LOGIC CIRCUITS
This chapter in the book includes: Objectives Study Guide
CPE/EE 422/522 Advanced Logic Design
ECE 434 Advanced Digital System L03
Basics Combinational Circuits Sequential Circuits
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CPE/EE 422/522 Advanced Logic Design L02
CS105 Introduction to Computer Concepts GATES and CIRCUITS
ECE 434 Advanced Digital System L04
Digital Logic Structures Logic gates & Boolean logic
ECE 616 Advanced FPGA Designs
ECE 434 Advanced Digital Systems
CSCE 211: Digital Logic Design
Week 7: Gates and Circuits: PART II
Programmable Configurations
COE 202: Digital Logic Design Combinational Circuits Part 3
Multiplexers Anindya IE CSE.
Part I Background and Motivation
13 Digital Logic Circuits.
CSCE 211: Digital Logic Design
Logic Circuits I Lecture 3.
Digital System Design Combinational Logic
Presentation transcript:

ECE434a Advanced Digital Systems L02 Electrical and Computer Engineering University of Western Ontario

Outline What we know What we do not know Laws and Theorems of Boolean Algebra Simplification of Logic Expressions What we do not know How to use K-maps for 5, 6 variables How to design using only NAND or only NOR gates What are tri-state buffers for What are basic combinational building blocks Multiplexers Decoders Encoders How to implement functions using ROMs, PLAs, and PALs 28/11/2018

Review: Laws and Theorems of Boolean Algebra 28/11/2018

Review: Laws and Theorems of Boolean Algebra 28/11/2018

Review: Simplifying Logic Expressions Combining terms Use XY+XY’=X, X+X=X Eliminating terms Use X+XY=X Eliminating literals Use X+X’Y=X+Y Adding redundant terms Add 0: XX’ Multiply with 1: (X+X’) 28/11/2018

Review: Karnaugh Maps Example Sum of products Product of sums 28/11/2018

Five variable Karnaugh Map BC BC 00 01 11 10 00 01 11 10 DE DE 00 00 1 1 1 01 1 1 01 1 1 1 1 11 11 1 1 1 1 10 10 A=0 A=1 28/11/2018

Six Variable Karnaugh Map 1 00 01 11 10 CD EF 1 00 01 11 10 CD EF AB=00 AB=01 1 00 01 11 10 CD EF 1 00 01 11 10 CD EF AB=10 AB=11 28/11/2018

Designing with NAND and NOR Gates (1) Implementation of NAND and NOR gates is easier than that of AND and OR gates (e.g., CMOS) Why? Based on VLSI transistor. Which is the optimal NAND gates? 28/11/2018

Designing with NAND and NOR Gates (2) Any logic function can be realized using only NAND or NOR gates => NAND/NOR is complete NAND function is complete – can be used to generate any logical function; 1: a I (a | a) = a | a’ = 1 0: {a I (a | a)} | {a I (a | a)} = 1 | 1 = 0 a’: a | a = a’ ab: (a | b) | (a | b) = (a | b)’ = ab a+b: (a | a) | (b | b) = a’ | b’ = a + b 28/11/2018

Conversion to NOR Gates Start with POS (Product Of Sums) circle 0s in K-maps Find network of OR and AND gates 28/11/2018

Conversion to NAND Gates Start with SOP (Sum of Products) circle 1s in K-maps Find network of OR and AND gates 28/11/2018

Tristate Logic and Busses Four kinds of tristate buffers B is a control input used to enable and disable the output 28/11/2018

Data Transfer Using Tristate Bus 28/11/2018

Combinational-Circuit Building Blocks Multiplexers Decoders Encoders Code Converters Comparators Adders/Subtractors Multipliers Shifters 28/11/2018

Multiplexers: 2-to-1 Multiplexer Have number of data inputs, one or more select inputs, and one output It passes the signal value on one of data inputs to the output s w w f s w f 1 1 w (a) Graphical symbol 1 (c) Sum-of-products circuit s f w 1 w 1 (b) Truth table 28/11/2018

Multiplexers: 4-to-1 Multiplexer s s s s f 1 1 w w 00 w s w 1 1 01 1 w f w 1 2 10 1 w w 2 11 w 3 1 1 w 1 3 f (a) Graphic symbol (b) Truth table w 2 w 3 (c) Circuit 28/11/2018

Multiplexers: Building Larger Mulitplexers s s 1 1 s w w 3 w w 1 1 w s 4 2 s 3 f w 1 7 w f 2 w 3 1 w 8 w 11 (a) 4-to-1 using 2-to-1 (b) 16-to-1 using 4-to-1 w 12 w 15 28/11/2018

Synthesis of Logic Functions Using Muxes w w w f 2 1 2 w 1 1 1 1 f 1 1 1 1 1 (a) Implementation using a 4-to-1 multiplexer w w f 1 2 w f 1 w 1 w 2 1 1 1 w w 2 2 1 1 f 1 1 (b) Modified truth table (c) Circuit 28/11/2018

Synthesis of Logic Functions Using Muxes w w w f 1 2 3 w w f 1 2 1 w 1 3 1 w 1 3 w 1 1 1 1 1 1 2 w 1 1 1 1 1 w 1 1 1 3 f 1 1 1 1 1 (a) Modified truth table (b) Circuit 28/11/2018

Decoders: n-to-2n Decoder Decode encoded information: n inputs, 2n outputs If En = 1, only one output is asserted at a time One-hot encoded output m-bit binary code where exactly one bit is set to 1 w y n 2 n inputs w outputs n – 1 y Enable En 2 n – 1 28/11/2018

Decoders: 2-to-4 Decoder En w w y y y y 1 1 2 3 w 1 1 y 1 1 1 w 1 1 1 1 1 1 1 1 x x y 1 (a) Truth table y 2 w y w y 1 1 y 3 y 2 y En En 3 (c) Logic circuit (b) Graphic symbol 28/11/2018

Decoders: 3-to-8 Using 2-to-4 w w y y w w y y 1 1 1 1 y y 2 2 w 2 En y y 3 3 En w y y 4 w y y 1 1 5 y y 2 6 En y y 3 7 28/11/2018

Decoders: 4-to-16 Using 2-to-4 w w y y w w y y 1 1 1 1 y y 2 2 En y y 3 3 w y y 4 w y y 1 1 5 y y 2 6 w 2 w y y y En 3 7 w w y 3 1 1 y 2 En y w y y En 3 8 w y y 1 1 9 y y 2 10 En y y 3 11 w y y 12 w y y 1 1 13 y y 2 14 En y y 3 15 28/11/2018

Encoders Opposite of decoders Binary encoders Encode given information into a more compact form Binary encoders 2n inputs into n-bit code Exactly one of the input signals should have a value of 1, and outputs present the binary number that identifies which input is equal to 1 Use: reduce the number of bits (transmitting and storing information) w y n n 2 outputs inputs y w n – 1 2 n – 1 28/11/2018

Encoders: 4-to-2 Encoder w w w w y y 3 2 1 1 w 1 w 1 1 1 y 1 1 w 1 1 1 2 y w 1 3 (a) Truth table (b) Circuit 28/11/2018

Encoders: Priority Encoders Each input has a priority level associated with it The encoder outputs indicate the active input that has the highest priority (a) Truth table for a 4-to-2 priority encoder w w w w y y z 3 2 1 1 d d 1 1 1 x 1 1 1 x x 1 1 1 x x x 1 1 1 28/11/2018

Code Converters Convert from one type of input encoding to a different output encoding E. g., BCD-to-7-segment decoder w w w w a b c d e f g 3 2 1 a a 1 1 1 1 1 1 b w 1 1 1 c f b w 1 1 1 1 1 1 1 d w 2 g 1 1 1 1 1 1 1 e e c w 3 1 1 1 1 1 f g 1 1 1 1 1 1 1 d 1 1 1 1 1 1 1 1 (a) Code converter (b) 7-segment display 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 (c) Truth table 28/11/2018

Extension of Digital Design Fundamental What is the optimization? Synthesis Design project 1: Optimization based on majority gate Modified K-map based on majority gate Optimization based on pass gate Modified K-map based on pass gate 28/11/2018

Programmable Logic Devices Read Only Memories (ROMs) Programmable Logic Arrays (PLAs) Programmable Array Logic Devices (PALs) 28/11/2018

Read-Only Memories Store binary data data can be read out whenever desired cannot be changed under normal operating conditions n input lines, m output lines => array of 2n m-bit words Input lines serve as an address to select on of 2n words Use ROM to implement logic functions? n variables, m functions 28/11/2018

Basic ROM Structure 28/11/2018

ROM Types Mask-programmable ROM EPROM (Erasable Programmable ROM) Data is permanently stored (include or omit the switching elements) Economically feasible for a large quantity EPROM (Erasable Programmable ROM) Use special charge-storage mechanism to enable or disable the switching elements in the memory array PROM programmer is used to provide appropriate voltage pulses to store electronic charges Data is permanent until erased using an ultraviolet light EEPROM – Electrically Erasable PROM erasure is accomplished using electrical pulses (can be reprogrammed typically 100 to 1000 times) Flash memories - similar to EEPROM except they use a different charge-storage mechanism usually have built-in programming and erase capability, so the data can be written to the flash memory while it is in place, without the need for a separate programmer 28/11/2018

Programmable Logic Arrays (PLAs) Perform the same function as a ROM n inputs and m outputs – m functions of n variables AND array – realizes product terms of the input variables OR array – ORs together the product terms 28/11/2018

PLA: 3 inputs, 5 p.t., 4 outputs 28/11/2018

nMOS NOR Gate 28/11/2018

AND-OR Array Equivalent 28/11/2018

To Do Textbook Read Design Project 1: majority gate and pass gate Chapter 1.3, 1.4, 1.13 Read Altera’s MAX+plus II and the UP1 Educational board: A User’s Guide, B. E. Wells, S. M. Loo Altera University Program Design Laboratory Package Design Project 1: majority gate and pass gate 28/11/2018