From 76f6c8adb2d0113f6c9e4adb450255126089f32c Mon Sep 17 00:00:00 2001 From: Abraham Gonzalez Date: Sat, 17 Aug 2019 10:35:41 -0700 Subject: [PATCH 1/2] remove large annotations --- tapeout/src/main/scala/transforms/Generate.scala | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tapeout/src/main/scala/transforms/Generate.scala b/tapeout/src/main/scala/transforms/Generate.scala index e8a64eb7..8e595499 100644 --- a/tapeout/src/main/scala/transforms/Generate.scala +++ b/tapeout/src/main/scala/transforms/Generate.scala @@ -202,6 +202,14 @@ 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 DeletedAnnotation(_, anno) => + anno match { + case ec: EmittedComponent => false + case ea: EmittedAnnotation[_] => false + case fca: FirrtlCircuitAnnotation => false + case _ => true + } + case ec: EmittedComponent => false case ea: EmittedAnnotation[_] => false case fca: FirrtlCircuitAnnotation => false case _ => true From 76ccb75b00bbf75f100f4f2184fe1891ba487775 Mon Sep 17 00:00:00 2001 From: Albert Magyar Date: Mon, 19 Aug 2019 09:08:30 -0700 Subject: [PATCH 2/2] Filter out all deleted annotations --- tapeout/src/main/scala/transforms/Generate.scala | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tapeout/src/main/scala/transforms/Generate.scala b/tapeout/src/main/scala/transforms/Generate.scala index 8e595499..e59fe75a 100644 --- a/tapeout/src/main/scala/transforms/Generate.scala +++ b/tapeout/src/main/scala/transforms/Generate.scala @@ -202,13 +202,7 @@ 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 DeletedAnnotation(_, anno) => - anno match { - case ec: EmittedComponent => false - case ea: EmittedAnnotation[_] => false - case fca: FirrtlCircuitAnnotation => false - case _ => true - } + case da: DeletedAnnotation => false case ec: EmittedComponent => false case ea: EmittedAnnotation[_] => false case fca: FirrtlCircuitAnnotation => false