scala.MatchError: (UIntType(IntWidth(1)),BundleType(ArrayBuffer(Field(field,Default,UIntType(IntWidth(1)))))) (of class sc

GitHub | aswaterman | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Match error in CheckTypes on incompatible assignment

    GitHub | 5 months ago | aswaterman
    scala.MatchError: (UIntType(IntWidth(1)),BundleType(ArrayBuffer(Field(field,Default,UIntType(IntWidth(1)))))) (of class sc

    Root Cause Analysis

    1. scala.MatchError

      (UIntType(IntWidth(1)),BundleType(ArrayBuffer(Field(field,Default,UIntType(IntWidth(1)))))) (of class sc

      at firrtl.passes.CheckTypes$.firrtl$passes$CheckTypes$$bulk_equals$1()
    2. firrtl.passes
      CheckTypes$$anonfun$firrtl$passes$CheckTypes$$check_types_s$1$5.apply
      1. firrtl.passes.CheckTypes$.firrtl$passes$CheckTypes$$bulk_equals$1(Checks.scala:382)
      2. firrtl.passes.CheckTypes$.firrtl$passes$CheckTypes$$check_types_s$1(Checks.scala:407)
      3. firrtl.passes.CheckTypes$$anonfun$firrtl$passes$CheckTypes$$check_types_s$1$5.apply(Checks.scala:450)
      4. firrtl.passes.CheckTypes$$anonfun$firrtl$passes$CheckTypes$$check_types_s$1$5.apply(Checks.scala:450)
      4 frames
    3. 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
    4. firrtl.ir
      Block.mapStmt
      1. firrtl.ir.Block.mapStmt(IR.scala:227)
      1 frame
    5. firrtl
      Mappers$StmtMap$.map$extension
      1. firrtl.Mappers$StmtMagnet$$anon$1.map(Mappers.scala:41)
      2. firrtl.Mappers$StmtMap$.map$extension(Mappers.scala:55)
      2 frames
    6. firrtl.passes
      CheckTypes$$anonfun$run$2$$anonfun$apply$1.apply
      1. firrtl.passes.CheckTypes$.firrtl$passes$CheckTypes$$check_types_s$1(Checks.scala:450)
      2. firrtl.passes.CheckTypes$$anonfun$run$2$$anonfun$apply$1.apply(Checks.scala:453)
      3. firrtl.passes.CheckTypes$$anonfun$run$2$$anonfun$apply$1.apply(Checks.scala:453)
      3 frames
    7. firrtl.ir
      Module.mapStmt
      1. firrtl.ir.Module.mapStmt(IR.scala:443)
      1 frame
    8. firrtl
      Mappers$ModuleMap$.map$extension
      1. firrtl.Mappers$ModuleMagnet$$anon$11.map(Mappers.scala:115)
      2. firrtl.Mappers$ModuleMap$.map$extension(Mappers.scala:125)
      2 frames
    9. firrtl.passes
      CheckTypes$$anonfun$run$2.apply
      1. firrtl.passes.CheckTypes$$anonfun$run$2.apply(Checks.scala:453)
      2. firrtl.passes.CheckTypes$$anonfun$run$2.apply(Checks.scala:453)
      2 frames
    10. Scala
      ArrayBuffer.foreach
      1. scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
      2. scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
      2 frames
    11. firrtl.passes
      CheckTypes$.run
      1. firrtl.passes.CheckTypes$.run(Checks.scala:453)
      1 frame
    12. firrtl
      SimpleRun$$anonfun$1.apply
      1. firrtl.SimpleRun$$anonfun$1$$anonfun$2.apply(LoweringCompilers.scala:47)
      2. firrtl.SimpleRun$$anonfun$1$$anonfun$2.apply(LoweringCompilers.scala:47)
      3. firrtl.Utils$.time(Utils.scala:56)
      4. firrtl.SimpleRun$$anonfun$1.apply(LoweringCompilers.scala:47)
      5. firrtl.SimpleRun$$anonfun$1.apply(LoweringCompilers.scala:45)
      5 frames
    13. Scala
      List.foldLeft
      1. scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124)
      2. scala.collection.immutable.List.foldLeft(List.scala:84)
      2 frames
    14. firrtl
      Compiler$$anonfun$compile$1.apply
      1. firrtl.SimpleRun$class.run(LoweringCompilers.scala:45)
      2. firrtl.ResolveAndCheck.run(LoweringCompilers.scala:81)
      3. firrtl.ResolveAndCheck.execute(LoweringCompilers.scala:95)
      4. firrtl.Compiler$$anonfun$compile$1.apply(Compiler.scala:71)
      5. firrtl.Compiler$$anonfun$compile$1.apply(Compiler.scala:70)
      5 frames
    15. Scala
      List.foldLeft
      1. scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124)
      2. scala.collection.immutable.List.foldLeft(List.scala:84)
      2 frames
    16. firrtl
      VerilogCompiler.compile
      1. firrtl.Compiler$class.compile(Compiler.scala:70)
      2. firrtl.VerilogCompiler.compile(LoweringCompilers.scala:201)
      2 frames