Latest from Test & Measurement

ID 319909889 © Media Whalestock | Dreamstime.com
Needles on automatic test equipment
27253616 © Nomisg | dreamstime.com
dreamstime_nomisg_27253616_promo
Cabe Atwell and Dreamstime_psstockfoto_45092862
dreamstime_psstockfoto_45092862
Dreamstime_svetlanadiacenco_325233820 and LEM
dreamstime_svetlanadiacenco_325233820_promo
ID 322271709 © Cherezoff | Dreamstime.com
roboticarm_dreamstime_l_322271709
Herbert James Winterstern (movie poster)
promo1920x1080
ID 77960135 © Zorandim | Dreamstime.com
promo_id_77960135__zorandim__dreamstime

Spice Simulates Custom Random Distributions for Monte Carlo Analysis (.PDF Download)

Feb. 5, 2019
Spice Simulates Custom Random Distributions for Monte Carlo Analysis (.PDF Download)

Not all Spice versions perform Monte Carlo simulations. Even those that do may only have a small number of available distributions, much less custom ones. LTSpice, for example, has built-in random distributions limited to Uniform and Gaussian (defined by sigma, but no specified limit). Unfortunately, this excludes many real-world distributions such as Gaussian (with maximums of 2-sigma, 3-sigma, etc.), bimodal, triangular, and U-shaped for example. A review of web reference shows few solutions beyond the available functions.

However, using straightforward statistical theory, you can create a random process of any distribution listed above. Even histograms from manufacturers’ datasheets or your own lab measurements are easily simulated. What are the minimum requirements? A calculation tool having a uniform random-number generator and a lookup table function. We’ll apply the method here using Excel and Spice.

This statistical/simulation adventure was both fun and insightful. The nuts and bolts of creating a circuit simulation developed an intuitive understanding beyond the abstract statistical theories.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!