// Hysteretic comparator with built-in breakpoint if (V(vout) < vref - 10m) state = 1 ; else if (V(vout) > vref + 10m) state = 0 ;
analog begin @(initial_step) state = 0 ; smac 2.7
real vref = 1.2 ; integer state ;