GithubHelp home page GithubHelp logo

Comments (8)

Dolu1990 avatar Dolu1990 commented on July 21, 2024

Hi,

I think you need to import vexriscv.ip.fpu._

from vexriscv.

vidushiy25 avatar vidushiy25 commented on July 21, 2024

Hi, I tried doing it and it gives more errors when i use the command :sbt "runMain vexriscv.demo.VexRiscvAhbLite3"

[info] welcome to sbt 1.6.0 (Oracle Corporation Java 19.0.2)
[info] loading settings for project vexriscv-build from plugins.sbt ...
[info] loading project definition from /Users/vidushiyaksh/Desktop/VexRiscv/project
[info] loading settings for project root from build.sbt ...
[info] set current project to VexRiscv (in build file:/Users/vidushiyaksh/Desktop/VexRiscv/)
[info] running (fork) vexriscv.demo.VexRiscvAhbLite3
[info] [Runtime] SpinalHDL v1.9.3 git head : 029104c77a54c53f1edda327a3bea333f7d65fd9
[info] [Runtime] JVM max memory : 4096.0MiB
[info] [Runtime] Current date : 2023.10.18 16:32:41
[info] [Progress] at 0.000 : Elaborate components
[info] **********************************************************************************************
[info] [Warning] Elaboration failed (0 error).
[info] Spinal will restart with scala trace to help you to find the problem.
[info] **********************************************************************************************
[info] [Progress] at 0.231 : Elaborate components
[error] Exception in thread "main" java.lang.AssertionError: assertion failed: ??? vexriscv.plugin.DBusEncodingService
[error] at scala.Predef$.assert(Predef.scala:170)
[error] at spinal.core.package$.assert(core.scala:500)
[error] at vexriscv.Pipeline$class.service(Pipeline.scala:26)
[error] at vexriscv.VexRiscv.service(VexRiscv.scala:126)
[error] at vexriscv.plugin.FpuPlugin.setup(FpuPlugin.scala:175)
[error] at vexriscv.plugin.FpuPlugin.setup(FpuPlugin.scala:25)
[error] at vexriscv.Pipeline$$anonfun$build$2.apply(Pipeline.scala:47)
[error] at vexriscv.Pipeline$$anonfun$build$2.apply(Pipeline.scala:47)
[error] at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
[error] at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
[error] at vexriscv.Pipeline$class.build(Pipeline.scala:47)
[error] at vexriscv.VexRiscv.build(VexRiscv.scala:126)
[error] at vexriscv.Pipeline$$anonfun$1.apply$mcV$sp(Pipeline.scala:161)
[error] at spinal.core.Component$$anonfun$prePop$1.apply(Component.scala:180)
[error] at spinal.core.Component$$anonfun$prePop$1.apply(Component.scala:178)
[error] at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
[error] at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
[error] at spinal.core.Component.prePop(Component.scala:178)
[error] at spinal.core.Component.postInitCallback(Component.scala:187)
[error] at vexriscv.demo.VexRiscvAhbLite3$$anonfun$1.apply(VexRiscvAhbLite3.scala:145)
[error] at vexriscv.demo.VexRiscvAhbLite3$$anonfun$1.apply(VexRiscvAhbLite3.scala:25)
[error] at spinal.core.internals.PhaseCreateComponent$$anonfun$impl$67.apply(Phase.scala:2606)
[error] at spinal.core.fiber.Engine$$anonfun$create$1.apply$mcV$sp(AsyncCtrl.scala:147)
[error] at spinal.core.fiber.AsyncThread$$anonfun$1.apply$mcV$sp(AsyncThread.scala:59)
[error] at spinal.core.fiber.EngineContext$$anonfun$newJvmThread$1.apply$mcV$sp(AsyncCtrl.scala:39)
[error] at spinal.sim.JvmThread.run(SimManager.scala:51)
[error] Nonzero exit code returned from runner: 1
[error] (Compile / runMain) Nonzero exit code returned from runner: 1

The file with the import line :
AHBLITE3FPU.zip

from vexriscv.

Dolu1990 avatar Dolu1990 commented on July 21, 2024

Ahhh that's because the FPU only support the data cache, so you need to use DBusCachedPlugin instead of DBusSimplePlugin

from vexriscv.

vidushiy25 avatar vidushiy25 commented on July 21, 2024

I commented out lines 38 to 41 and lines 154 to 157 uncommented lines 61 to 73 and lines lines 164 to 169. It now gives me an error:[info] welcome to sbt 1.6.0 (Oracle Corporation Java 19.0.2)
[info] loading settings for project vexriscv-build from plugins.sbt ...
[info] loading project definition from /Users/vidushiyaksh/Desktop/VexRiscv/project
[info] loading settings for project root from build.sbt ...
[info] set current project to VexRiscv (in build file:/Users/vidushiyaksh/Desktop/VexRiscv/)
[info] compiling 1 Scala source to /Users/vidushiyaksh/Desktop/VexRiscv/target/scala-2.11/classes ...
[error] /Users/vidushiyaksh/Desktop/VexRiscv/src/main/scala/vexriscv/demo/VexRiscvAhbLite3.scala:145:7: ')' expected but 'val' found.
[error] val cpu = new VexRiscv(cpuConfig)
[error] ^
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 2 s, completed 18 Oct 2023, 16:42:14
VexRiscvAhbLite3.scala.zip

from vexriscv.

Dolu1990 avatar Dolu1990 commented on July 21, 2024

uncomment the 2 lines :
// memoryTranslatorPortConfig = null
...
// ),

from vexriscv.

vidushiy25 avatar vidushiy25 commented on July 21, 2024

another error: [info] welcome to sbt 1.6.0 (Oracle Corporation Java 19.0.2)
[info] loading settings for project vexriscv-build from plugins.sbt ...
[info] loading project definition from /Users/vidushiyaksh/Desktop/VexRiscv/project
[info] loading settings for project root from build.sbt ...
[info] set current project to VexRiscv (in build file:/Users/vidushiyaksh/Desktop/VexRiscv/)
[info] compiling 1 Scala source to /Users/vidushiyaksh/Desktop/VexRiscv/target/scala-2.11/classes ...
[error] /Users/vidushiyaksh/Desktop/VexRiscv/src/main/scala/vexriscv/demo/VexRiscvAhbLite3.scala:72:41: unknown parameter name: catchMemoryTranslationMiss
[error] catchMemoryTranslationMiss = true
[error] ^
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
VexRiscvAhbLite3.scala.zip

from vexriscv.

Dolu1990 avatar Dolu1990 commented on July 21, 2024

you can remove :
,
catchMemoryTranslationMiss = true

from vexriscv.

vidushiy25 avatar vidushiy25 commented on July 21, 2024

Thanks, it works.

from vexriscv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.