configs, gpu-compute: Add configurable L1 scalar latencies
Previously the scalar cache path used the same latency parameter as the vector cache path for memory requests. This commit adds new parameters for the scalar cache path latencies. This commit also modifies the model to use the new latency parameter to set the memory request latency in the scalar cache. The new paramters are '--scalar-mem-req-latency' and '--scalar-mem-resp-latency' and are set to default values of 50 and 0 respectively Change-Id: I7483f780f2fc0cfbc320ed1fd0c2ee3e2dfc7af2 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/65511 Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
This commit is contained in:
committed by
VISHNU RAMADAS
parent
78b978686c
commit
dff879cf21
@@ -98,6 +98,10 @@ ComputeUnit::ComputeUnit(const Params &p) : ClockedObject(p),
|
||||
countPages(p.countPages),
|
||||
req_tick_latency(p.mem_req_latency * p.clk_domain->clockPeriod()),
|
||||
resp_tick_latency(p.mem_resp_latency * p.clk_domain->clockPeriod()),
|
||||
scalar_req_tick_latency(
|
||||
p.scalar_mem_req_latency * p.clk_domain->clockPeriod()),
|
||||
scalar_resp_tick_latency(
|
||||
p.scalar_mem_resp_latency * p.clk_domain->clockPeriod()),
|
||||
_requestorId(p.system->getRequestorId(this, "ComputeUnit")),
|
||||
lds(*p.localDataStore), gmTokenPort(name() + ".gmTokenPort", this),
|
||||
ldsPort(csprintf("%s-port", name()), this),
|
||||
@@ -1786,7 +1790,7 @@ ComputeUnit::ScalarDTLBPort::recvTimingResp(PacketPtr pkt)
|
||||
= new ComputeUnit::ScalarDataPort::MemReqEvent
|
||||
(computeUnit->scalarDataPort, req_pkt);
|
||||
computeUnit->schedule(scalar_mem_req_event, curTick() +
|
||||
computeUnit->req_tick_latency);
|
||||
computeUnit->scalar_req_tick_latency);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user