Revert "[stevo]: add custom analog annotation" (#21)

* Revert "[stevo]: add custom analog annotation (#20)"

This reverts commit 7ad088503f.
This commit is contained in:
Angie Wang
2017-04-02 13:12:51 -07:00
committed by GitHub
parent 9305dd08eb
commit 5b5c8c82db
2 changed files with 2 additions and 100 deletions

View File

@@ -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 = {