chipsalliance / chipsalliance/chisel

Adding custom information to Chisel for CIRCT Passes

Open
#5,078 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.