Fix formatting

This commit is contained in:
joey0320
2022-12-23 20:38:40 -08:00
parent 850f613a14
commit 2dfa1847e7
2 changed files with 5 additions and 6 deletions

View File

@@ -14,8 +14,8 @@ import logger.LazyLogging
// Requires two phases, one to collect modules below synTop in the hierarchy
// and a second to remove those modules to generate the test harness
private class GenerateTopAndHarness(annotations: AnnotationSeq) extends LazyLogging {
val outAnno: Option[String] = annotations.collectFirst { case OutAnnoAnnotation(s) => s }
val harnessConf: Option[String] = annotations.collectFirst { case HarnessConfAnnotation(h) => h }
val outAnno: Option[String] = annotations.collectFirst { case OutAnnoAnnotation(s) => s }
val harnessConf: Option[String] = annotations.collectFirst { case HarnessConfAnnotation(h) => h }
val annoFiles: List[String] = annotations.flatMap {
case InputAnnotationFileAnnotation(f) => Some(f)
@@ -25,7 +25,7 @@ private class GenerateTopAndHarness(annotations: AnnotationSeq) extends LazyLogg
// Dump firrtl and annotation files
protected def dump(
circuit: Circuit,
annotations: AnnotationSeq,
annotations: AnnotationSeq
): Unit = {
outAnno.foreach { annoPath =>
val outputFile = new java.io.PrintWriter(annoPath)
@@ -34,7 +34,7 @@ private class GenerateTopAndHarness(annotations: AnnotationSeq) extends LazyLogg
case _: EmittedComponent => false
case _: EmittedAnnotation[_] => false
case _: FirrtlCircuitAnnotation => false
case _: OutAnnoAnnotation => false
case _: OutAnnoAnnotation => false
case _ => true
})))
outputFile.close()

View File

@@ -46,7 +46,7 @@ trait TapeoutCli {
Seq(
OutAnnoAnnotation,
HarnessConfAnnotation,
HarnessConfAnnotation
).foreach(_.addOptions(parser))
}
@@ -66,4 +66,3 @@ class TapeoutStage(doHarness: Boolean) extends Stage {
annotations
}
}