Zen

Work in Progress: This repository is under active development. Hardware documentation, examples, bitstreams, and APIs are still evolving and may change before the first stable release.
Zen is Vicharak’s next-generation FPGA + microcontroller development board family, pairing an Efinix Trion FPGA with a Raspberry Pi RP2350B microcontroller over a high-speed 10-wire parallel interconnect (Zen Link). Built as the successor to Vicharak’s Shrike family, Zen is designed for makers, students, and engineers building real-time hardware accelerators, protocol bridges, soft CPUs, and standalone FPGA applications.
Documentation • Zen Link (zink) • Quick Start • Examples • Contributing • Community
Board Family
Both boards share the exact same PCB and pin-to-pin footprint—only the FPGA density differs:
| Feature |
Zen R4 |
Zen R8 |
| FPGA |
Efinix Trion T4F81 |
Efinix Trion T8F81 |
| Host MCU |
RP2350B |
RP2350B |
| FPGA ↔ MCU Interface |
10-bit Parallel Bus (Zen Link) |
10-bit Parallel Bus (Zen Link) |
| Onboard Clock |
50 MHz Oscillator |
50 MHz Oscillator |
| QSPI Flash |
Up to 128 MB |
Up to 128 MB |
| User LEDs |
3 |
3 |
| User Buttons |
2 |
2 |
| Breadboard Compatible |
✅ |
✅ |
| JTAG |
✅ |
✅ |
| USB Type-C (Power & Programming) |
✅ |
✅ |
| ZEP (Zen Expansion Port) |
✅ |
✅ |
Zen Link (zink)
Zen Link (zink/) is a lightweight, 10-wire parallel register and user bus connecting the RP2350B and the Trion FPGA without clock-domain crossing overhead (~180 LUT4 / 124 FF on T4F81, ~2.3 MB/s measured burst throughput). From MicroPython on the RP2350B:
import fpga
fpga.init()
fpga.link_ok() # Verify link ID (0x5A / 0xA5)
fpga.write(0x10, 0x01) # Write CTRL0 (e.g., turn on LED1)
val = fpga.read(0x20) # Read STAT0 (e.g., onboard buttons)
See the Zen Link README, Protocol Specification, and Integration Guide to connect your own RTL design.
ZEP (Zen Expansion Port)
ZEP is a custom expansion port standard created by Vicharak for the Zen family. It is an open standard that you can adopt in open-source or closed-source carrier boards and add-on Hats, provided the interface retains the ZEP name. Official and community ZEP Hats are planned alongside the Zen platform.
Quick Start
- Install tools: Install Efinity IDE (to build RTL from source) and
mpremote (pip install mpremote) for RP2350B MicroPython access.
- Copy a pre-built bitstream (and
zink/mcu/fpga.mpy if the example uses Zen Link) to the board:python -m mpremote cp examples/zink-pwm/bitstream/zink-pwm.hex.bin :
python -m mpremote cp zink/mcu/fpga.mpy :
- Load the FPGA using the repository’s passive-SPI loader (
bring-up/mcu/rp_fpga_flash.py): set FILE_NAME to your .hex.bin filename, copy it as main.py, and run:python -m mpremote cp bring-up/mcu/rp_fpga_flash.py :main.py
python -m mpremote exec "import main"
Confirm CDONE = 1 in the output.
- Run the example firmware (for MCU-assisted examples):
python -m mpremote run examples/zink-pwm/firmware/RP2350/zink-pwm.py
Repository Structure
zen/
├── assets/ # Board photos and pinout diagrams
├── bring-up/ # Hardware bring-up FPGA designs, errata, and RP2350B flash loader
├── docs/ # Pinouts and hardware documentation
├── examples/ # 37 ready-to-run FPGA, Zen Link, protocol, CPU, ML, and handheld examples
├── zink/ # Zen Link IP (Verilog RTL, RP2350B C/MicroPython driver, cocotb tests)
├── CONTRIBUTING.md # Contribution guide, layout standard, and kebab-case naming rules
├── LICENSE.md # Software license (Apache-2.0)
└── LICENSE_HW.md # Hardware license (CERN-OHL-1.2)
Examples
Every standard example under examples/ includes Verilog RTL, Efinity project/pinout files, SDC timing constraints, simulation testbenches, and a pre-built .hex.bin bitstream:
Documentation
Contributing
Contributions are welcome—whether you’re adding an example, fixing an RTL or firmware bug, or improving docs. Please read CONTRIBUTING.md for the standard example layout, kebab-case naming conventions, and hardware checklist before opening a pull request.
License
Software
This project’s software (MicroPython, C drivers, host tools, and scripts) is licensed under the Apache-2.0 license. See LICENSE.md for details.
Hardware
This project’s hardware designs (HDL/RTL, schematics, PCB files, and constraints) are licensed under the CERN Open Hardware License v1.2. See LICENSE_HW.md for details.
评论