Skip to content

StanfordAHA/garnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ff7b0e4 · Mar 25, 2025
Mar 25, 2025
Mar 12, 2025
Mar 20, 2024
Mar 22, 2024
Feb 28, 2025
Apr 22, 2024
Mar 13, 2024
Nov 7, 2021
Jan 24, 2020
Feb 21, 2019
Mar 1, 2025
Feb 26, 2025
Apr 25, 2023
Apr 25, 2023
Feb 1, 2024
Mar 1, 2025
Feb 9, 2024
Feb 16, 2025
Mar 5, 2025
Aug 30, 2024
Feb 9, 2024
Feb 28, 2025
Apr 25, 2023
Apr 25, 2023
Feb 9, 2024
Apr 25, 2023
Mar 24, 2025
Feb 21, 2025
Apr 28, 2019
Dec 31, 2024
Jan 11, 2019
Mar 24, 2025
Feb 13, 2024
Sep 7, 2023
Jun 27, 2024
Apr 25, 2023
Apr 25, 2023
May 17, 2024
Apr 8, 2024
Mar 1, 2025
Feb 8, 2024
Dec 19, 2023
May 10, 2022
Sep 7, 2023
Aug 9, 2023
Nov 13, 2023
Feb 27, 2024
Sep 7, 2023
Feb 9, 2024

Repository files navigation

Build Status codecov

This repo lets you investigate and experiment with implementing our CGRA using new generator infrastructure. Here you will find: original Genesis2 source for top level modules, functional models, and testing infrastructure. Also, you will find common generator patterns abstracted away to make designing, testing, and programming the CGRA faster.

Usage

Once garnet is installed, you can build e.g. a 2x2 CGRA simply by doing

$ python garnet.py --help
$ python garnet.py --width 4 --height 2

For installation instructions, read on.

Install and Build (also see issue #1037)

We use a docker environment to build the chip. Here's how:

Use AHA repo to boot up a docker image and container

$ git clone https://github.com/StanfordAHA/aha aha
$ cd aha; git submodule init update --recursive
$ docker build . -t aha_image           # May need sudo depending on your setup
$ docker exec -it aha_container bash    # May need sudo depending on your setup

(Inside docker now) build a 4x2 CGRA garnet.v

$ source /aha/bin/activate
$ cd /aha/garnet
$ python garnet.py --width 4 --height 2 --verilog

Verify functionality

We can verify that everything is setup properly by running the test suite using pytest.

$ cd /aha; ./garnet/.github/scripts/run_pytest.sh

(FYI last time I tried this it did not work until I first did cd /aha/garnet; git checkout master ...?)

Style guide

Please read and follow the style guide in the AHA wiki.