Nader K
New Member
Offline
Posts: 2
|
I am using this but its only working on the first falling edge, how can i fix it in order for it to work on every falling edge? Thanks
module fixed_pulse_generator(in,out); parameter real td = 0.5n; // width of pulse parameter real tt = 0n; // output transition time (s) output out; input in; voltage in, out; real Vout;
analog begin @(cross(V(in), -1)) Vout = 1.2; V(out) <+ transition(-Vout, td, tt); V(out) <+ transition(Vout, 2*td, tt); end endmodule
|