I am learning chisel and rocket-chip.
Rocket-chip has a code using Seq and Cat as `val funct = Seq(0.U, 4.U, 6.U, 7.U, 0.U, 0.U, 2.U, 3.U)(Cat(x(12), x(6,5)))`.
When I try to write code like Seq(0.U, 1.U, ...)(x(2,1)), I met the following grammar error:
[error] found : chisel3.UInt
[error] (which expands to) chisel3.core.UInt
[error] required: Int
[error] found : chisel3.UInt [error] (which expands to) chisel3.core.UInt [error] required: Int