sifive / freedom

Source files for SiFive's Freedom platforms
Apache License 2.0
1.11k stars 286 forks source link

How to Simulate e300artydevkit? #168

Open kvtam opened 3 years ago

kvtam commented 3 years ago

I'm trying to simulate and generate waveforms for the e300artydevkit. I thought that editing the Makefrag to :

`MODEL ?= sifive.freedom.everywhere.e300srtydevkit

PROJECT ?= sifive.freedom.everywhere.e300artydevkit

CFG_PROJECT ?= $(PROJECT)

CONFIG ?= E300ArtyDevKitConfig ` would help but I end up with

`[info] Set current project to rocketchip (in build file:/opt/freedom/rocket-chip/)

[warn] Multiple main classes detected. Run 'show discoveredMainClasses' to see the list [info] Running sifive.freedom.everywhere.e300artydevkit.Generator /opt/freedom/rocket-chip/emulator/generated-src sifive.freedom.everywhere.e300artydevkit sifive.freedom.everywhere.e300srtydevkit sifive.freedom.everywhere.e300artydevkit E300ArtyDevKitConfig [error] (run-main-0) java.lang.ClassNotFoundException: sifive.freedom.everywhere.e300artydevkit.Generator [error] java.lang.ClassNotFoundException: sifive.freedom.everywhere.e300artydevkit.Generator [error] at java.base/java.lang.ClassLoader.findClass(ClassLoader.java:719) [error] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) [error] at sbt.internal.inc.classpath.ClasspathFilter.loadClass(ClassLoaders.scala:70) [error] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) [error] at java.base/java.lang.Class.forName0(Native Method) [error] at java.base/java.lang.Class.forName(Class.java:398) [error] at sbt.Run.getMainMethod(Run.scala:98) [error] at sbt.Run.run0(Run.scala:86) [error] at sbt.Run.execute$1(Run.scala:65) [error] at sbt.Run.$anonfun$run$4(Run.scala:77) [error] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) [error] at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:10) [error] at sbt.TrapExit$App.run(TrapExit.scala:252) [error] at java.base/java.lang.Thread.run(Thread.java:834) [error] java.lang.RuntimeException: Nonzero exit code: 1 [error] at sbt.Run$.executeTrapExit(Run.scala:124) [error] at sbt.Run.run(Run.scala:77) [error] at sbt.Defaults$.$anonfun$bgRunMainTask$6(Defaults.scala:1147) [error] at sbt.Defaults$.$anonfun$bgRunMainTask$6$adapted(Defaults.scala:1142) [error] at sbt.internal.BackgroundThreadPool.$anonfun$run$1(DefaultBackgroundJobService.scala:366) [error] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) [error] at scala.util.Try$.apply(Try.scala:209) [error] at sbt.internal.BackgroundThreadPool$BackgroundRunnable.run(DefaultBackgroundJobService.scala:289) [error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [error] at java.base/java.lang.Thread.run(Thread.java:834) [error] (Compile / runMain) Nonzero exit code: 1 [error] Total time: 2 s, completed Jan 7, 2021, 1:45:50 AM Makefrag-verilator:12: recipe for target '/opt/freedom/rocket-chip/emulator/generated-src/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.fir' failed make: *** [/opt/freedom/rocket-chip/emulator/generated-src/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.fir] Error 1 ` Thank you to anyone who can help me out.