Hi,
Apologies for being vague. I am using the latest chisel release (whatever that is), by specifying "latest.release" in my build.sbt. The stack trace is given below
CPP elaborate
[info] [15.123] // COMPILING < (class MM_IP_NoC.FabricWrapper)>(33)
[info] [16.397] giving names
[info] [17.607] executing custom transforms
[info] [17.608] adding clocks and resets
[info] [18.321] inferring widths
[info] [20.059] checking widths
[info] [20.795] lowering complex nodes to primitives
[info] [20.795] removing type nodes
[info] [21.367] compiling 314255 nodes
[info] [21.367] computing memory ports
[info] [22.384] resolving nodes to the components
[info] [26.108] creating clock domains
[info] [26.479] pruning unconnected IOs
[info] [26.528] checking for unconnected ports
[info] [26.563] checking for combinational loops
[info] [26.969] NO COMBINATIONAL LOOP FOUND
[error] (run-main-0) java.lang.StringIndexOutOfBoundsException: String index out of range: 4
java.lang.StringIndexOutOfBoundsException: String index out of range: 4
at java.lang.String.charAt(String.java:658)
at scala.collection.immutable.StringLike$class.apply(StringLike.scala:53)
at scala.collection.immutable.WrappedString.apply(WrappedString.scala:31)
at scala.collection.immutable.WrappedString.apply(WrappedString.scala:31)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.immutable.Range.foreach(Range.scala:141)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at Chisel.Backend.genIndent(Backend.scala:721)
at Chisel.Backend$$anonfun$printStack$1.apply(Backend.scala:724)
at Chisel.Backend$$anonfun$printStack$1.apply(Backend.scala:723)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at Chisel.Backend.printStack(Backend.scala:723)
at Chisel.Backend.elaborate(Backend.scala:920)
at Chisel.CppBackend.elaborate(Cpp.scala:1360)
at Chisel.Driver$.execute(Driver.scala:92)
at Chisel.Driver$.apply(Driver.scala:40)
at Chisel.Driver$.apply(Driver.scala:51)
at Chisel.chiselMain$.apply(hcl.scala:63)
at Chisel.chiselMainTest$.apply(hcl.scala:76)
at MM_IP_NoC.MM_IP_NoC$.main(main.scala:111)
at MM_IP_NoC.MM_IP_NoC.main(main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
[trace] Stack trace suppressed: run last MM_IP_NoC/compile:run for the full output.
java.lang.RuntimeException: Nonzero exit code: 1
at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last MM_IP_NoC/compile:run for the full output.
[error] (MM_IP_NoC/compile:run) Nonzero exit code: 1
The main.scala from MM_IP_NoC package belongs me. The line 111 from main scala which throws this error
contains
110 case "FabricWrapperTest" => ( chiselMainTest(myargs, moduleToTest)
111 { c => new FabricWrapperTest(c.asInstanceOf[FabricWrapper]) } )
where, moduleToTest = () => Module(new FabricWrapper(TestParams.SRC, TestParams.DST)).
I am meanwhile trying to reproduce the exception for a simple case. I would post the source code, if I able to come up with one.
sincerely Arka