fpga.love
中文 App
Home / Projects / CVE2 case
Verified case · OpenHW on ALINX

OpenHW CVE2 on ALINX PI-AR035-F1-1

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.

Verified on hardware CVE2 / RV32IMC 50 MHz Vivado 2023.2 Apache-2.0

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.

BoardALINX PI-AR035-F1-1Engineering board, not yet in the board catalogue; link will be added once listed
ChipAMD Artix-7 · XC7A35TChinese spec page & same-family boards → ProjectOpenHW CVE2 / CV32E20Upstream repository & commit →
Board
ALINX PI-AR035-F1-1
ISA
RV32IMC
Clock
50 MHz
Memory
16 KiB instr + 16 KiB data
UART
115200 8N1
Upstream commit
d7f2156

1. Verification result

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.

2. Minimal system

50 MHz oscillatorY18
→
CVE2 coreRV32IMC / OBI
→
Instruction RAM16 KiB @ 0x0000_0000
Data RAM16 KiB @ 0x0000_0000
→
UART TX0x1000_0000 / L5
LED heartbeatM5

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.

3. Resources and timing

Vivado 2023.2, part xc7a35t-2fgg484, 50 MHz clock constraint; all user constraints met.

ItemValueUtilization
Slice LUTs3,17015.24%
Slice Registers2,3975.76%
Block RAM Tile816.00%
DSPs1112.22%
Bonded IOB41.60%
WNS / WHS0.993 ns / 0.078 nsTNS / THS = 0

Bitstream: top_cve2.bit, 2,192,118 bytes.

4. Reproduction

  1. Prepare Vivado 2023.2 and riscv-nuclei-elf-gcc (GCC 10.2, rv32imc/ilp32).
  2. Clone CVE2 and checkout d7f21568028a1114be663599bd42145dccf28928.
  3. Build firmware: cd sw && make clean && make.
  4. Synthesize and implement: vivado -mode batch -source build.tcl.
  5. Program over JTAG: vivado -mode batch -source program_2023.tcl.
  6. Open UART: 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

5. Pin map

SignalFPGA pinNote
clkY18On-board 50 MHz single-ended oscillator
rst_nM6RESET/KEY3, active low, external 10K pull-up
ledM5LED1, active low
uart_txL5FPGA TX → CH340 RXD

6. Pitfalls

7. Project files

These files are taken directly from the verified project. Upstream source remains the canonical reference.

This round verified UART TX, LED heartbeat, reset and the 50 MHz clock only. DDR3, timer, interrupts, UART RX, CoreMark and PLL 100 MHz were not verified.

8. Related

Subscribe to fpga.love

Daily Briefing · Weekly Digest · Monthly Deep Dive