Revert "[stevo]: add custom analog annotation" (#21)
* Revert "[stevo]: add custom analog annotation (#20)"
This reverts commit 7ad088503f.
This commit is contained in:
@@ -110,7 +110,6 @@ sealed trait GenerateTopAndHarnessApp extends App with LazyLogging {
|
||||
val post = if (top) { Seq(
|
||||
new passes.memlib.InferReadWrite(),
|
||||
new passes.memlib.ReplSeqMem(),
|
||||
new AnalogRenamer(),
|
||||
new passes.clocklist.ClockListTransform()
|
||||
) } else Seq()
|
||||
|
||||
@@ -152,28 +151,12 @@ sealed trait GenerateTopAndHarnessApp extends App with LazyLogging {
|
||||
Seq(
|
||||
new ConvertToExtMod((m) => m.name == synTop.get),
|
||||
new RemoveUnusedModules,
|
||||
new RenameModulesAndInstances((m) => AllModules.rename(m)),
|
||||
new AnalogRenamer()
|
||||
new RenameModulesAndInstances((m) => AllModules.rename(m))
|
||||
)
|
||||
}
|
||||
|
||||
// always the same for now
|
||||
private def getSecondPhaseAnnotations: AnnotationMap = {
|
||||
//Load annotations from file
|
||||
val annotationArray = annoFile match {
|
||||
case None => Array[Annotation]()
|
||||
case Some(fileName) => {
|
||||
val annotations = new File(fileName)
|
||||
if(annotations.exists) {
|
||||
val annotationsYaml = io.Source.fromFile(annotations).getLines().mkString("\n").parseYaml
|
||||
annotationsYaml.convertTo[Array[Annotation]]
|
||||
} else {
|
||||
Array[Annotation]()
|
||||
}
|
||||
}
|
||||
}
|
||||
AnnotationMap(annotationArray)
|
||||
}
|
||||
private def getSecondPhaseAnnotations: AnnotationMap = AnnotationMap(Seq.empty)
|
||||
|
||||
// Top Generation
|
||||
protected def firstPhase(top: Boolean, harness: Boolean): Unit = {
|
||||
|
||||
Reference in New Issue
Block a user