Replies: 1 comment 1 reply
-
What is the error for Maybe it expects an enum object instead of a string? (I haven't looked at the code) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems gem5 doesn't support multiple inheritance. For example
class QoSMEM(MemCtrl, QoSMemCtrl)
Would return "TypeErrro: SimObjects do not support multiple inheritance".
The reason I'm trying to have multiple inheritance is because there seems no direct way to instantiate QoSMemCtrl parameters from MemCtrl-derived class. For example,
class QoSMEM(MemCtrl):
def __init__(self):
super().__init__()
self.write_high_thresh_perc= "95" # OK, since write_high_thresh_perc is in MemCtrl
self.qos_policy = "fifo" # error because qos_policy is in QoSMemCtrl, even though MemCtrl is derived from QoSMemCtrl
How to assign parameters in such multiple level inheritance?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions