From e97844f71e34b82e3f1d851cd4498c44b3efa43c Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Sat, 29 Oct 2016 01:19:16 -0700 Subject: [PATCH] coreplex: make it possible to override the ConfigString --- src/main/scala/coreplex/BaseCoreplex.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/scala/coreplex/BaseCoreplex.scala b/src/main/scala/coreplex/BaseCoreplex.scala index af6abaf0..26e9b447 100644 --- a/src/main/scala/coreplex/BaseCoreplex.scala +++ b/src/main/scala/coreplex/BaseCoreplex.scala @@ -153,8 +153,11 @@ trait CoreplexRISCVModule { // Create and export the ConfigString val managers = outer.l1tol2.node.edgesIn(0).manager.managers val configString = rocketchip.GenerateConfigString(p, outer.clint, outer.plic, managers) - println(s"\nGenerated Configuration String\n${configString}") - ConfigStringOutput.contents = Some(configString) + // Allow something else to have override the config string + if (!ConfigStringOutput.contents.isDefined) { + ConfigStringOutput.contents = Some(configString) + } + println(s"\nGenerated Configuration String\n${ConfigStringOutput.contents.get}") val nCachedPorts = tiles.map(tile => tile.io.cached.size).reduce(_ + _) val nUncachedPorts = tiles.map(tile => tile.io.uncached.size).reduce(_ + _)