1
0

tilelink2: don't widen TLMonitor interface unnecessarily

This commit is contained in:
Wesley W. Terpstra 2017-05-16 21:01:58 -07:00
parent 191dad7800
commit f2d16d49c2

View File

@ -18,7 +18,7 @@ abstract class TLMonitorBase(args: TLMonitorArgs) extends LazyModule()(args.p)
lazy val module = new LazyModuleImp(this) { lazy val module = new LazyModuleImp(this) {
val edges = args.edge() val edges = args.edge()
val io = new Bundle { val io = new Bundle {
val in = Vec(edges.size, new TLBundleSnoop(TLBundleParameters.union(edges.map(_.bundle)))).flip val in = util.HeterogeneousBag(edges.map(p => new TLBundleSnoop(p.bundle))).flip
} }
(edges zip io.in).foreach { case (e, in) => legalize(in, e, reset) } (edges zip io.in).foreach { case (e, in) => legalize(in, e, reset) }