Simplescalar guide SimpleScalar What is it SimpleScalar is a suite of processor simulators and tools used for simulating real programs running on a modern processor and systems It is used to build modeling applications for program performance analysis det

SimpleScalar What is it SimpleScalar is a suite of processor simulators and tools used for simulating real programs running on a modern processor and systems It is used to build modeling applications for program performance analysis detailed micro-architectural modeling and hardware-software co- veri ?cation The tool set includes sample simulators ranging from a fast functional simulator to a detailed dynamically scheduled processor model that supports non-blocking caches speculative execution and state-of-theart branch prediction Basically SimpleScalar is a C program which models a processor and it accepts the programs that could run on this hypothetical processor as arguments SimpleScalar simulators can emulate the Alpha PISA ARM and x instruction sets and these are very similar to the MIPS architecture that will be discussed in EE CSCI SimpleScalar was developed at the University of Wisconsin in Madison and is one of the most widely used architectural simulators in academia Why are we using this You will be using SimpleScalar for your assignments and or course projects and this guide is being posted now so that you may properly install the simulator on your CSELabs accounts and get comfortable with the simulator well in advance Installing and setting up SimpleScalar on your CSELabs accounts It is highly recommended that you install SimpleScalar on your CSELabs accounts since some simulations take several hours sometimes days to complete and it may not be feasible for you to run them on your personal machines Having said that you can always install it on your personal machines for development work Find a big endian machine This C code snippet will enable you to identify a big little endian machine however all CSELabs machines running Linux are big endian include main long one if char one printf Big endian n else printf Small endian n Get the simulator and a sample benchmark a Download the simplesim- v e tar ?le from moodle and untar it This will create the folder simplesim- b Download the sample benchmark anagram from moodle c It is strongly recommended that you read the README before continuing to the next step Cd Change to the directory simplesim- and run the following commands i make clean ii make con ?g-alpha iii make If you see the message ??my work here is done ? ? then you have successfully installed SimpleScalar on your machine e You now have the following simulators i Functional sim-safe sim-fast ii Cache sim-cache iii Pro ?ling sim-pro ?le iv Out of order processor sim-outorder f You may run ?? sim-outorder ? in the simplesim- directory to get the manpages for SimpleScalar It gives a list of all possible arguments that SimpleScalar can accept that are used to model the processor architecture Running the simulationGo to the directory containing the anagram benchmark and run sim-outorder anagram words anagram in This will take about a minute to run and will give the output of anagram as it ran on SimpleScalar It will also give the output of SimpleScalar on the terminal which will

  • 83
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise
Partager