VCO hspice simulate?
.OPTIONS LIST NODE POST
M1 1 2 VDD VDD pch w=700n l=350n
M2 1 2 VDD VDD pch w=700n l=350n
M3 2 1 VDD VDD pch w=700n l=350n
M4 2 1 VDD VDD pch w=700n l=350n
Rbias1 Vbias Vout+ 1k
Rbias2 Vbias Vout- 1k
Rturn1 Vturne c+ 1k
Rturn2 Vturne c- 1k
Cb1 1 Vout+ 1n
Cb2 2 Vout- 1n
C1 c+ 0 1n
C2 c- 0 1n
L1 1 0 330p
L2 2 0 330p
MCv1 Vturne Vout+ Vturne Vturne pch w=700n l=350n
MCv2 Vturne Vout- Vturne Vturne pch w=700n l=350n
Vdd Vdd 0 1v
Vbias Vbias 0 1v
Vturne Vturne 0 0.5v
請問一下要下哪些指令才可以看到~震盪頻率turner rangephase noise ~波形與數值
.MODEL pch pmos
.op
.END
拜託大大可以幫忙~謝謝
u may use sweep to change the vtune
。mesure语句测量频率
HSPICE 是不能直接仿 V-F 特性的,你可以一个点一个点的测频率,然后拟合。
如果有hspice RF的feature, 才能仿真phase noise,同时也就能画出c-v曲线了
measure
具体用法可见CIC的培训材料
OSCILLATOR
*Four stage ring oscillator
***** Initial Setup *************************************
.lib "mm0355v.l" tt
.global vdd gnd
***** Sub Circuit : One delaycell of VCO*****************
.subckt delaycell vin2+ vin1+ vin1- vin2- vout+ vout- vctr vdd gnd
M1 vout+ vin1- gndgnd nch w=3u l=0.5u m=6
M2 vout- vin1+ gndgnd nch w=3u l=0.5u m=6
M3 vout+ vout- vddvdd pch w=3u l=0.5u
M4 vout- vout+ vddvdd pch w=3u l=0.5u
M5 vout+ vin2- vddvdd pch w=12u l=0.5u
M6 vout- vin2+ vddvdd pch w=12u l=0.5u
M7 vout+ vctrvddvdd pch w=3u l=0.5u m=8
M8 vout- vctrvddvdd pch w=3u l=0.5u m=8
.ic v(vin1+)=0v
.ends
****** Main Circuit : Four stage ring oscilator *********
xvco1 vout2p vout1n vout1pvout2n v1av1bvctrvdd gnd delaycell
xvco2 vout1n v1av1bvout1p v2av2bvctrvdd gnd delaycell
xvco3 v1av2av2bv1bvout2nvout2p vctrvdd gnd delaycell
xvco4 v2avout2n vout2pv2bvout1pvout1n vctrvdd gnd delaycell
C1 vout1p 0 0.3p
C2 vout1n 0 0.3p
C3 vout2p 0 0.3p
C4 vout2n 0 0.3p
****** Voltage Source **********************************
vdd vdd 0 dc 2v
vctr vctr 0 dc 0v
****** Analysis and output****** ***********************
.op
.option post
.tran 0.01n30n SWEEP vctr 0 2 0.1
.meas tran pvco1n trig v(vout1p) val=1.65v rise=10 targ v(vout1p) val=1.65v rise=11
.meas tran pvco1p trig v(vout1n) val=1.65v rise=10 targ v(vout1n) val=1.65v rise=11
.meas tran pvco2p trig v(vout2p) val=1.65v rise=10 targ v(vout2p) val=1.65v rise=11
.meas tran pvco2n trig v(vout2n) val=1.65v rise=10 targ v(vout2n) val=1.65v rise=11
.meas TRANfrequency=PARAM('1/pvco1n')
*.alter
*.lib "mm0355v.l" ss
*.alter
*.lib "mm0355v.l" ff
*.alter
*.lib "mm0355v.l" sf
*.alter
*.lib "mm0355v.l" fs
*.tran 0.01n 40n
*.alter
*vctr vctr 0 dc 0.2v
*.alter
*vctr vctr 0 dc 0.4v
*.alter
*vctr vctr 0 dc 0.6v
*.alter
*vctr vctr 0 dc 0.8v
*.alter
*vctr vctr 0 dc 1v
*.alter
*vctr vctr 0 dc 1.2v
*.alter
*vctr vctr 0 dc 1.8v
.end
赞楼上一个
呵呵,一个网表胜过千言万语。
不过不知道现在的hspice能否仿真phase noise。在specteRF里仿真phase noise还是比较方便的
現在的hspice 有hspicerf 可以跑phase noise
不過 假如要見到圖形的話要另外搭配一套cosmosscope
假如只見文字的話他會產生一個.pn 的檔案
假如有寫錯的話請各位糾正 因為我也是第一次碰hspicerf
对的,只能measure 语句把一个电压下的频率记下来(最好多级几个时间下的,然后取平均值),然后用alter改变电压或工艺角、温度;最后把所有的数据用matlab做个图。就是比较慢,数据处理也比较烦,最好还是用pecteRF去仿方便些。并且hspice还是不能仿真phase noise的。
感激万分!
不错, 赞一个
如何下觀看phase noise的指令?
謝謝
真心不错!一个实际跑过的网表代表了一切!
hspice和hspicerf区别
gooooooooooood
这不是那本书上的吗!哈哈
******A Novel VCO*****
.OPTIONS LIST NODE POST
M1 1 2 VDD VDD pch w=700n l=350n
M2 1 2 VDD VDD pch w=700n l=350n
M3 2 1 VDD VDD pch w=700n l=350n
M4 2 1 VDD VDD pch w=700n l=350n
Rbias1 Vbias Vout+ 1k
Rbias2 Vbias Vout- 1k
Rturn1 Vturne c+ 1k
Rturn2 Vturne c- 1k
Cb1 1 Vout+ 1n
Cb2 2 Vout- 1n
C1 c+ 0 1n
C2 c- 0 1n
L1 1 0 330p
L2 2 0 330p
MCv1 Vturne Vout+ Vturne Vturne pch w=700n l=350n
MCv2 Vturne Vout- Vturne Vturne pch w=700n l=350n
Vdd Vdd 0 1v
Vbias Vbias 0 1v
Vturne Vturne 0 0.5v
請問一下要下哪些指令才可以看到~震盪頻率turner rangephase noise ~波形與數值
.MODEL pch pmos
.op
.END
拜託大大可以幫忙~謝謝
u may use sweep to change the vtune
。mesure语句测量频率
HSPICE 是不能直接仿 V-F 特性的,你可以一个点一个点的测频率,然后拟合。
如果有hspice RF的feature, 才能仿真phase noise,同时也就能画出c-v曲线了
measure
具体用法可见CIC的培训材料
OSCILLATOR
*Four stage ring oscillator
***** Initial Setup *************************************
.lib "mm0355v.l" tt
.global vdd gnd
***** Sub Circuit : One delaycell of VCO*****************
.subckt delaycell vin2+ vin1+ vin1- vin2- vout+ vout- vctr vdd gnd
M1 vout+ vin1- gndgnd nch w=3u l=0.5u m=6
M2 vout- vin1+ gndgnd nch w=3u l=0.5u m=6
M3 vout+ vout- vddvdd pch w=3u l=0.5u
M4 vout- vout+ vddvdd pch w=3u l=0.5u
M5 vout+ vin2- vddvdd pch w=12u l=0.5u
M6 vout- vin2+ vddvdd pch w=12u l=0.5u
M7 vout+ vctrvddvdd pch w=3u l=0.5u m=8
M8 vout- vctrvddvdd pch w=3u l=0.5u m=8
.ic v(vin1+)=0v
.ends
****** Main Circuit : Four stage ring oscilator *********
xvco1 vout2p vout1n vout1pvout2n v1av1bvctrvdd gnd delaycell
xvco2 vout1n v1av1bvout1p v2av2bvctrvdd gnd delaycell
xvco3 v1av2av2bv1bvout2nvout2p vctrvdd gnd delaycell
xvco4 v2avout2n vout2pv2bvout1pvout1n vctrvdd gnd delaycell
C1 vout1p 0 0.3p
C2 vout1n 0 0.3p
C3 vout2p 0 0.3p
C4 vout2n 0 0.3p
****** Voltage Source **********************************
vdd vdd 0 dc 2v
vctr vctr 0 dc 0v
****** Analysis and output****** ***********************
.op
.option post
.tran 0.01n30n SWEEP vctr 0 2 0.1
.meas tran pvco1n trig v(vout1p) val=1.65v rise=10 targ v(vout1p) val=1.65v rise=11
.meas tran pvco1p trig v(vout1n) val=1.65v rise=10 targ v(vout1n) val=1.65v rise=11
.meas tran pvco2p trig v(vout2p) val=1.65v rise=10 targ v(vout2p) val=1.65v rise=11
.meas tran pvco2n trig v(vout2n) val=1.65v rise=10 targ v(vout2n) val=1.65v rise=11
.meas TRANfrequency=PARAM('1/pvco1n')
*.alter
*.lib "mm0355v.l" ss
*.alter
*.lib "mm0355v.l" ff
*.alter
*.lib "mm0355v.l" sf
*.alter
*.lib "mm0355v.l" fs
*.tran 0.01n 40n
*.alter
*vctr vctr 0 dc 0.2v
*.alter
*vctr vctr 0 dc 0.4v
*.alter
*vctr vctr 0 dc 0.6v
*.alter
*vctr vctr 0 dc 0.8v
*.alter
*vctr vctr 0 dc 1v
*.alter
*vctr vctr 0 dc 1.2v
*.alter
*vctr vctr 0 dc 1.8v
.end
赞楼上一个
呵呵,一个网表胜过千言万语。
不过不知道现在的hspice能否仿真phase noise。在specteRF里仿真phase noise还是比较方便的
現在的hspice 有hspicerf 可以跑phase noise
不過 假如要見到圖形的話要另外搭配一套cosmosscope
假如只見文字的話他會產生一個.pn 的檔案
假如有寫錯的話請各位糾正 因為我也是第一次碰hspicerf