Use Vec.apply, not Vec.fill, for type nodes
This commit is contained in:
parent
2ff2b43c2c
commit
3a1dad7994
@ -74,7 +74,7 @@ class HASTIBus(amap: Seq[UInt=>Bool]) extends Module
|
||||
{
|
||||
val io = new Bundle {
|
||||
val master = new HASTIMasterIO().flip
|
||||
val slaves = Vec.fill(amap.size){new HASTISlaveIO}.flip
|
||||
val slaves = Vec(new HASTISlaveIO, amap.size).flip
|
||||
}
|
||||
|
||||
// skid buffer
|
||||
@ -215,8 +215,8 @@ class HASTISlaveMux(n: Int) extends Module
|
||||
class HASTIXbar(nMasters: Int, addressMap: Seq[UInt=>Bool]) extends Module
|
||||
{
|
||||
val io = new Bundle {
|
||||
val masters = Vec.fill(nMasters){new HASTIMasterIO}.flip
|
||||
val slaves = Vec.fill(addressMap.size){new HASTISlaveIO}.flip
|
||||
val masters = Vec(new HASTIMasterIO, nMasters).flip
|
||||
val slaves = Vec(new HASTISlaveIO, addressMap.size).flip
|
||||
}
|
||||
|
||||
val buses = List.fill(nMasters){Module(new HASTIBus(addressMap))}
|
||||
|
@ -265,7 +265,7 @@ object HellaQueue
|
||||
|
||||
class MemIOArbiter(val arbN: Int) extends MIFModule {
|
||||
val io = new Bundle {
|
||||
val inner = Vec.fill(arbN){new MemIO}.flip
|
||||
val inner = Vec(new MemIO, arbN).flip
|
||||
val outer = new MemIO
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ class POCIBus(amap: Seq[UInt=>Bool]) extends Module
|
||||
{
|
||||
val io = new Bundle {
|
||||
val master = new POCIIO().flip
|
||||
val slaves = Vec.fill(amap.size){new POCIIO}
|
||||
val slaves = Vec(new POCIIO, amap.size)
|
||||
}
|
||||
|
||||
val psels = PriorityEncoderOH(
|
||||
|
Loading…
Reference in New Issue
Block a user