Monte Carlo simulaition with Tspice

  • Thread starter Thread starter IanTrout
  • Start date Start date
  • Tags Tags
    Monte carlo
Click For Summary
SUMMARY

The discussion focuses on executing a Monte Carlo simulation using Tanner EDA's Tspice software, specifically altering the value of an inductor during the simulation. Ian Trout inquires about the proper command to change this parameter, revealing a lack of available references. A solution is provided, detailing the use of the command lines: .param p=agauss(3n, 0.3n, 1) and .tran/Powerup 0.01n 100n Sweep MONTE=40 to perform a Monte Carlo sweep in transient mode, effectively varying the inductor value.

PREREQUISITES
  • Familiarity with Monte Carlo simulations
  • Understanding of Tspice software
  • Basic knowledge of circuit simulation parameters
  • Experience with transient analysis in electronic simulations
NEXT STEPS
  • Research advanced Monte Carlo simulation techniques in Tspice
  • Explore the Tspice documentation for additional parameter variations
  • Learn about transient analysis in Tanner EDA
  • Investigate the use of .param commands for circuit simulations
USEFUL FOR

Electrical engineers, circuit designers, and students working with Tanner EDA who are interested in performing Monte Carlo simulations for circuit analysis.

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
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
Replies
67
Views
8K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 58 ·
2
Replies
58
Views
8K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
3K
Replies
1
Views
2K