Skip to content

Conversation

fabianschuiki
Copy link
Contributor

Add the MapArithToComb pass to the circt-verilog pipeline. The canonicalizers in the CF dialect produce arith.select and arith.constant operations, but we would like the circt-verilog pipeline to produce pure HW/Comb/Seq output where possible.

In the future we might want to move the pass from Transforms to Conversions.

Add the MapArithToComb pass to the circt-verilog pipeline. The
canonicalizers in the CF dialect produce `arith.select` and
`arith.constant` operations, but we would like the circt-verilog
pipeline to produce pure HW/Comb/Seq output where possible.

In the future we might want to move the pass from `Transforms` to
`Conversions`.
@fabianschuiki fabianschuiki merged commit 6a4f6c7 into main Jul 3, 2025
7 checks passed
@fabianschuiki fabianschuiki deleted the fschuiki/verilog-arith-to-comb branch July 3, 2025 17:45
TaoBi22 pushed a commit to TaoBi22/circt that referenced this pull request Jul 17, 2025
Add the MapArithToComb pass to the circt-verilog pipeline. The
canonicalizers in the CF dialect produce `arith.select` and
`arith.constant` operations, but we would like the circt-verilog
pipeline to produce pure HW/Comb/Seq output where possible.

In the future we might want to move the pass from `Transforms` to
`Conversions`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants