tutorial3_4

# tutorial3_4 - 1 Elec Elec Elec Elec 151 Tutorial#3 151...

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

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: 1 Elec Elec Elec Elec 151 Tutorial #3 151 Tutorial #3 151 Tutorial #3 151 Tutorial #3 Outline : • Lab 3: OrCAD Logic Simulation • Simple Demo • Problems 2 Is a diode that converts electrical current to light. Output I LED L 0 or <0 OFF H >0 ON Output Input 0V OFF, ON L, H A K I 330 Ω 5V LED (Light emitting diode) One more 2’s complement Example • Compute the subtraction “14-5” using 2’s complement technique 14 -- 1110 5 -- 0101 • How about 5-14? 4 (a) Prelab Design a “4-bit Magnitude Comparator circuit ” based on the “Adder-Subtractor” used in lab 2_1 that compares A and B. How should I modify the circuit? Note : the circuit must provide 3 outputs: x, y and z (If A=B , then the output x=1 . If A<B , then the output y=1 . If A>B , then the output z =1 ). Lab 3: Orcad Logic Simulation 4-bit Adder- Subtractor A(4:1) B(4:1) CARRY S(4:1) M x (A=B) y (A<B) z (A>B) 4-bit Magnitude Comparator 5 Main steps 1. Create a PSpice Netlist: (Tools ->Create netlist->Pspice)....
View Full Document

## This note was uploaded on 09/16/2010 for the course ELEC 151 taught by Professor Cy during the Spring '10 term at HKUST.

### Page1 / 3

tutorial3_4 - 1 Elec Elec Elec Elec 151 Tutorial#3 151...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online