Skip to content

Commit

Permalink
litex smp add resetVector argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Feb 13, 2024
1 parent 0465422 commit 3c191b1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class VexRiscvLitexSmpCluster(p : VexRiscvLitexSmpClusterParameter) extends VexR
object VexRiscvLitexSmpClusterCmdGen extends App {
Handle.loadHandleAsync = true
var cpuCount = 1
var resetVector = 0l
var iBusWidth = 64
var dBusWidth = 64
var iCacheSize = 8192
Expand Down Expand Up @@ -134,6 +135,7 @@ object VexRiscvLitexSmpClusterCmdGen extends App {
help("help").text("prints this usage text")
opt[Unit] ("coherent-dma") action { (v, c) => coherentDma = true }
opt[String]("cpu-count") action { (v, c) => cpuCount = v.toInt }
opt[String]("reset-vector") action { (v, c) => resetVector = v.toLong }
opt[String]("ibus-width") action { (v, c) => iBusWidth = v.toInt }
opt[String]("dbus-width") action { (v, c) => dBusWidth = v.toInt }
opt[String]("icache-size") action { (v, c) => iCacheSize = v.toInt }
Expand Down Expand Up @@ -165,7 +167,7 @@ object VexRiscvLitexSmpClusterCmdGen extends App {
val c = vexRiscvConfig(
hartId = hartId,
ioRange = address => address.msb,
resetVector = 0,
resetVector = resetVector,
iBusWidth = iBusWidth,
dBusWidth = dBusWidth,
iCacheSize = iCacheSize,
Expand Down

0 comments on commit 3c191b1

Please sign in to comment.