last => done
This commit is contained in:
parent
380c10f7bd
commit
dbc8f4b30b
@ -505,6 +505,6 @@ class DCacheModule(outer: DCache) extends HellaCacheModule(outer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// performance events
|
// performance events
|
||||||
io.cpu.acquire := edge.last(tl_out.a)
|
io.cpu.acquire := edge.done(tl_out.a)
|
||||||
io.cpu.release := edge.last(tl_out.c)
|
io.cpu.release := edge.done(tl_out.c)
|
||||||
}
|
}
|
||||||
|
@ -155,7 +155,7 @@ class FrontendModule(outer: Frontend) extends LazyModuleImp(outer)
|
|||||||
io.cpu.resp.bits.btb.bits := s2_btb_resp_bits
|
io.cpu.resp.bits.btb.bits := s2_btb_resp_bits
|
||||||
|
|
||||||
// performance events
|
// performance events
|
||||||
io.cpu.acquire := edge.last(icache.io.mem(0).a)
|
io.cpu.acquire := edge.done(icache.io.mem(0).a)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Mix-ins for constructing tiles that have an ICache-based pipeline frontend */
|
/** Mix-ins for constructing tiles that have an ICache-based pipeline frontend */
|
||||||
|
@ -975,6 +975,6 @@ class NonBlockingDCacheModule(outer: NonBlockingDCache) extends HellaCacheModule
|
|||||||
io.cpu.replay_next := (s1_replay && s1_read) || mshrs.io.replay_next
|
io.cpu.replay_next := (s1_replay && s1_read) || mshrs.io.replay_next
|
||||||
|
|
||||||
// performance events
|
// performance events
|
||||||
io.cpu.acquire := edge.last(tl_out.a)
|
io.cpu.acquire := edge.done(tl_out.a)
|
||||||
io.cpu.release := edge.last(tl_out.c)
|
io.cpu.release := edge.done(tl_out.c)
|
||||||
}
|
}
|
||||||
|
@ -224,6 +224,10 @@ class TLEdge(
|
|||||||
def last(x: DecoupledIO[TLChannel]): Bool = last(x.bits, x.fire())
|
def last(x: DecoupledIO[TLChannel]): Bool = last(x.bits, x.fire())
|
||||||
def last(x: ValidIO[TLChannel]): Bool = last(x.bits, x.valid)
|
def last(x: ValidIO[TLChannel]): Bool = last(x.bits, x.valid)
|
||||||
|
|
||||||
|
def done(bits: TLChannel, fire: Bool): Bool = firstlastHelper(bits, fire)._3
|
||||||
|
def done(x: DecoupledIO[TLChannel]): Bool = done(x.bits, x.fire())
|
||||||
|
def done(x: ValidIO[TLChannel]): Bool = done(x.bits, x.valid)
|
||||||
|
|
||||||
def firstlast(bits: TLChannel, fire: Bool): (Bool, Bool, Bool) = {
|
def firstlast(bits: TLChannel, fire: Bool): (Bool, Bool, Bool) = {
|
||||||
val r = firstlastHelper(bits, fire)
|
val r = firstlastHelper(bits, fire)
|
||||||
(r._1, r._2, r._3)
|
(r._1, r._2, r._3)
|
||||||
|
Loading…
Reference in New Issue
Block a user