Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™
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.
528 Discussions

Implementing "Wait" or "Sleep" in HLS module

anaza3
Novice
374 Views

I want to write a HLS module(writing in C and using i++) that periodically(almost every second) copies a block of memory to another location. How can I implement the wait time? should I just implement a for loop without body? how can I be sure that optimizer doesn't get rid of it since it doesn't do anything?

0 Kudos
1 Reply
AnilErinch_A_Intel
296 Views

Hi ,

You can explore the usage of volatile keyword in case you don't want the compiler to optimize away specific contents.

Thanks and Regards

Anil


Reply