1
0

rocketchip: generate GraphML output

This commit is contained in:
Wesley W. Terpstra
2016-09-26 01:42:46 -07:00
committed by Yunsup Lee
parent 1773eb4405
commit dd9558f45d
3 changed files with 11 additions and 1 deletions

View File

@ -117,9 +117,17 @@ trait GeneratorApp extends App with HasGeneratorUtilities {
def generateConfigString {
ConfigStringOutput.contents.foreach(c => writeOutputFile(td, s"${names.configs}.cfg", c))
}
/** Output a global LazyModule topology for documentation purposes. */
def generateGraphML {
GraphMLOutput.contents.foreach(c => writeOutputFile(td, s"${names.configs}.graphml", c))
}
}
object ConfigStringOutput {
var contents: Option[String] = None
}
object GraphMLOutput {
var contents: Option[String] = None
}