FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5234 Discussions

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

emark4
Beginner
460 Views
 
0 Kudos
1 Reply
AnandRaj_S_Intel
Employee
95 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

Reply