Filter out all deleted annotations
This commit is contained in:
@@ -202,13 +202,7 @@ sealed trait GenerateTopAndHarnessApp extends LazyLogging { this: App =>
|
|||||||
annoFile.foreach { annoPath =>
|
annoFile.foreach { annoPath =>
|
||||||
val outputFile = new java.io.PrintWriter(annoPath)
|
val outputFile = new java.io.PrintWriter(annoPath)
|
||||||
outputFile.write(JsonProtocol.serialize(res.circuitState.annotations.filter(_ match {
|
outputFile.write(JsonProtocol.serialize(res.circuitState.annotations.filter(_ match {
|
||||||
case DeletedAnnotation(_, anno) =>
|
case da: DeletedAnnotation => false
|
||||||
anno match {
|
|
||||||
case ec: EmittedComponent => false
|
|
||||||
case ea: EmittedAnnotation[_] => false
|
|
||||||
case fca: FirrtlCircuitAnnotation => false
|
|
||||||
case _ => true
|
|
||||||
}
|
|
||||||
case ec: EmittedComponent => false
|
case ec: EmittedComponent => false
|
||||||
case ea: EmittedAnnotation[_] => false
|
case ea: EmittedAnnotation[_] => false
|
||||||
case fca: FirrtlCircuitAnnotation => false
|
case fca: FirrtlCircuitAnnotation => false
|
||||||
|
|||||||
Reference in New Issue
Block a user