CS 140 Lecture 12 Professor CK Cheng 11/07/02. Part III - Standard Modules Decoder, Encoder, Mux, DeMux, Shifter, Adder, Multiplexer Interconnect: Decoder,

Slides:



Advertisements
Similar presentations
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.
Advertisements

Modular Combinational Logic
Documentation Standards
Multiplexer. A multiplexer (MUX) is a device which selects one of many inputs to a single output. The selection is done by using an input address. Hence,
Decoders/DeMUXs CS370 – Spring Decoder: single data input, n control inputs, 2 outputs control inputs (called select S) represent Binary index of.
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 140L Lecture 7 Professor CK Cheng 5/13/02. Announcements  State Assignment: Chapters 7.4.3, 7.7.3, kinds of coding: 1) Binary – [ log 2 n ]
CS 140 Lecture 13 Combinational Standard Modules Professor CK Cheng CSE Dept. UC San Diego 1.
1 Designing with MSI Documentation Standards  Block diagrams first step in hierarchical design  Schematic diagrams  Timing diagrams  Circuit descriptions.
CS 140L Lecture 7 Professor CK Cheng 11/12/02. Transformation between Mealy and Moore Machines Algorithm: 1) For each NS, z = S i, j create a state S.
Lecture 1: Introduction to Digital Logic Design CK Cheng Tuesday 4/1/02.
1 EE365 Three-state Outputs Encoders Multiplexers XOR gates.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Multiplexer MUX. 2 Multiplexer Multiplexer (Selector)  2 n data inputs,  n control inputs,  1 output  Used to connect 2 n points to a single point.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #8 Buffers, Drivers, Encoders, MUXs & XORs.
CSE 140 Lecture 15 System Designs Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140L Lecture 4 Professor CK Cheng 10/22/02. 1)F-F 2)Shift register 3)Counter (Asynchronous) 4)Counter (Synchronous)
Combinational Circuits
ECE2030 Introduction to Computer Engineering Lecture 10: Building Blocks for Combinational Logic (1) Timing Diagram, Mux/DeMux Prof. Hsien-Hsin Sean Lee.
1 CSE 140 Lecture 12 Standard Combinational Modules Professor CK Cheng CSE Dept. UC San Diego.
Combinational Logic Chapter 4.
Top-down modular design
Combinational Logic Design
Combinational Circuits
1 Digital Logic Design Week 7 Decoders, encoders and multiplexers.
Combinational Design, Part 3: Functional Blocks
Logical Circuit Design Week 6,7: Logic Design of Combinational Circuits Mentor Hamiti, MSc Office ,
Kuliah Rangkaian Digital Kuliah 6: Blok Pembangun Logika Kombinasional Teknik Komputer Universitas Gunadarma.
1 EE121 John Wakerly Lecture #6 Three-state Outputs Encoders Multiplexers XOR gates.
Multiplexers. Functional Description and Symbols.
Morgan Kaufmann Publishers
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.
Decoders, Encoders, Multiplexers
Computer Science 210 Computer Organization Control Circuits Decoders and Multiplexers.
CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has.
Chapter Four Combinational Logic 1. Discrete quantities of information are represented in digital systems by binary codes. A binary code of n bits is.
CSI-2111 Structure of Computers Ipage Combinational Circuits  Objectives : To recognize the principal types of combinational circuits  Adders.
Digital Design Lecture 8 Combinatorial Logic (Continued)
1 CSE 140 Lecture 11 Standard Combinational Modules CK Cheng CSE Dept. UC San Diego.
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.
CSE 140 Lecture 12 Combinational Standard Modules CK Cheng CSE Dept. UC San Diego 1.
Multiplexer.
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
More Devices: Control (Making Choices)
Reference: Chapter 3 Moris Mano 4th Edition
Dr. Clincy Professor of CS
CSE 140 Lecture 16 System Designs
CSE 140 Lecture 12 Combinational Standard Modules
CSE 140 Lecture 11 Standard Combinational Modules
CSE 140 Lecture 15 System Designs
CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 15 March 9 W’05 Yutao He 4532B Boelter Hall
CS 140 Lecture 16 Professor CK Cheng 11/21/02.
CSE 140 Lecture 14 System Design
Dr. Clincy Professor of CS
Class Exercise 1A.
Electronics for Physicists
Digital System Design Combinational Logic
Combinational circuits design
CS 140 Lecture 13 Professor CK Cheng 11/12/02.
ECE2030 HW-6.
CSE140: System Design Xinyuan Wang 05/31/2019.
CSE 140 Lecture 11 Standard Combinational Modules
CSE 140 Lecture 16 System Designs
Presentation transcript:

CS 140 Lecture 12 Professor CK Cheng 11/07/02

Part III - Standard Modules Decoder, Encoder, Mux, DeMux, Shifter, Adder, Multiplexer Interconnect: Decoder, Encoder, Mux, DeMux Operation: Addition, Multiplication, Shift P1 Memory Mux, 8 mem module in the bank P2 Pk Demux Decoder Mux Data Address

1. Decoder 0 y0y1y7y0y1y7 I0I0 I1I1 I2I EN (enable) n inputs 2 n outputs If En = 1 y i = 0 if (I 2, I 1, I 0 ) = i y i = 1 if (I 2, I 1, I 0 ) = i Else y i = 0 for all i. n - 2 n decoder....

Logic Diagram y0y0 I2’I2’ I1’I1’ I0’I0’ y1y1 I2I2 I1’I1’ I0’I0’ En y7y7 I2I2 I1I1 I0I0.... y 0 = 1 if (I 2, I 1, I 0 ) = (0,0,0) & EN = 1 y i = I 0 ’I 1 ’I 2 ’EN

Application: Decoder and OR as a universal set. Implement: f 1 (a,b,c) =  m (1,2,4) f 2 (a,b,c) =  m (2,3) f 3 (a,b,c) =  m (0,5,6) with a 3 –input decoder and OR gates. I0I0 y0y1..y7y0y1..y7 c b a I1I1 I2I Eny1y1 y2y2 y3y3 f1f1 y2y2 y3y3 f2f2 y0y0 y7y7 f3f3 y5y5

Tree of decoders Implement a decoder with decoders. I0I0 y0y1y7y0y1y7 I1I1 I2I I0I0 y 8 y 9 y 15 I1I1 I2I d a b c

Implement a decoder with decoders. En D0D0 I 2, I 1, I 0 D1D1 y0y0 y7y7 y8y8 y 15 D7D7 y 56 y 63 En I 2, I 1, I 0 I 5, I 4, I 3

1. Encoder y n-1 En A I 2 n -1 8 inputs 3 outputs y0y0 y1y1 y2y En At most one I i = 1. (y n-1,.., y 0 ) = i if I i = 1 &  n = 1 0 otherwise. A = 1 if En = 1 and i s.t. I i = 1 0 otherwise. Description: A I0I0 I7I

Logic Diagram En I1I1 I3I3 I5I5 I7I7 y0y0 I2I2 I3I3 I6I6 I7I7 y1y1

I0I0 I1I1 I6I6 I7I7 y2y2 I0I0 I1I1 I6I6 I7I7 A..

Priority Encoder Input (I 2 n -1,…, I 0 ) Output (y n-1,…,, y 0 ) (y n-1,…,, y 0 ) = i if I i = 1 & En = 1 & I k = 0 k > i. V Eo = 1 if En = 1 & I i = 0 i, Gs = 1 if En = 1 & i s.t. I i = 1. V E (Gs is like A, and Eo tells us if enable is true or not) En EoGs I0I0 I7I7 y0y0 y1y1 y2y

Implement a 32-input priority encoder w/ 8 input priority encoders (high bit priority). y 32, y 31, y 30 I Eo Gs y 22, y 21, y 20 I Eo Gs y 12, y 11, y 10 I 15-8 Eo Gs y 02, y 01, y 00 I 7-0 Eo Gs En