clock_domain.hh (10000:99bd071911cf) | clock_domain.hh (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 --- 58 unchanged lines hidden (view full) --- 67 * The ClockDomain provides clock to group of clocked objects bundled 68 * under the same clock domain. The clock domains, in turn, are 69 * grouped into voltage domains. The clock domains provide support for 70 * a hierarchial structure with source and derived domains. 71 */ 72class ClockDomain : public SimObject 73{ 74 | 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 --- 58 unchanged lines hidden (view full) --- 67 * The ClockDomain provides clock to group of clocked objects bundled 68 * under the same clock domain. The clock domains, in turn, are 69 * grouped into voltage domains. The clock domains provide support for 70 * a hierarchial structure with source and derived domains. 71 */ 72class ClockDomain : public SimObject 73{ 74 |
75 private: 76 77 /** 78 * Stat to report clock period of clock domain 79 */ 80 Stats::Value currentClock; 81 |
|
75 protected: 76 77 /** 78 * Pre-computed clock period in ticks. This is populated by the 79 * inheriting classes based on how their period is determined. 80 */ 81 Tick _clockPeriod; 82 --- 17 unchanged lines hidden (view full) --- 100 public: 101 102 typedef ClockDomainParams Params; 103 ClockDomain(const Params *p, VoltageDomain *voltage_domain) : 104 SimObject(p), 105 _clockPeriod(0), 106 _voltageDomain(voltage_domain) {} 107 | 82 protected: 83 84 /** 85 * Pre-computed clock period in ticks. This is populated by the 86 * inheriting classes based on how their period is determined. 87 */ 88 Tick _clockPeriod; 89 --- 17 unchanged lines hidden (view full) --- 107 public: 108 109 typedef ClockDomainParams Params; 110 ClockDomain(const Params *p, VoltageDomain *voltage_domain) : 111 SimObject(p), 112 _clockPeriod(0), 113 _voltageDomain(voltage_domain) {} 114 |
115 void regStats(); 116 |
|
108 /** 109 * Get the clock period. 110 * 111 * @return Clock period in ticks 112 */ 113 inline Tick clockPeriod() const { return _clockPeriod; } 114 115 /** --- 95 unchanged lines hidden --- | 117 /** 118 * Get the clock period. 119 * 120 * @return Clock period in ticks 121 */ 122 inline Tick clockPeriod() const { return _clockPeriod; } 123 124 /** --- 95 unchanged lines hidden --- |