mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-04-26 12:27:28 +00:00
A first pass at ghdl synthesis using yosys and nextpnr. It runs hello world or micropython if the FPGA has enough block RAM (eg ECP5 85F). The hello world testcase also loops UART rx to tx in software (ie not a hardware loopback). It uses Docker images, so no software needs to be installed. If you prefer podman you can use that too. Edit Makefile.synth to configure your FPGA, JTAG device etc. To build: make -f Makefile.synth and to program: make -f Makefile.synth prog A few issues: We need to add PLL support. Right now Microwatt runs at whatever the external clock frequency is and the baud rate gets scaled by how far off 50MHz it is. This means on the ecp5-evn with a 12 MHz clock rate the baud rate is a quite strange 27650 (115200 * 50 / 12). On my OrangeCrab with a 50MHz clock the UART is 115200. It uses a large amount of resources, way more than it should. There are still some ghdl/yosys issues to be sorted out. Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
18 lines
362 B
INI
18 lines
362 B
INI
#
|
|
# Olimex ARM-USB-TINY-H
|
|
#
|
|
# http://www.olimex.com/dev/arm-usb-tiny-h.html
|
|
#
|
|
|
|
interface ftdi
|
|
ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H"
|
|
ftdi_vid_pid 0x15ba 0x002a
|
|
|
|
ftdi_layout_init 0x0808 0x0a1b
|
|
ftdi_layout_signal nSRST -oe 0x0200
|
|
ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100
|
|
ftdi_layout_signal LED -data 0x0800
|
|
|
|
# default speed
|
|
adapter_khz 5000
|