rdaly525 / coreir

BSD 3-Clause "New" or "Revised" License
100 stars 24 forks source link

Added pass to inline single instances #857

Closed rdaly525 closed 4 years ago

rdaly525 commented 4 years ago

This is a simple pass that greedly inlines any modules which only contains a single instance.

The main purpose of this will be simplifying the clock gating inferring logic, but is also a good way to clean up some of the magma->coreIR compiler steps that do a single level of circuit wrapping.