Note all directories are relative to the git repository root
de10-nano-hardware based on GHRD demo from terasic DE10-Nano_v.1.2.3_HWrevAB_SystemC refer to flow described at https://bitlog.it/hardware/building-embedded-linux-for-the-terasic-de10-nano-and-other-cyclone-v-soc-fpgas/
common\
host\
vxi11-cmd\
bsp\
de10-nano-hardware\
Hardware specific to the de10-nano platform
de10-nano-software\
Software specific to the de10-nano, including bootloader, kernel, and rootfs configs.
device\
hardware-logic-analyzer
Hardware for implementing a logic analyzer
vxi11-device-logic-analyzer\
Software for implmenting a vxi11 device interface to the logic analyzer hardware
external\
Submodules for external source code
Run this script to add necessary directoires to path
- setup_env.sh
- ./build/setup.sh
- cd docker, install Quartus (both QuartusLiteSetup and SoCEDSSetup, eventually this will be dockerized)
- cd bsp
- ./de10-nano-build.sh all
- cd bsp/de10-nano-hardware
- make all
- make sd-create-image-netboot (or sd-create-image to include fpga and device tree)
- cd bsp/de10-nano-hardware
- make rbf
- make doesn't pickup all change, rm stamp/17.1/quartus.stamp if needed to trigger rebuild
- cd bsp/de10-nano-software
- ./build.sh
- cd bsp
- ./build.sh copy_to_server
- dd if=sdcard-netboot.img of=/dev/mmcblk0 bs=2048
- sync
- cd host/vxi11-cmd
- make
- cd host/vxi11-device-logic-analyzer
- make
- runSVUnit -t avalon_source_tester_unit_test.sv -s modelsim
- Check console output
- If needed, run vsim to open gui
Bootloader image: bsp/de10-nano-hardware/sd-card-netboot.img
Host vxi11 command tool: out/host/vxi11-cmd/bin/vxi11-cmd
Device vxi11 logic analyzer service: out/device/vxi11-device-logic-analyzer/bin/vxi11_svc