ucb-bar / gemmini-rocc-tests

Fork of seldridge/rocket-rocc-examples with tests for a systolic array based matmul accelerator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quickstart

  1. Clone submodules:
    git submodule update --init --recursive
  2. Build the tests in this repo:
    ./build.sh

The tests' binaries will be installed in build/. The tests whose source code can be found in bareMetalC/ will be installed in build/bareMetalC/, the tests in imagenet/ will be installed in build/imagenet/, and so forth.

To run the tests yourself on a Gemmini ISA simulator, follow these steps:

  1. Install esp-isa-sim. If you are using Chipyard, then running ./scripts/build-toolchains.sh esp-tools from Chipyard's root directory will install it for you. The ISA simulator is called spike.
  2. Run test programs on spike:
    cd build/bareMetalC
    spike --extension=gemmini mvin_mvout-baremetal

Writing Your Own Gemmini Tests

bareMetalC/template.c is a template Gemmini test that you can base your own Gemmini tests off of. To write your own Gemmini test, run:

cp bareMetalC/template.c bareMetalC/my_test.c

Then, add my_test to the tests list at the top of bareMetalC/Makefile. Afterwards, running ./build.sh will install my_test-baremetal in build/bareMetalC.

About

Fork of seldridge/rocket-rocc-examples with tests for a systolic array based matmul accelerator

License:Other


Languages

Language:C 100.0%Language:Makefile 0.0%Language:Jupyter Notebook 0.0%Language:Python 0.0%Language:Shell 0.0%Language:M4 0.0%