Please I have a problem running my chisel code. When I do sbt package, I get a success. But when I do sbt run, it fails and I get the following error: Code error
I suspected that data is not loaded correctly then the array is not initialized or I simply forgot to initialize the array, but all the arrays are initialised.
So please my question is what is the correct way to load data in chisel?
This is what I did:
val data = io.Source.fromFile(args(0)).getLines().map(_.split(",").map(_.toDouble))
.zipWithIndex
.map{ case(data, id) => (id.toLong, data)}.toArray
Where args is an array of strings defined as such
def main(args: Array[String]): Unit = {...
Looking forward to your responses
Thank you!