simplescalar n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
SimpleScalar PowerPoint Presentation
Download Presentation
SimpleScalar

Loading in 2 Seconds...

play fullscreen
1 / 17

SimpleScalar - PowerPoint PPT Presentation


  • 105 Views
  • Uploaded on

SimpleScalar. CS401. A Computer Architecture Simulator Primer . What is an architectural simulator? – Tool that reproduces the behavior of a computing device. Simulation Suite Overview. Global Simulator Options (cont.). • Supported on all simulators

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'SimpleScalar' - naasir


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
a computer architecture simulator primer
A Computer Architecture Simulator Primer
  • What is an architectural simulator?
  • – Tool that reproduces the behavior of a computing device
global simulator options cont
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 <file> - read config parameters from <file>
  • -dumpconfig <file> - save config parameters into <file>
global simulator options
Global Simulator Options
  • • Configuration files
  • – To generate a configuration file
  • • Specify non-default options on command line
  • • And, include “-dumpconfig <file>” to generate
  • configuration file
  • – Comments allowed in configuration files, all after
  • “#” ignored
  • – Reload configuration files using “-config <file>”
sim cheetah cont
sim-cheetah …(cont.)
  • -R <string>
  • # replacement policy, i.e., lru or opt
  • -C <string>
  • # cache configuration, i.e., fa, sa, or dm
  • -a <int> # min number of sets (log base 2, line size for DM)
  • -b <int> # max number of sets (log base 2, line size for DM)
  • -l <int> # line size of the caches (log base 2)
  • -n <int> # max degree of associativity to analyze (log base 2)
sim cheetah example
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)
sim cache cont
sim-cache …(cont.)
  • -cache:dl1 <string>
  • # l1 data cache config, i.e., {<config>|none}
  • -cache:dl2 <string>
  • # l2 data cache config, i.e., {<config>|none}
  • -cache:il1 <string>
  • # l1 inst cache config, i.e., {<config>|dl1|dl2|none}
  • -cache:il2 <string>
  • # l2 instruction cache config, i.e., {<config>|dl2|none}
  • -tlb:itlb <string>
  • # instruction TLB config, i.e., {<config>|none}
  • -tlb:dtlb <string>
  • # data TLB config, i.e., {<config>|none}
sim bpred
sim-bpred
  • -bpred <string>
  • # branch predictor type {nottaken|taken|bimod|2lev|comb}
  • -bpred:bimod <int>
  • # bimodal predictor config (<table size>)
  • -bpred:2lev <int list...>
  • # 2-level predictor config (<l1size> <l2size> <hist_size> <xor>)
  • -bpred:comb <int>
  • # combining predictor config (<meta_table_size>)
  • * Predictor `comb' combines a bimodal and a 2-level predictor.
  • -bpred:ras <int>
  • # return address stack size (0 for no return stack)
running simplescalar tools cont
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.
running simplescalar tools the spec95 benchmark binaries
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/.
running simplescalar tools compile your own test binaries
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
running simplescalar tools cont1
Running SimpleScalar Tools …(cont.)
  • • Running a program

./sim-cheetah -config <file> <executable file for SimpleScalar> <parameters>

  • • Example

./sim-cheetah -config test go.ss 2 8 go.in

running simplescalar tools
Running SimpleScalar Tools
  • • Example

./sim-cheetah -config <arguments> go.ss 2 8 go.in

  • • Where
  • <arguments> : 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.)
more information
More Information
  • http://www.simplescalar.com
  • For more information about simplescalar, you can download userguide and hackguide for it.