PUSHBUTTON - muneeb-mbytes/FPGABoard_edgeSpartan6 GitHub Wiki
CASE1:
WHEN BUTTON IS PRESSED ONCE
CASE2
WHEN BUTTON IS PRESSED TWICE
CASE3
PRESS HOLD RELEASE
1cases: when button is pressed once
1.1
1.2
1.3
2.1press hold release
2.2
2.3
2.4
1cases: when button is pressed once
1.1
1.2
1.3
2.1press hold release
2.2
2.3
2.4
link to calculate time period for the debounce circuit
video
About Match Units
In Chipscope Pro, the Match Unit is a feature of the Triggering system that allows you to specify a sequence of values that must occur in a particular order before the trigger event is detected.
The Match Unit is used to filter and capture specific signal activity in a design. It allows you to define a sequence of values that must be observed in specific clock cycles before the trigger event is detected. Once the specified sequence of values is detected, the trigger event is generated, and the data capture process begins.
The Match Unit is a powerful tool for capturing complex behaviors in a design, and it can be used to isolate specific events or states that occur within a larger system. By using the Match Unit to filter out irrelevant data, you can focus on the specific signals and events that are of interest, making it easier to debug complex designs.
The Match Unit is configured by specifying the expected data pattern and the mask that defines which bits in the pattern should be checked. When a capture operation is initiated, the Match Unit continuously compares the captured data against the expected pattern. If all the bits that are not masked match the corresponding bits in the expected pattern, the Match Unit generates a trigger.