1
0

Use Vec.apply, not Vec.fill, for type nodes

This commit is contained in:
Andrew Waterman 2015-08-27 09:40:24 -07:00
parent 2ff2b43c2c
commit 3a1dad7994
3 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ class HASTIBus(amap: Seq[UInt=>Bool]) extends Module
{ {
val io = new Bundle { val io = new Bundle {
val master = new HASTIMasterIO().flip val master = new HASTIMasterIO().flip
val slaves = Vec.fill(amap.size){new HASTISlaveIO}.flip val slaves = Vec(new HASTISlaveIO, amap.size).flip
} }
// skid buffer // skid buffer
@ -215,8 +215,8 @@ class HASTISlaveMux(n: Int) extends Module
class HASTIXbar(nMasters: Int, addressMap: Seq[UInt=>Bool]) extends Module class HASTIXbar(nMasters: Int, addressMap: Seq[UInt=>Bool]) extends Module
{ {
val io = new Bundle { val io = new Bundle {
val masters = Vec.fill(nMasters){new HASTIMasterIO}.flip val masters = Vec(new HASTIMasterIO, nMasters).flip
val slaves = Vec.fill(addressMap.size){new HASTISlaveIO}.flip val slaves = Vec(new HASTISlaveIO, addressMap.size).flip
} }
val buses = List.fill(nMasters){Module(new HASTIBus(addressMap))} val buses = List.fill(nMasters){Module(new HASTIBus(addressMap))}

View File

@ -265,7 +265,7 @@ object HellaQueue
class MemIOArbiter(val arbN: Int) extends MIFModule { class MemIOArbiter(val arbN: Int) extends MIFModule {
val io = new Bundle { val io = new Bundle {
val inner = Vec.fill(arbN){new MemIO}.flip val inner = Vec(new MemIO, arbN).flip
val outer = new MemIO val outer = new MemIO
} }

View File

@ -66,7 +66,7 @@ class POCIBus(amap: Seq[UInt=>Bool]) extends Module
{ {
val io = new Bundle { val io = new Bundle {
val master = new POCIIO().flip val master = new POCIIO().flip
val slaves = Vec.fill(amap.size){new POCIIO} val slaves = Vec(new POCIIO, amap.size)
} }
val psels = PriorityEncoderOH( val psels = PriorityEncoderOH(