tilelink2 RAMModel: exploit latency to remove bypass
This commit is contained in:
parent
e0ade8c5a9
commit
4066fbe18f
@ -104,7 +104,7 @@ class TLRAMModel extends LazyModule
|
|||||||
a_flight.opcode := in.a.bits.opcode
|
a_flight.opcode := in.a.bits.opcode
|
||||||
|
|
||||||
flight(in.a.bits.source) := a_flight
|
flight(in.a.bits.source) := a_flight
|
||||||
val bypass = in.a.valid && in.a.bits.source === out.d.bits.source
|
val bypass = if (edge.manager.minLatency > 0) Bool(false) else in.a.valid && in.a.bits.source === out.d.bits.source
|
||||||
val d_flight = RegNext(Mux(bypass, a_flight, flight(out.d.bits.source)))
|
val d_flight = RegNext(Mux(bypass, a_flight, flight(out.d.bits.source)))
|
||||||
|
|
||||||
// Process A access requests
|
// Process A access requests
|
||||||
|
Loading…
Reference in New Issue
Block a user