calyx icon indicating copy to clipboard operation
calyx copied to clipboard

Macro for calyx generating port definitions

Open UnsignedByte opened this issue 2 years ago • 0 comments
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.

UnsignedByte avatar Aug 16 '23 16:08 UnsignedByte