1 stochastic logic beyond cmos... prof. mingjie lin

25
1 Stochastic Logic Beyond CMOS ... Prof. Mingjie Lin

Upload: aron-willis

Post on 27-Dec-2015

235 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

1

Stochastic Logic

Beyond CMOS ...

Prof. Mingjie Lin

Page 2: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

2

Computing Beyond CMOSComputing Beyond CMOS

Intense research into novel materials and devices:

Carbon Nanotubes…

Molecular Switches…

Biological Processes…

Page 3: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

3

Computing Beyond CMOSComputing Beyond CMOS

Many technologies still in exploratory phase:

b

a

XOR(a, b) !

Page 4: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

4

Nanoscale CircuitsNanoscale Circuits

• Topological constraints.• Inherent randomness.• High defect rates.

Features:

Challenges:

• High density of bits.

Identify general traits that impinge upon logic synthesis:

{

{

N Wires

M Wires

carbon nanowire crossbar

Page 5: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

5

Circuit Modeling Circuit Modeling

logic

0

1

0

0

1

Characterize probability of outcomes.

inputs outputs

Model defects, variations, uncertainty, etc.:

Page 6: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

6

Circuit Modeling Circuit Modeling

logic

),,( 11 mxxf a

),,( 12 mxxf a

),,( 1 mn xxf a

1x

2x

mx

Functional description is Boolean:

inputs outputs

Page 7: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

7

1x

2x

mx

Consider a probabilistic interpretation:

),,( 11 mxxp

),,( 12 mxxp

),,( 1 mn xxp

logicstochastic

logic

inputs outputs

Circuit Modeling Circuit Modeling

Page 8: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

8

stochasticlogic

Stochastic Logic Stochastic Logic

inputs outputs

0

1

0

0,1,1,0,1,0,1,1,0,1,…

1,0,0,0,1,0,0,0,0,0,…

p1 = Prob(one)

p2 = Prob(one)

serial bit streams

Consider a probabilistic interpretation:

Page 9: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

9

stochasticlogic

Stochastic Logic Stochastic Logic

inputs outputs

0

1

0 51

52

Consider a probabilistic interpretation:

Page 10: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

10

stochasticlogic

Stochastic Logic Stochastic Logic

0

1

0

01001

01000

p1 = Prob(one)

p2 = Prob(one)

parallel bit streams

Consider a probabilistic interpretation:

Page 11: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

11

stochasticlogic

Stochastic Logic Stochastic Logic

0

1

0

parallel bit streams

51

52

Consider a probabilistic interpretation:

Page 12: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

12

stochasticlogic

Stochastic Logic Stochastic Logic

Interpret outputs according to fractional weighting:

0

1

0

Page 13: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

13

Synthesis of Stochastic LogicSynthesis of Stochastic Logic

• Circuit that computes a probability distribution corresponding to a logical specification.

Given a technology characterized by:

Synthesize:

• High degree of structural parallelism.• Inherent randomness in logic/interconnects.

• Cast problem in terms of arithmetic operations.• Perform synthesis with binary moment diagrams.

Strategy:

Page 14: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

14

A real value x in [0, 1] is encoded as a stream of bits X.For each bit, the probability that it is one is: P(X=1) = x.

Probabilistic BundlesProbabilistic Bundles

01001

xX

Page 15: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

15

Arithmetic OperationsArithmetic Operations

AND

A

BC

A

BC

MUX

S

Multiplication (Scaled) Addition

ba

BPAP

CPc

)()(

)(

)

)1(

()](1[)()(

)(

bsas

BPSPAPSP

CPc

Page 16: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

16

When A is a high, a FET-like region causes high resistance between the VDD and A.

A

VDD

A{

{N Wires

M Wires

Nanowire Crossbar (Nanowire Crossbar (idealizedidealized))

Page 17: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

17

Nanowire Crossbar (Nanowire Crossbar (idealizedidealized))

{{N Wires

M Wires

Randomized connections,yet nearly one-to-one.

Page 18: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

18

a0

a1

a2

a3

VDD

b0

b1

b2

b3

a3b2

a0b1

a1b3

a2b0

Inversion Occurs a0 a1 a3 a2

VDD VDD

b3 b2 b0 b1

Shuffled ANDShuffled AND

Page 19: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

19

A1

A2

{}B

{

Takes the AND of randomly chosen pairs.Takes the AND of randomly chosen pairs.

MultiplicationMultiplication

Shuffled AND

Page 20: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

20

VDD

a0

a1

a2

a3

b0

b1

b2

b3

Densit

y of 1

/4

a0

a1

b1

a3

VDD

Densit

y of 3

/4

BundleplexingBundleplexing

Page 21: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

21

Scaled AdditionScaled Addition

a0

a1

a2

a3

b0

b1

b2

b3

a3

a2

b2

a1

Randomly selection of wires from different bundles, Randomly selection of wires from different bundles, according to a fixed ratio..

¾ Bundleplexer

Page 22: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

22

Stochastic LogicStochastic Logic

Shuffled ANDs,Bundleplexers

Shuffled ANDs,Bundleplexers

{{

A0

A1

.

.

.

{An

} B

Page 23: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

23

Stochastic LogicStochastic Logic

Shuffled ANDs,Bundleplexers

Shuffled ANDs,Bundleplexers

{{{

}...

1

0

1

5

2

Page 24: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

24

Lecture schedule

See Webpage:

www.eecs.ucf.edu/~mingjie/EEL4783

Page 25: 1 Stochastic Logic Beyond CMOS... Prof. Mingjie Lin

25

Final issues

• Come by my office hours (right after class)

• Any questions or concerns?