Forum Discussion
Altera_Forum
Honored Contributor
12 years agoMaking a dlay in a c code
Hello every body; How can i use the "times" function to make delay in my Nios2 code, as I built a VHDLcode that have a latency of 46 clk cycle, and I want to read its output after this latency. ...
Altera_Forum
Honored Contributor
12 years agoIf you built the HDL code yourself, you can definitely add a 'ready' signal which is set after the exact 46-clock delay.
You can then conveniently use this signal in a poll loop or as an irq. Software delays are not the best choice, since they strongly depend on compiler and the way the delay is implemented.