Home

Awesome

litexOnColorlightLab004

Demonstration on using a Soft Core (VexRiscv) built with LiTex in a Colorlight 5A-7B (ECP5). This demo is based on lab004 of fpga_101 repository.

namePinnote
clk25P625MHz clock
cpu_resetP11button J28
user_ledP11button J28
Uart TXF3J1.1
Uart RXF1J1.2

Prerequisite

software

hardware

JX direct connection

U28 without buffer and with direct connection between input and output.

Build

gateware

Just:

./base.py --build

firmware

cd firmware && make

see lab004 for more details.

load bitstream

./base.py --load [--cable yourCable]

where yourCable depends on your JTAG probe. If --cable is not provided openFPGALoader will uses ft2232` generic interface.

load firmware

lxterm /dev/ttyUSBX --kernel firmware/firmware.bin

where ttyUSBX is your USB <-> UART converter device.

boot

serialboot

test

To start the blink led use command

led