digital signal bus sweep
.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