Docsity

Digital Abstraction - Computation Structures - Lecture Slides, Slides of Computer Fundamentals

Toggle sidebar
bg1
L02 - Digital Abstraction 1
6.004 – Spring 2009 2/5/09
The Digital Abstraction
Handouts: Lecture Slides
1. Making bits concrete
2. What makes a good bit
3. Getting bits under contract
modified 1/30/09 11:46 L02 - Digital Abstraction 2
6.004 – Spring 2009 2/5/09
Concrete encoding of information
To this point we’ve discussed encoding information using
bits. But where do bits come from?
If we’re going to design a machine that manipulates
information, how should that information be physically
encoded?
What makes a good bit?
- cheap (we want a lot of them)
- stable (reliable, repeatable)
- ease of manipulation
(access, transform, combine, transmit, store)
He said to his friend, "If the British march
By land or sea from the town to-night,
Hang a lantern aloft in the belfry arch
Of the North Church tower as a signal light,--
One if by land, and two if by sea;
And I on the opposite shore will be,
Ready to ride and spread the alarm
Through every Middlesex village and farm,
For the country folk to be up and to arm."
L02 - Digital Abstraction 3
6.004 – Spring 2009 2/5/09
Substrates for computation
We can build upon almost any physical
phenomenon…
Wait!
Those last ones
might have potential... lanterns
polarization of a photon
dominos
engraved stone tablets
Billiard balls
E. Coli
L02 - Digital Abstraction 4
6.004 – Spring 2009 2/5/09
But, since we’re EE’s…
Stick with things we know about:
voltages phase
currents frequency
This semester we’ll use voltages to encode information. But the best choice
depends on the intended application...
Voltage pros:
easy generation, detection
lots of engineering knowledge
potentially low power in steady state
Voltage cons:
easily affected by environment
DC connectivity required?
R & C effects slow things down
zero
pf3
pf4
pf5

Partial preview of the text

Download Digital Abstraction - Computation Structures - Lecture Slides and more Slides Computer Fundamentals in PDF only on Docsity!

L02 - Digital Abstraction 1

2/5/

The Digital Abstraction

1. Making bits concrete2. What makes a good bit3. Getting bits under contractHandouts: Lecture Slides

modified 1/30/09 11:

6.004 – Spring 2009

2/5/

Concrete encoding of information

To this point we’ve discussed encoding information usingbits. But where do bits come from?If we’re going to design a machine that manipulatesinformation, how should that information be physicallyencoded? What makes a good bit?

  • cheap (we want a lot of them)- stable (reliable, repeatable)- ease of manipulation

(access, transform, combine, transmit, store)

He said to his friend, "If the British marchBy land or sea from the town to-night,Hang a lantern aloft in the belfry archOf the North Church tower as a signal light,-- One if by land, and two if by sea; And I on the opposite shore will be,Ready to ride and spread the alarmThrough every Middlesex village and farm,For the country folk to be up and to arm."

L02 - Digital Abstraction 3

2/5/

Substrates for computation

We can build upon almost any physical

phenomenon…

Wait!Those last onesmight have potential...

lanternsdominosengraved stone tabletsBilliard ballsE. Colipolarization of a photon

6.004 – Spring 2009

2/5/

But, since we’re EE’s…

Stick with things we know about:

voltages

phase

currents

frequency

This semester we’ll use voltages to encode information. But the best choicedepends on the intended application...

Voltage pros:

easy generation, detectionlots of engineering knowledgepotentially low power in steady state

Voltage cons:

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

zero

L02 - Digital Abstraction 5

2/5/

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?

6.004 – Spring 2009

2/5/

Information Processing = Computation

First let’s introduce some processing blocks:

v

Copy

v

INV

v

1-v

L02 - Digital Abstraction 7

2/5/

Why have processing blocks?

The goal of modular design:What does that mean anyway:

Rules simple enough for a 6-3 to follow…

Understanding BEHAVIOR

without knowing IMPLEMENTATION

Predictable composition of functions

Tinker-toy assembly

Guaranteed behavior,

under REAL WORLD circumstances

Abstraction

6.004 – Spring 2009

2/5/

Let’s build a system!

Copy

INV

Copy

INV

Copy

INV

Copy

INV

output

(In Theory)

(Reality)

input

Figure by MIT OpenCourseWare.

L02 - Digital Abstraction 13

2/5/

Using Voltages ā€œDigitallyā€

^

Key idea: don’t allow ā€œ0ā€ to be mistaken for a ā€œ1ā€ or vice versa

^

Use the same ā€œuniform representation conventionā€ for

every

component and wire in our digital system

^

To implement devices with high reliability, we outlaw ā€œclose callsā€ via arepresentation convention which forbids a range of voltages betweenā€œ0ā€ and ā€œ1ā€. CONSEQUENCE:

Notion of ā€œVALIDā€ and ā€œINVALIDā€ logic levels

volts

Valid

Valid

Forbidden Zone

Invalid

6.004 – Spring 2009

2/5/

A Digital Processing Element

Static discipline

Output a ā€œ1ā€ if atleast 2 out of 3 ofmy inputs are a ā€œ1ā€. Otherwise, output ā€œ0ā€.

I will generate a valid output in no more than

2 minutes after seeing valid inputs

input Ainput Binput C

output Y

A combinational device is a circuit element that has

^

one or more digital

inputs

^

one or more digital

outputs

^

a

functional specification

that details the value of each

output for every possible combination of valid input values

^

a

timing specification

consisting (at minimum) of an upper

bound t

pd

on the required time for the device to compute

the specified output values from an arbitrary set of stable,valid input values

L02 - Digital Abstraction 15

2/5/

A Combinational Digital System

A set of interconnected elements is a

combinational device if

^

each circuit element is combinational

^

every input is connected to exactly one outputor to some vast supply of constant 0’s and 1’s

^

the circuit contains no directed cycles

Why is this true?

Given an acyclic circuit meeting the above

constraints, we can derive functional and timingspecs for the input/output behavior from thespecs of its components!

We’ll see lots of examples soon. But first, we need to

build some combinational devices to work with…

6.004 – Spring 2009

2/5/

Wires: theory vs. practice

V

in

Vout

(voltage close to boundary

with forbidden zone)

(voltage in forbidden zone:Oops, not a valid voltage!)

Does a wire obey the static discipline?

Noise: changes voltage…

Questions to ask ourselves:

In digital systems, where does noise come from?How big an effect are we talking about?

V

Vinin

L02 - Digital Abstraction 17

6.004 – Spring 2009

2/5/

Power Supply Noise

+-

Integrated circuit

R’s and C’s from Aluminum

wiring layers

Current loads from on-

chip devices

L’s from chip leads 

V from:

  • •

IR drop

(between gates: 30mV, within module: 50mV, across chip: 350mV)

  • •

L(dI/dt) drop

(use extra pins and bypass caps to keep within 250mV)

  • •

LC ringing triggered by current ā€œstepsā€

Power supply

L02 - Digital Abstraction 18

6.004 – Spring 2009

2/5/

Crosstalk

C

C C

O

V

A V

B

A B

If node B is driven

A

V

A

C

O

C

B

V
C
C
C
V

This situation frequently happens on integrated circuits where thereare many overlapping wiring layers. In a modern integrated circuit

V

A

might be 2.5V, C

O

= 20fF and C

C

= 10fF

V

B

= 0.83V! Designers

often try to avoid these really bad cases by careful routing of signals,but some crosstalk is unavoidable.

L02 - Digital Abstraction 19

6.004 – Spring 2009

2/5/

Sequential Interference

V from energy storage left over from earlier signaling on the wire: • •^

transmission line discontinuities(reflections off of impedance mismatches and terminations)

[Dally]Fig. 6-

charge storage in RC circuit (narrow pulses are lost due toincomplete transitions)

[Dally]Fig. 6-19 [Dally]Fig. 6-

RLC ringing

(triggered by voltage ā€œstepsā€)

Fix: slower operation, limitingvoltage swings and slew rates

L02 - Digital Abstraction 20

6.004 – Spring 2009

2/5/

Needed: Noise Margins!

V

in

Vout

(marginally valid)

(invalid!)

Does a wire obey the static discipline?

No!

A combinational device must restore marginally valid signals. It

must accept marginal inputs and provide unquestionable outputs (i.e.,to leave room for noise).

volts

Forbidden Zone

Validā€œ0ā€

Validā€œ1ā€

V

il

V

ol

V

ih

V

oh

VALID INPUT REPRESENTATIONSVALID OUTPUT REPRESENTATIONS

NOISE MARGINS

That’s what the small print

was about!

Noise

z^0

,t

1

R

=Zo(1+T

ε)

ε/

l^

tw

2t

1

2t

1

tw

tw

V=

8

10n

10p

210

(^2) 1.5 1

1

2

3 4

5 6

7

8

9 10 11121314 151617 18 19

1

2

3 4

5 6

7

8

9 10 11121314 151617 18 19

0.5^2 1.5^1 0.

1

0 1

1

1 1

1

1 1

1

0 0

0

0

0

0 0

0

0

(A)(B) (C)

A^

4/

4/

1B

B^

C

1C

500 fF

Figure

s^

by MIT OpenCourseWare.