Open danielkasza opened 4 years ago
Good point. I'll wait to see how you handle this with FIRRTL transforms, IMO that's ultimately the right approach.
FIRRTL transform approach seems to work well: https://github.com/danielkasza/dank-formal/blob/main/src/main/scala/transforms.scala
Cover statements are automatically added for
when
, but not forelsewhen
,otherwise
, andswitch
.I can see two ways around this:
when
either.I am actually leaning toward 2 because I do not like that chisel-formal provides its own version of
when
.Another option I am exploring is to use a FIRRTL transform to inject these cover statements instead.