administrative stuff introduction to computer engineering

5
Introduction to Computer Engineering – EECS 203 http://ziyang.eecs.northwestern.edu/ dickrp/eecs203/ Instructor: Robert Dick Office: L477 Tech Email: [email protected] Phone: 847–467–2298 TA: Neal Oza Office: Tech. Inst. L375 Phone: 847-467-0033 Email: [email protected] TT: David Bild Office: Tech. Inst. L470 Phone: 847-491-2083 Email: [email protected] Administrative Stuff Review Switch Models Transistors and CMOS Design Homework Grading scheme 15% homeworks 35% labs 20% midterm exam 30% final exam 3 R. Dick Introduction to Computer Engineering – EECS 203 Administrative Stuff Review Switch Models Transistors and CMOS Design Homework Planned schedule Mondays: Labs assigned and collected Wednesdays: Homeworks collected and assigned Friday’s class will normally focus on the lab and homework of the week, and will be given by Neal Oza 4 R. Dick Introduction to Computer Engineering – EECS 203 Administrative Stuff Review Switch Models Transistors and CMOS Design Homework Review What is a truth table? Combinational vs. sequential logic? Symbol and notation for AND, OR, NOT? Other gates also exist, e.g., NAND, NOR, XOR, XNOR 6 R. Dick Introduction to Computer Engineering – EECS 203 Administrative Stuff Review Switch Models Transistors and CMOS Design Homework Case study of simple combinational logic design Seven-segment display Given: A four-bit binary input Display a decimal digit ranging from zero to nine Use a seven-segment display L1 L2 L3 L4 L5 L6 L7 7 R. Dick Introduction to Computer Engineering – EECS 203 Administrative Stuff Review Switch Models Transistors and CMOS Design Homework Case study – Seven-segment i 3 i 2 i 1 i 0 dec 0 0 0 0 0 0 0 0 1 1 0 0 1 0 2 0 0 1 1 3 0 1 0 0 4 0 1 0 1 5 0 1 1 0 6 0 1 1 1 7 1 0 0 0 8 1 0 0 1 9 8 R. Dick Introduction to Computer Engineering – EECS 203 Administrative Stuff Review Switch Models Transistors and CMOS Design Homework Case study – Seven-segment L1 L2 L3 L4 L5 L6 L7 i 3 i 2 i 1 i 0 dec L1 L2 L3 L 0 0 0 0 0 1 0 1 0 0 0 1 1 0 0 0 0 0 1 0 2 1 1 1 0 0 1 1 3 1 1 1 0 1 0 0 4 0 1 0 0 1 0 1 5 1 1 1 0 1 1 0 6 1 1 1 0 1 1 1 7 1 0 0 1 0 0 0 8 1 1 1 1 0 0 1 9 1 1 0 9 R. Dick Introduction to Computer Engineering – EECS 203 Administrative Stuff Review Switch Models Transistors and CMOS Design Homework Implement L4 i 3 i 2 i 1 i 0 dec L4 0 0 0 0 0 1 0 0 0 1 1 0 0 0 1 0 2 0 0 0 1 1 3 0 0 1 0 0 4 1 0 1 0 1 5 1 0 1 1 0 6 1 0 1 1 1 7 0 1 0 0 0 8 1 1 0 0 1 9 1 10 R. Dick Introduction to Computer Engineering – EECS 203

Upload: others

Post on 18-Apr-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Administrative Stuff Introduction to Computer Engineering

Introduction to Computer Engineering – EECS 203http://ziyang.eecs.northwestern.edu/∼dickrp/eecs203/

Instructor: Robert Dick

Office: L477 Tech

Email: [email protected]

Phone: 847–467–2298

TA: Neal Oza

Office: Tech. Inst. L375

Phone: 847-467-0033

Email: [email protected]

TT: David Bild

Office: Tech. Inst. L470

Phone: 847-491-2083

Email: [email protected]

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Grading scheme

15% homeworks

35% labs

20% midterm exam

30% final exam

3 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Planned schedule

Mondays: Labs assigned and collected

Wednesdays: Homeworks collected and assigned

Friday’s class will normally focus on the lab and homework of theweek, and will be given by Neal Oza

4 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Review

What is a truth table?

Combinational vs. sequential logic?

Symbol and notation for AND, OR, NOT?

Other gates also exist, e.g., NAND, NOR, XOR, XNOR

6 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Case study of simple combinational logic designSeven-segment display

Given: A four-bit binary input

Display a decimal digitranging from zero to nine

Use a seven-segment display

L1

L2

L3

L4

L5

L6

L7

7 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Case study – Seven-segment

i3 i2 i1 i0 dec

0 0 0 0 00 0 0 1 10 0 1 0 20 0 1 1 30 1 0 0 40 1 0 1 50 1 1 0 60 1 1 1 71 0 0 0 81 0 0 1 9

8 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Case study – Seven-segment

L1

L2

L3

L4

L5

L6

L7

i3 i2 i1 i0 dec L1 L2 L3 L40 0 0 0 0 1 0 10 0 0 1 1 0 0 00 0 1 0 2 1 1 10 0 1 1 3 1 1 10 1 0 0 4 0 1 00 1 0 1 5 1 1 10 1 1 0 6 1 1 10 1 1 1 7 1 0 01 0 0 0 8 1 1 11 0 0 1 9 1 1 0

9 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Implement L4

i3 i2 i1 i0 dec L40 0 0 0 0 10 0 0 1 1 00 0 1 0 2 00 0 1 1 3 00 1 0 0 4 10 1 0 1 5 10 1 1 0 6 10 1 1 1 7 01 0 0 0 8 11 0 0 1 9 1

10 R. Dick Introduction to Computer Engineering – EECS 203

Page 2: Administrative Stuff Introduction to Computer Engineering

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

L4 implementation

i 1

i 0

i 3

i 2

i 0

i 2

i 1

L4

In a future lecture, I’ll explain how to do this sort of design.

11 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Switch-based design representation

A switch shorts or opens two points dependant on a control signal

Used as models for digital transistors

Why is using normally open and normally closed particularlyuseful for CMOS?

NMOS and PMOS transistors easy to model

13 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Switch-based definitions

control

normally openswitch

true

closed switch

false

open switch

control

switch

open switch

closed switch

normally closed

true

false

14 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Microwave control example

halt

microwave

water vaporsensed

at least fiveminutes elapsed

cancel buttonpressed

true

What happens if the cancel button is not pressed and fiveminutes haven’t yet passed?

The output value is undefined.

15 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Constraints on network output

Under all possible combinations of input values

Each output must be connected to an input value

No output may be connected to conflicting input values

16 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Switch-based AND

ba

false

output

true

Note that this requires

Normally closed switches that transmit false signals well

Normally open switches that transmit true signals well

17 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

Relationship with CMOS

Metal Oxide Semiconductor

Positive and negative carriers

Complimentary MOS

PMOS gates are like normally closed switches that are good attransmitting only true (high) signals

NMOS gates are like normally open switches that are good attransmitting only false (low) signals

19 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NAND gate

Therefore, NAND and NOR gates are used in CMOS design instead ofAND and OR gates

ba

output

true

false

=

NMOS

PMOS

20 R. Dick Introduction to Computer Engineering – EECS 203

Page 3: Administrative Stuff Introduction to Computer Engineering

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

Transistors

Basic device in NMOS and PMOS (CMOS) technologies

Can be used to construct any logic gate

21 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NMOS transistor

gate

silicon bulk (P)

drain (N)source (N) channel

oxide

22 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NMOS transistor

Metal, oxide, semiconductor (MOS)

Then it was polysilicon, oxide, semiconductorNow it is metal, hafnium-based low-k dielectric, semiconductor

P-type bulk silicon doped with positively charged ions

N-type diffusion regions doped with negatively charged ions

Gate can be used to pull a few electrons near the oxide

Forms channel region, conduction from source to drain starts

23 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

CMOS

NMOS turns on when the gate is high

PMOS just like NMOS, with N and P regions swapped

PMOS turns on when the gate is low

NMOS good at conducting low (0s)

PMOS good at conducting high (1s)

Use NMOS and PMOS transistors together to build circuits

Complementary metal oxide silicon (CMOS)

24 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

CMOS NAND gate

VSS

VDD

A B

Z

PMOS

NMOS

VSS

VDD

A B

Z

VSS

VDD

A B

Z

pull−up network

pull−down network

25 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

CMOS NAND gate layout

26 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

CMOS inverter operation

VDD

VSS

A=0

B=1

A B

VDD

VSS

A B

VDD

VSS

A=1

B=0A B

VDD

VSS

A B

VDD

VSS

A B

A=?

B=?

VDD

VSS

A B

27 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NAND operation

VSS

VDD

A B

Z

Z=1

B=0A=0

VSS

VDD

A B

Z

B=1

VSS

VDD

A B

Z

Z=1

A=0

blockedVSS

VDD

A B

Z

A=1

VSS

VDD

A B

Z

Z=1

B=0

blocked

VSS

VDD

A B

Z

Z=0

B=1

A=1

VSS

VDD

A B

Z

VSS

VDD

A B

Z

28 R. Dick Introduction to Computer Engineering – EECS 203

Page 4: Administrative Stuff Introduction to Computer Engineering

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NOR operation

VSS

VDD

A B

Z

Z=1

B=0

A=0

VSS

VDD

A B

Z

B=1Z=0

VSS

VDD

A B

Z

blocked

A=0

VSS

VDD

A B

Z

A=1

Z=0

VSS

VDD

A B

Z

B=0

blocked

VSS

VDD

A B

Z

A=1 B=1Z=0

VSS

VDD

A B

Z

VSS

VDD

A B

Z

29 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NMOS/PMOS transistors for AND/OR

Recall that NMOS transmits low values easily. . .

. . . transmits high values poorly

PMOS transmits high values easily. . .

. . . transmits low values poorly

This is due to the effect of the transistors’ threshold definitions

31 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NMOS/PMOS transistors for AND/OR

VT , or threshold voltage, is commonly 0.7 V

NMOS conducts when VGS > VT

PMOS conducts when VGS < −VT

What happens if an NMOS transistor’s source is high?

Or a PMOS transistor’s source is low?

Alternatively, if one states that VTN = 0.7 V and VTP = −0.7 Vthen NMOS conducts when VGS > VTN and PMOS conductswhen VGS < VTP

32 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NMOS transistor

gate

silicon bulk (P)

drain (N)source (N) channel

oxide

33 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NMOS/PMOS transistors for AND/OR

If an NMOS transistor’s input were VDD (high), for VGS > VTN ,the gate would require a higher voltage than VDD

If an PMOS transistor’s input were VSS (low), for VGS < VTP ,the gate would require a lower voltage than VSS

34 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

NAND/NOR easy to build in CMOS

VSS

VDD

A B

Z

Z=1

B=0A=0

35 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

AND/OR requires more area, power, time

36 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

CMOS transmission gates (switches)

NMOS is good at transmitting 0s

Bad at transmitting 1s

PMOS is good at transmitting 1s

Bad at transmitting 0s

To build a switch, use both: CMOS

38 R. Dick Introduction to Computer Engineering – EECS 203

Page 5: Administrative Stuff Introduction to Computer Engineering

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

CMOS transmission gate (TG)

C

A

C

B

39 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

Other TG diagram

40 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

What can we build with TGs?

Anything. . . try some examples.

41 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

AND and OR are harder than NAND and NORTransmission gates

Computer geek culture reference

http://slashdot.org/

http://www.python.org/

42 R. Dick Introduction to Computer Engineering – EECS 203

Administrative StuffReview

Switch ModelsTransistors and CMOS Design

Homework

Reading assignment

M. Morris Mano and Charles R. Kime. Logic and Computer

Design Fundamentals. Prentice-Hall, NJ, fourth edition, 2008

Sections 2.3–2.5

44 R. Dick Introduction to Computer Engineering – EECS 203