Debounce.v

This module synchronizes transition to a clock by generating a single-period pulse in response to an incoming pulse of arbitrary duration. No further pulses are generated until the input goes low. The figure shows the state diagram.

Debounce state diagram

Ports | Parameters | Notes | Example

Ports

clkinputThe clock input.
ininput    The pulse input from which to generate the output pulse.
outoutput    The output-pulse port. It is the same as state == pulse;

Parameters

There are no configurable parameters.

Notes

Example instantiation in Verilog:

Debounce db (.clk(clk), .in(in), .out(out));

10/3/2014