[Scala] Runtime error occurs though syntax should be correct
Phenomenon
When I build and run a project written with scala + chisel, the following error occurred.
java.lang.IllegalArgumentException: requirement failed: BitPats must be in binary and be prefixed with 'b’
The message says that BitPat's syntax is wrong (start with b), but no matter how many times I look at it, the syntax is correct
Cause and solution
The error was not in the line where the error occurred, but in the syntax of another BitPat in the same class.
In other words, variable 'a' in the line where the error occurs is defined in SomeClass, the syntax of 'a' is correct, but the syntax of variable b in the same SomeClass is incorrect.
When I fix this, the problem was resolved.
Recent Posts
See AllPhenomenon There is an array Check whether the index variable is within the size of the array, and access the element only if it is...
Overview When communicating data using a Queue, the following operations are possible: Queue.io.enq.valid: When set to false, data will...
What I want to do There are multiple similar units Most of processes are the same, only some differences. Select an appropriate unit...
Comments