Dear all,
I'm trying to dynamically change the clock frequency, and I noticed that
the SrcClockDomain object has a clockPeriod(Tick) method that automatically
forwards its changes to the children objects (as per the method
documentation). Thus, I included in the Simulate.py script, within the
repeatSwitch() method the following line (at appropriate point):
testsys.cpu_clk_domain.clockPeriod(4000)
However, while executing Python complains that
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/imec/gem5/gem5/src/python/m5/main.py", line 388, in main
exec filecode in scope
File "../configs/example/se.py", line 278, in <module>
Simulation.run(options, root, system, FutureClass)
File "/home/imec/gem5/gem5/configs/common/Simulation.py", line 728, in run
maxtick, options.repeat_switch)
File "/home/imec/gem5/gem5/configs/common/Simulation.py", line 451, in
repeatSwitch
testsys.cpu_clk_domain.clockPeriod(4000)
File "/home/imec/gem5/gem5/src/python/m5/SimObject.py", line 1103, in
__getattr__
raise AttributeError, err_string
AttributeError: object 'SrcClockDomain' has no attribute 'clockPeriod'
while it is clear that clockPeriod is present in the SrClockDomain object.
Am I missing somethng? How to fix this?
Thanks
Best regards
Simone
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users