gpu-compute: Move GPU caches to GPU clock domain

GPU caches TCP/TCC need to be in the GPU clock domain instead
of ruby clock domain. This patch moves them to GPU clock domain
by creating a clock domain for each cache separately.

Change-Id: Iab6382233b75862e21b028186691a35d92d9a0f9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/61589
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Srikant Bharadwaj
2022-07-21 17:06:24 -07:00
committed by Matthew Poremba
parent 68115460d8
commit 942b71bf3a

View File

@@ -169,6 +169,11 @@ class TCPCntrl(TCP_Controller, CntrlBase):
self.use_seq_not_coal = False
self.ruby_system = ruby_system
if hasattr(options, 'gpu_clock') and hasattr(options, 'gpu_voltage'):
self.clk_domain = SrcClockDomain(
clock = options.gpu_clock,
voltage_domain = VoltageDomain(
voltage = options.gpu_voltage))
if options.recycle_latency:
self.recycle_latency = options.recycle_latency
@@ -235,6 +240,11 @@ class SQCCntrl(SQC_Controller, CntrlBase):
options.sqc_deadlock_threshold
self.ruby_system = ruby_system
if hasattr(options, 'gpu_clock') and hasattr(options, 'gpu_voltage'):
self.clk_domain = SrcClockDomain(
clock = options.gpu_clock,
voltage_domain = VoltageDomain(
voltage = options.gpu_voltage))
if options.recycle_latency:
self.recycle_latency = options.recycle_latency
@@ -274,6 +284,11 @@ class TCCCntrl(TCC_Controller, CntrlBase):
self.L2cache.resourceStalls = options.no_tcc_resource_stalls
self.ruby_system = ruby_system
if hasattr(options, 'gpu_clock') and hasattr(options, 'gpu_voltage'):
self.clk_domain = SrcClockDomain(
clock = options.gpu_clock,
voltage_domain = VoltageDomain(
voltage = options.gpu_voltage))
if options.recycle_latency:
self.recycle_latency = options.recycle_latency