Nagendra, One benefit is that this wouldn't have hidden states for SpectreRF because logic_in is updated on every timestep. Without line A, it would only get recorded on the crossings - so there would be no initial value, and SpectreRF would not be able to simulate it. The @cross is needed to ensure that there is a timestep at the transition. I probably would have written it just as: @(cross(V(vin)-vtrans)); // force timetep at transition (either direction) logic_in=V(vin)>vtrans; I don't think it will make any significant difference to the performance. Regards, Andrew.
↧