Coder Social home page Coder Social logo

cgra's Introduction

An End-to-End Agile Design Framework to Improve Energy Efficiency on CGRAs

Framework

Our framework is a comprehensive reconfigurable architecture modeling framework that significantly advances the flexibility and optimization capabilities of CGRAs. It includes CGRA modeling, application mapping, architecture optimization, evaluation, and Verilog generation based on Chisel toolchains.

How to install

Compiler

If you already have g++, you can compile directly.

mkdir build && cd build 
mkdir object
cd ..
make -j8

If you get an error g++: error: unrecognized command line option โ€˜-std=c++14โ€™, you can update g++ or change it to c++11.

Then you can install the python packages we need.

pip3 install -r requirement.txt

Dependencies for Verilog Generation

  • JDK 8 or newer

  • SBT

How to run

Generate Architecture

python3 ./genarch/genarch21_common.py 

Note that you need to configure the ./config_genarch.txt before running, which includes the scale of the architecture, the functionality of processing elements (PEs), and the applications that need to be mapped.

Mapping

python3 ./1_place.py dfg_dot

where dfg_dot is the dot file of application, such as ./benchmarks/express/cosine2/cosine2.dot.

The ./1_place.py script will invoke the mapping subroutine ./build/place for efficient mapping.

Verilog Generation

You can generate the Verilog using sbt command

sbt "runMain  CGRA.yzArch.yazhouGen"

The function of TopYZGen is used to generate the architecture, so you can change the parameters of this function to get a new architecture.

Architecture Pruning

First, you need to run the following script, which can automatically obtain the mapping information required for the pruning program.

python3 ./pruning_route_results.py

After that, you can run the pruning program.

./build/testPruning ./pruning/FUpruning.txt

Note that the pruned architecture will be exported to ./arch6pruning/.

To test the mapping performance on the new architecture, you need to modify the configuration information in ./arch/arch.ini, and then you can run the mapping script mentioned above.

Physical Implemantation

We conduct logic synthesis using Synopsys Design Compiler (DC) and physical implementation using IC Compiler with the netlist produced by DC and constraints as inputs. (./figure/4X6CGRA.png)

cgra's People

Contributors

jiangnan7 avatar

Watchers

 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.