From d1670c0c84e7f21c77cc6098e77e5683f4d62733 Mon Sep 17 00:00:00 2001 From: John Ingalls <43973001+johningalls-sifive@users.noreply.github.com> Date: Thu, 26 Mar 2020 18:34:51 -0700 Subject: [PATCH] Chisel compile warning: HasBlackBoxResource (#2356) --- 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 e97ef2b943b..55b40b399b1 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") } ) }