This repository contains example code to be run on the OrangeCrab.
These examples make use of the Vexriscv CPU created inside the FPGA by the bootloader. The RISCV firmware is copied across into the FLASH by the bootloader. If the bootloader determines that it has not loaded new gateware, then the CPU will simply adjust it's program counter to start executing the newly loaded programs.
- riscv.blink - The most basic example. Blink a LED with RISCV firmware
- riscv.button - Read button input and toggle LED colour
These examples use Yosys + NextPnR, to synthesis (or compile) verilog into a bitstream. A nice term for this is gateware. Since it is analogous to firmware, but describes how the FPGA needs to be configured.
This gateware can be loaded onto the OrangeCrab using its DFU bootloader.
- verilog.blink - The most basic verilog example. Blink a LED with gateware