Silinx · User's guideTry Silinx

Co-design: an FPGA and a microcontroller together

User's guide · English · Português

A co-design project is a system of FPGA and microcontroller nodes linked together, designed and simulated as one: an FPGA module of the project on its board, an Arduino Uno or Nano running its firmware, a serial terminal, joined by UART and GPIO links. Its design is in CODESIGN.md; its roadmap is #4695.

A co-design project

Try it

Try it in the System editor's toolbar opens its simulation view under the canvas, the green Try it panel. Run 100 ms (or Run, then Pause) runs the whole System together: the FPGA nodes' modules compiled (Yosys) for the compiled engine at their board's clock, the Arduino's firmware run by avr8js at 16 MHz, everything in a Web Worker, deterministic. It shows:

The nodes' warnings (an AVR's byte lost, a framing error) are in the console. The AI assistant does the same with the MCP server's edit_system, check_system and simulate (a co-design project's System; its waves written to build/<name>.vcd).

Try it: the uart-avr example

  1. New Project ▸ Co-design, Start from Example: uart-avr, Finish. Its System opens: uno (an Arduino Uno with firmware/hello.hex) linked by serial to fpga (the uart module on a Basys2).
  2. Try it, then Run 100 ms. In the link inspector, serial_uno (the Arduino's TX to the FPGA's RX) shows Hello from Arduino! and serial_fpga (the FPGA's TX back) the same text: the FPGA echoes each byte.
  3. Waves: the Arduino's D1 and D0, the FPGA's rx and tx, and the two wires, over the 100 ms.

The firmware's source is firmware/hello.asm: it sends its greeting, then shows each byte it receives on port B.