Hi Lu Hang,
The curTick is an absolute time (from the start of simulation), with a globally
uniform scale. A tick is the smallest quantum of simulation time, and by
default it is a picosecond. At any time, curTick is the same as seen from any
module.
Cycles are relative to the objects clock, and thus change with the clock
frequency. A time expressed in cycles is also local to the ClockedObject (most
things in gem5). The latency of the caches, for example, is expressed in cycles
and thus changes with the CPU clock speed.
The m_clock you mention is part of Ruby. Traditionally Ruby used its own time
keeping types and scale, but that is mostly harmonised now thanks to all the
work Nilay has put in.
I hope that helps.
Andreas
From: Lu Hang <[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list
<[email protected]<mailto:[email protected]>>
Date: Tuesday, 2 April 2013 01:53
To: gem5-users <[email protected]<mailto:[email protected]>>
Subject: [gem5-users] Question about relationship between different clocking
system in gem5
Dear all,
I have a question regarding the clocking system. I observe that there are
several variables to indicate different clocking systems, which are:
(1) `ticks', indicated by function _curTick;
(2) `cycles', indicated by numCycles;
(3) `clock', indicated by member variable m_clock;
Therefore, could anybody tell the relationship between all these systems in
detail? What's the relationship between them and frequency set by users
(`--clock' parameter in the command line)?
I just got confused. Thanks in advance!
-----------------------------------------------------------------------------------------
Lu Hang
Phd Candidate
State Key Laboratory of Computer System and Architecture
Institute of Computing Technology,Chinese Academy of Sciences
Beijing 100190, China
-- 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.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users