From a17753983a8b92b258d5cde9e32c2ba102fbe981 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Fri, 25 Nov 2016 19:38:24 -0800 Subject: [PATCH] coreplex: allow legacy devices to override the config string (#458) --- src/main/scala/coreplex/RISCVPlatform.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/scala/coreplex/RISCVPlatform.scala b/src/main/scala/coreplex/RISCVPlatform.scala index 804854d4..374ef4ee 100644 --- a/src/main/scala/coreplex/RISCVPlatform.scala +++ b/src/main/scala/coreplex/RISCVPlatform.scala @@ -29,7 +29,9 @@ trait CoreplexRISCVPlatform extends CoreplexNetwork { lazy val configString = { val managers = l1tol2.node.edgesIn(0).manager.managers - rocketchip.GenerateConfigString(p, clint, plic, managers) + // Use the existing config string if the user overrode it + ConfigStringOutput.contents.getOrElse( + rocketchip.GenerateConfigString(p, clint, plic, managers)) } }