kumar.g
Community Member
![* *](https://designers-guide.org/forum/Templates/Forum/default/stargold.gif) ![* *](https://designers-guide.org/forum/Templates/Forum/default/stargold.gif)
Offline
Posts: 51
Frankfurt, Germany
|
Hallo All,
I am designing a current starved INV which has an output high(VDD) and low (VSS). VDD = 1.8V, VSS = 200m+ 10mVp-p, 1GHZ. I wrote the following piece of code but it gives me an error saying "contribution statement encountered inside an analog event"
Assume Td_p,Td_n = 1p
@(cross(V(Vin)-(V(V_swing)/2),+1)) begin V(V_ph) = V(Vss); end @(cross(V(Vin)-(V(V_swing)/2),-1)) begin V(V_ph) = V(Vdd); end V(Vout) <+ transition(V(V_ph),0,Td_p,Td_n); end
But the code works if I change V_ph as a real variable. But I dont see the 1Ghz 10mVp-p sinusoid on 200m(dc) VSS. Instead it is a constant 200m low and 1.8 V high. Can someone help me with this.
|