BaseTop: record top module; more general than GraphML
This commit is contained in:
committed by
Yunsup Lee
parent
5ff3d3d61c
commit
0a4ef66894
@ -5,6 +5,7 @@ package util
|
||||
import Chisel._
|
||||
import cde._
|
||||
import java.io.{File, FileWriter}
|
||||
import uncore.tilelink2.LazyModule
|
||||
|
||||
/** Representation of the information this Generator needs to collect from external sources. */
|
||||
case class ParsedInputNames(
|
||||
@ -120,7 +121,7 @@ trait GeneratorApp extends App with HasGeneratorUtilities {
|
||||
|
||||
/** Output a global LazyModule topology for documentation purposes. */
|
||||
def generateGraphML {
|
||||
GraphMLOutput.contents.foreach(c => writeOutputFile(td, s"${names.configs}.graphml", c))
|
||||
TopModule.contents.foreach(lm => writeOutputFile(td, s"${names.configs}.graphml", lm.graphML))
|
||||
}
|
||||
}
|
||||
|
||||
@ -128,6 +129,6 @@ object ConfigStringOutput {
|
||||
var contents: Option[String] = None
|
||||
}
|
||||
|
||||
object GraphMLOutput {
|
||||
var contents: Option[String] = None
|
||||
object TopModule {
|
||||
var contents: Option[LazyModule] = None
|
||||
}
|
||||
|
Reference in New Issue
Block a user