summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/Monte_Carlo/MonteCarlo.sp
diff options
context:
space:
mode:
authorrahulp132020-03-03 05:31:58 +0530
committerrahulp132020-03-03 05:31:58 +0530
commitdfc268e0863c913a1b8726cd54eea3b40caf7c67 (patch)
tree1cd82634684da5ae86b558d44756189e080545d4 /Windows/spice/examples/Monte_Carlo/MonteCarlo.sp
parentfd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff)
downloadeSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/examples/Monte_Carlo/MonteCarlo.sp')
-rw-r--r--Windows/spice/examples/Monte_Carlo/MonteCarlo.sp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Windows/spice/examples/Monte_Carlo/MonteCarlo.sp b/Windows/spice/examples/Monte_Carlo/MonteCarlo.sp
index 608dc4cf..e079893f 100644
--- a/Windows/spice/examples/Monte_Carlo/MonteCarlo.sp
+++ b/Windows/spice/examples/Monte_Carlo/MonteCarlo.sp
@@ -15,9 +15,9 @@ R2 0 OUT 141
let run = 0
set curplot=new $ create a new plot
set scratch=$curplot $ store its name to 'scratch'
- setplot $scratch $ make 'scratch' the active plot
+ setplot $scratch $ make 'scratch' the active plot
let bwh=unitvec(mc_runs) $ create a vector in plot 'scratch' to store bandwidth data
-
+
* define distributions for random numbers:
* unif: uniform distribution, deviation relativ to nominal value
* aunif: uniform distribution, deviation absolut
@@ -47,19 +47,19 @@ R2 0 OUT 141
alter c3 = limit(250e-12, 25e-12)
*
ac oct 100 250K 10Meg
-*
+*
* measure bandwidth at -10 dB
meas ac bw trig vdb(out) val=-10 rise=1 targ vdb(out) val=-10 fall=1
-*
- set run ="$&run" $ create a variable from the vector
+*
+ set run = $&run $ create a variable from the vector
set dt = $curplot $ store the current plot to dt
setplot $scratch $ make 'scratch' the active plot
let vout{$run}={$dt}.v(out) $ store the output vector to plot 'scratch'
- let bwh[run]={$dt}.bw $ store bw to vector bwh in plot 'scratch'
+ let bwh[run]={$dt}.bw $ store bw to vector bwh in plot 'scratch'
setplot $dt $ go back to the previous plot
- let run = run + 1
+ let run = run + 1
end $ loop ends here
-*
+*
plot db({$scratch}.allv)
echo
print {$scratch}.bwh