Andrew Beckett
Senior Fellow
Offline
Life, don't talk to me about Life...
Posts: 1742
Bracknell, UK
|
As I've said before, it's unclear what you actually want. Maybe you want this:
cross(V(clk),'fall,1,1.6)>0 || cross(V(clk),'rise,1,0.8)>0 || (V(clk)@0 >=0.8 && V(clk)@0 <=1.6) ? V(clk ):0.8
This is untested. What it's saying is if you've crossed from above 1.6 to below 1.6, or you've crossed from below 0.8 to above 0.8, or it was between 0.8 and 1.6 at time 0, then check the voltage on the clock between the min and max range (I only wrote the expression part above).
But I'm guessing...
Andrew.
|