lecture12

# lecture12 - CMPT 150 Combinational Circuits Page 4 Priority...

This preview shows pages 1–2. Sign up to view the full content.

CMPT 150 Combinational Circuits Page 1 Implementing an Encoder box5 An Encoder does the opposite of what a Decoder does: 4x2 Enc D 0 D 1 D 2 D 3 A 0 A 1 E D 0 D 1 D 2 D 3 A 1 A 0 1 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 1 1 0 box5 It is implemented as follows: A 0 = A 1 = E 1 0 0 0 1 0 X X X X 1 1 X X CMPT 150 Combinational Circuits Page 2 Priority Encoders box5 The encoders we’ve looked at so far have the limitation that only one of the inputs can be 1 at a time E.g. box5 Priority Encoders solve this by behaving such that if two or more inputs are equal to 1 at the same time, the input having the highest priority takes precedence. box5 box5 We also add an output V to indicate whether at least one of the inputs is 1. CMPT 150 Combinational Circuits Page 3 Truth Table for Priority Encoder

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CMPT 150 Combinational Circuits Page 4 Priority Encoder: K-maps CMPT 150 Combinational Circuits Page 5 Priority Encoder: Logic Diagram CMPT 150 Combinational Circuits Page 6 Multiplexers b Routes one of many inputs to the single output b A 2 n x1 MUX has: b b x1 E S S Y b b Analogy with music: Music selected from different sources (CD player, radio, etc) to be played on only one speaker. 4x1 Mux 1 I I 1 I 2 I 3 CMPT 150 Combinational Circuits Page 7 Multiplexer Implementation 4x1 Mux E S S 1 I I 1 I 2 I 3 Y E S 1 S Y 1 0 0 1 0 1 1 1 0 1 1 1 I I 1 I 2 I 0 X X 3...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern