using ramulator dram simulator

This commit is contained in:
Blaise Tine
2021-12-06 01:22:45 -05:00
parent 59232642c4
commit b741807f8c
33 changed files with 1473 additions and 1344 deletions

View File

@@ -4,24 +4,23 @@
namespace vortex {
class Processor {
class Processor : public SimObject<Processor> {
public:
typedef std::shared_ptr<Processor> Ptr;
SimPort<MemReq> MemReqPort;
SimPort<MemRsp> MemRspPort;
Processor(const ArchDef& arch);
Processor(const SimContext& ctx, const ArchDef& arch);
~Processor();
void attach_ram(RAM* mem);
int run();
bool check_exit(int* exitcode);
void step(uint64_t cycle);
private:
std::vector<Core::Ptr> cores_;
std::vector<Cache::Ptr> l2caches_;
std::vector<Switch<MemReq, MemRsp>::Ptr> l2_mem_switches_;
Cache::Ptr l3cache_;
Switch<MemReq, MemRsp>::Ptr l3_mem_switch_;
MemSim::Ptr memsim_;
class Impl;
Impl* impl_;
};
}