Usage of xlscc: sequential for loops

42 views
Skip to first unread message

Ahmed Gawish

unread,
Aug 28, 2022, 1:29:54 AM8/28/22
to xls-dev
The official tutorial covers only the usage of unrolled loops via #pragma hls_unroll yes, it stated there is an option for sequential for loop, but I can't seem to find what pragma corresponds to that, and if I try to leave it without pragma the compiler gives me an error, so how to use sequential loops in xlscc?

Josh Varga

unread,
Aug 29, 2022, 3:57:58 AM8/29/22
to xls-dev
In pipelined modules you can specify "#pragma hls_pipeline_init_interval " followed by the specified init interval. An example is shown in the tests here: https://github.com/google/xls/blob/main/xls/contrib/xlscc/translator_test.cc#L4052
Reply all
Reply to author
Forward
0 new messages