scala.MatchError: EmptyExpression (of class firrtl.EmptyExpression$)

GitHub | ccelio | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    scala.MatchError on EmptyExpression; only manifests in rocket-chip vsim/ directory.

    GitHub | 8 months ago | ccelio
    scala.MatchError: EmptyExpression (of class firrtl.EmptyExpression$)

    Root Cause Analysis

    1. scala.MatchError

      EmptyExpression (of class firrtl.EmptyExpression$)

      at firrtl.passes.InferTypes$.firrtl$passes$InferTypes$$infer_types_e$1()
    2. firrtl.passes
      InferTypes$$anonfun$7.apply
      1. firrtl.passes.InferTypes$.firrtl$passes$InferTypes$$infer_types_e$1(Passes.scala:172)
      2. firrtl.passes.InferTypes$$anonfun$7.apply(Passes.scala:172)
      3. firrtl.passes.InferTypes$$anonfun$7.apply(Passes.scala:172)
      3 frames
    3. firrtl
      Mappers$ExpMap.map
      1. firrtl.Mappers$ExpMagnet$$anon$5.map(Mappers.scala:112)
      2. firrtl.Mappers$ExpMap.map(Mappers.scala:144)
      2 frames
    4. firrtl.passes
      InferTypes$$anonfun$firrtl$passes$InferTypes$$infer_types_s$1$5.apply
      1. firrtl.passes.InferTypes$.firrtl$passes$InferTypes$$infer_types_e$1(Passes.scala:172)
      2. firrtl.passes.InferTypes$$anonfun$firrtl$passes$InferTypes$$infer_types_s$1$5.apply(Passes.scala:213)
      3. firrtl.passes.InferTypes$$anonfun$firrtl$passes$InferTypes$$infer_types_s$1$5.apply(Passes.scala:213)
      3 frames
    5. firrtl
      Mappers$StmtMap.map
      1. firrtl.Mappers$StmtMagnet$$anon$3.map(Mappers.scala:54)
      2. firrtl.Mappers$StmtMap.map(Mappers.scala:95)
      2 frames
    6. firrtl.passes
      InferTypes$$anonfun$firrtl$passes$InferTypes$$infer_types_s$1$3.apply
      1. firrtl.passes.InferTypes$.firrtl$passes$InferTypes$$infer_types_s$1(Passes.scala:213)
      2. firrtl.passes.InferTypes$$anonfun$firrtl$passes$InferTypes$$infer_types_s$1$3.apply(Passes.scala:213)
      3. firrtl.passes.InferTypes$$anonfun$firrtl$passes$InferTypes$$infer_types_s$1$3.apply(Passes.scala:213)
      3 frames
    7. Scala
      List.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      3. scala.collection.immutable.List.foreach(List.scala:381)
      4. scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
      5. scala.collection.immutable.List.map(List.scala:285)
      5 frames
    8. firrtl
      Mappers$StmtMap.map
      1. firrtl.Mappers$StmtMagnet$$anon$4.map(Mappers.scala:44)
      2. firrtl.Mappers$StmtMap.map(Mappers.scala:95)
      2 frames
    9. firrtl.passes
      InferTypes$$anonfun$run$2.apply
      1. firrtl.passes.InferTypes$.firrtl$passes$InferTypes$$infer_types_s$1(Passes.scala:213)
      2. firrtl.passes.InferTypes$.firrtl$passes$InferTypes$$infer_types$1(Passes.scala:220)
      3. firrtl.passes.InferTypes$$anonfun$run$2.apply(Passes.scala:236)
      4. firrtl.passes.InferTypes$$anonfun$run$2.apply(Passes.scala:236)
      4 frames
    10. Scala
      AbstractTraversable.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      3. scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
      4. scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
      5. scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
      6. scala.collection.AbstractTraversable.map(Traversable.scala:104)
      6 frames
    11. firrtl.passes
      ReplSeqMem$$anonfun$execute$1$$anonfun$7.apply
      1. firrtl.passes.InferTypes$.run(Passes.scala:236)
      2. firrtl.passes.ReplSeqMem$$anonfun$execute$1$$anonfun$7.apply(ReplSeqMem.scala:128)
      3. firrtl.passes.ReplSeqMem$$anonfun$execute$1$$anonfun$7.apply(ReplSeqMem.scala:128)
      3 frames
    12. firrtl
      Utils$.time
      1. firrtl.Utils$.time(Utils.scala:57)
      1 frame
    13. firrtl.passes
      ReplSeqMem$$anonfun$execute$1.apply
      1. firrtl.passes.ReplSeqMem$$anonfun$execute$1.apply(ReplSeqMem.scala:128)
      2. firrtl.passes.ReplSeqMem$$anonfun$execute$1.apply(ReplSeqMem.scala:127)
      2 frames
    14. Scala
      List.foldLeft
      1. scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124)
      2. scala.collection.immutable.List.foldLeft(List.scala:84)
      2 frames
    15. firrtl.passes
      ReplSeqMem.execute
      1. firrtl.passes.ReplSeqMem.execute(ReplSeqMem.scala:126)
      1 frame
    16. firrtl
      Compiler$$anonfun$compile$1.apply
      1. firrtl.Compiler$$anonfun$compile$1.apply(Compiler.scala:71)
      2. firrtl.Compiler$$anonfun$compile$1.apply(Compiler.scala:70)
      2 frames
    17. Scala
      List.foldLeft
      1. scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124)
      2. scala.collection.immutable.List.foldLeft(List.scala:84)
      2 frames
    18. firrtl
      Driver.main
      1. firrtl.Compiler$class.compile(Compiler.scala:70)
      2. firrtl.VerilogCompiler.compile(LoweringCompilers.scala:199)
      3. firrtl.Driver$.compile(Driver.scala:109)
      4. firrtl.Driver$.run(Driver.scala:183)
      5. firrtl.Driver$.main(Driver.scala:86)
      6. firrtl.Driver.main(Driver.scala)
      6 frames