Adrian Herrera has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/35797 )
Change subject: configs: MemConfig, add QoSMemSinkCtrl support
......................................................................
configs: MemConfig, add QoSMemSinkCtrl support
QoSMemSinkInterface is a special case of memory interface type, similar
to SimpleMemory. It requires a QoSMemSinkCtrl where most model parameters
are exposed. By adding support in "config_mem", we allow configurations
with multiple QoSMemSinkCtrls to be centrally configured, particularly
interleaving parameters.
Change-Id: I46462b55d587acd2c861963bc0279bce92d5f450
---
M configs/common/MemConfig.py
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configs/common/MemConfig.py b/configs/common/MemConfig.py
index 8221f85..63301ab 100644
--- a/configs/common/MemConfig.py
+++ b/configs/common/MemConfig.py
@@ -229,11 +229,15 @@
static_frontend_latency
= '4ns')
elif opt_mem_type == "SimpleMemory":
mem_ctrl = m5.objects.SimpleMemory()
+ elif opt_mem_type == "QoSMemSinkInterface":
+ mem_ctrl = m5.objects.QoSMemSinkCtrl()
else:
mem_ctrl = m5.objects.MemCtrl()
# Hookup the controller to the interface and add to the
list
- if opt_mem_type != "SimpleMemory":
+ if opt_mem_type == "QoSMemSinkInterface":
+ mem_ctrl.interface = dram_intf
+ elif opt_mem_type != "SimpleMemory":
mem_ctrl.dram = dram_intf
mem_ctrls.append(mem_ctrl)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/35797
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I46462b55d587acd2c861963bc0279bce92d5f450
Gerrit-Change-Number: 35797
Gerrit-PatchSet: 1
Gerrit-Owner: Adrian Herrera <adrian.herr...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s