The CVE2/CV32E20 RISC-V core is verified on an XC7A35T: synthesis, implementation, JTAG programming and UART output. The serial port prints hello cve2 continuously, while LED1 keeps a ~0.67 s heartbeat.
This is not an OpenHW overview page. It is the complete record of bringing CVE2 from RTL to a real UART output on a specific ALINX board: pins, resources, timing, bitstream, firmware and pitfalls.
After programming the bitstream over JTAG, /dev/ttyUSB0 continuously prints at 115200 8N1 raw:
hello cve2
hello cve2
hello cve2
...
LED1 is active-low and toggles about every 0.67 s. JTAG detects xc7a35t_0 and Vivado reports PROGRAM_DONE.
CVE2 has no ready-made Simple System; examples/ only provides an obi2ahb adapter. This case builds a minimal SoC: CVE2 + dual-port RAM + UART + LED. No DDR3 and no interrupt controller.
Vivado 2023.2, part xc7a35t-2fgg484, 50 MHz clock constraint; all user constraints met.
| Item | Value | Utilization |
|---|---|---|
| Slice LUTs | 3,170 | 15.24% |
| Slice Registers | 2,397 | 5.76% |
| Block RAM Tile | 8 | 16.00% |
| DSPs | 11 | 12.22% |
| Bonded IOB | 4 | 1.60% |
| WNS / WHS | 0.993 ns / 0.078 ns | TNS / THS = 0 |
Bitstream: top_cve2.bit, 2,192,118 bytes.
riscv-nuclei-elf-gcc (GCC 10.2, rv32imc/ilp32).d7f21568028a1114be663599bd42145dccf28928.cd sw && make clean && make.vivado -mode batch -source build.tcl.vivado -mode batch -source program_2023.tcl.stty -F /dev/ttyUSB0 115200 raw -echo; timeout 3 cat /dev/ttyUSB0.cd sw && make clean && make
cd ..
source /home/alinx/Xilinx/Vivado/2023.2/settings64.sh
vivado -mode batch -source build.tcl -log build.log -journal build.jou
vivado -mode batch -source program_2023.tcl -log program.log -journal program.jou
stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb raw -echo
timeout 3 cat /dev/ttyUSB0
| Signal | FPGA pin | Note |
|---|---|---|
clk | Y18 | On-board 50 MHz single-ended oscillator |
rst_n | M6 | RESET/KEY3, active low, external 10K pull-up |
led | M5 | LED1, active low |
uart_tx | L5 | FPGA TX → CH340 RXD |
start.S must use #; ; is treated as an illegal instruction.mem in an always block with asynchronous reset, otherwise Vivado reports Synth 8-3391 and cannot infer BRAM.timescale; do not add one only to the testbench. Use xelab --timescale 1ns/1ps.hw_server on localhost:3121, not 2025.2; otherwise the Digilent FT232H may not be detected.These files are taken directly from the verified project. Upstream source remains the canonical reference.
Daily Briefing · Weekly Digest · Monthly Deep Dive