coreir icon indicating copy to clipboard operation
coreir copied to clipboard

pass to remove passthrough modules

Open hofstee opened this issue 5 years ago • 1 comments

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));

hofstee avatar Oct 23 '19 04:10 hofstee

"removesinglemuxes", but its currently on the 'dev' branch. dev will be merged in the near future.

rdaly525 avatar Oct 23 '19 04:10 rdaly525