| Author |
Message |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
07 Sep 2004 7:12 How to get a fixed timesetp in hspice? |
|
|
|
hello all!
I need a fixed or approximate fixed timestep for .tran sim, who can tell me how to do?
|
|
| Back to top |
|
 |
frankon_o2
Joined: 07 Sep 2004 Posts: 8
|
07 Sep 2004 10:56 How to get a fixed timesetp in hspice? |
|
|
|
for example:
.tran 1u 20m
then 1uSec is the time step of transient simulation
the length of simulation is 20mSec
Is that what u want to know?
|
|
| Back to top |
|
 |
nathan
Joined: 17 May 2001 Posts: 307 Helped: 2
|
07 Sep 2004 12:55 Re: How to get a fixed timesetp in hspice? |
|
|
|
use delmax (maxdel ???)= ...
nathan
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
07 Sep 2004 13:06 Re: How to get a fixed timesetp in hspice? |
|
|
|
| frankon_o2 wrote: |
for example:
.tran 1u 20m
then 1uSec is the time step of transient simulation
the length of simulation is 20mSec
Is that what u want to know? |
hspice will change the timestep, not always 1u
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
07 Sep 2004 13:09 Re: How to get a fixed timesetp in hspice? |
|
|
|
| nathan wrote: |
use delmax (maxdel ???)= ...
nathan |
I use this opt:
.option post=2 accurate DELMAX=0.0u RMAX=1 DVDT=2 LVLTIM=2 FS=0.1 FT=0.1
it has a little benifit .
|
|
| Back to top |
|
 |
always@smart
Joined: 08 Feb 2002 Posts: 308 Helped: 7 Location: ASIA
|
07 Sep 2004 13:24 Re: How to get a fixed timesetp in hspice? |
|
|
|
hi ysz,
how do u know that Hspice will change the timestep? sorry i;m new in using hspice.
can you please also explained the command u have shown us?
.option post=2 accurate DELMAX=0.0u RMAX=1 DVDT=2 LVLTIM=2 FS=0.1 FT=0.1
thanks in advance
regards,
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
07 Sep 2004 13:44 How to get a fixed timesetp in hspice? |
|
|
|
Star-Hspice allows the selection of three dynamic timestep control algorithms:
n Iteration count
n Truncation
n DVDT
Each of these algorithms uses a dynamically changing timestep.
you can look it up in the manual.
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
07 Sep 2004 13:48 Re: How to get a fixed timesetp in hspice? |
|
|
|
this is my ugly wave, who can help me?
|
|
| Back to top |
|
 |
leo_o2
Joined: 03 Sep 2004 Posts: 330 Helped: 20
|
07 Sep 2004 14:10 Re: How to get a fixed timesetp in hspice? |
|
|
|
| Set DELMAX to a value smaller than the minimum pulse width. It might help. Avoid signals with steep edge.
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
08 Sep 2004 8:58 Re: How to get a fixed timesetp in hspice? |
|
|
|
| leo_o2 wrote: |
| Set DELMAX to a value smaller than the minimum pulse width. It might help. Avoid signals with steep edge. |
I already set DelMax=0u
|
|
| Back to top |
|
 |
leo_o2
Joined: 03 Sep 2004 Posts: 330 Helped: 20
|
09 Sep 2004 3:20 Re: How to get a fixed timesetp in hspice? |
|
|
|
| What is TStep that you used for .tran analysis?
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
09 Sep 2004 9:54 How to get a fixed timesetp in hspice? |
|
|
|
.option post=2 accurate DELMAX=0.0u RMAX=1 DVDT=2 LVLTIM=2 FS=0.1 FT=0.1
.tran 10u 120m
|
|
| Back to top |
|
 |
leo_o2
Joined: 03 Sep 2004 Posts: 330 Helped: 20
|
10 Sep 2004 3:10 Re: How to get a fixed timesetp in hspice? |
|
|
|
| Obviously, 10us for Tstep is too big. You must decrease it first in my opinion.
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
10 Sep 2004 5:27 How to get a fixed timesetp in hspice? |
|
|
|
| I have changed it to 1us, the wave is same, I'm so doubt.
|
|
| Back to top |
|
 |
leo_o2
Joined: 03 Sep 2004 Posts: 330 Helped: 20
|
10 Sep 2004 10:21 Re: How to get a fixed timesetp in hspice? |
|
|
|
| Try 10ns. However, it will be very slow.
|
|
| Back to top |
|
 |
joskin
Joined: 26 Mar 2004 Posts: 39
|
16 Sep 2004 6:10 Re: How to get a fixed timesetp in hspice? |
|
|
|
The main problem is your simultion time is too long(bigger than 100ms).
Because in (*.tr#)transient sim result file,the valid digital number that describe simulation time is fixed,the wave can't show detailed information when the time exceeds 100ms.
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
16 Sep 2004 9:12 Re: How to get a fixed timesetp in hspice? |
|
|
|
| joskin wrote: |
The main problem is your simultion time is too long(bigger than 100ms).
Because in (*.tr#)transient sim result file,the valid digital number that describe simulation time is fixed,the wave can't show detailed information when the time exceeds 100ms. |
really?
but if I can set a fixed timestep, I will set the timestep longer, so the number of steps are reduced, maybe I can have longer sim time. do you think so?
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
22 Sep 2004 8:28 How to get a fixed timesetp in hspice? |
|
|
|
| Nobody can help me?
|
|
| Back to top |
|
 |
Hughes
Joined: 10 Jun 2003 Posts: 712 Helped: 84
|
24 Sep 2004 5:56 Re: How to get a fixed timesetp in hspice? |
|
|
|
| ysz wrote: |
.option post=2 accurate DELMAX=0.0u RMAX=1 DVDT=2 LVLTIM=2 FS=0.1 FT=0.1
.tran 10u 120m |
Don't set DELMAX=0, set to a small value other than 0. For example:
.option delmax=0.1n
|
|
| Back to top |
|
 |
fashion
Joined: 01 Sep 2004 Posts: 27
|
28 Sep 2004 11:30 How to get a fixed timesetp in hspice? |
|
|
|
| If you set more accurate, the speed of simulation will be very long, sometime set 1/10 of total time.
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
30 Sep 2004 19:23 Re: How to get a fixed timesetp in hspice? |
|
|
|
| Hughes wrote: |
| ysz wrote: |
.option post=2 accurate DELMAX=0.0u RMAX=1 DVDT=2 LVLTIM=2 FS=0.1 FT=0.1
.tran 10u 120m |
Don't set DELMAX=0, set to a small value other than 0. For example:
.option delmax=0.1n |
Hughes, thank you!
I changed the parameter to:
.option post=2 DELMAX=10n RMAX=1.01 DVDT=2 LVLTIM=2 FS=0.1 FT=0.1
.tran 10u 120m
but the wave....
|
|
| Back to top |
|
 |
Hughes
Joined: 10 Jun 2003 Posts: 712 Helped: 84
|
01 Oct 2004 14:41 Re: How to get a fixed timesetp in hspice? |
|
|
|
| ysz wrote: |
| Hughes wrote: |
| ysz wrote: |
.option post=2 accurate DELMAX=0.0u RMAX=1 DVDT=2 LVLTIM=2 FS=0.1 FT=0.1
.tran 10u 120m |
Don't set DELMAX=0, set to a small value other than 0. For example:
.option delmax=0.1n |
Hughes, thank you!
I changed the parameter to:
.option post=2 DELMAX=10n RMAX=1.01 DVDT=2 LVLTIM=2 FS=0.1 FT=0.1
.tran 10u 120m
but the wave.... |
Hi ysz,
Did you ever check the tr0 file size? Maybe the file size exceed some limit.
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
08 Oct 2004 4:06 Re: How to get a fixed timesetp in hspice? |
|
|
|
The problem was solved by Hughes's help.
Just changes the parameter to :
.option post=1 accurate
.tran 0.5u 120m
but I am so doubt about the post parameter, post=1 saves file by binary format, post=2 saves file by ascii format, they are no relationship of the wave shapes, but there are really some difference, any body could explain this question to me?
|
|
| Back to top |
|
 |
Hughes
Joined: 10 Jun 2003 Posts: 712 Helped: 84
|
08 Oct 2004 5:47 How to get a fixed timesetp in hspice? |
|
|
|
| I have reviewed the ascii .tr0 file and found that all data only had five effective digits. As a result, when simulation time is between 10ms and 100ms, the output time resolution is 1us. When simulation 10ms and 1000ms, the output time resolution is 10us. Thus, we got the ulgly waveform. The calculation resolution is not limited to 5 effective digits. I didn't find how to change the number of effective digits in ascii .tr0 files. Who knows?
|
|
| Back to top |
|
 |
tlihu
Joined: 02 Jan 2002 Posts: 627 Helped: 5
|
08 Oct 2004 7:47 How to get a fixed timesetp in hspice? |
|
|
|
Add this option might help:
.options numdgt=4 (or higher)
|
|
| Back to top |
|
 |
Hughes
Joined: 10 Jun 2003 Posts: 712 Helped: 84
|
08 Oct 2004 8:24 How to get a fixed timesetp in hspice? |
|
|
|
| No. Neither option numdgt nor option measdgt has the control to the ascii tr0 file.
|
|
| Back to top |
|
 |
ysz
Joined: 14 Aug 2004 Posts: 44 Location: fujian china
|
08 Oct 2004 17:32 Re: How to get a fixed timesetp in hspice? |
|
|
|
| joskin wrote: |
The main problem is your simultion time is too long(bigger than 100ms).
Because in (*.tr#)transient sim result file,the valid digital number that describe simulation time is fixed,the wave can't show detailed information when the time exceeds 100ms. |
joskin is right!
by the data list below, we find if sim time more than 100ms, we will lost the last valid digital number, so the timestep will become incertitude.
when awaves shows the wave, the data will displayed at the same time, so we got the ugly wave:
TIME ---------- gnd ------------ neta ---------- vdd ----------- I(vdd
0.99992E-01 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.99993E-01 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.99994E-01 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.99995E-01 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.99996E-01 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.99997E-01 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.99998E-01 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.99999E-01 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******5rows*******
0.10000E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10000E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10000E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10000E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10000E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******11rows*******
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10001E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******10rows*******
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10002E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******10rows*******
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10003E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******9rows*******
0.10004E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10004E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10004E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10004E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10004E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10004E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10004E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10004E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10004E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******5rows*******
0.10005E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10005E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10005E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10005E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10005E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******5rows*******
0.10006E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10006E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10006E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10006E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10006E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******5rows*******
0.10007E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10007E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10007E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10007E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10007E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******5rows*******
0.10008E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10008E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10008E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10008E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10008E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
******5rows*******
0.10009E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10009E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10009E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10009E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10009E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
0.10010E+00 0.00000E+00 0.18750E+01 0.50000E+01 -.62500E-04
(vdd vdd gnd 5v
.option post=2 accurate
.tran 0.5u 120m
R1 neta VDD 50K
R2 neta gnd 30k
.END
)
|
|
| Back to top |
|
 |
morecode1234567890
Joined: 04 Oct 2003 Posts: 18
|
15 Oct 2004 16:54 Re: How to get a fixed timesetp in hspice? |
|
|
|
I daily work with hspice, and i usally find lot of convergence problems, no dc path to gound, time step to small, etc. most of the times this problems are becouse of short circuits, open circuits, etc... So, befoure spend a lot of time looking for an options that solves your problem you'd better to have a look, again, to your circuits, it is used to be bad human done thing.
sorry for my english
|
|
| Back to top |
|
 |
tedchen
Joined: 13 Jan 2003 Posts: 19 Helped: 1 Location: United State
|
22 Oct 2004 20:28 Re: How to get a fixed timesetp in hspice? |
|
|
|
| You guys can check some books like "Inside SPICE" or "The SPICE Book." Those books got useful suggestions for solving simulation problems. They can also help you to setup your simulation properly.
|
|
| Back to top |
|
 |
mit80
Joined: 29 Feb 2004 Posts: 4
|
25 Oct 2004 18:43 How to get a fixed timesetp in hspice? |
|
|
|
| in my opinion, set the option accurate can help you most of the time. Then check the circuit schematic, not to short circuit or "no dc path to ground", and so.
|
|
| Back to top |
|
 |