| Author |
Message |
gargoyle
Joined: 10 Oct 2004 Posts: 32
|
01 Dec 2004 6:44 how to calculate 10000 successive periods of pll output |
|
|
|
hello all:
how can i use hspice to calculate 10000 successive periods of pll output ?
thank s
|
|
| Back to top |
|
 |
leo_o2
Joined: 03 Sep 2004 Posts: 330 Helped: 20
|
01 Dec 2004 7:08 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| use .measure command
|
|
| Back to top |
|
 |
gargoyle
Joined: 10 Oct 2004 Posts: 32
|
01 Dec 2004 7:53 Re: how to calculate 10000 successive periods of pll output |
|
|
|
i can use .measure command to find out one perid time(below), but how can i
measure successive 10000 periods and do not have to write following command
10000 times. thanks
.MEAS tran t1 trig v(2) val=0.7 td=100ns rise=1
+ targ v(2) val=0.7 td=100ns rise=2
|
|
| Back to top |
|
 |
leo_o2
Joined: 03 Sep 2004 Posts: 330 Helped: 20
|
01 Dec 2004 8:02 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| CROSS=10000
|
|
| Back to top |
|
 |
Hughes
Joined: 10 Jun 2003 Posts: 712 Helped: 84
|
01 Dec 2004 10:09 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| Generate 10000 measure statement by program. But the netlist will be very large.
|
|
| Back to top |
|
 |
gargoyle
Joined: 10 Oct 2004 Posts: 32
|
01 Dec 2004 18:56 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| leo_o2 wrote: |
| CROSS=10000 |
could you please make it more clearly? i only need to add it to the measure
command? but there is no effect
thanks
|
|
| Back to top |
|
 |
Hughes
Joined: 10 Jun 2003 Posts: 712 Helped: 84
|
02 Dec 2004 1:22 how to calculate 10000 successive periods of pll output |
|
|
|
| 'CROSS=10000' only gives one point, not 10000 points.
|
|
| Back to top |
|
 |
cirand
Joined: 27 Aug 2003 Posts: 30 Location: China
|
02 Dec 2004 2:32 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| Is there any 'for' or 'while' loop statements in hpsice? [/quote]
|
|
| Back to top |
|
 |
Hughes
Joined: 10 Jun 2003 Posts: 712 Helped: 84
|
02 Dec 2004 2:55 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| cirand wrote: |
| Is there any 'for' or 'while' loop statements in hpsice? |
No loop statements in hspice.
| gargoyle wrote: |
| how can i use hspice to calculate 10000 successive periods of pll output ? |
Another method: Write a program to analysis the '.tr0' file directly. If only one output variable is selected, the data format of the '.tr0' file can be simple.
|
|
| Back to top |
|
 |
leo_o2
Joined: 03 Sep 2004 Posts: 330 Helped: 20
|
03 Dec 2004 11:34 Re: how to calculate 10000 successive periods of pll output |
|
|
|
It could be like that:
.MEAS tran t1 trig v(2) val=0.7 td=100ns rise=1 cross=1
+ targ v(2) val=0.7 td=100ns rise=2 cross=10001
I have used it successfully. But now I can't remember exactly, please refer HSPICE manual for details.
| gargoyle wrote: |
| leo_o2 wrote: |
| CROSS=10000 |
could you please make it more clearly? i only need to add it to the measure
command? but there is no effect
thanks |
|
|
| Back to top |
|
 |
Hughes
Joined: 10 Jun 2003 Posts: 712 Helped: 84
|
03 Dec 2004 12:40 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| leo_o2 wrote: |
It could be like that:
.MEAS tran t1 trig v(2) val=0.7 td=100ns rise=1 cross=1
+ targ v(2) val=0.7 td=100ns rise=2 cross=10001
|
It will give a value equal to 1000 periods, but not 1000 values.
|
|
| Back to top |
|
 |
yaxazaa
Joined: 13 Nov 2004 Posts: 115 Helped: 3
|
08 Dec 2004 5:23 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| Use perl to generate the .measure statement, measure from 1 to 10000 rise/fall. That's the normally to do it. if you have cosmoscope, it will be easy to do analysis. You don need to generate the data, instaed you can do statistically analysis right away.
|
|
| Back to top |
|
 |
xwcwc1234
Joined: 21 Jul 2001 Posts: 313 Helped: 5
|
09 Dec 2004 7:06 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| Using Awk also possible under Unix environment. It is simple and easy to design such a program to calculate the period.
|
|
| Back to top |
|
 |
Teddy
Joined: 15 Sep 2004 Posts: 281 Helped: 38
|
10 Dec 2004 18:27 Re: how to calculate 10000 successive periods of pll output |
|
|
|
| Since I use spectre I ususaly solve this by a simple VerilogA code.....
|
|
| Back to top |
|
 |
lyrix
Joined: 15 Apr 2004 Posts: 19
|
14 Dec 2004 4:38 how to calculate 10000 successive periods of pll output |
|
|
|
| Use Cosmos Scope to see the waveform, it has a function in measurement to measure this
|
|
| Back to top |
|
 |
leo_o2
Joined: 03 Sep 2004 Posts: 330 Helped: 20
|
14 Dec 2004 9:31 Re: how to calculate 10000 successive periods of pll output |
|
|
|
I think he is asking for the time of 1000 cycles. I can't figure out what use for 1000 values.
| Hughes wrote: |
| leo_o2 wrote: |
It could be like that:
.MEAS tran t1 trig v(2) val=0.7 td=100ns rise=1 cross=1
+ targ v(2) val=0.7 td=100ns rise=2 cross=10001
|
It will give a value equal to 1000 periods, but not 1000 values. |
|
|
| Back to top |
|
 |