PUSHBUTTON - muneeb-mbytes/FPGABoard_edgeSpartan6 GitHub Wiki

CASE1:

WHEN BUTTON IS PRESSED ONCE

image

image

image

CASE2

WHEN BUTTON IS PRESSED TWICE

image

image

CASE3

PRESS HOLD RELEASE

image

image

image

image

1cases: when button is pressed once

1.1

image

1.2

image

1.3

image

2.1press hold release

image

2.2

image

2.3

image

2.4

image

image

1cases: when button is pressed once

1.1

image

1.2

image

1.3

image

2.1press hold release

image

2.2

image

2.3

image

2.4

image

link to calculate time period for the debounce circuit

link

video

https://user-images.githubusercontent.com/73732585/231653793-4bb25aff-55d1-4c8d-80e4-06504a9465e8.mp4

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.