From df94bc45b6a519283bd830e986b9b0e7331c50db Mon Sep 17 00:00:00 2001 From: John Ingalls Date: Sun, 22 Mar 2020 14:48:24 -0700 Subject: [PATCH] HasBlackBoxResource setResource addResource --- src/main/scala/devices/debug/Periphery.scala | 12 ++++++------ src/main/scala/tile/LazyRoCC.scala | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/scala/devices/debug/Periphery.scala b/src/main/scala/devices/debug/Periphery.scala index 2e4d73d9b52..8722d05e5b8 100644 --- a/src/main/scala/devices/debug/Periphery.scala +++ b/src/main/scala/devices/debug/Periphery.scala @@ -174,8 +174,8 @@ class SimDTM(implicit p: Parameters) extends BlackBox with HasBlackBoxResource { } } - setResource("/vsrc/SimDTM.v") - setResource("/csrc/SimDTM.cc") + addResource("/vsrc/SimDTM.v") + addResource("/csrc/SimDTM.cc") } class SimJTAG(tickDelay: Int = 50) extends BlackBox(Map("TICK_DELAY" -> IntParam(tickDelay))) @@ -210,10 +210,10 @@ class SimJTAG(tickDelay: Int = 50) extends BlackBox(Map("TICK_DELAY" -> IntParam } } - setResource("/vsrc/SimJTAG.v") - setResource("/csrc/SimJTAG.cc") - setResource("/csrc/remote_bitbang.h") - setResource("/csrc/remote_bitbang.cc") + addResource("/vsrc/SimJTAG.v") + addResource("/csrc/SimJTAG.cc") + addResource("/csrc/remote_bitbang.h") + addResource("/csrc/remote_bitbang.cc") } object Debug { diff --git a/src/main/scala/tile/LazyRoCC.scala b/src/main/scala/tile/LazyRoCC.scala index f3e6700878e..7823c0377fa 100644 --- a/src/main/scala/tile/LazyRoCC.scala +++ b/src/main/scala/tile/LazyRoCC.scala @@ -360,7 +360,7 @@ class BlackBoxExampleModuleImp(outer: BlackBoxExample, blackBoxFile: String)(imp val rocc = roccIo.cloneType }) override def desiredName: String = blackBoxFile - setResource(s"/vsrc/$blackBoxFile.v") + addResource(s"/vsrc/$blackBoxFile.v") } ) }