Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Crazy reset behaviour

Hi there,

I have a reset mapped to one push button, and this reset is only attached to an internal process (check attached image) that triggers different resets on my design. Still, when I looked at its behaviour, on SignalTap, it is completely random. Any good reason to explain it!?

Thanks in advance!

Regards,

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Mechanical switches like pushbuttons bounce for some period of time after each actuation. If you can't tolerate those random state changes you need to debounce the input. Google "push button debounce" and you should get enough info to proceed.

    Bob
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Bob,

    thanks a lot for your reply! Indeed the problem seems to be something like what you mentioned. I have solved it by creating a pre and post-reading process on the button, in order to isolate its reading!

    Thanks!