From 9795195b3c0c508a176fd2187bdf8124f689206d Mon Sep 17 00:00:00 2001 From: Marno van der Maas Date: Mon, 15 Jan 2024 15:52:53 +0000 Subject: [PATCH] Add Sonata instructions to README --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 06455b3b..3dafeeb3 100644 --- a/README.md +++ b/README.md @@ -481,6 +481,9 @@ repository root: fusesoc --cores-root=. run --target=synth --setup --build lowrisc:ibex:demo_system ``` +The default board is the Arty A7, but you can also use different synthesis targets. +For example, to use the Sonata board change the target to `synth_sonata`. + ## Programming FPGA To program the FPGA, either use FuseSoC again @@ -492,6 +495,15 @@ fusesoc --cores-root=. run --target=synth --run lowrisc:ibex:demo_system make -C ./build/lowrisc_ibex_demo_system_0/synth-vivado/ pgm ``` +You can also use [OpenFPGALoader](https://github.com/trabucayre/openFPGALoader), here are some example commands: +``` +# Programming the Arty A7 +./openFPGALoader -b arty_a7_35t build/lowrisc_ibex_demo_system_0/synth-vivado/lowrisc_ibex_demo_system_0.bit + +# Programming the Sonata board +./openFPGALoader -c ft4232 build/lowrisc_ibex_demo_system_0/synth_sonata-vivado/lowrisc_ibex_demo_system_0.bit +``` + ## Loading an application to the programmed FPGA The `util/load_demo_system.sh` script can be used to load and run an application. @@ -504,6 +516,9 @@ You can choose to immediately run it or begin halted, allowing you to attach a d # Load demo and start halted awaiting a debugger ./util/load_demo_system.sh halt ./sw/c/build/demo/hello_world/demo + +# Run demo on the Sonata board +./util/load_demo_system.sh run ./sw/c/build/demo/hello_world/demo ./util/sonata-openocd-cfg.tcl ``` To view terminal output use screen: