GarnetSyntheticTraffic.hh (11661:2bc3962f59fe) | GarnetSyntheticTraffic.hh (12129:879f7ad9e246) |
---|---|
1/* 2 * Copyright (c) 2016 Georgia Institute of Technology 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 60 unchanged lines hidden (view full) --- 69 70 /** 71 * Print state of address in memory system via PrintReq (for 72 * debugging). 73 */ 74 void printAddr(Addr a); 75 76 protected: | 1/* 2 * Copyright (c) 2016 Georgia Institute of Technology 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 60 unchanged lines hidden (view full) --- 69 70 /** 71 * Print state of address in memory system via PrintReq (for 72 * debugging). 73 */ 74 void printAddr(Addr a); 75 76 protected: |
77 class TickEvent : public Event 78 { 79 private: 80 GarnetSyntheticTraffic *cpu; | 77 EventFunctionWrapper tickEvent; |
81 | 78 |
82 public: 83 TickEvent(GarnetSyntheticTraffic *c) : Event(CPU_Tick_Pri), cpu(c) {} 84 void process() { cpu->tick(); } 85 virtual const char *description() const 86 { 87 return "GarnetSyntheticTraffic tick"; 88 } 89 }; 90 91 TickEvent tickEvent; 92 | |
93 class CpuPort : public MasterPort 94 { 95 GarnetSyntheticTraffic *tester; 96 97 public: 98 99 CpuPort(const std::string &_name, GarnetSyntheticTraffic *_tester) 100 : MasterPort(_name, _tester), tester(_tester) --- 54 unchanged lines hidden (view full) --- 155 void initTrafficType(); 156 157 void doRetry(); 158 159 friend class MemCompleteEvent; 160}; 161 162#endif // __CPU_GARNET_SYNTHETIC_TRAFFIC_HH__ | 79 class CpuPort : public MasterPort 80 { 81 GarnetSyntheticTraffic *tester; 82 83 public: 84 85 CpuPort(const std::string &_name, GarnetSyntheticTraffic *_tester) 86 : MasterPort(_name, _tester), tester(_tester) --- 54 unchanged lines hidden (view full) --- 141 void initTrafficType(); 142 143 void doRetry(); 144 145 friend class MemCompleteEvent; 146}; 147 148#endif // __CPU_GARNET_SYNTHETIC_TRAFFIC_HH__ |
163 164 165 | |