[error] (run-main-0) java.lang.AssertionError: assertion failed:
[error] java.lang.AssertionError: assertion failed:
[error] at scala.Predef$.assert(Predef.scala:170)
[error] at chisel3.core.assert$.apply(Assert.scala:76)
[error] at chisel3.iotesters.setupVerilatorBackend$.apply(VerilatorBackend.scala:262)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1$$anonfun$apply$mcZ$sp$1.apply$mcZ$sp(Driver.scala:56)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1$$anonfun$apply$mcZ$sp$1.apply(Driver.scala:39)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1$$anonfun$apply$mcZ$sp$1.apply(Driver.scala:39)
[error] at logger.Logger$$anonfun$makeScope$1.apply(Logger.scala:138)
[error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
[error] at logger.Logger$.makeScope(Logger.scala:136)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1.apply$mcZ$sp(Driver.scala:39)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1.apply(Driver.scala:39)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1.apply(Driver.scala:39)
[error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
[error] at chisel3.iotesters.Driver$.execute(Driver.scala:38)
[error] at chisel3.iotesters.Driver$.execute(Driver.scala:100)
[error] at mnist.FC2Main$.delayedEndpoint$mnist$FC2Main$1(FC2Main.scala:8)
[error] at mnist.FC2Main$delayedInit$body.apply(FC2Main.scala:7)
[error] at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
[error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[error] at scala.App$$anonfun$main$1.apply(App.scala:76)
[error] at scala.App$$anonfun$main$1.apply(App.scala:76)
[error] at scala.collection.immutable.List.foreach(List.scala:392)
[error] at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
[error] at scala.App$class.main(App.scala:76)
[error] at mnist.FC2Main$.main(FC2Main.scala:7)
[error] at mnist.FC2Main.main(FC2Main.scala)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] at java.lang.reflect.Method.invoke(Method.java:498)
[error] Nonzero exit code: 1
[error] (Test / runMain) Nonzero exit code: 1
[error] Total time: 20041 s, completed Jan 15, 2019 3:04:24 AM
[错误](run-main-0)java.lang.AssertionError:断言失败:
当我尝试运行大型Chisel程序时出现此错误。如果程序的计算量较小,则不会显示。 基本上,我的代码计算出几个矩阵的乘法。
在运行代码之前,我将sbt内存增加到最大并删除了临时文件。
答案 0 :(得分:0)
如果您可以像这样进行编辑,就可以将堆栈跟踪信息放入原始帖子中,将很有帮助:
[error] (run-main-0) java.lang.AssertionError: assertion failed:
[error] java.lang.AssertionError: assertion failed:
[error] at scala.Predef$.assert(Predef.scala:170)
[error] at chisel3.core.assert$.apply(Assert.scala:76)
[error] at chisel3.iotesters.setupVerilatorBackend$.apply(VerilatorBackend.scala:262)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1$$anonfun$apply$mcZ$sp$1.apply$mcZ$sp(Driver.scala:56)
对我而言,这表明Verilator编译失败。您还有其他东西要打印吗?也许像这样:
/bin/sh: 1: verilator: not found
如果是这种情况,那么您就没有安装verilator
,以下是Linux的说明:https://github.com/freechipsproject/chisel3#ubuntu-like-linux