Terasic DE0-Nano

FPGA MIPS bitstream RISCV bitstream
Altera Cyclone IV EP4CE22F17C6N de0nano_mips_100mhz.sof
de0nano_riscv_100mhz.sof

User manual:
de0_nano_user_manual_v1.9.pdf
Quartus project directory: https://github.com/f32c/f32c/blob/master/rtl/proj/altera/de0_bram
Top-level module: https://github.com/f32c/f32c/blob/master/rtl/altera/de0_toplevel_bram.vhd

I/O pin enumeration

Arduino 0123 4567
DE0 btn_rightbtn_left
Arduino 89101112131415
DE0 LED #0LED #1LED #2LED #3 LED #4LED #5LED #6LED #7
Arduino 1617181920212223
DE0 switch #0switch #1switch #2switch #3
Arduino 2425262728293031
DE0

Notes

The DE0-Nano board has neither a DB-9 style RS-232 port nor a USB-UART interface. Our SoC expects an external TTL UART interface, such as FT232R, to be connected to PIN_M16 (rs232_rxd - from PC to FPGA) and to PIN_B16 (rs232_txd - from FPGA to PC). Those signals are routed to the 2x13 header as GPIO_2_IN[2] and GPIO_2[1] respectedly. If you prefer a different pinout please edit the I/O constraints accordingly and re-synthesize the bitstream.