clocked_object.hh (9545:508784fad4e5) | clocked_object.hh (9550:e0e2c8f83d08) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 170 unchanged lines hidden (view full) --- 179 */ 180 Tick nextCycle() const 181 { return clockEdge(); } 182 183 inline uint64_t frequency() const { return SimClock::Frequency / clock; } 184 185 inline Tick clockPeriod() const { return clock; } 186 | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 170 unchanged lines hidden (view full) --- 179 */ 180 Tick nextCycle() const 181 { return clockEdge(); } 182 183 inline uint64_t frequency() const { return SimClock::Frequency / clock; } 184 185 inline Tick clockPeriod() const { return clock; } 186 |
187 inline Cycles ticksToCycles(Tick tick) const 188 { return Cycles(tick / clock); } | 187 inline Cycles ticksToCycles(Tick t) const 188 { return Cycles(t / clock); } |
189 190}; 191 192#endif //__SIM_CLOCKED_OBJECT_HH__ | 189 190}; 191 192#endif //__SIM_CLOCKED_OBJECT_HH__ |