Monte Carlo simulaition with Tspice

  • Thread starter Thread starter IanTrout
  • Start date Start date
  • Tags Tags
    Monte carlo
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 4K views
IanTrout
Messages
3
Reaction score
0
Hi,

I have a small problem with running a Monte Carlo simulation in an exercise I have.

We are using Tanner EDA to simulate our circuits, and we have to change the value on an inductor while running a Monte Carlo simulation.

Is there a way to do this? Whats the proper command to change that particular parameter?

Unfortunately, we don't really have any good references for this software, not from our instructor and not from the web...


-----EDIT-----
I didn't notice there way a separate forum for class work, sorry about that...

So its a question for the moderators, move this post or keep it here...
-----EDIT-----


Thanks in advance,
Ian Trout
 
Engineering news on Phys.org
IanTrout said:
Hi,

I have a small problem with running a Monte Carlo simulation in an exercise I have.

We are using Tanner EDA to simulate our circuits, and we have to change the value on an inductor while running a Monte Carlo simulation.

Is there a way to do this? Whats the proper command to change that particular parameter?

Unfortunately, we don't really have any good references for this software, not from our instructor and not from the web...


-----EDIT-----
I didn't notice there way a separate forum for class work, sorry about that...

So its a question for the moderators, move this post or keep it here...
-----EDIT-----


Thanks in advance,
Ian Trout

Your question is okay here for now. Does TSPICE at least have a step-plot option? Can you just step the values of inductor to obtain different simulation plots? Are you just varying the inductor, or do you want to do a Monte Carlo variation on multiple parts? If it's just the one component that varies, you don't really need a Monte Carlo feature...
 
Thanks for the reply.
I dug a little deeper into the Tspice documentation and found the missing link...

For future references, one needs to use the following lines:

Code:
.param p=agauss(3n, 0.3n, 1)
LL1 N_1 S2  L=p
.tran/Powerup 0.01n 100n Sweep MONTE=40


This example does a Monte Carlo sweep in transient mode, in each cycle it changes the parameter p that is assigned to the inductor value. One can add more parameters as needed.


Thanks,
Trout