Why don't you open the file /home/bpayne/gem5/src/python/m5/util/convert.py and take look what is being done on and around line 173?

--
Nilay

On Fri, 26 Oct 2012, Payne, Benjamin wrote:

For example of what I'm trying to do, I have trouble setting the clock from 
reading http://gem5.org/Simulation_Scripts_Explained

bpayne@bpayne-VirtualBox64:~/gem5$ build/X86/gem5.opt configs/example/se.py -c 
bench.lex --clock='2.8Ghz'
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Oct 16 2012 15:04:38
gem5 started Oct 26 2012 16:24:09
gem5 executing on bpayne-VirtualBox64
command line: build/X86/gem5.opt configs/example/se.py -c bench.lex 
--clock=2.8Ghz
Traceback (most recent call last):
 File "<string>", line 1, in <module>
 File "/home/bpayne/gem5/src/python/m5/main.py", line 359, in main
   exec filecode in scope
 File "configs/example/se.py", line 150, in <module>
   CPUClass.clock = options.clock
 File "/home/bpayne/gem5/src/python/m5/SimObject.py", line 326, in __setattr__
   cls._set_param(attr, value, param)
 File "/home/bpayne/gem5/src/python/m5/SimObject.py", line 263, in _set_param
   value = param.convert(value)
 File "/home/bpayne/gem5/src/python/m5/params.py", line 177, in convert
   return self.ptype(value)
 File "/home/bpayne/gem5/src/python/m5/params.py", line 1218, in __init__
   self.value = convert.anyToLatency(value)
 File "/home/bpayne/gem5/src/python/m5/util/convert.py", line 173, in 
anyToLatency
   raise ValueError, "cannot convert '%s' to clock period" % value
ValueError: cannot convert '2.8Ghz' to clock period
Error setting param AtomicSimpleCPU.clock to 2.8Ghz



_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to