1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/accelerator
2016-01-23 21:48:53 -05:00
..
2016-01-23 21:19:16 -05:00
2016-01-23 21:19:16 -05:00
2016-01-23 21:48:32 -05:00
2016-01-23 21:48:32 -05:00
2016-01-21 15:38:57 +00:00
2016-01-23 21:48:53 -05:00

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)

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)

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