CSE 140 Lecture 11 Standard Combinational Modules

Slides:



Advertisements
Similar presentations
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Encoders.
Advertisements

5.5 Encoders A encoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes.
Give qualifications of instructors: DAP
Princess Sumaya University
Documentation Standards
Functions and Functional Blocks
Decoders/DeMUXs CS370 – Spring Decoder: single data input, n control inputs, 2 outputs control inputs (called select S) represent Binary index of.
CS 151 Digital Systems Design Lecture 17 Encoders and Decoders
1 CS 140 Lecture 12 Standard Combinational Modules Professor CK Cheng CSE Dept. UC San Diego.
CS 140 Lecture 11 Professor CK Cheng 5/09/02. Part III - Standard Modules Decoder, Encoder, Mux, DeMux, Shifter, Adder, Multiplexer Interconnect: Decoder,
CS 140 Lecture 13 Combinational Standard Modules Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 12 Professor CK Cheng 11/07/02. Part III - Standard Modules Decoder, Encoder, Mux, DeMux, Shifter, Adder, Multiplexer Interconnect: Decoder,
Lecture 1: Introduction to Digital Logic Design CK Cheng Tuesday 4/1/02.
Combinational Logic Building Blocks
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
CS 140 Lecture 5 Professor CK Cheng CSE Dept. UC San Diego.
CS 140 Lecture 5 Professor CK Cheng CSE Dept. UC San Diego 1.
CSE 140 Lecture 15 System Designs Professor CK Cheng CSE Dept. UC San Diego 1.
1 CSE 140 Lecture 12 Standard Combinational Modules Professor CK Cheng CSE Dept. UC San Diego.
Combinational Logic Chapter 4.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexers.
Combinational Logic Design
Encoders Three-state Outputs Multiplexers XOR gates.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Combinational Circuit – Arithmetic Circuit
Documentation Standards Circuit specification. –Description of what the system is supposed to do, including a description of all inputs and outputs and.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexer Circuits.
Combinational Design, Part 3: Functional Blocks
Logical Circuit Design Week 6,7: Logic Design of Combinational Circuits Mentor Hamiti, MSc Office ,
EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 12: Multiplexers, Decoders, Encoders, Shift.
CSE 140 Lecture 12 Combinational Standard Modules CK Cheng CSE Dept. UC San Diego 1.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 7 Dr. Shi Dept. of Electrical and Computer Engineering.
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
ECE 320 Homework #4 1. Using 8 data input selector logic (MUX), implement the following two functions: a) F(A,B,C)=S 0 S 2 S 3 S 5 b) F(A,B,C,D)=P 0 +P.
MSI Combinational logic circuits
Digital Design Lecture 8 Combinatorial Logic (Continued)
1 CSE 140 Lecture 11 Standard Combinational Modules CK Cheng CSE Dept. UC San Diego.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
Multiplexers & Decoders By: Jason Pitts CS 147 Spring 2010.
CSE 140 Lecture 13 Combinational Standard Modules Professor CK Cheng CSE Dept. UC San Diego 1.
Chapter4: Combinational Logic Part 4 Originally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
CSE 140 Lecture 12 Combinational Standard Modules CK Cheng CSE Dept. UC San Diego 1.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
CSE 140 Lecture 14 System Designs
CSE 140 Lecture 14 System Designs
CS221: Digital Logic Design Combinational Circuits 3
CSE 140 Lecture 12 Combinational Standard Modules
Combinational Logic Circuits
Reference: Chapter 3 Moris Mano 4th Edition
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
ECE 434 Advanced Digital System L03
CSE 140 Lecture 16 System Designs
CSE 140 Lecture 12 Combinational Standard Modules
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
CSE 140 Lecture 15 System Designs
CSE 140 Lecture 17 System Design II
Lecture 8 Logistics Last lecture Last last lecture Today
COE 202: Digital Logic Design Combinational Circuits Part 3
CSE 140 Lecture 14 System Design
Multiplexers Anindya IE CSE.
Digital Systems Section 17 Decoders and Encoders.
Digital Logic Circuits
Professor CK Cheng CSE Dept. UC San Diego
Electronics for Physicists
Digital System Design Combinational Logic
Adder, Subtructer, Encoder, Decoder, Multiplexer, Demultiplexer
CS 140 Lecture 13 Professor CK Cheng 11/12/02.
CSE 140 Lecture 11 Standard Combinational Modules
CSE 140 Lecture 16 System Designs
Presentation transcript:

CSE 140 Lecture 11 Standard Combinational Modules CK Cheng CSE Dept. UC San Diego

Part III - Standard Combinational Modules Introduction Decoder Behavior, Logic, Usage Encoder Multiplexer (Mux) Demultiplexier (DeMux)

Part III - Standard Combinational Modules Signal Transport Decoder: Decode address Encoder: Encode address Multiplexer (Mux): Select data by address Demultiplexier (DeMux): Direct data by address Shifter: Shift bit location Data Operator Adder: Add two binary numbers Multiplier: Multiply two binary numbers

Interconnect: Decoder, Encoder, Mux, DeMux Processors P1 Memory Bank Mux P2 Pk Demux Decoder Data Address Address k Address 2 Address 1 Data 1 Data k Arbiter n n-m m 2m Decoder: Decode the address to assert the addressed device Mux: Select the inputs according to the index addressed by the control signals

1. Decoder Definition Logic Diagram Application (Universal Set) Tree of Decoders

iClicker: Decoder Definition A device that decodes An electronic device that converts signals from one form to another A machine that converts a coded text into ordinary language A device or program that translates encoded data into its original format All of the above

n to 2n decoder function: Decoder Definition: A digital module that converts a binary address to the assertion of the addressed device E (enable) y0 y1 y7 I0 1 2 3 4 5 6 7 . I1 1 I2 2 n to 2n decoder function: n inputs n= 3 2n outputs 23= 8 yi = 1 if E= 1 & (I2, I1, I0 ) = i yi= 0 otherwise

1. Decoder: Definition N inputs, 2N outputs One-hot outputs: only one output HIGH at most E E= 1

1. Decoder: Definition iClicker: A 3-input decoder has how many outputs? 2 outputs 4 outputs 8 outputs 10 outputs E

Decoder Definition iClicker: For a 3-input decoder, suppose (E,I2,I1,I0)=(1,0,0,0), then (y7,y6, …, y0) is equal to: (00000000) (00000001) (00000010) (01000000) (10000000) y0 y1 y7 I0 I1 I2 1 2 3 4 5 6 7 E (enable) 3 inputs 8 outputs .

Decoder: Logic Diagram (Inside a decoder) y0 = 1 if (A1, A0 ) = (0,0) & En = 1 En yi = mi En A0’ A1’ y0 y1 . y3 y3 = A1A0En

1. Decoder: Definition PI Q: What is the output Y3:0 of the 2:4 decoder for (A1, A0) = (1,0)? (1, 1, 0, 0 ) (1, 0, 1, 1) (0, 0, 1, 0) (0, 1, 0, 0)

Decoder Application: universal set {Decoder, OR} Example: Implement the following functions with a 3-input decoder and OR gates. i) f1(a,b,c) = Σm(1,2,4) ii) f2(a,b,c) = Σm(2,3), iii) f3(a,b,c) = Σm(0,5,6)

Decoder Application: universal set {Decoder, OR} Decoder produces minterms when E=1. We can use an OR gate to collect the minterms to cover the On-set. For the Don’t Care-Set, we can just ignore the terms.

Decoder Application: universal set {Decoder, OR} Example: Implement functions f1(a,b,c) = Σm(1,2,4) + Σd(0,5), f2(a,b,c) = Σm(2,3) + Σd(1,4), f3(a,b,c) = Σm(0,5,6) y1 with a 3-input decoder and OR gates. y2 y4 f1 y2 I0 y0 . y7 c b a I1 I2 1 2 3 4 5 6 7 E=1 y3 f2 y0 y5 y6 f3

Decoders OR minterms E=1

Tree of Decoders: Scale up the size of the decoders using a tree structure Implement a 4-24 decoder with 3-23 decoders. y0 . y7 d I0 1 2 3 4 5 6 7 c I1 b I2 y8 . y15 I0 1 2 3 4 5 6 7 I1 I2 a

Tree of Decoders … … Implement a 6-26 decoder with 3-23 decoders. y0 I2, I1, I0 y7 y8 I5, I4, I3 D1 I2, I1, I0 y15 … … y56 D7 I2, I1, I0 y63

PI Q: A four variable switching function f(a,b,c,d) can be implemented using which of the following? 1:2 decoders and OR gates 2:4 decoders and OR gates 3:8 decoders and OR gates All of the above None of the above

2. Encoder Definition Logic Diagram Priority Encoder

iClicker: Definition of Encoder Any program, circuit or algorithm which encodes In digital audio technology, an encoder is a program that converts an audio WAV file into an MP3 file A device that convert a message from plain text into code A circuit that is used to convert between digital video and analog video All of the above

Encoder Definition: A digital module that converts the assertion of a device to the binary address of the device. yn-1 …y0 E A I2n-1…I0 Encoder Description: E At most one Ii = 1. (yn-1,.., y0 ) = i if Ii = 1 & E = 1 (yn-1,.., y0 ) = 0 otherwise. A = 1 if E = 1 and one i s.t. Ii = 1 A = 0 otherwise. I0 1 2 3 4 5 6 7 y0 1 2 y1 y2 I7 A 3 outputs 8 inputs

Encoder: Logic Diagram y1 y0 I1 I3 I5 I7 En I4 I5 I6 I7 y2 En I0 I1 I6 I7 A .

Priority Encoder: 1 2 3 E Eo Gs I0 I3 y0 y1

Priority Encoder: Definition Description: Input (I2n-1,…, I0), Output (yn-1 ,…,,y0) (yn-1 ,…,,y0) = i if Ii = 1 & E = 1 & Ik = 0 for all k > i (high bit priority) or for all k< i (low bit priority). 1 2 3 4 5 6 7 E Eo Gs I0 I7 y0 y1 y2 Eo = 1 if E = 1 & Ii = 0 for all i, Gs = 1 if E = 1 & i s.t. Ii = 1. E (Gs is like A, and Eo passes on enable).

Priority Encoder: Implement a 32-input priority encoder w/ 8 input priority encoders (high bit priority). E I31-24 y32, y31, y30 Gs Eo I23-16 y22, y21, y20 Gs Eo I15-8 y12, y11, y10 Gs Eo I7-0 y02, y01, y00 Gs Eo