Chisel3 compatibility fix
This commit is contained in:
parent
93773a4496
commit
c28d115b30
@ -75,7 +75,7 @@ class FlowThroughSerializer[T <: Bundle with HasTileLinkData](gen: T, n: Int) ex
|
|||||||
val rbits = Reg{io.in.bits}
|
val rbits = Reg{io.in.bits}
|
||||||
val active = Reg(init=Bool(false))
|
val active = Reg(init=Bool(false))
|
||||||
|
|
||||||
val shifter = Vec(n, Bits(width = narrowWidth))
|
val shifter = Wire(Vec(n, Bits(width = narrowWidth)))
|
||||||
(0 until n).foreach {
|
(0 until n).foreach {
|
||||||
i => shifter(i) := rbits.data((i+1)*narrowWidth-1,i*narrowWidth)
|
i => shifter(i) := rbits.data((i+1)*narrowWidth-1,i*narrowWidth)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user