### STEP 1: Download and build m5 sim hg clone http://repo.m5sim.org/m5 cd m5 echo <>.hg/hgrc [ui] username=Your Name ssh = ssh -C [defaults] qrefresh = --git email = --git diff = --git [extensions] hgext.mq = hgext.patchbomb = hgext.extdiff = hgext.fetch = style = ~/m5/util/style.py [hooks] pretxncommit.style = python:style.check_whitespace [email] method = smtp from = Your name [smtp] host = smtp.server EOF scons build/ALPHA_SE/m5.opt cd .. ### STEP 2: download the alpha crosscompiler so we can build the benchmarks for our target processor wget http://www.m5sim.org/dist/current/alpha_crosstool.tar.bz2 -O - | tar jx ### STEP 3: Download and uncompress the benchmarks wget http://www.cl.cam.ac.uk/~acr31/sicsa/matrix.tar.gz -O - | tar zx ### STEP 4: (re)compile the benchmarks cd matrix make clean all cd .. ### STEP 5: execute m5 with the matrix1 program (this takes about 30 seconds on my workstation) m5/build/ALPHA_SE/m5.opt m5/configs/example/se.py -d -c matrix/matrix1.out --caches --l2cache --l2_size=8kB --l1d_size=4kB ### STEP 6: download and compile mcpat wget http://www.hpl.hp.com/research/mcpat/mcpat0.8_r274.tar.gz -O - | tar zx cd mcpat0.8_r274 make cd .. ### STEP 7: download the conversion scripts wget http://www.cl.cam.ac.uk/~acr31/sicsa/m5-mcpat.pl wget http://www.cl.cam.ac.uk/~acr31/sicsa/mcpat-template.xml wget http://www.cl.cam.ac.uk/~acr31/sicsa/mcpat-exec.pl ### STEP 8: convert the m5 output in to an XML file for mcpat to use perl m5-mcpat.pl m5out/stats.txt m5out/config.ini mcpat-template.xml > matrix1-results.xml ### STEP 9: run the mcpat wrapper to run mcpat (this takes about 30 seconds) cd mcpat0.8_r274 perl ../mcpat-exec.pl ../matrix1-results.xml