chipsalliance / chipsalliance/chisel
Adding custom information to Chisel for CIRCT Passes
Open
- Dominant language
- Scala
- Stars
- 4.8k
- Forks
- 658
- Avg merge
- 18h 59m
- Merged PRs (30d)
- 14
Description
Hi, I'm trying to add some optimization information in Chisel, which will eventually become the `attr-dict` for operators in CIRCT IR. This way, a custom pass can use this information to transform the circuit.
I found that `firrtl.annotations.SingleTargetAnnotation` can achieve this if I add a `LowerAnnotations` function in CIRCT. However, it seems that `SingleTargetAnnotation` is deprecated, with the message: "All APIs in the firrtl package are deprecated."
Is there a replacement for `firrtl.annotations`? Or a way to directly add the attribute into the CIRCT IR?
Contributor guide
Assessment
This issue has not been assessed yet.