Lecture 9 Multiplexer, Decoder, and PLD

Similar documents
Chapter 7 Memory and Programmable Logic

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Gates, Circuits, and Boolean Algebra

Chapter 2 Logic Gates and Introduction to Computer Architecture

Combinational Logic Design

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

Memory Basics. SRAM/DRAM Basics

Handout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories

CSE140: Components and Design Techniques for Digital Systems

Hardware and Software

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

Two-level logic using NAND gates

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

5 Combinatorial Components. 5.0 Full adder. Full subtractor

Introduction to Digital System Design

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Introduction to Programmable Logic Devices. John Coughlan RAL Technology Department Detector & Electronics Division

University of St. Thomas ENGR Digital Design 4 Credit Course Monday, Wednesday, Friday from 1:35 p.m. to 2:40 p.m. Lecture: Room OWS LL54

ECE410 Design Project Spring 2008 Design and Characterization of a CMOS 8-bit Microprocessor Data Path

Basic Logic Gates Richard E. Haskell

A N. O N Output/Input-output connection

9/14/ :38

The components. E3: Digital electronics. Goals:

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Study of 32-bit RISC Processor Architecture and VHDL FPGA Implementation 32-bitMatrix Manipulation

Design of a High Speed Communications Link Using Field Programmable Gate Arrays

Let s put together a Manual Processor

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

ASYNCHRONOUS COUNTERS

Lecture 5: Gate Logic Logic Optimization

Sistemas Digitais I LESI - 2º ano

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Memory. The memory types currently in common usage are:

Combinational circuits

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

Understanding Logic Design

Unit 3 Boolean Algebra (Continued)

Introduction. Jim Duckworth ECE Department, WPI. VHDL Short Course - Module 1

Homework # 2. Solutions. 4.1 What are the differences among sequential access, direct access, and random access?

CHAPTER 3 Boolean Algebra and Digital Logic

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

DESIGN OF GATE NETWORKS

COMBINATIONAL CIRCUITS

CSE140: Midterm 1 Solution and Rubric

Multiple Choice Questions(Computer)

Boolean Algebra Part 1

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Course Requirements & Evaluation Methods

Semiconductor Memories

Combinational-Circuit Building Blocks

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

3.Basic Gate Combinations

CH3 Boolean Algebra (cont d)

Layout of Multiple Cells

Chapter 9 Latches, Flip-Flops, and Timers

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Sequential Circuit Design

LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Combinational Logic Design Process

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

REC FPGA Seminar IAP Seminar Format

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

ANALOG & DIGITAL ELECTRONICS

V05: Diploma in Computer Hardware maintenance and Network Technologies (Windows 2000 Server) (32 CP)

7CS-A(CD_lab) Actual date of covering the. Reason for not covering the topic in due time. Month in which the topic will be covered

Chapter 5 :: Memory and Logic Arrays

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

Lecture 8: Synchronous Digital Systems

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

Figure 8-1 Four Possible Results of Adding Two Bits

ON SUITABILITY OF FPGA BASED EVOLVABLE HARDWARE SYSTEMS TO INTEGRATE RECONFIGURABLE CIRCUITS WITH HOST PROCESSING UNIT

Counters and Decoders

Delay Characterization in FPGA-based Reconfigurable Systems

Logic in Computer Science: Logic Gates

Systems I: Computer Organization and Architecture

2.0 Chapter Overview. 2.1 Boolean Algebra

Microprocessor or Microcontroller?

Introduction to Digital Design Using Digilent FPGA Boards Block Diagram / Verilog Examples

Digital Design and Synthesis INTRODUCTION

Objectives. Units of Memory Capacity. CMPE328 Microprocessors (Spring ) Memory and I/O address Decoders. By Dr.

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Diploma in Computer Hardware Maintenance and Network Technologies(DCHMNT)

ENGI 241 Experiment 5 Basic Logic Gates

Binary Adders: Half Adders and Full Adders

Microprocessor & Assembly Language

Embedded Computer Architectures: Associative Processing

NEW adder cells are useful for designing larger circuits despite increase in transistor count by four per cell.

BINARY CODED DECIMAL: B.C.D.

Architectural Level Power Consumption of Network on Chip. Presenter: YUAN Zheng

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

Lab 1: Study of Gates & Flip-flops

Building a computer. Electronic Numerical Integrator and Computer (ENIAC)

Transcription:

Lecture 9 Multiplexer, Decoder, and PLD SSI (small-scale integration) NAND, NOR, NOT, flip flop etc Gate count < 10. MSI (medium-scale integration) Adders, multiplexers, decoders, registers, counters LSI Gate count < 100 VLSI (very large-scale integration Memory chips, microprocessors Chap 9 C-H 1

Multiplexers Multiplexers are selectors. Z = A B I 0 + A BI 1 + AB I 2 + ABI 3. (4- to-1 MUX) Chap 9 C-H 2

Logic Diagram for MUX 8-to-1 MUX Chap 9 C-H 3

Application of MUX Select data. Chap 9 C-H 4

Application of MUX Crossbar switch s As s=0, x1 to y1, x2 to y2. x 1 y 1 As s=1, x1 to y2, x2 to y1. x 2 (a) A 2x2 crossbar switch y 2 x 1 0 1 y 1 s x 2 0 1 y 2 (b) Implementation using multiplexers C-H 5

Using Mux for logic function, XOR f = w 1 xor w 2 w 1 w 2 f w 2 w 1 0 0 1 0 1 0 0 1 1 0 1 1 f 1 1 0 0 Chap 9 C-H 6

Better Modify the truth table. When w 1 = 0, f = w 2. Otherwise, f = ~w 2 w 1 w 2 f w 1 f 0 0 1 0 1 0 0 1 1 0 1 w 2 w 2 1 1 0 w 1 w 2 f C-H 7

Using Mux to Implement a barrel shifter Chap 9 C-H 8

Buffers/Tri-state Buffer Driving capability High impedance Chap 9 C-H 9

Tri-state Buffer Application Data transfer between registers Chap 9 C-H 10

Tri-state Buffer Application (cont.) Source selection Chap 9 C-H 11

Decoder 3-to-8 line decoder An n-to-2 n decoder generates all 2 n minterms of the n input variables. Chap 9 C-H 12

More Decoder 2-to-4 decoder: minterm generator Chap 9 C-H 13

Decoder (cont.) 4-to-10 line decoder Chap 9 C-H 14

ROM Read-only memory: stored data can not be changed under normal operating conditions. Chap 9 C-H 15

ROM (cont.) ROM size = 2 n x m bits. Chap 9 C-H 16

ROM Basic Structure 8-word x 4 bit ROM F 0 = m 0 + m 1 + m 4 +m 6 Chap 9 C-H 17

Multiple-Output Network Using ROM BCD to Excess-3 code Chap 9 C-H 18

Types of ROM Mask-programmable ROM Contents are stored during fabrication. Field-programmable ROM PROM: programmable ROM Fusible link (PROM programmer) EPROM: erasable PROM Use ultraviolet light for erasure. EEPROM: electrically erasable PROM. Flash memory Chap 9 C-H 19

Programmable Logic Devices PLA (programmable logic array) Realize m functions of n variables. Chap 9 C-H 20

Implementation procedure for PLA Prepare the truth table based on your system Write the Boolean expression in SOP (sum of product) form. Obtain the minimum SOP form to reduce the number of product terms to a minimum. Decide the input connection of the AND matrix for generating the required product term. Then decide the input connections of OR matrix to generate the sum terms. Decide the connections of invert matrix. Program the PLA. Chap 9 C-H 21

Programmable Symbology Chap 9 C-H 22

PLA PLA 3 inputs, 5 product terms, 4 outputs. Chap 9 C-H 23

PLA PLA circuit Chap 9 C-H 24

PLA (cont.) PLA 3 inputs, 5 product terms, 4 outputs. AND-OR array. Chap 9 C-H 25

PLA Application f 1 = a bd + abd + ab c + b c f 2 = c + a bd f 3 = bc + ab c + abd If abcd = 0111, 1st, 5th, 6th rows are selected. f 1 = 1 +0+0, f 2 = 1+1+0, etc. Chap 9 C-H 26

Programmable Array Logic (PAL) AND array is programmable. OR array is fixed. Use input buffer to drive many ANDs. Input buffer Chap 9 C-H 27

Programmable Array Logic (PAL) Full Adder using a PAL Chap 9 C-H 28

Why prefers PLA rather than ROM A combinational circuit may occasionally have don't-care conditions. When implemented with a ROM, a don't care condition becomes an address input that will never occur. The words at the don't care address need not be programmed and may be left in their original state(all 0's or all 1's ). The has the result that all the bit patterns available in ROM are used, but for the don t care addresses you really can do without them. Chap 9 C-H 29

What Programmable Means "programmable" does not indicate that all PLAs are field-programmable. Many are mask-programmed during manufacture in the same manner as a mask ROM. This is particularly true of PLAs that are embedded in more complex and numerous integrated circuits such as microprocessors. PLAs that can be programmed after manufacture are called FPGA (Fieldprogrammable gate array) Chap 9 C-H 30

Complex Programming Logic Devices Xilinx XCR3064XL CPLD Function block (16 macrocells)= PLA Macrocell = a flip flop + multiplexers IA routes signals Input of function block Chap 9 C-H 31

Function Block and MC Signal from PLA -> marcocell -> I/O pin Use CAD tool to fit the design into the PLD. Chap 9 C-H 32

Field Programmable Gate Arrays (FPGA) Logic cell: configurable logic blocks (CLBs) Input/Output blocks (I/O blocks) Chap 9 C-H 33

Configurable Logic Block Inside a CLB: function generators (LUT), FFs, and MUXs LUT: lookup table (truth table) is a reprogrammable ROM (16 1-bit words) Chap 9 C-H 34

A Lookup Table (LUT) If we want F = abc (one minterm) 1110 (and F=1) + 1111 (and F=1) Or if we want F = a b c d + a b cd + abcd. (15 minterms) Require a single function generator. Program the LUT table to get what we want. To be implemented a b c d F 0 0 0 0 0 0 0 0 1 1 0 0 1 0 1.. 1 1 1 1 1 This is a 4-variable function generator. Bit stored in the LUT. Chap 9 C-H 35

Shannon s Expansion Theorem What if # of variables > 4 variables f (x 1, x 2, x n ) = x i f (x 1, x 2,..x i-1, 0, x i+1, x n ) + x i f (x 1, x 2,..x i-1, 1, x i+1, x n ) = x i f 0 + x i f 1 f (a, b, c, d, e) = a f(0, b, c, d, e) + a f(1, b, c, d, e) Let a = 0, what lefts are terms with b, c, d, e 2-1 MUX F = a I 1 + a I 2 Chap 9 C-H 36