Hi Simone, The method does not exist in Python. Remember that essential all objects in gem5 have both a Python object (used for setting parameters mostly), and a C++ object (actually involved in the simulation).
In general you should either use full-system and leave the DVFS to the OS (I would say this is the most sensible), or use a subclass of the DVFSHandler where you implement the decision making in hardware. Good luck. Andreas From: Simone Corbetta <[email protected]<mailto:[email protected]>> Reply-To: gem5 users mailing list <[email protected]<mailto:[email protected]>> Date: Thursday, 18 June 2015 00:04 To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [gem5-users] Dynamic frequency change 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 -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
