firrtl_interpreter.InterpreterException: error: ConcreteSInt(4140379555, 32) bad width 32 needs 33

GitHub | stevenmburns | 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

    firrtl_interpreter/Concrete.scala: randomSInt produces out of bounds value.

    GitHub | 8 months ago | stevenmburns
    firrtl_interpreter.InterpreterException: error: ConcreteSInt(4140379555, 32) bad width 32 needs 33

    Root Cause Analysis

    1. firrtl_interpreter.InterpreterException

      error: ConcreteSInt(4140379555, 32) bad width 32 needs 33

      at firrtl_interpreter.ConcreteSInt.<init>()
    2. firrtl_interpreter
      Timer.apply
      1. firrtl_interpreter.ConcreteSInt.<init>(Concrete.scala:329)
      2. firrtl_interpreter.Concrete$.randomSInt(Concrete.scala:285)
      3. firrtl_interpreter.LoFirrtlExpressionEvaluator.evaluate(LoFirrtlExpressionEvaluator.scala:308)
      4. firrtl_interpreter.LoFirrtlExpressionEvaluator$$anonfun$3.apply(LoFirrtlExpressionEvaluator.scala:413)
      5. firrtl_interpreter.LoFirrtlExpressionEvaluator$$anonfun$3.apply(LoFirrtlExpressionEvaluator.scala:408)
      6. firrtl_interpreter.Timer.apply(Timer.scala:40)
      6 frames