Home

Awesome

Riegel Computer

Riegel is an FPGA computer designed by Lone Dynamics Corporation.

Riegel Computer

This repo contains schematics, PCB layouts, pinouts, a 3D-printable case, example gateware and documentation.

Find more information on the Riegel product page.

Blinky

Building the blinky example requires Yosys, nextpnr-ice40 and IceStorm.

Assuming they are installed, you can simply type make to build the gateware, which will be written to output/blinky.bin. You can then use ldprog to write the gateware to the device.

Zucker

Zucker is a RISC-V SOC designed specifically for Riegel hardware.

USB Bootloader

Riegel supports updating the flash MMOD over its USB-C port with the USB DFU (Device Firmware Upgrade) protocol. When Riegel powers on (or restarts) the USB bootloader waits 5 seconds for a USB command and then continues the boot process, if it receives a command it will wait until the device is detached (with dfu-util -e) or rebooted (with ldprog -r).

In order to install the USB bootloader you will need to use the ISP header and ldprog. Make sure you have first installed the software required to build the Blinky example above.

git clone https://github.com/machdyne/tinydfu-bootloader
cd tinydfu-bootloader/boards/riegel
make
make prog

Now you can program the flash MMOD over USB:

ldprog -r
sudo dfu-util -a 0 -D zucker/output/soc.bin
sudo dfu-util -a 1 -D zucker/apps/lix/lix.bin

Note: It may be necessary to remove the MicroSD card before programming with DFU.

Exit the bootloader and continue booting:

sudo dfu-util -e -a 0

ISP Header

The ISP header can be used to program the FPGA SRAM as well as the MMOD flash memory.

1 2
3 4
5 6
7 8
PinSignal
1CSPI_SS
2CSPI_SCK
3CSPI_SI
4CSPI_SO
5CRESET
6CDONE
7GND
8PWR3V3 (out)

Board Revisions

RevisionNotes
V3BLatest production board
V4Work in progress; improves USB routing

License

The contents of this repo are released under the Lone Dynamics Open License with the following exceptions:

Note: You can use these designs for commercial purposes but we ask that instead of producing exact clones, that you either replace our trademarks and logos with your own or add your own next to ours.