Hello,
I created a custom SimObject in C++ that has a function that I want to execute
in Python. I am wondering how I can interface the function to Python as
instance.function_name does not seem to work. The function I am using is called
addChild and it takes a MachineID as an input.
My current Python interfacing file looks like this:
from m5.params import *
from m5.SimObject import SimObject
from Controller import RubyController
class ChildStates(SimObject):
type = 'ChildStates'
cxx_class = 'ChildStates'
cxx_header = '"mem/protocol/ChildStates.hh"
childPorts = Param.Int("Number of Children Ports")
Best regards,
Alex
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users