contrib: device-file connectivity + decode-or-refuse codecs (Cyclone IV E) - #2
Open
labeth wants to merge 1 commit into
Open
contrib: device-file connectivity + decode-or-refuse codecs (Cyclone IV E)#2labeth wants to merge 1 commit into
labeth wants to merge 1 commit into
Conversation
…IV E)
General, device-independent Cyclone IV E bitstream-RE findings (validated on a foreign
EP4CE10 production bitstream, target refs genericized): DYGR route-asm static connectivity
parser giving whole-device {src->dest:bits} (bit-exact, held-out); C4/R4/R24/C16 node
lattices + node-class; CFF offset->rbf serialization map; coordinate reconciliation
(routing (X,Y)==LUT (X,Y)); compiler-model-extraction method (harvest resolved ASMDB
tables + invert); LUT codec (42/42 vs golden_rbf_modeH); LE/LAB/PLL/M9K/IOE config codecs;
decode-or-refuse decoder + flat<->rbf. Materialized 64/102MB edge tables regenerable, not
committed. See contrib/devfile-connectivity/README.md.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011cqP8Ucrm9ByrhLke1P6S2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
A
contrib/devfile-connectivity/directory adding a device-file-derived approach to Cyclone IV E bitstream RE, meant to complement this repo's existing fuzzing / CRAM-codec / FASM↔RBF toolkit. Instead of learning bits purely by fuzzing, it parses the Quartus device files (.ddb) and harvests the assembler's own resolved setting↔bit model (via the decompiled reader plus a gdb intercept of the emitter), then inverts that model into a decoder.What's included (device-general,
cycloneive1, EP4CE6 / EP4CE10){src_node → dest_node : bits}routing table fromddb_cycloneive1_asm.ddb+ the routing pool.(X,Y)== LUT / IOE(X,Y), same origin.golden_rbf_modeHsweep.README.mdwith provenance, validation, and how each piece composes withbitstream.py/ the route-synth /fasm2rbfstages.How it's validated
Bit-exact round-trip plus held-out checks (leave-one-compile-out and separate independent compiles). The connectivity table reproduces live-trace oracle arcs and predicts held-out arcs bit-exact; the LUT codec matches
golden_rbf_modeH42/42.Honest limitations — please read before relying on this
build_connectivity.py(matches this repo's gitignore convention).Happy to restructure, rename, or split this to fit the repo's conventions — treat it as a starting point, not a finished drop-in.
🤖 Generated with Claude Code
https://claude.ai/code/session_01M3kmuqhMGWmWivDarkD8Vj