Hello,
I want my latch to filter out short pulses (shorter than 0.15ns).
But in spite of standard it doesn't. Here is code:
Code:`timescale 1 ns / 1 ps
module Latch(nD, nGate, Q);
input nD, nGate;
output reg Q;
always @(nGate, nD)
if(nGate == 0) Q <= ~nD;
else Q <= Q;
specify
specparam tRise_nGate_Q = 0.15, tFall_nGate_Q = 0.2;
(negedge nGate *> (Q+:nD)) = (tRise_nGate_Q, tFall_nGate_Q);
endspecify
endmodule
Where is my mistake ?
Thanks,
Pavel.