1ns = 1000 Ticks because of how Ticks are set up and is not guaranteed to be correct. If you look in sim/core.hh, you'll find constants which are set up with the right number of ticks per unit time. The clock frequency of a CPU doesn't affect how long a Tick is.
Gabe On 05/11/11 06:30, Adwait Jog wrote: > Hi > > I understand that by default, > > 1 ns = 1000 Ticks (as 1 Tick = 1ps) > > I see in config.ini that if clock frequency = 2 GHz (0.5 ns), (clock = 500) > > I want to invoke an event after every say x ns (1000x ticks) and > assume that clock frequency = y GHz > > I change my frequency to say 2y, which means that (clock = 250, in > config.ini if initial y was 2 GHz), > in this case also, do I need to invoke an event after 1000x ticks, > since 1ns = 1000 ticks is always constant? > Will my functionality of event will be still correct > > > Any further clarification regarding Ticks and Cycles is appreciated. > Thanks > ---- Adwait > _______________________________________________ > 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
