HSPICE Skills/others

digital signal bus sweep

vfr43edc 2018. 5. 11. 14:37
728x90

.param

+ osc_ftrim0 = 'osc_ftrim1-(int(osc_ftrim1/2^1)>=1?1:0)*2^1'
+ osc_ftrim1 = 'osc_ftrim2-(int(osc_ftrim2/2^2)>=1?1:0)*2^2'
+ osc_ftrim2 = 'osc_ftrim3-(int(osc_ftrim3/2^3)>=1?1:0)*2^3'
+ osc_ftrim3 = 'osc_ftrim4-(int(osc_ftrim4/2^4)>=1?1:0)*2^4'
+ osc_ftrim4 = 'osc_ftrim5-(int(osc_ftrim5/2^5)>=1?1:0)*2^5'
+ osc_ftrim5 = 'osc_ftrim6-(int(osc_ftrim6/2^6)>=1?1:0)*2^6'
+ osc_ftrim6 = 'osc_ftrimval-(int(osc_ftrimval/2^7)>=1?1:0)*2^7'
+ osc_ftrimval= 80



vOSC4M_FTRIM<7>         OSC4M_FTRIM<7>  0 dc='vddval*(osc_ftrimval>=2^7?1:0)'
vOSC4M_FTRIM<6>         OSC4M_FTRIM<6>  0 dc='vddval*(osc_ftrim6>=2^6?1:0)'
vOSC4M_FTRIM<5>         OSC4M_FTRIM<5>  0 dc='vddval*(osc_ftrim5>=2^5?1:0)'
vOSC4M_FTRIM<4>         OSC4M_FTRIM<4>  0 dc='vddval*(osc_ftrim4>=2^4?1:0)'
vOSC4M_FTRIM<3>         OSC4M_FTRIM<3>  0 dc='vddval*(osc_ftrim3>=2^3?1:0)'
vOSC4M_FTRIM<2>         OSC4M_FTRIM<2>  0 dc='vddval*(osc_ftrim2>=2^2?1:0)'
vOSC4M_FTRIM<1>         OSC4M_FTRIM<1>  0 dc='vddval*(osc_ftrim1>=2^1?1:0)'
vOSC4M_FTRIM<0>         OSC4M_FTRIM<0>  0 dc='vddval*(osc_ftrim0>=2^0?1:0)'


.tran 0.1n 0.2m $start=1m
+uic
+ sweep osc_ftrimval 0 255 1


728x90

'HSPICE Skills > others' 카테고리의 다른 글

Pattern Source  (0) 2022.12.21
hspice - MOS transistor saturation check 방법  (0) 2017.12.26
nodal capacitance 계산하기  (0) 2013.02.16
MONTE CARLO 두둥....  (3) 2011.02.09
hspice .if 문  (0) 2011.02.08