In Scala one way we could declare an ArrayBuffer of array of Doubles,Long and Boolean is as such:
val A = new ArrayBuffer[Array[(Long, Array[Double], Array[Double], Double, Boolean)]]
I would like to do same in chisel.
In chisel I know one way of declaring a vector of length n as input is as follows:
val X = Input(Vec(n,FixedPoint(16.W, 8.BP)))
where n is Int, And this works .
Now I tried to initialise an array of n FixedPoint too, and did the following:
val C = Array(Array.ofDim(FixedPoint(16.W, 8.BP)))(n,0)
Inspired from initialisation of an array
But this did not work. I get the error
type mismatch;
[error] found : chisel3.core.FixedPoint
[error] required: Int
[error] val tabHash1 = Array(Array.ofDim(FixedPoint(16.W, 8.BP)))(n,0)
Please, can someone give the correct way of declaring A above of FixedPoint, and an Array of FixedPoint numbers in chisel? Thanks! for your attention and your responses.