1
0

Use Vec.fill, not Vec.apply, when making Vec literals

This commit is contained in:
Andrew Waterman
2015-09-25 17:06:24 -07:00
parent 2179cb64ae
commit 20b7a82ab6
2 changed files with 3 additions and 3 deletions

View File

@ -1263,7 +1263,7 @@ class ReorderQueue[T <: Data](dType: T, tagWidth: Int, size: Int)
val roq_data = Reg(Vec(dType.cloneType, size))
val roq_tags = Reg(Vec(UInt(width = tagWidth), size))
val roq_free = Reg(init = Vec(size, Bool(true)))
val roq_free = Reg(init = Vec.fill(size)(Bool(true)))
val roq_enq_addr = PriorityEncoder(roq_free)
val roq_deq_addr = PriorityEncoder(roq_tags.map(_ === io.deq.tag))