Docsity

Digital Logic and Transistor Theory - Prof. Leona Mcmillan, Study notes of Computer Architecture and Organization

Partial preview of the text

Download Digital Logic and Transistor Theory - Prof. Leona Mcmillan and more Study notes Computer Architecture and Organization in PDF only on Docsity!

L09 – Transistors and Logic

10/2/

Transistors and Logic

A B

Comp 411

Box-o-Tricks

F = A xor B

The digital contract

Encoding bits with voltages

Processing bits with transistors

Gates

Large fanout gates

Truth-table SOP Realizations

Multiplexer Logic

Then wego home!

We’ll go over the Quiz on Wednesday

L09 – Transistors and Logic

10/2/

Where Are We?

Things we know so far -

1) Computers process information2) Information is measured in bits3) Data can be represented as groups of bits4) Computer instructions are encoded as bits5) Computer instructions are just data6) We, humans, don’t want to deal with bits…

So we invent ASSEMBLY Languageeven that is too low-level so we inventCOMPILERs, and they are too rigid so …

But, what PROCESSES all these bits?

L09 – Transistors and Logic

10/2/

Using Electromagnetic Phenomena

Things like:

voltages

phase

currents

frequency

For today let’s discuss using

voltages

to encode information.

Voltage pros:

easy generation, detectionvoltage changes can be very fastlots of engineering knowledge

Voltage cons:

easily affected by environmentDC connectivity required?R & C effects slow things down

L09 – Transistors and Logic

10/2/

Representing Information with Voltage

Representation of each point (x, y) on a B&W Picture:

0 volts:

BLACK

1 volt:

WHITE

0.37 volts:

37% Gray

etc.

Representation of a picture:

Scan points in some prescribedraster order… generate voltagewaveform

How much information

at each point?

L09 – Transistors and Logic

10/2/

Let’s build a system!

Copy

INV

Copy

INV

Copy

INV

Copy

INV

output

(In Theory)

(Reality)

input

L09 – Transistors and Logic

10/2/

Why Did Our System Fail?

Why doesn’t reality match theory?

1. COPY Operator doesn’t work right2. INVERSION Operator doesn’t work right3. Theory is imperfect4. Reality is imperfect5. Our system architecture stinks

ANSWER: all of the above!

Noise and inaccuracy are inevitable; we can’t reliablyreproduce infinite information-- we must

design our

system to tolerate some amount of error

if it is to

process information reliably

L09 – Transistors and Logic

10/2/

The Digital Panacea ...

Why DIGITAL?

… because it keeps the contracts SIMPLE!

The price we pay for this robustness?

All the information that we transfer

between components is only 1 crummy bit!

But, in exchange, we get a guarantee

of a reliable system.

0 or 1

L09 – Transistors and Logic

10/2/

The Digital Abstraction

Real World

“Ideal”

Abstract World

Volts orElectrons orErgs or Gallons

Bits

Keep in mind,

the world is not digital, we engineer it to behave that way

We must use real physical phenomena to implement digital designs!

Noise

Manufacturing

Variations

L09 – Transistors and Logic

10/2/

A Combinational Digital System

A system of interconnected elements iscombinational if

each circuit element is combinational

every input is connected to exactly one outputor directly a source of 0’s or 1’s

the circuit contains no directed cycles

But, in order to realize digital processingelements we have one more requirement!

No feedback (yet!)

L09 – Transistors and Logic

10/2/

Noise Margins

Key idea:Don’t allow “0” to be mistaken for a “1” or vice versa

Use the same “uniform representation convention”, for every

component in our digital system

To implement devices with high reliability, we outlaw“close calls” via a representation convention whichforbids a range of voltages between “0” and “1”.

volts

Forbidden Zone

Valid

Valid

Invalid

CONSEQUENCE:

Notion of “VALID” and “INVALID” logic levels

Min Voltage

Max Voltage

L09 – Transistors and Logic

10/2/

AND

Digital Processing Elements

Some digital processing elements occur so frequently

that we give them special names and symbols

A

Y

A

B

Y

OR

A

B

Y

A

Y

A

B

Y

XOR

buffer

inverter

In honor of the richestman in the world we willhenceforth refer todigital processingelements as “GATES”

L09 – Transistors and Logic

10/2/

From What Do We Make Digital Devices?

Recall our common threadfrom Lecture 2…

A controllable switch is acommon link of all computingtechnologies

How do you control voltageswith a switch?

By creating and openingpaths between higher andlower potentials

Load

This symbolindicates a“low” or groundpotential

This symbolindicates a “high”potential, or thevoltage of thepower supply

L09 – Transistors and Logic

10/2/

P-Channel Field-Effect Transistors (PFETs)

D
G
S
D
G
S
V

GS

V

DS

Operating regions:

cut-off:

V

GS

> V

TH

linear:

V

GS

V

TH

V

DS

> V

Dsat

saturation:

V

GS

V

TH

V

DS

V

Dsat

S
D

V

GS

  • V

TH

–0.8V

S
D
S
D
-I

DS

-V

DS

-V

GS

linear

saturation

When the gatevoltage is low,the switchcloses. Goodat pullingthings “high”.

L09 – Transistors and Logic

10/2/

Finally… Using Transistors to

Build Logic Gates!

V

DD

V

IN

V

OUT

pullup

: make this connection

when V

IN

is near 0 so that V

OUT

= V

DD

Logic Gate recipe:

pulldown

: make this connection

when V

IN

is near V

DD

so that V

OUT

We’ll usePFETs here

and, NFETshere