> On Feb 13, 2023, at 09:17, Øyvind Harboe <
oyvind...@gmail.com> wrote:
>
> Some errors with CIRCT 1.30.0:
>
> [error] <stdin>:2:1: error: Unable to apply annotation: {class = "chisel3.util.experimental.ForceNameAnnotation", name = "foo", target = "~bar"}
>
> I'm still getting some of these errors:
>
> [error] <stdin>:2:1: error: Unable to apply annotation: {class = "firrtl.passes.wiring.SourceAnnotation", pin = "foo", target = "bar"}
> val foo = WireInit(chiselTypeOf(bui.io.bar), DontCare)
> BoringUtils.bore(xxx, Seq(yyy))
Yes, support is on for BoringUtils in CIRCT 1.30.0 and is now being tested as part of Chisel CI since:
https://github.com/chipsalliance/chisel3/commit/f1ac9c8019f3e83c663d35426cea47a8194dd894
The forceName API is not supported on components (ports, wires, etc.). This is only supported on the narrow use case of instances. E.g., this is an escape hatch to prevent an instance name from being prefixed during inlining. Is the first error coming from a usage of the forceName API on components? Can you provide more details on what you're doing here?
For the second, that seems weird, though there are a number of situations that are rejected for wiring (invalid annotation target, etc.). Are there any more errors being printed that are not shown in the message?