Changing the name of a FuTIL component
Closed this issue · 1 comments
cgyurgyik commented
Currently, we can use -n <name>
to change the name of a kernel from kernel
to <name>
at the Dahlia level. However, when lowered to FuTIL, the component remains as main
.
For example: Running this from my Dahlia repository:
./fuse ./../futil/examples/dahlia/vectorized-add.fuse -n NewName -b futil --lower
will change the name of the kernel when lowered to Vivado, but in FuTIL it remains unchanged.
sampsyo commented
Good point! To make the implicit explicit, this is important for doing calyxir/calyx#186, which needs to emit & merge non-main
components.
Here is where the name is hard-coded, FWIW:
and I think it could instead get the name from config
?