1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00

Adding README file for accelerator

This commit is contained in:
Andreas Olofsson 2016-01-23 21:48:53 -05:00
parent 953877433b
commit 3c34ba0daa

33
accelerator/README.md Normal file
View File

@ -0,0 +1,33 @@
ACCELERATOR
=======
A simple toy example designed to help get folks up to speed on FPGA and verilog design on the Parallella platform. This is an unoptimized "hello world" type AXI slave design. Optimization is left as an exercise to the reader.
## Build Instructions (on your regular machine)
```sh
git clone https://github.com/parallella/oh # clone repo
cd accelerator/dv
./build.sh # build
./run.sh tests/hello.emf # load data
gtkwave waveform.vcd # view waveform
emacs ../hdl/accelerator.v # "put code here"
cd ../fpga
./build.sh # build bitstream
sudo cp parallella.bit.bin /media/$user/boot # burn bitstream onto SD card on laptop/desktop
sync # sync and insert SD card in parallella
```
## Testing Instructions (on Parallella)
```sh
git clone https://github.com/parallella/oh # clone repo
cd accelerator/sw
emacs test.c # change numbers to test
gcc driver.c test.c -o hello.elf # compile for ARM
./hello.elf # run program
```