FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6125 Discussions

hi i want to use some delay in my program between 2 actions how can i do it with nios 2 ??

emark4
Beginner
641 Views
 
0 Kudos
1 Reply
AnandRaj_S_Intel
Employee
276 Views

Hi,

 

Hi you can implement delay like below example.

for more information look into below link.

https://forums.intel.com/s/question/0D50P00003yyPN3SAM/nios-ii-delay-calculation

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/n2cpu_nii51015.pdf

int delay=1; int main() { while(1) for (delay=1;delay<=300000;delay++) {   } delay = 0; }

Regards

Anand

0 Kudos
Reply