Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- however, nothing happens when i press PB[3]. what should be done? --- Quote End --- That's correct! According to your code nothing should happen. You'd better consider how the input signal 'pbnoisy' is supposed to affect the output... since you don't use it. Moreover, I'd reset M when you reach the threshold condition, otherwise you'd have one-shot operation.