Index-based accessors in generated cc_xls_ir_jit_wrapper API for arrayed channels #1985
Labels
enhancement
New feature or request
🧦 sox
ux
User experience (end-user invoking XLS and its related tools)
What's hard to do? (limit 100 words)
If you have channel arrays in DSLX (#704), they are unrolled into totally distinct channels in the XLS IR. cc_xls_ir_jit_wrapper for both proc and block wrapper types will then generate accessors (send/receive, set/get) where the index is embedded in the function name.
If the size of the array is large, this becomes quite tedious since you can't loop over the channel/port in C++.
Current best alternative workaround (limit 100 words)
There may be some preprocessor tricks like BOOST_PP_REPEAT that could help. Or you can type out a few calls manually and hope your IDE code completion kicks in.
Your view of the "best case XLS enhancement" (limit 100 words)
@allight had the following comments:
The text was updated successfully, but these errors were encountered: