45 #ifndef __MEM_DRAMSIM2_WRAPPER_HH__ 46 #define __MEM_DRAMSIM2_WRAPPER_HH__ 50 #include "DRAMSim2/Callback.h" 57 class MultiChannelMemorySystem;
74 DRAMSim::MultiChannelMemorySystem*
dramsim;
83 T extractConfig(
const std::string& field_name,
84 const std::string& file_name)
const;
100 const std::string& system_file,
101 const std::string& working_dir,
102 const std::string& trace_file,
103 unsigned int memory_size_mb,
118 void setCallbacks(DRAMSim::TransactionCompleteCB* read_callback,
119 DRAMSim::TransactionCompleteCB* write_callback);
126 bool canAccept()
const;
133 void enqueue(
bool is_write, uint64_t
addr);
141 double clockPeriod()
const;
148 unsigned int queueSize()
const;
155 unsigned int burstSize()
const;
163 #endif //__MEM_DRAMSIM2_WRAPPER_HH__ Wrapper class to avoid having DRAMSim2 names like ClockDomain etc clashing with the normal gem5 world...
DRAMSim::MultiChannelMemorySystem * dramsim
Forward declaration to avoid includes.