-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HW][circt-synth] Implement AggregateToComb pass and add to circt-syn…
…th pipeline (#8068) This PR adds a new pass `HWAggregateToComb` that lowers array operations to comb operations. The pass converts: - `hw.array_get` to a mux tree using comb operations - `hw.array_create` and `hw.array_concat` to `comb.concat` - `hw.aggregate_constant` to `comb.concat` of individual constants The PR also moves two utility functions from CombToAIG to the Comb dialect: - `extractBits`: Extracts individual bits from a value - `constructMuxTree`: Builds a multiplexer tree from selectors and leaf nodes The pass is required to run before CombToAIG to ensure array operations are properly lowered to AIG. Strictly speaking other than array_get operations can be preserved but array values prevent optimizations at AIG level. So for the simplicity, I think it's reasonable to lower array operations within circt-synth pipeline.
- Loading branch information
Showing
12 changed files
with
365 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.