Getting started

This is a brief guide on how to run your first program on A-Core.

  1. Set up your environment by installing tools locally, using ECD cluster machine, or using the A-Core docker image.

  2. Run the following:

./init_submodules.sh
./configure
./pip3userinstall.sh
  • ./init_submodules.sh initializes all submodules. It also compiles all Chisel modules, so it takes a while to execute.

  • ./configre defines global environmental variables that are used by TheSyDeKick scripts and exports them to TheSDK.config

  • ./pip3userinstall.sh installs pip programs that are required by A-Core environment. It also compiles a C-accelerated Python package, jtag_kernel.

Note

Set PIPUSEROPT="" in the configure file if you are using a virtual environment. By default, it is set as “user”, so the script installs the pip packages into user install directory with pip install --user. This will throw an error if using a virtual environment.

  1. Navigate to Entities/acoretests

  2. Run make

This step should run a simulation which runs an assembly program that tests RISC-V M-extension related instructions on A-Core. If no errors are thrown, a GTKWave window, with multiple waveforms visible, should open. Additionally, you should see several OK prints on the terminal. You can close GTKWave to finish the simulation.

Screenshot of GTKWave

Screenshot of GTKWave

Screenshot of terminal showing OK's

Screenshot of terminal showing OK’s