GEM5中使用DRAMSim2

Posted 会打代码的扫地王大爷

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GEM5中使用DRAMSim2相关的知识,希望对你有一定的参考价值。


GEM5中使用DRAMSim2

DRAMSim2

        DRAMSim2是一个较为精确的DDR2/3内存模拟器,因为其仿真效果相当不错,因此在学术界接受度较高[1]。

GEM5中集成DRAMSim2

        目前GEM5中已经给出了官方的集成方式。进入ext/dramsim2目录,参照readme中的方法下载DRAMSim2。

1. cd ext/dramsim2
2. git clone git://github.com/dramninjasUMD/DRAMSim2.git
3. cd ../../
4. scons build/X86/gem5.opt -j9 #重新编译gem5,这里给出默认的编译方式
5. sudo build/X86/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/x86/linux/hello --cpu-type='TimingSimpleCPU' --caches --l2cache  --mem-type='DRAMSim2' #像这样指定内存类型的参数为DRAMSim2即可,--mem-type='DRAMSim2'。别的配置可按照自己的需求进行修改。

注: 为了正确运行gem5,还需要将DRAMSim2中的配置system.ini.example和ini/DDR3_micron_32M_8B_x8_sg15.ini 中的空行删除掉

参考:

  1. Rosenfeld, Paul, Elliott Cooper-Balis, and Bruce Jacob. “DRAMSim2: A cycle accurate memory system simulator.” IEEE Computer Architecture Letters 10.1 (2011): 16-19.

Blog:Gem5中使用DRAMSim2

以上是关于GEM5中使用DRAMSim2的主要内容,如果未能解决你的问题,请参考以下文章

GEM5上的DRAMSim2仅打印刷新命令

gem5+dramsim2

访问gem5 FS模式中的页面映射

使用gem5在fft上进行测试beta版本

使用gem5在fft上进行测试beta版本

使用gem5在fft上进行测试beta版本