[SOLVED] Should I use 2 stage synchronizer before or after debouncer detected

Status
Not open for further replies.

keyurd83

Newbie level 2
Joined
Jul 24, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bangalore
Activity points
1,291
Hello,

I am implementing a clock on Nexys 2(Spartan 3e) FPGA, where I am using Push Button as a asynchronous Reset.
But I am confused where I should use 2 Stage Synchronizer to synchronize the asynchronous Reset with clock.
Should I use it before the Debouncer code or should I use it after Debouncer code.

Would kindly appreciate your help.

Thank you.
 

first synchronize it, then debounce it. Your debouncer is synchronous logic running in your favorite clock domain, so you first have to get the button input into that clock domain.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…