1
0

Revert "replace remaining uses of Vec.fill"

This reverts commit 16dca2186b95945ad2ba5f906113101de0726617.
This commit is contained in:
Andrew Waterman 2015-09-25 17:05:07 -07:00
parent a9c6cced2d
commit e75674c0cb
2 changed files with 3 additions and 3 deletions

View File

@ -485,8 +485,8 @@ class NASTICrossbar(nMasters: Int, nSlaves: Int, addrmap: Seq[(BigInt, BigInt)])
val slaves = Vec(new NASTIIO, nSlaves)
}
val routers = Vec(nMasters, Module(new NASTIRouter(addrmap)).io)
val arbiters = Vec(nSlaves, Module(new NASTIArbiter(nMasters)).io)
val routers = Vec.fill(nMasters) { Module(new NASTIRouter(addrmap)).io }
val arbiters = Vec.fill(nSlaves) { Module(new NASTIArbiter(nMasters)).io }
for (i <- 0 until nMasters) {
routers(i).master <> io.masters(i)

View File

@ -116,7 +116,7 @@ class SMIIONASTIReadIOConverter(val dataWidth: Int, val addrWidth: Int)
val recvInd = Reg(init = UInt(0, wordCountBits))
val sendDone = Reg(init = Bool(false))
val buffer = Reg(init = Vec(maxWordsPerBeat, Bits(0, dataWidth)))
val buffer = Reg(init = Vec.fill(maxWordsPerBeat) { Bits(0, dataWidth) })
io.ar.ready := (state === s_idle)