Presentation is loading. Please wait.

Presentation is loading. Please wait.

SimpleScalar CS401. A Computer Architecture Simulator Primer What is an architectural simulator? – Tool that reproduces the behavior of a computing device.

Similar presentations


Presentation on theme: "SimpleScalar CS401. A Computer Architecture Simulator Primer What is an architectural simulator? – Tool that reproduces the behavior of a computing device."— Presentation transcript:

1 SimpleScalar CS401

2 A Computer Architecture Simulator Primer What is an architectural simulator? – Tool that reproduces the behavior of a computing device

3 Simulation Suite Overview

4 Global Simulator Options (cont.) Supported on all simulators -h - print simulator help message -d - enable debug message -i - start up in DLite! debugger -q - quit immediately -config - read config parameters from -dumpconfig - save config parameters into

5 Global Simulator Options Configuration files – To generate a configuration file Specify non-default options on command line And, include “-dumpconfig ” to generate configuration file – Comments allowed in configuration files, all after “#” ignored – Reload configuration files using “-config ”

6 sim-cheetah …(cont.) -R # replacement policy, i.e., lru or opt -C # cache configuration, i.e., fa, sa, or dm -a # min number of sets (log base 2, line size for DM) -b # max number of sets (log base 2, line size for DM) -l # line size of the caches (log base 2) -n # max degree of associativity to analyze (log base 2)

7 sim-cheetah (example) Configurations: least-recently-used (LRU) replacement policy 128 to 2048 sets 1-way to 4-way associativity 16-byte cache lines Configuration file: -R lru # replacement policy is lru. -a 7 # min number of sets (log 128) -b 11 # max number of sets (log 2048) -l 4 # line size of the caches (log 16) -n 2 # max degree of associativity to analyze (log 4)

8 sim-cache …(cont.) -cache:dl1 # l1 data cache config, i.e., { |none} -cache:dl2 # l2 data cache config, i.e., { |none} -cache:il1 # l1 inst cache config, i.e., { |dl1|dl2|none} -cache:il2 # l2 instruction cache config, i.e., { |dl2|none} -tlb:itlb # instruction TLB config, i.e., { |none} -tlb:dtlb # data TLB config, i.e., { |none}

9 sim-cache …(cont.)

10

11 sim-bpred -bpred # branch predictor type {nottaken|taken|bimod|2lev|comb} -bpred:bimod # bimodal predictor config ( ) -bpred:2lev # 2-level predictor config ( ) -bpred:comb # combining predictor config ( ) * Predictor `comb' combines a bimodal and a 2-level predictor. -bpred:ras # return address stack size (0 for no return stack)

12 Running SimpleScalar Tools …(cont.) The tool set takes binaries compiled for the SimpleScalar architecture and simulates their execution on one of several provided processor simulators. sets of precompiled binaries (including SPEC95) a modified version of GNU GCC (with associated utilities) that allows you to compile your own SimpleScalar test binaries from FORTRAN or C code.

13 Running SimpleScalar Tools (The SPEC95 Benchmark Binaries) The Standard Performance Evaluation Corporation (SPEC) provides (for a fee) a set of benchmarks that are used to evaluate processors. You can find information about these benchmarks on the Web at http://www.spec.org/osg/cpu95/.

14 Running SimpleScalar Tools (compile your own test binaries ) Compiling a C program, e.g. ssbig-na-sstrix-gcc -g -O -o foo foo.c –lm Compiling a Fortran program, e.g. ssbig-na-sstrix-f77 -g -O -o foo foo.f -lm

15 Running SimpleScalar Tools …(cont.) Running a program./sim-cheetah -config Example./sim-cheetah -config test go.ss 2 8 go.in

16 Running SimpleScalar Tools Example./sim-cheetah -config go.ss 2 8 go.in Where : the list of sim-cheetah parameters needed to produce results for the specified cache configurations. go.ss : the SimpleScalar binary for the "go" benchmark. "2 8“ : the play quality and the board size for the go simulation. "go.in" : a file that specifies the starting board position (in this case an empty file.)

17 More Information http://www.simplescalar.com For more information about simplescalar, you can download userguide and hackguide for it.


Download ppt "SimpleScalar CS401. A Computer Architecture Simulator Primer What is an architectural simulator? – Tool that reproduces the behavior of a computing device."

Similar presentations


Ads by Google