clock_domain.cc (10000:99bd071911cf) | clock_domain.cc (10021:9d6d630f830e) |
---|---|
1/* 2 * Copyright (c) 2013 ARM Limited 3 * Copyright (c) 2013 Cornell University 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 35 unchanged lines hidden (view full) --- 44#include "debug/ClockDomain.hh" 45#include "params/ClockDomain.hh" 46#include "params/DerivedClockDomain.hh" 47#include "params/SrcClockDomain.hh" 48#include "sim/clock_domain.hh" 49#include "sim/voltage_domain.hh" 50#include "sim/clocked_object.hh" 51 | 1/* 2 * Copyright (c) 2013 ARM Limited 3 * Copyright (c) 2013 Cornell University 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 35 unchanged lines hidden (view full) --- 44#include "debug/ClockDomain.hh" 45#include "params/ClockDomain.hh" 46#include "params/DerivedClockDomain.hh" 47#include "params/SrcClockDomain.hh" 48#include "sim/clock_domain.hh" 49#include "sim/voltage_domain.hh" 50#include "sim/clocked_object.hh" 51 |
52void 53ClockDomain::regStats() 54{ 55 using namespace Stats; 56 57 // Expose the current clock period as a stat for observability in 58 // the dumps 59 currentClock 60 .scalar(_clockPeriod) 61 .name(params()->name + ".clock") 62 .desc("Clock period in ticks") 63 ; 64} 65 |
|
52double 53ClockDomain::voltage() const 54{ 55 return _voltageDomain->voltage(); 56} 57 58SrcClockDomain::SrcClockDomain(const Params *p) : 59 ClockDomain(p, p->voltage_domain) --- 80 unchanged lines hidden --- | 66double 67ClockDomain::voltage() const 68{ 69 return _voltageDomain->voltage(); 70} 71 72SrcClockDomain::SrcClockDomain(const Params *p) : 73 ClockDomain(p, p->voltage_domain) --- 80 unchanged lines hidden --- |