370 likes | 547 Views
The Synthesis of Stochastic Logic for Nanoscale Computation. Marc Riedel. joint work with. Weikang Qian and John Backes. Circuits & Biology Lab , University of Minnesota. IWLS 2007 , San Diego May 31, 2007. Computing Beyond CMOS. Intense research into novel materials and devices:.
E N D
The Synthesis of Stochastic Logic for Nanoscale Computation Marc Riedel joint work with Weikang Qian and John Backes Circuits & Biology Lab, University of Minnesota IWLS 2007, San Diego May 31, 2007
Computing Beyond CMOS Intense research into novel materials and devices: Carbon Nanotubes… Biological Processes… Molecular Switches… IWLS 2007
c Computing Beyond CMOS Many technologies still in exploratory phase: ! IWLS 2007
Nanoscale Circuits Identify general traits that impinge upon logic synthesis: • Topological constraints. • Inherent randomness. • High defect rates. Features: • High density of bits. Challenges: carbon nanowire crossbar IWLS 2007
inputs outputs logic Circuit Modeling Model defects, variations, uncertainty, etc.: 0 0 1 1 0 Characterize probability of outcomes.
inputs outputs logic Circuit Modeling Functional description is Boolean:
inputs outputs Circuit Modeling Consider a probabilistic interpretation: logic stochasticlogic
inputs outputs Stochastic Logic Consider a probabilistic interpretation: p1 = Prob(one) 0 stochasticlogic 0,1,1,0,1,0,1,1,0,1,… 1 1,0,0,0,1,0,0,0,0,0,… 0 p2 = Prob(one) serial bit streams
inputs outputs Stochastic Logic Consider a probabilistic interpretation: 0 stochasticlogic 1 0
Stochastic Logic Consider a probabilistic interpretation: 0 1 p1 = Prob(one) 0 0 0 stochasticlogic 1 1 0 1 0 p2 = Prob(one) 0 0 0 parallel bit streams
Stochastic Logic Consider a probabilistic interpretation: 0 stochasticlogic 1 0 parallel bit streams
Stochastic Logic Interpret outputs according to fractional weighting: 0 stochasticlogic 1 0
Synthesis of Stochastic Logic Given a technology characterized by: • Circuit that computes a probability distribution corresponding to a logical specification. • High degree of structural parallelism. • Inherent randomness in logic/interconnects. Synthesize: Strategy: • Cast problem in terms of arithmetic operations. • Perform synthesis with binary moment diagrams. IWLS 2007
Probabilistic Bundles 0 1 x 0 X 0 1 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. IWLS 2007
= c P ( C ) = c P ( C ) = P ( A ) P ( B ) = + - P ( S ) P ( A ) [ 1 P ( S )] P ( B ) = a b = + - s a ( 1 s ) b Arithmetic Operations Multiplication (Scaled) Addition IWLS 2007
Nanowire Crossbar (idealized) IWLS 2007
Nanowire Crossbar (idealized) Randomized connections, yet nearly one-to-one. IWLS 2007
Multiplication Shuffled AND Takes the AND of randomly chosen pairs. IWLS 2007
Scaled Addition ¾ Bundleplexer Randomly selection of wires from different bundles, according to a fixed ratio.
Stochastic Logic { Shuffled ANDs,Bundleplexers A 0 { } A 1 B . . { . A n IWLS 2007
Stochastic Logic { Shuffled ANDs,Bundleplexers 1 { } 0 . . { . 1 IWLS 2007
Synthesis Strategy • From circuit, construct a data structure called a multiplicative binary moment diagram (*BMD). • Manipulate the *BMD into the right form. • Implement a stochastic circuit with Shuffled AND gates and Bundleplexors. IWLS 2007
f x x x x x x x x 2 x x x x = + + - 1 2 3 1 2 4 3 4 1 2 3 4 Arithmetic Functions IWLS 2007
f w f w f x = + L L R R f x x x x x x x x 2 x x x x = + + - 1 2 3 1 2 4 3 4 1 2 3 4 f f L R Construct *BMD See R. Bryant, “Verification of Arithmetic Circuits with BMDs,” 1995. IWLS 2007
f x x x x x x x x 2 x x x x = + + - 1 2 3 1 2 4 3 4 1 2 3 4 Split *BMD positive negative
X f x x x x x x x x = + + 1 2 3 1 2 4 3 4 P f x x x x x x x x 2 x x x x = + + - 1 2 3 1 2 4 3 4 1 2 3 4 Normalize positive
w w x x X BUX SAND X f f f f L L R R Implement Stochastic Logic IWLS 2007
Implement Stochastic Logic IWLS 2007
Discussion • Exploits both parallelism and randomness. • Obviates the need for post-fabrication configuration. • Measured tradeoff between degree of redundancyand accuracy of the computation. IWLS 2007
Research Theme: Probabilistic Computing Bacteria are genetically engineered to produce a drug that fights cancer. compound drug E. Coli (fixed quantity) IWLS 2007
Research Theme: Probabilistic Computing Bacteria invade cancerous tissue: cancerous tissue IWLS 2007
Research Theme: Probabilistic Computing Compound is injected. Bacteria produce the drug: cancerous tissue IWLS 2007
E. Coli Research Theme: Probabilistic Computing Needed: synthesis of probabilistic response in each bacterium. produce drug with Prob. 0.3 compound don’t produce drug with Prob. 0.7 See B. Fett, J. Bruck and M. Riedel, “Synthesizing Stochasticity in Biochemical Systems”, DAC 2007. IWLS 2007