Forum Discussion
5 Replies
- Altera_Forum
Honored Contributor
Generally I will use a counter with clock to introduce dealy. The "#" is normally used in test bench but not actual hardware design.
- Altera_Forum
Honored Contributor
--- Quote Start --- Generally I will use a counter with clock to introduce dealy. The "#" is normally used in test bench but not actual hardware design. --- Quote End --- Can you give me a simple example of a counter with clock? - Altera_Forum
Honored Contributor
You might want to search for "prescaler" this will generate a clock with a frequency that is lower than its input clock. If you do it right it can outputa frequency of 1 Hz. Use this to run the counter and the display part.
- Altera_Forum
Honored Contributor
You can try :
1) 1 source clk 2) make a condition to pulse-out 3) gate the source clock with condition right (accoring recommendation) 4) use your new clock So you able to manage duty cycle of new clock - Altera_Forum
Honored Contributor
There's endless example code on the internet. Start here (https://learn.digilentinc.com/documents/262) for a 'simple example of a counter with clock'.
Cheers, Alex