If you look at configs/common/Simulation.py line 97 you'll see a code
snippet that says
"m5.ticks.setGlobalFrequency(...)"

If you change the parameter to "1ns" you'll get you desired 1 tick per
CPU tick effect
for the default 2GHz CPU.

This is what I do for my simulations to simplify how things look to my eye.

It'd probably be real easy to incorporate a parameter in
configs/example/se.py that takes
in the system global frequency and eventually set the frequency.

The default frequency could be whatever the CPU frequency is or maybe jusT 1ps.

For me, matching it up to the CPU frequency makes the most sense, but maybe
that's because I do mostly Syscall Emulation workloads.

It'd also be cool if you could say "if SE MODE, system-frequency =
clock-frequency, else FS MODE, system-frequency = 1ps"
for the default case...


On Thu, Mar 20, 2008 at 6:20 PM, nathan binkert <[EMAIL PROTECTED]> wrote:
> All times in the config.ini have been converted to ticks.  Bandwidths
>  to bytes per tick.  The default is that a tick is 1ps, so 2GHz is
>  500ps and thus 500 ticks.  I've been meaning to improve the config.ini
>  output to display both values, but I haven't gotten to it yet.  Please
>  file a bug report if you'd like to see this fixed for sure.
>
>   Nate
>
>
>
>  On Thu, Mar 20, 2008 at 3:12 PM, Daniel Alex Finkelstein
>  <[EMAIL PROTECTED]> wrote:
>  >
>  > Strange thing I noticed on an m5.fast run of galgel: the CPU clock 
> specified
>  > in the configuration py file is 2GHz but the clock that appears in
>  > config.ini is 500. I've attached the three files: galgel.p, the config.ini
>  > that was generated, and the final m5stats.txt. The command line was similar
>  > to 'm5.fast galgel.py'. Stranger still was the sim_freq from m5stats.txt,
>  > which was   1000000000000 (which matches sim_ticks/sim_seconds from the 
> same
>  > output).
>  >
>  > Which is lying and which is telling the truth? And why didn't the 2GHz CPU
>  > clock get set? The other files referenced in the config files are 
> unmodified
>  > from the m5 2.0b5 distro.
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>
>
> > Thanks,
>  > Dan
>  >
>  >
>  >
>  >
>  > Daniel Alex Finkelstein
>  > Ph.D. Candidate (CS)
>  > Work: +1-718-260-3378
>  > Mobile: +1-718-246-7421
>  > Fax: +1-718-260-3609
>  > Email: [EMAIL PROTECTED]
>  > IM: steuben13 (Skype)
>  > Polytechnic University
>  > 6 MetroTech Center
>  > Brooklyn, NY 11201 USA
>  >
>  >
>  >
>  >
>  >
>  > _______________________________________________
>  >  m5-users mailing list
>  >  [email protected]
>  >  http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>  >
>  _______________________________________________
>  m5-users mailing list
>  [email protected]
>  http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>



-- 
----------
Korey L Sewell
Graduate Student - PhD Candidate
Computer Science & Engineering
University of Michigan
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to