coreir
coreir copied to clipboard
pass to remove passthrough modules
Is there a pass to remove passthrough modules? I'm seeing 1-input muxes in the post-synthesis netlists, and while this technically isn't illegal it's causing warnings in tools and ideally, I'd like to get the warnings down to 0.
Example:
module MuxWrapperAOIImpl_1_1_2 (
I_0,
O);
input [0:0] I_0;
output [0:0] O;
assign O[0] = I_0[0] ;
endmodule
...
MuxWrapperAOIImpl_1_1_2P WIRE_SB_T0_SOUTH_SB_IN_B1 (.I_0(SB_T0_SOUTH_SB_IN_B1_0),
.O(WIRE_SB_T0_SOUTH_SB_IN_B1__O));
"removesinglemuxes", but its currently on the 'dev' branch. dev will be merged in the near future.