Fix dump to dumpAnnos
This commit is contained in:
@@ -7,7 +7,6 @@ import firrtl.ir._
|
|||||||
import firrtl.options.{Dependency, InputAnnotationFileAnnotation, StageMain}
|
import firrtl.options.{Dependency, InputAnnotationFileAnnotation, StageMain}
|
||||||
import firrtl.passes.memlib.ReplSeqMemAnnotation
|
import firrtl.passes.memlib.ReplSeqMemAnnotation
|
||||||
import firrtl.stage.{FirrtlCircuitAnnotation, FirrtlStage, OutputFileAnnotation, RunFirrtlTransformAnnotation}
|
import firrtl.stage.{FirrtlCircuitAnnotation, FirrtlStage, OutputFileAnnotation, RunFirrtlTransformAnnotation}
|
||||||
import firrtl.passes.{ConvertFixedToSInt}
|
|
||||||
import firrtl.transforms.BlackBoxResourceFileNameAnno
|
import firrtl.transforms.BlackBoxResourceFileNameAnno
|
||||||
import logger.LazyLogging
|
import logger.LazyLogging
|
||||||
|
|
||||||
@@ -23,8 +22,8 @@ private class GenerateTopAndHarness(annotations: AnnotationSeq) extends LazyLogg
|
|||||||
}.toList
|
}.toList
|
||||||
|
|
||||||
// Dump firrtl and annotation files
|
// Dump firrtl and annotation files
|
||||||
protected def dump(
|
// Use global param outAnno
|
||||||
circuit: Circuit,
|
protected def dumpAnnos(
|
||||||
annotations: AnnotationSeq
|
annotations: AnnotationSeq
|
||||||
): Unit = {
|
): Unit = {
|
||||||
outAnno.foreach { annoPath =>
|
outAnno.foreach { annoPath =>
|
||||||
@@ -49,7 +48,7 @@ private class GenerateTopAndHarness(annotations: AnnotationSeq) extends LazyLogg
|
|||||||
|
|
||||||
annos.collectFirst { case FirrtlCircuitAnnotation(circuit) => circuit } match {
|
annos.collectFirst { case FirrtlCircuitAnnotation(circuit) => circuit } match {
|
||||||
case Some(circuit) =>
|
case Some(circuit) =>
|
||||||
dump(circuit, annos)
|
dumpAnnos(annos)
|
||||||
case _ =>
|
case _ =>
|
||||||
throw new Exception(s"executeTop failed while executing FIRRTL!\n")
|
throw new Exception(s"executeTop failed while executing FIRRTL!\n")
|
||||||
}
|
}
|
||||||
@@ -73,7 +72,7 @@ private class GenerateTopAndHarness(annotations: AnnotationSeq) extends LazyLogg
|
|||||||
val annos = new FirrtlStage().execute(Array.empty, generatorAnnotations)
|
val annos = new FirrtlStage().execute(Array.empty, generatorAnnotations)
|
||||||
annos.collectFirst { case FirrtlCircuitAnnotation(circuit) => circuit } match {
|
annos.collectFirst { case FirrtlCircuitAnnotation(circuit) => circuit } match {
|
||||||
case Some(circuit) =>
|
case Some(circuit) =>
|
||||||
dump(circuit, annos)
|
dumpAnnos(annos)
|
||||||
case _ =>
|
case _ =>
|
||||||
throw new Exception(s"executeTop failed while executing FIRRTL!\n")
|
throw new Exception(s"executeTop failed while executing FIRRTL!\n")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user