2022.07.29

Clock in Gem5

Difference between Tick, Cycle

src/sim/clocked_object.hh:

Tick
clockEdge(Cycles cycles=Cycles(0)) const
{
    // align tick to the next clock edge
    update();

    // figure out when this future cycle is
    return tick + clockPeriod() * cycles;
}

clockEdge is the a integral multiple of cycle.