Skip to content

Commit

Permalink
Chisel compile warning: HasBlackBoxResource (#2356)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingallsj authored Mar 27, 2020
1 parent 85af042 commit d1670c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/main/scala/devices/debug/Periphery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/tile/LazyRoCC.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
)
}
Expand Down

0 comments on commit d1670c0

Please sign in to comment.