Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
print a warning on unsupported annotations
Browse files Browse the repository at this point in the history
and encourage users to report it for further investigation and possible conversions/workarounds.
  • Loading branch information
kammoh committed Jan 31, 2024
1 parent 170c6ce commit 9757048
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/scala/chiseltest/simulator/ChiselBridge.scala
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,12 @@ private object ChiselBridge {
// ignoreDecodeTableAnnotation since it is not needed by the firrtl compiler
case _: DecodeTableAnnotation => None
//
case _ => Some(UnsupportedAnnotation(anno.getClass.getSimpleName, anno.toString))
// case _ => throw new NotImplementedError(s"TODO: convert ${anno}")
case _ =>
println(
s"[WARNING] Unsupported annotation: ${anno.getClass.getSimpleName}\n" +
s" Please report this issue at https://github.com/ucb-bar/chiseltest/issues"
)
Some(UnsupportedAnnotation(anno.getClass.getSimpleName, anno.toString))
}

private def convert(c: Circuit): firrtl2.ir.Circuit =
Expand Down

0 comments on commit 9757048

Please sign in to comment.