pancho_hideboo
Advanced Member level 5
- Joined
- Oct 21, 2006
- Messages
- 2,847
- Helped
- 767
- Reputation
- 1,536
- Reaction score
- 733
- Trophy points
- 1,393
- Location
- Real Homeless
- Activity points
- 17,490
.option POST
.temp 25
.GLOBAL gnd! vdd!
.param fund_period=2n
.param delta_phase_deg=0.0
.param tdelay='(delta_phase_deg/360)*fund_period'
xi12 vdd! down up out_clk ref_clk start pfdv2_sch
v17 start gnd! dc=0 pulse ( 0 1.8 500p 1p 0 0.5 1)
v16 out_clk gnd! dc=0 pulse(0 1.8 '1.1*fund_period+tdelay'
+ 5p 5p 'fund_period/2' fund_period)
v2 ref_clk gnd! dc=0 pulse(0 1.8 '1.1*fund_period'
+ 5p 5p 'fund_period/2' fund_period)
v5 vdd! gnd! dc=1.8
c18 vctrl- gnd! c=.8p
c7 vctrl+ gnd! c=.8p
xi17 down up vctrl+ vctrl- cpv2_sch
.tran .1n 75n start=0
.sn tres='fund_period/10' period=fund_period
+ trinit='5*fund_period' maxtrinitcycles=5
+ sweep delta_phase_deg lin 101 -360 360
.op All 0
.option opfile=1 split_dp=1
.probe i1(c7)
.probe i2(c18)
.end
Show me time domain waveform of ref_clk and out_clk of .sn0.I did what you said, then the only difference with the previous simulation is there is a .sn0 now
TryCode:.option POST .temp 25 .GLOBAL gnd! vdd! .....[snipped] c18 vctrl- gnd! c=.8p c7 vctrl+ gnd! c=.8p .....[snipped] .probe i1(c7) .probe i2(c18) .end
I confirmed you come to be able to sweep phase difference between ref_clk and out_clk.Show me time domain waveform of ref_clk and out_clk of .sn0.
I don't mean .tr0.
Show me results.I also tried putting this into the netlist and got a .snf0 file
But can't see any i(c18) and i(c7).Show me time domain waveform of i(c18) and i(c7) of .sn0
.option PARHIER = LOCAL
.option POST
.temp 25
.GLOBAL gnd! vdd!
.param fund_period=2n
.param delta_phase_deg=0.0
.param tdelay='(delta_phase_deg/360)*fund_period'
xi12 vdd! down up out_clk ref_clk start pfdv2_sch
v17 start gnd! dc=0 pulse ( 0 1.8 500p 1p 0 0.5 1)
v16 out_clk gnd! dc=0 pulse(0 1.8 '1.1*fund_period+tdelay'
+ 5p 5p 'fund_period/2' fund_period)
v2 ref_clk gnd! dc=0 pulse(0 1.8 '1.1*fund_period'
+ 5p 5p 'fund_period/2' fund_period)
v5 vdd! gnd! dc=1.8
c18 vctrl- gnd! c=.8p
c7 vctrl+ gnd! c=.8p
xi17 down up vctrl+ vctrl- cpv2_sch
.tran .1n 75n start=0
.sn tres='fund_period/10' period=fund_period
+ trinit='5*fund_period' maxtrinitcycles=5
+ sweep delta_phase_deg lin 101 -360 360
.op All 0
.option opfile=1 split_dp=1
.probe i1(c7)
.probe i1(c18)
.probe snfd i(c7)[0]
.probe snfd ir(c7)[0]
.probe snfd i(c18)[0]
.probe snfd ir(c18)[0]
.probe i(c18) i(c7)
.end
.sn tone='1/fund_period' nharms=10
+ trinit='5*fund_period' maxtrinitcycles=5
+ sweep delta_phase_deg lin 101 -360 360
.sn tres='fund_period/10' period=fund_period
+ trinit='5*fund_period' maxtrinitcycles=5
+ sweep delta_phase_deg lin 101 -360 360
.option PARHIER = LOCAL
.option POST
.temp 25
.GLOBAL gnd! vdd!
.param fund_period=2n
.param delta_phase_deg=0.0
.param tdelay='(delta_phase_deg/360)*fund_period'
xi12 vdd! down up out_clk ref_clk start pfdv2_sch
v17 start gnd! dc=0 pulse ( 0 1.8 500p 1p 0 0.5 1)
v16 out_clk gnd! dc=0 pulse(0 1.8 '1.1*fund_period+tdelay'
+ 5p 5p 'fund_period/2' fund_period)
v2 ref_clk gnd! dc=0 pulse(0 1.8 '1.1*fund_period'
+ 5p 5p 'fund_period/2' fund_period)
v5 vdd! gnd! dc=1.8
c18 vctrl- gnd! c=.8p
c7 vctrl+ gnd! c=.8p
xi17 down up vctrl+ vctrl- cpv2_sch
.tran .1n 75n start=0
.sn tone='1/fund_period' nharms=10
+ trinit='5*fund_period' maxtrinitcycles=5
+ sweep delta_phase_deg lin 101 -360 360
.op All 0
.option opfile=1 split_dp=1
.probe i1(c7)
.probe i1(c18)
.probe snfd i(c7)[0]
.probe snfd i(c18)[0]
.probe snfd i(c18) i(c7)
.probe snfd i(c18)[0] i(c7)[0]
.probe snfd ir(c18)[0]
.probe snfd ir(c7)[0]
.probe snfd ir(c18) ir(c7)
.probe snfd ir(c18)[0] ir(c7)[0]
.probe sn i(c18) i(c7)
.measure sn Ip AVG i(c18)
.measure sn In AVG i(c7)
.measure sn Ipump param='In+Ip'
.end
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?