Browse Source

correct the plot output

dwarning 14 years ago
parent
commit
96dd397251
  1. 1
      examples/xspice/pll/test-f-p-det.cir
  2. 10
      examples/xspice/pll/test_vco.cir

1
examples/xspice/pll/test-f-p-det.cir

@ -39,7 +39,6 @@ Xlf d_Un d_D cont loopf
set xtrtol=2 set xtrtol=2
tran 0.1n 1000n tran 0.1n 1000n
plot s1 s2+1.2 u1+2.4 d1+3.6 xlimit 140n 200n plot s1 s2+1.2 u1+2.4 d1+3.6 xlimit 140n 200n
plot v(vco)
.endc .endc
.end .end

10
examples/xspice/pll/test_vco.cir

@ -40,7 +40,7 @@ fft buf
* start meas at freq > 0 to skip large dc part * start meas at freq > 0 to skip large dc part
meas sp fosc MAX_AT buf from=1e3 to=1e9 meas sp fosc MAX_AT buf from=1e3 to=1e9
let {$freq_volt}.foscvec[0]=fosc let {$freq_volt}.foscvec[0]=fosc
plot digout xlimit 140n 160n
plot d_digout xlimit 140n 160n
reset reset
alter vco 1 alter vco 1
tran 0.1n $&simtime 0 tran 0.1n $&simtime 0
@ -49,7 +49,7 @@ linearize buf
fft buf fft buf
meas sp fosc MAX_AT buf from=1e3 to=1e9 meas sp fosc MAX_AT buf from=1e3 to=1e9
let {$freq_volt}.foscvec[1]=fosc let {$freq_volt}.foscvec[1]=fosc
plot digout xlimit 140n 160n
plot d_digout xlimit 140n 160n
reset reset
alter vco 1.5 alter vco 1.5
tran 0.1n $&simtime 0 tran 0.1n $&simtime 0
@ -58,7 +58,7 @@ linearize buf
fft buf fft buf
meas sp fosc MAX_AT buf from=1e3 to=1e9 meas sp fosc MAX_AT buf from=1e3 to=1e9
let {$freq_volt}.foscvec[2]=fosc let {$freq_volt}.foscvec[2]=fosc
plot digout xlimit 140n 160n
plot d_digout xlimit 140n 160n
reset reset
alter vco 2 alter vco 2
tran 0.1n $&simtime 0 tran 0.1n $&simtime 0
@ -67,7 +67,7 @@ linearize buf
fft buf fft buf
meas sp fosc MAX_AT buf from=1e3 to=1e9 meas sp fosc MAX_AT buf from=1e3 to=1e9
let {$freq_volt}.foscvec[3]=fosc let {$freq_volt}.foscvec[3]=fosc
plot digout xlimit 140n 160n
plot d_digout xlimit 140n 160n
reset reset
alter vco 2.5 alter vco 2.5
tran 0.1n $&simtime 0 tran 0.1n $&simtime 0
@ -76,7 +76,7 @@ linearize buf
fft buf fft buf
meas sp fosc MAX_AT buf from=1e3 to=1e9 meas sp fosc MAX_AT buf from=1e3 to=1e9
let {$freq_volt}.foscvec[4]=fosc let {$freq_volt}.foscvec[4]=fosc
plot digout xlimit 140n 160n
plot d_digout xlimit 140n 160n
plot tran1.buf tran3.buf tran5.buf tran7.buf tran9.buf xlimit 140n 160n plot tran1.buf tran3.buf tran5.buf tran7.buf tran9.buf xlimit 140n 160n
plot mag(sp2.buf) mag(sp4.buf) mag(sp6.buf) mag(sp8.buf) mag(sp10.buf) xlimit 100e6 1100e6 plot mag(sp2.buf) mag(sp4.buf) mag(sp6.buf) mag(sp8.buf) mag(sp10.buf) xlimit 100e6 1100e6
setplot $freq_volt setplot $freq_volt

Loading…
Cancel
Save