21
1 CSE140L: Digital Systems Laboratory Introduction Instructor: Mohsen Imani Slides from: Dr. Pietro Mercati & Prof. Tajana Simunic Rosing

CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

1

CSE140L: Digital Systems Laboratory

Introduction

Instructor: Mohsen Imani

Slides from:Dr. Pietro Mercati & Prof. Tajana Simunic Rosing

Page 2: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

2

Welcome to CSE 140L!• Instructor: Mohsen Imani

• Email: [email protected];– please put “CSE140L” in the subject line

• Office Hours:– Mon 2-4pm CSE 2217

• Website: https://cseweb.ucsd.edu/classes/su17_2/cse140L-a/index.html– Homeworks and slides will be here

• TAs and Tutors– Office hours listed on the class website/Piazza

• Discussion sessions: TA will hold both lab and office hour• Grades: https://tritoned.ucsd.edu/• Announcements and online discussion: https://piazza.com SIGN UP SOON !!!

• Lab: TBD

Page 3: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

3

Course Description• Prerequisites:

– CSE 20 or Math 15A, and CSE 30.– CSE 140 must be taken concurrently

• Objective:– Introduce digital components and system design concepts through

hands-on experience in a lab• Grading:

– Class participation using iClicker: 5%– Homeworks (5): #1: 0%, #2,#3: 10% , #4, #5: 15%– Final: 45%

• Homeworks:– Can be solved individually or in teams of two.– Each homework solution should be checked-off with a

tutor or a TA before the end of the day on the due date– Detailed instructions will be provided on the homework

Page 4: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

4

Textbook and Recommended Readings• Recommended textbook:

– Contemporary Logic Design byR. Katz & G. Borriello

• Recommended textbook:– Digital Design by F. Vahid

• Lecture slides are derived from theslides designed for both books

Page 5: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

Demo Overview

5

Page 6: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

6

Outline• Transistors

– How they work– How to build basic gates out of transistors– How to evaluate delay

Page 7: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

7

Combinational circuit building blocks:Transistors, gates and timing

Page 8: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

The Scope of CSE140L• We start with Boolean algebra Y = A and B• End up with the design of a simple CPU

Nvidia Tegra 2 die photo

Page 9: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

9

Switches• Electronic switches are the basis of

binary digital circuits– Electrical terminology

• Voltage: Difference in electric potentialbetween two points

– Analogous to water pressure• Current: Flow of charged particles

– Analogous to water flow• Resistance: Tendency of wire to resist

current flow– Analogous to water pipe diameter

• V = I * R (Ohm’s Law)

4.5 A4.5 A

4.5 A

2 ohms

9V

0V 9V

+–

“Binary Digital” = all values are either 0 (low voltage) or 1 (high voltage)

Page 10: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

10

The CMOS Switches• CMOS circuit (Complementary – MOS)

– Consists of N and PMOS transistors– Both N and PMOS are similar to basic switches– Rp ~ 2 Rn => PMOS in series is much slower than NMOS

gate

source drainoxide

A positivevoltage here...

...attracts electrons here,turning the channel

between source and draininto aconductor.

(a)

IC package

IC

does notconduct

0

conducts

1gate

nMOS

does notconduct

1gate

pMOS

conducts

0

Silicon -- not quite a conductor or insulator:Semiconductor

1 = high voltage0 = low voltage

Page 11: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

VDD

A Y

GND

N1

P1

NOT

Y = A

A Y0 11 0

A Y

A P1 N1 Y

0

1

Logic gates: CMOS NOT Gate

Page 12: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

CMOS delay: resistance• Resistance:

– Function of:• resistivity r, thickness t : defined by technology• Width W, length L: defined by designer

– Approximate ON transistor with a resistor• R = r’ L/W• L is usually minimum; change only W

12

Source: Prof. Subhashish Mitra

gate

source drainoxide

A positivevoltage here...

...attracts electrons here,turning the channel

between source and draininto aconductor.

(a)

IC package

IC

Page 13: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

CMOS delay: capacitance & timing estimates• Capacitor

– Stores charge = (capacitance C; voltage V)

– Current: =• Timing estimate– = = ( / ) =• Delay: time to go from 50% to 50% of waveform

13

Source: Prof. Subhashish Mitra

gate

source drainoxide

A positivevoltage here...

...attracts electrons here,turning the channel

between source and draininto aconductor.

(a)

IC package

IC

Page 14: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

Charge/discharge in CMOS• Calculate on resistance• Calculate capacitance of the gates circuit is driving• Get RC delay & use it as an estimate of circuit delay

= ( 1 − − )• Rp ~ 2RN

14

Source: Prof. Subhashish Mitra

Page 15: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

A

B

Y

N2N1

P2 P1NAND

Y = AB

A B Y0 0 10 1 11 0 11 1 0

AB Y

A B P1 P2 N1 N2 Y

0 0

0 1

1 0

1 1

CMOS Two Input NAND GateVDD

GND

Page 16: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

A B P1 P2 N1 N2 Y

0 0

0 1

1 0

1 1

CMOS Two Input NOR Gate

a

0

0

1

1

b

0

1

0

1

NOR1

0

0

0

(a+b)’

ab

NOR

P1

P2

N1

b

y

a

a

GND

N2b

GND

Page 17: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

Rules for making gates

17

Page 18: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

Another way of making CMOS gates

18

Page 19: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

CMOS Example

19

Page 20: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

20

A CMOS design example• Implement F using CMOS: F=A*(B+C’)

Page 21: CSE140L: Digital Systems Laboratory Introductioncseweb.ucsd.edu/classes/su17_2/cse140L-a/lectures/CSE140L_Iman… · – Final: 45% • Homeworks: – Can be solved individually or

What we’ve covered thus far

• Delay estimates• Transistor design• Building basic gates from CMOS

21