Dear Andrew,
I did use the first method.
The montecarlo simulation did work but the expression was not evaluated.
I have pasted the spectre output log file as below.
If you could have a look at it and tell me the issue it will be greatly helpful.
I created the .artilinit file in ~/ ( i.e my home folder) . I have kept mc_itr=1 ( MC iteration =1 only for quick check)
Cadence (R) Virtuoso (R) Spectre (R) Circuit Simulator
Version 10.1.1.200.isr13 32bit -- 15 Aug 2011
Copyright (C) 1989-2010 Cadence Design Systems, Inc. All rights reserved worldwide. Cadence, Virtuoso and Spectre are registered trademarks of Cadence Design Systems, Inc. All others are the property of their respective holders.
Protected by U.S. Patents:
5,610,847; 5,790,436; 5,812,431; 5,859,785; 5,949,992; 5,987,238;
6,088,523; 6,101,323; 6,151,698; 6,181,754; 6,260,176; 6,278,964;
6,349,272; 6,374,390; 6,493,849; 6,504,885; 6,618,837; 6,636,839;
6,778,025; 6,832,358; 6,851,097; 6,928,626; 7,024,652; 7,035,782;
7,085,700; 7,143,021; 7,493,240; 7,571,401.
Includes RSA BSAFE(R) Cryptographic or Security Protocol Software from RSA Security, Inc.
User: manas Host: localhost HostID: 7F0100 PID: 10850
Memory available: 29.8343 GB physical: 33.5990 GB
CPU Type: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
Processor PhysicalID CoreID Frequency
0 0 0 2400.1
1 1 0 2400.1
2 0 1 2400.1
3 1 1 2400.1
4 0 9 2400.1
5 1 9 2400.1
6 0 10 2400.1
7 1 10 2400.1
8 0 0 2400.1
9 1 0 2400.1
10 0 1 2400.1
11 1 1 2400.1
12 0 9 2400.1
13 1 9 2400.1
14 0 10 2400.1
15 1 10 2400.1
Simulating `input.scs' on localhost at 10:10:56 PM, Thur Dec 20, 2012 (process id: 10850).
Command line:
/srv/install//cadence/mmsim10/tools/spectre/bin/32bit/spectre -env \
artist5.1.0 +escchars +log ../psf/spectre.out -format psfbin \
-raw ../psf +lqtimeout 900 -maxw 5 -maxn 5 input.scs
Loading /srv/install/cadence/mmsim10/tools.lnx86/cmi/lib/5.0/libinfineon_sh.so ...
Loading /srv/install/cadence/mmsim10/tools.lnx86/cmi/lib/5.0/libphilips_sh.so ...
Loading /srv/install/cadence/mmsim10/tools.lnx86/cmi/lib/5.0/libsparam_sh.so ...
Loading /srv/install/cadence/mmsim10/tools.lnx86/cmi/lib/5.0/libstmodels_sh.so ...
WARNING (SFE-30): "input.scs" 57: C12: `mis_flag' is not a valid parameter for an instance of `momcaps_asy_mm'. Ignored.
WARNING (SFE-30): "input.scs" 59: C11: `mis_flag' is not a valid parameter for an instance of `momcaps_asy_mm'. Ignored.
WARNING (SFE-30): "input.scs" 61: C10: `mis_flag' is not a valid parameter for an instance of `momcaps_asy_mm'. Ignored.
WARNING (SFE-30): "input.scs" 63: C13: `mis_flag' is not a valid parameter for an instance of `momcaps_asy_mm'. Ignored.
WARNING (SFE-30): "input.scs" 65: R19: `mis_flag' is not a valid parameter for an instance of `rnhr1000_mml130e'. Ignored.
Further occurrences of this warning will be suppressed.
..................................................................................
......................................................................................
.................................................................................
Time for Elaboration: CPU = 54.992 ms, elapsed = 54.9459 ms.
Time accumulated: CPU = 183.971 ms, elapsed = 457.264 ms.
Peak resident memory used = 41.5 Mbytes.
Time for EDB Visiting: CPU = 1.999 ms, elapsed = 2.37298 ms.
Time accumulated: CPU = 185.97 ms, elapsed = 459.799 ms.
Peak resident memory used = 42 Mbytes.
Warning from spectre during initial setup.
WARNING (CMI-2424): NM3: `Acde' = 300e-03 is unusually small.
WARNING (CMI-2424): NM4: `Acde' = 300e-03 is unusually small.
WARNING (CMI-2424): NM2: `Acde' = 300e-03 is unusually small.
WARNING (CMI-2424): NM0: `Acde' = 300e-03 is unusually small.
WARNING (CMI-2424): NM5: `Acde' = 300e-03 is unusually small.
Further occurrences of this warning will be suppressed.
Circuit inventory:
nodes 22
bsim3v3 8
capacitor 32
port 4
quantity 9
res_va 12
resistor 4
vcvs 4
vsource 2
Notice from spectre.
22 warnings suppressed.
Time for parsing: CPU = 1.3478 s, elapsed = 1.41341 s.
Time accumulated: CPU = 1.53377 s, elapsed = 1.87336 s.
Peak resident memory used = 55 Mbytes.
************************************************
Monte Carlo Analysis `mc1': iteration = (1 -> 1)
************************************************
awaiting artil process initialization ....
Important parameter values:
seed = 1
numbins = 1
sampling = standard
variations = all
firstrun = 1
numruns = 1
donominal = yes
Notice from spectre during Monte Carlo analysis `mc1'.
Out of 4 defined mismatch parameters, 2 is not referenced. There are 16 mismatch instances.
**** Performing nominal run for `mc1'
***********************************************
Transient Analysis `tran': time = (0 s -> 1 us)
***********************************************
Important parameter values:
start = 0 s
outputstart = 0 s
stop = 1 us
step = 1 ns
maxstep = 5 ps
ic = all
useprevic = no
skipdc = no
reltol = 1e-03
abstol(V) = 100 uV
abstol(I) = 10 fA
temp = 27 C
tnom = 27 C
tempeffects = all
errpreset = moderate
method = euler
lteratio = 3.5
relref = sigglobal
cmin = 0 F
gmin = 1 pS
tran: time = 25 ns (2.5 %), step = 684.6 fs (68.5 u%)
tran: time = 75 ns (7.5 %), step = 2.319 ps (232 u%)
tran: time = 125 ns (12.5 %), step = 2.342 ps (234 u%)
tran: time = 175 ns (17.5 %), step = 973.7 fs (97.4 u%)
tran: time = 225 ns (22.5 %), step = 1.496 ps (150 u%)
tran: time = 275 ns (27.5 %), step = 1.442 ps (144 u%)
tran: time = 325 ns (32.5 %), step = 549.8 fs (55 u%)
tran: time = 375 ns (37.5 %), step = 549.2 fs (54.9 u%)
tran: time = 425 ns (42.5 %), step = 548.8 fs (54.9 u%)
tran: time = 475 ns (47.5 %), step = 548.4 fs (54.8 u%)
tran: time = 525 ns (52.5 %), step = 548.2 fs (54.8 u%)
tran: time = 575 ns (57.5 %), step = 548 fs (54.8 u%)
tran: time = 625 ns (62.5 %), step = 625 fs (62.5 u%)
tran: time = 675 ns (67.5 %), step = 625 fs (62.5 u%)
tran: time = 725 ns (72.5 %), step = 625 fs (62.5 u%)
tran: time = 775 ns (77.5 %), step = 625 fs (62.5 u%)
tran: time = 825 ns (82.5 %), step = 625 fs (62.5 u%)
tran: time = 875 ns (87.5 %), step = 625 fs (62.5 u%)
tran: time = 925 ns (92.5 %), step = 625 fs (62.5 u%)
tran: time = 975 ns (97.5 %), step = 625 fs (62.5 u%)
Number of accepted tran steps = 419032
Initial condition solution time: CPU = 0 s, elapsed = 936.985 us.
Intrinsic tran analysis time: CPU = 63.3824 s, elapsed = 63.6358 s.
Total time required for tran analysis `tran': CPU = 63.3854 s (1m 3.4s), elapsed = 63.6382 s (1m 3.6s).
Time accumulated: CPU = 64.9211 s (1m 4.9s), elapsed = 66.522 s (1m 6.5s).
Peak resident memory used = 56.1 Mbytes.
finalTimeOP: writing operating point information to rawfile.
******************
DC Analysis `dcOp'
******************
Important parameter values:
reltol = 1e-03
abstol(V) = 100 uV
abstol(I) = 10 fA
temp = 27 C
tnom = 27 C
tempeffects = all
gmindc = 1 pS
Convergence achieved in 3 iterations.
Total time required for dc analysis `dcOp': CPU = 3.998 ms, elapsed = 3.27301 ms.
Time accumulated: CPU = 64.9321 s (1m 4.9s), elapsed = 66.714 s (1m 6.7s).
Peak resident memory used = 56.4 Mbytes.
dcOpInfo: writing operating point information to rawfile.
modelParameter: writing model parameter values to rawfile.
element: writing instance parameter values to rawfile.
outputParameter: writing output parameter values to rawfile.
designParamVals: writing netlist parameters to rawfile.
primitives: writing primitives to rawfile.
subckts: writing subcircuits to rawfile.
Export:
RISE_TIME = 4.65336e-10
Successfully evaluated export statements (based on return code).
**** Performing monte carlo loop for `mc1'
Warning from spectre during Monte Carlo analysis `mc1'.
WARNING (CMI-2424): NM3: `Acde' = 300e-03 is unusually small.
WARNING (CMI-2424): NM4: `Acde' = 300e-03 is unusually small.
WARNING (CMI-2424): NM2: `Acde' = 300e-03 is unusually small.
WARNING (CMI-2424): NM0: `Acde' = 300e-03 is unusually small.
WARNING (CMI-2424): NM5: `Acde' = 300e-03 is unusually small.
Further occurrences of this warning will be suppressed.
***************************************************
Transient Analysis `mc1_tran': time = (0 s -> 1 us)
***************************************************
Important parameter values:
start = 0 s
outputstart = 0 s
stop = 1 us
step = 1 ns
maxstep = 5 ps
ic = all
useprevic = no
skipdc = no
reltol = 1e-03
abstol(V) = 100 uV
abstol(I) = 10 fA
temp = 27 C
tnom = 27 C
tempeffects = all
errpreset = moderate
method = euler
lteratio = 3.5
relref = sigglobal
cmin = 0 F
gmin = 1 pS
mc1_tran: time = 25 ns (2.5 %), step = 2.869 ps (287 u%)
mc1_tran: time = 75 ns (7.5 %), step = 2.704 ps (270 u%)
mc1_tran: time = 125 ns (12.5 %), step = 674 fs (67.4 u%)
mc1_tran: time = 175 ns (17.5 %), step = 815.3 fs (81.5 u%)
mc1_tran: time = 225 ns (22.5 %), step = 690.5 fs (69.1 u%)
mc1_tran: time = 275 ns (27.5 %), step = 1.167 ps (117 u%)
mc1_tran: time = 325 ns (32.5 %), step = 1.091 ps (109 u%)
mc1_tran: time = 375 ns (37.5 %), step = 1.036 ps (104 u%)
mc1_tran: time = 425 ns (42.5 %), step = 1.002 ps (100 u%)
mc1_tran: time = 475 ns (47.5 %), step = 942.9 fs (94.3 u%)
mc1_tran: time = 525 ns (52.5 %), step = 768.3 fs (76.8 u%)
mc1_tran: time = 575 ns (57.5 %), step = 715.1 fs (71.5 u%)
mc1_tran: time = 625 ns (62.5 %), step = 682.1 fs (68.2 u%)
mc1_tran: time = 675 ns (67.5 %), step = 661.4 fs (66.1 u%)
mc1_tran: time = 725 ns (72.5 %), step = 648 fs (64.8 u%)
mc1_tran: time = 775 ns (77.5 %), step = 639.2 fs (63.9 u%)
mc1_tran: time = 825 ns (82.5 %), step = 633.4 fs (63.3 u%)
mc1_tran: time = 875 ns (87.5 %), step = 629.8 fs (63 u%)
mc1_tran: time = 925 ns (92.5 %), step = 627.2 fs (62.7 u%)
mc1_tran: time = 975 ns (97.5 %), step = 625.7 fs (62.6 u%)
Number of accepted tran steps = 336439
Initial condition solution time: CPU = 0 s, elapsed = 602.007 us.
Intrinsic tran analysis time: CPU = 51.9141 s, elapsed = 52.0945 s.
Total time required for tran analysis `mc1_tran': CPU = 51.9311 s, elapsed = 52.1128 s.
Time accumulated: CPU = 116.953 s (1m 57.0s), elapsed = 122.503 s (2m 2.5s).
Peak resident memory used = 56.6 Mbytes.
Notice from spectre during transient analysis `mc1_tran', during Monte Carlo analysis `mc1'.
3 warnings suppressed.
mc1_finalTimeOP: writing operating point information to rawfile.
**********************
DC Analysis `mc1_dcOp'
**********************
Important parameter values:
reltol = 1e-03
abstol(V) = 100 uV
abstol(I) = 10 fA
temp = 27 C
tnom = 27 C
tempeffects = all
gmindc = 1 pS
Convergence achieved in 3 iterations.
Total time required for dc analysis `mc1_dcOp': CPU = 3 ms, elapsed = 3.30591 ms.
Time accumulated: CPU = 116.965 s (1m 57.0s), elapsed = 122.685 s (2m 2.7s).
Peak resident memory used = 56.8 Mbytes.
mc1_dcOpInfo: writing operating point information to rawfile.
mc1_modelParameter: writing model parameter values to rawfile.
mc1_element: writing instance parameter values to rawfile.
mc1_outputParameter: writing output parameter values to rawfile.
mc1_designParamVals: writing netlist parameters to rawfile.
mc1_primitives: writing primitives to rawfile.
mc1_subckts: writing subcircuits to rawfile.
Total time required for montecarlo analysis `mc1': CPU = 115.494 s (1m 55.5s), elapsed = 123.646 s (2m 3.6s).
Time accumulated: CPU = 117.029 s (1m 57.0s), elapsed = 125.52 s (2m 5.5s).
Peak resident memory used = 56.8 Mbytes.
Aggregate audit (10:13:01 PM, Thur Dec 20, 2012):
Time used: CPU = 117 s (1m 57.0s), elapsed = 126 s (2m 5.6s), util. = 93.2%.
Time spent in licensing: elapsed = 299 ms.
Peak memory used = 56.8 Mbytes.
Simulation started at: 10:10:56 PM, Thur Dec 20, 2012, ended at: 10:13:01 PM, Thur Dec 20, 2012, with elapsed time (wall clock): 126 s (2m 5.6s).
spectre completes with 0 errors, 45 warnings, and 3 notices.