Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Hi all, I have a counter that counts up every time an input of '1' is seen. At the max count value a flag should output '1' and the count resets. I can achieve this, however the output lasts for as long as the input stays at '1' on the final count. How do you code for an output to last for just one clock cycle? Thanks --- Quote End --- my guess. you haven't put else statement or default value for that output. where is your code.