Intel (Altera) Cyclone IV EP4CE6F17C8 bitstream · Research · Source available

Mapped a Cyclone FPGA's configuration bitstream with Claude Code

View JSON
Intel (Altera) Cyclone IV EP4CE6F17C8 bitstream: Claude did the mapping; a real board checked its work.
Image: GitHub (14sea/Cyclone_CRAM_Mapper)

Who did what

459 of 493 commits credit an AI: 228 Claude Opus 4.7, 184 Claude Opus 4.6, 18 Claude Opus 4.8, 15 Claude Fable 5. They were made on 41 separate days between 5 Apr 2026 and 30 Sept 2026.

Counted from the public git history on 16 Nov 2026. How

Hardware verification needed manual work. The author says the method holds up as long as hallucination is kept in check.

What was done

The repository is set up for Claude Code, with a CLAUDE.md context file, and maps configuration RAM bits with results checked on a real board.

14sea used Claude Code to reverse engineer the configuration bitstream of an Intel (formerly Altera) Cyclone IV EP4CE6 FPGA. The aim is a fully open toolchain for the chip. The project maps logic and much of the routing in the 368,011-byte RBF file, worked out its per-frame CRC, and checks results on a real board. The repo includes a CLAUDE.md file described as the AI assistant context file, and a bitstream-re skill. The README does not say what the AI did.

Method

The core method is "pair-diff" fuzzing, taken from Project IceStorm. Python scripts generate tiny Verilog designs that differ in one thing, compile them with Quartus Prime 21.1 Lite command-line tools, and diff the resulting bitstreams. Results go into a SQLite database. When codec output that matched Quartus byte for byte still failed on the board, the author inferred that the chip checks a CRC. The CRC turned out to be computed per frame, and differences between frames identified it as CRC-16 (polynomial 0x8005) with a fixed initial value.

Where the research stands

This is research in progress; the README's most recent dated entries are from 24 April 2026. It reports a CRAM address model verified at all 376 of 376 positions. LUT truth tables can be read and written. The file CRC is worked out, with 1,727 of 1,727 frames verified. Routing is partly mapped: the C4 wires are 100% mapped for index 0, R4 has 25 of 37 indices mapped (about 24 or 25), R24 is partly mapped at about 66% pair-diff accuracy, and C16 is not mapped yet. A round trip of routing switches through the codec showed 0 dropped and 0 hallucinated cells. The project also found that the EP4CE6 and EP4CE10 share the same physical die.

Bitstreams were flashed to a Heijin AX301 board to check the results. Small designs built through its partly open Yosys and nextpnr flow run on the board, but a large NEORV32 build made that way resets the FPGA when flashed.

To try it you need a Heijin AX301 board with an EP4CE6F17C8 and a USB-Blaster, Quartus Prime 21.1 Lite, openFPGALoader and Python 3. The Python scripts drive Quartus, store results in SQLite and compare bitstreams.

Sources:

  • https://github.com/14sea/Cyclone_CRAM_Mapper

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. Checked against the sources on 13 Oct 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week