
|
[si-list]
||
[Date Prev]
[04-2006 Date Index]
[Date Next]
||
[Thread Prev]
[04-2006 Thread Index]
[Thread Next]
[SI-LIST] Re: Getting Hspice to accept numbers with mantissa' s larger than 8 characters
- From: "Buchs, Kevin J." <buchs.kevin@xxxxxxxx>
- To: "Zabinski, Patrick J." <zabinski.patrick@xxxxxxxx>, thamiral@xxxxxxxxx
- Date: Thu, 6 Apr 2006 08:31:34 -0500
Here is a demonstration that shows the double precision nature of
parameters. Note, if you want post output, you should not use post=2
(ASCII) because that will not work. Use binary, post=1. The print output
works fine.
.option numdgt=10 post=1 probe post_version=2001
.param rvalue1=1.000000001
va a 0 1.0
r1 a 0 'rvalue1'
r2 a 0 1.0
.param rvaluea2=1.0
.param rvalueb2=1E-12
.param rvalue2='rvaluea2+rvalueb2'
r3 a 0 'rvalue2'
.print i1(r1) i1(r2) i1(r3)
.probe i1(r1) i1(r2) i1(r3)
.tran 1ps 1ps
.end
You can use this command on Linux to dump the double floats out of the
results file and see that they are truly doubles. A plotting program such
as cosmoscope can read this.
> od -j 476 -t fD dbl_precision.tr0
0000734 0.000000000000000e+00 9.999999989999999e-01
0000754 1.000000000000000e+00 9.999999999989999e-01
0000774 9.999999989999999e-01 1.000000000000000e+00
0001014 9.999999999989999e-01 1.250000000000000e-13
0001034 9.999999989999999e-01 1.000000000000000e+00
0001054 9.999999999989999e-01 9.999999989999999e-01
0001074 1.000000000000000e+00 9.999999999989999e-01
0001114 2.500000000000000e-13 9.999999989999999e-01
0001134 1.000000000000000e+00 9.999999999989999e-01
0001154 9.999999989999999e-01 1.000000000000000e+00
0001174 9.999999999989999e-01 5.000000000000000e-13
0001214 9.999999989999999e-01 1.000000000000000e+00
0001234 9.999999999989999e-01 9.999999989999999e-01
0001254 1.000000000000000e+00 9.999999999989999e-01
0001274 7.500000000000000e-13 9.999999989999999e-01
0001314 1.000000000000000e+00 9.999999999989999e-01
0001334 9.999999989999999e-01 1.000000000000000e+00
0001354 9.999999999989999e-01 1.000000000000000e-12
0001374 9.999999989999999e-01 1.000000000000000e+00
0001414 9.999999999989999e-01 9.999999989999999e-01
0001434 1.000000000000000e+00 9.999999999989999e-01
0001454 1.000000015047466e+30 1.699585821693888e-321
Kevin Buchs Mayo Clinic 200 1st St. SW Rochester, MN 55901
buchs.kevin@xxxxxxxx 507-538-5459 http://www.mayo.edu/sppdg
------------------------------------------------------------------
To unsubscribe from si-list:
si-list-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field
or to administer your membership from a web page, go to:
http://www.freelists.org/webpage/si-list
For help:
si-list-request@xxxxxxxxxxxxx with 'help' in the Subject field
List FAQ wiki page is located at:
http://si-list.org/wiki/wiki.pl?Si-List_FAQ
List technical documents are available at:
http://www.si-list.org
List archives are viewable at:
http://www.freelists.org/archives/si-list
or at our remote archives:
http://groups.yahoo.com/group/si-list/messages
Old (prior to June 6, 2001) list archives are viewable at:
http://www.qsl.net/wb6tpu
|

|