Git Product home page Git Product logo

gem5mcpatparse's Introduction

gem5McPATparse v0.1

An attempt to adapt gem5 output to McPAT input. This version is implemented in Bison, Flex and C/C++. It also uses the library RapidXML for C++. Based on Fernando Endo's notes [1], this parser extracts the parameters and statistics from the output of gem5, 'config.ini' and 'stats.txt', and fills the equivalent fields in a XML based on 'template.xml'.

Compilation

To compile this version:

make

Running the parser

To run the parser and generate 'output.xml':

make run

It is also possible to run as (all these options are mandatory):

./gem5McPATparse -x <template_file> -c <config_file> -s <stats_file> -o <output_file>
./gem5McPATparse --xmltempalte <template_file> --config <config_file> --stats <stats_file> --output <output_file>

In order to get help from the program:

./gem5McPATparse -h

Software needed

It has been tested in a Linux distribution with gcc version 5.2.1, bison version 3.0.2, flex 2.5.39 and make 4.0

The template has been adapted for the last version of [McPAT 1.0]. The gem5 version tested is from 03/2015, but it should work for a more recent version.

TODO list

What can be done or improved:

  • Parse system.mc params and statistics
  • Check why dcache block_size must be 32 in order to work
  • Code clarity
  • Portability [?]

Bugs

This tool is currently in development, so if you find a bug, you can open an issue. If you do not agree with the translation of a parameter or value, please do the same in order to discuss it!

Limitations

This first version is focused on the compatibility of the output of memory system and core in gem5 with the input of McPAT. Thus, other components such as PCIe will be ignored by the moment.

  • Most of translations only work for X86 Architectures. It is needed to find the synonyms for the rest of ISAs

References

[1]: Fernando Akira Endo. Génération dynamique de code pour l’optimisation énergétique. Architectures Matérielles [cs.AR]. Université Grenoble Alpes, 2015. Français. <NNT : 2015GREAM044>. (Appendix A)

gem5mcpatparse's People

Watchers

James Cloos avatar Joe Scott avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.