Skip to content

Commit

Permalink
[ExtractTestCode] Fix attribute name in LowerToHW (#2043)
Browse files Browse the repository at this point in the history
Mismatch between LowerToHW and what SVExtractTestCode expects (which matches the documentation).
  • Loading branch information
darthscsi authored Oct 27, 2021
1 parent 5f1d4ae commit e2a9e9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/Conversion/FIRRTLToHW/LowerToHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,12 @@ void FIRRTLModuleLowering::runOnOperation() {
SmallVector<FModuleOp, 32> modulesToProcess;

AnnotationSet circuitAnno(circuit);
moveVerifAnno(getOperation(), circuitAnno, assertAnnoClass, "firrtl.assert");
moveVerifAnno(getOperation(), circuitAnno, assumeAnnoClass, "firrtl.assume");
moveVerifAnno(getOperation(), circuitAnno, coverAnnoClass, "firrtl.cover");
moveVerifAnno(getOperation(), circuitAnno, assertAnnoClass,
"firrtl.extract.assert");
moveVerifAnno(getOperation(), circuitAnno, assumeAnnoClass,
"firrtl.extract.assume");
moveVerifAnno(getOperation(), circuitAnno, coverAnnoClass,
"firrtl.extract.cover");
circuitAnno.removeAnnotationsWithClass(assertAnnoClass, assumeAnnoClass,
coverAnnoClass);

Expand Down

0 comments on commit e2a9e9c

Please sign in to comment.