-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Hi @Dolu1990,
i tried testing the program after the new merge,
and it seems i am getting error directly here
sbt "runMain naxriscv.Gen"
Where i get this error:
sbt "runMain naxriscv.Gen"
[info] welcome to sbt 1.6.0 (Oracle Corporation Java 11.0.25)
[info] loading settings for project naxriscv-build from plugins.sbt ...
[info] loading project definition from /home/Kihsir/Downloads/Git/Scala/NaxRiscv/project
[info] loading settings for project root from build.sbt ...
[info] loading settings for project spinalhdl-build from plugin.sbt ...
[info] loading project definition from /home/Kihsir/Downloads/Git/Scala/NaxRiscv/ext/SpinalHDL/project
[info] loading settings for project all from build.sbt ...
[info] set current project to NaxRiscv (in build file:/home/Kihsir/Downloads/Git/Scala/NaxRiscv/)
[info] compiling 127 Scala sources and 3 Java sources to /home/Kihsir/Downloads/Git/Scala/NaxRiscv/target/scala-2.12/classes ...
[error] /home/Kihsir/Downloads/Git/Scala/NaxRiscv/src/main/scala/naxriscv/platform/Tracer.scala:175:62: too many arguments (2) for method newContext: (workspace: String)Long
[error] val handle = Frontend.newContext(workspace.getAbsolutePath,spikeLogFileOut)
[error] ^
[error] /home/Kihsir/Downloads/Git/Scala/NaxRiscv/src/main/scala/naxriscv/platform/Tracer.scala:193:67: value loadU32 is not a member of object rvls.jni.Frontend
[error] override def loadU32(address: Long, data: Int): Unit = Frontend.loadU32(handle, address, data)
[error] ^
[error] /home/Kihsir/Downloads/Git/Scala/NaxRiscv/src/main/scala/naxriscv/platform/Tracer.scala:198:142: too many arguments (5) for method trap: (handle: Long, hartId: Int, interrupt: Boolean, code: Int)Boolean
[error] override def trap(hartId: Int, interrupt: Boolean, code: Int, fault_addr: Long): Unit = if(!Frontend.trap(handle, hartId, interrupt, code, fault_addr)) throw new Exception()
[error] ^
[error] /home/Kihsir/Downloads/Git/Scala/NaxRiscv/src/main/scala/naxriscv/platform/tilelinkdemo/SocSim.scala:133:6: value wavePath is not a member of spinal.core.sim.SpinalSimConfig
[error] sc.wavePath(s"waves/${workspaceOutputSubDir}")
[error] ^
[error] /home/Kihsir/Downloads/Git/Scala/NaxRiscv/src/main/scala/naxriscv/platform/tilelinkdemo/SocSim.scala:201:34: overloaded method value withCb with alternatives:
[error] [T <: spinal.core.Component](compiled: spinal.core.sim.SimCompiled[T], window: Long, seed: Int)(testbench: (T, (=> Unit) => Unit) => Unit)Unit <and>
[error] [T <: spinal.core.Component](compiled: spinal.core.sim.SimCompiled[T], window: Long, seed: Int, dualSimEnable: Boolean)(testbench: (T, (=> Unit) => Unit) => Unit)Unit
[error] cannot be applied to (spinal.core.sim.SimCompiled[naxriscv.platform.tilelinkdemo.SocSim.SocDemoSim], window: Int, seed: Int, String, runBuildroot: Boolean)
[error] case true => DualSimTracer.withCb(compiled, window = 50000 * 10, seed = 2, file, runBuildroot = false)(testIt)
[error] ^
[error] /home/Kihsir/Downloads/Git/Scala/NaxRiscv/src/main/scala/naxriscv/platform/tilelinkdemo/SocSim.scala:201:110: missing argument list for method testIt in object SocSim
[error] Unapplied methods are only converted to functions when a function type is expected.
[error] You can make this conversion explicit by writing `testIt _` or `testIt(_,_,_,_)` instead of `testIt`.
[error] case true => DualSimTracer.withCb(compiled, window = 50000 * 10, seed = 2, file, runBuildroot = false)(testIt)
[error] ^
[error] /home/Kihsir/Downloads/Git/Scala/NaxRiscv/src/main/scala/naxriscv/platform/tilelinkdemo/SocSim.scala:211:34: overloaded method value withCb with alternatives:
[error] [T <: spinal.core.Component](compiled: spinal.core.sim.SimCompiled[T], window: Long, seed: Int)(testbench: (T, (=> Unit) => Unit) => Unit)Unit <and>
[error] [T <: spinal.core.Component](compiled: spinal.core.sim.SimCompiled[T], window: Long, seed: Int, dualSimEnable: Boolean)(testbench: (T, (=> Unit) => Unit) => Unit)Unit
[error] cannot be applied to (spinal.core.sim.SimCompiled[naxriscv.platform.tilelinkdemo.SocSim.SocDemoSim], window: Int, seed: Int, String, runBuildroot: Boolean)
[error] case true => DualSimTracer.withCb(compiled, window = 50000 * 10, seed = 2, file, runBuildroot = true)(testIt)
[error] ^
[error] /home/Kihsir/Downloads/Git/Scala/NaxRiscv/src/main/scala/naxriscv/platform/tilelinkdemo/SocSim.scala:211:109: missing argument list for method testIt in object SocSim
[error] Unapplied methods are only converted to functions when a function type is expected.
[error] You can make this conversion explicit by writing `testIt _` or `testIt(_,_,_,_)` instead of `testIt`.
[error] case true => DualSimTracer.withCb(compiled, window = 50000 * 10, seed = 2, file, runBuildroot = true)(testIt)
[error] ^
[error] 8 errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 14 s, completed Mar 11, 2025, 12:51:30 PM
It could very well be a me issue but looking at the error seems possibly some code issue?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels