Repository navigation
Build the bitstream of a session and report it - #2909
Open
ganeshgore wants to merge 1 commit into
Open
ganeshgore wants to merge 1 commit into
ganeshgore wants to merge 1 commit into
Conversation
ganeshgore
force-pushed
the
session-bitstream
branch
from
November 30, 2026 18:24
ab1c120 to
5ad98ac
Compare
ganeshgore
force-pushed
the
session-bitstream
branch
2 times, most recently
from
December 1, 2026 07:09
a066c0c to
23d7439
Compare
ganeshgore
force-pushed
the
session-bitstream
branch
from
December 2, 2026 05:23
23d7439 to
f16e26e
Compare
build_bitstream makes the bitstream of the routed design of the flow run stage by stage in one command: analysis when it is not reached, then link_openfpga_arch and build_fabric when they are not valid any more (they are kept while the routing does not change), then repack, the architecture and fabric bitstreams, and the file (bitstream/<circuit>.bit by default, plain text or XML). The options of the link and the fabric and the fix-ups after the link are those of the recipe of the bitstream (BitstreamRecipe: the defaults, or what a plugin set with the architectures it read, cleared when an architecture is read). When the session read no simulation settings, fixed ones are written next to the file and read, as the bitstream does not depend on them. The simulation and bitstream settings are inputs of the session: the files read are recorded, the bitstream settings drop REPACKED and BITSTREAM, and both make the link again. report_bitstream answers with the file, its SHA-256, the bits, the protocol, the bits per type of block, the settings and the steps (schema bitstream); report_session lists the settings and the file, and report_run the stage BITSTREAM. The Session has bitstream(), bitstream_report(), read_simulation_setting(), read_bitstream_setting(), repack() and run_flow(bitstream=True); a checkpoint keeps the settings and the file of the bitstream, and the journal replays it. The bitstream is compared with the one of the vpr flow on the golden designs.
tangxifan
force-pushed
the
session-bitstream
branch
from
December 2, 2026 21:59
f16e26e to
ad3239f
Compare
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.
Stacked on #2908 (base
design-synthesis).What it adds
build_bitstreammakes the bitstream of the routed design of the staged flow in one command:analysiswhen needed,link_openfpga_archandbuild_fabricwhen they are no longer valid (kept while the routing does not change),repack, the architecture and fabric bitstreams, and the file (bitstream/<circuit>.bit, plain text or XML). Link and fabric options and the fix-ups come from the bitstream recipe of the session: the defaults, or what a plugin set with the architectures it read (set_bitstream_recipe). Without simulation settings, fixed ones are written and read.REPACKEDandBITSTREAM.report_bitstream(schemabitstream): the file and its SHA-256, the bits, the protocol, the bits per type of block, the settings and the steps.report_sessionlists the settings and the bitstream file,report_runthe stageBITSTREAM.Session.bitstream(),bitstream_report(),read_simulation_setting(),read_bitstream_setting(),repack(),run_flow(bitstream=True); checkpoints keep the settings and the bitstream file; journals replay it.Tests
test_bitstream: the bitstream equals the one of the vpr flow on all golden designs (also flat), what is kept and what is made again, files and formats, refusals, fixed simulation settings, checkpoints and journals. C++: the bitstream state and recipe ofOpenFpgaSession.openfpga_flow/tasks/python_binding_testsand the ctest subset pass, in a build without plugins.Not included