calyx
calyx copied to clipboard
Macro for calyx generating port definitions
trafficstars
Ref. https://github.com/cucapra/filament/pull/265#discussion_r1296060121.
Currently the method we are using in filament to generate a calyx port def looks like this:
(Id::from("name"), bitwidth, Direction::<Dir>).into()
This is pretty unwieldy and could benefit from having a macro similar to build_assignments! or structure! that does this for us in a way that is cleaner and more readable.