Merge pull request #66 from ucb-bar/large-anno-remove

Remove large annotations
This commit is contained in:
Abraham Gonzalez
2019-11-05 17:16:03 -08:00
committed by GitHub

View File

@@ -202,6 +202,8 @@ sealed trait GenerateTopAndHarnessApp extends LazyLogging { this: App =>
annoFile.foreach { annoPath =>
val outputFile = new java.io.PrintWriter(annoPath)
outputFile.write(JsonProtocol.serialize(res.circuitState.annotations.filter(_ match {
case da: DeletedAnnotation => false
case ec: EmittedComponent => false
case ea: EmittedAnnotation[_] => false
case fca: FirrtlCircuitAnnotation => false
case _ => true