atse 8780ce681e
All checks were successful
Hydra urukul-ice40 Hydra build #193638 of artiq:urukul-pld:urukul-ice40
Hydra urukul-xc2c Hydra build #193639 of artiq:urukul-pld:urukul-xc2c
README: Add continuous integration (Hydra) links
2026-02-27 13:06:26 +08:00
2025-10-14 16:58:30 +08:00
2025-10-14 16:58:30 +08:00
2026-01-26 17:25:37 +08:00
2025-08-21 09:42:19 +08:00
2018-10-17 15:31:45 +02:00

Urukul gateware code (M-Labs fork)

Urukul overview

Urukul Schematics/Layout

NU-Servo

Supported Urukul Hardware Revision (HW_REV)

PLD HW_REV
XC2 CPLD 1.4, 1.5
iCE40 1.6+

Instructions for Xilinx CoolRunner-II CPLD (XC2 CPLD)

Sources are in the xc2c directory.

cd xc2c

Download latest build: JED.

Building

Needs migen and Xilinx ISE. Assumes ISE is installed in /opt/Xilinx.

make

Flashing

With Digilent JTAG HS2 cable:

  • download firmware to dongle. Manually (adjust USB bus as needed):
/sbin/fxload -t fx2 -I /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/xusb_xp2.hex -D /dev/bus/usb/001/*`cat /sys/bus/usb/devices/1-3/devnum`

or automatically via the udev rule:

SUBSYSTEM=="usb", ACTION="add", ATTR{idVendor}=="0403", ATTR{idProduct}=="6014", ATTR{manufacturer}=="Digilent", RUN+="/usr/bin/fxload -v -t fx2 -I /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/xusb_xp2.hex -D $tempnode"
  • install xc3sprog

  • flash_xc3.sh jtaghs2

  • look for Verify: Success

Instructions for iCE40 FPGA

Sources are in the ice40 directory.

cd ice40

Download latest builds: urukul.bin suservo.bin.

Building

Needs migen, yosys, nextpnr, icestorm.

python urukul.py        # Builds non-SU-Servo firmware

To build the SU-Servo version of the firmware, add the --suservo argument when calling the script.

Flashing

Use kasli-i2c.

Otherwise you can also use an FT232H-based board. Connect the wires as follows. Top left is closest to the CPLD, right is facing the edge. Bottom is towards the end of the edge.

D4    D1
D2    D0
GND   X
X     X
D7    D6

Use iceprog (available with icestorm package):

iceprog build/urukul.bin      # non-SU-Servo
iceprog build/suservo.bin     # SU-Servo

License

GPLv3+

Description
CPLD/FPGA gateware on Urukul. Forked from https://github.com/quartiq/urukul
Readme 643 KiB
Languages
Python 94.2%
Nix 4.5%
Makefile 0.7%
Shell 0.4%
Batchfile 0.2%