Skip to content

feat: expose a build's options to the run step as {build_opts_file} - #256

Open
martin-velay wants to merge 1 commit into
lowRISC:masterfrom
martin-velay:xcelium_reinvoke_simulator
Open

feat: expose a build's options to the run step as {build_opts_file}#256
martin-velay wants to merge 1 commit into
lowRISC:masterfrom
martin-velay:xcelium_reinvoke_simulator

Conversation

@martin-velay

Copy link
Copy Markdown
Contributor

Description

A run step that compiles for itself instead of loading the build's snapshot has to compile the way the build did. Every build now records its options in build_opts.f, named by the hjson as {build_opts_file}.

Comment thread src/dvsim/job/deploy.py Outdated
Comment thread src/dvsim/job/deploy.py Outdated
Comment thread src/dvsim/job/deploy.py Outdated
@martin-velay
martin-velay force-pushed the xcelium_reinvoke_simulator branch from 4843503 to 13e6aca Compare September 1, 2026 10:47

@rswarbrick rswarbrick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks nice, and I'm sorry for not getting back more quickly. I've got some suggestions about how to make the code structure a bit clearer, but I'm a fan of the change.

Comment thread src/dvsim/job/deploy.py Outdated
Comment thread src/dvsim/job/deploy.py Outdated
Comment thread src/dvsim/sim/flow.py Outdated
Comment thread tests/job/test_deploy.py
"""Test that a CompileSim records the options it built with, for the run step."""
build_dir = tmp_path / "build" / "dir"
job = _build_compile_sim(
sim_overrides={"build_dir": str(build_dir), "cov_db_dir": str(tmp_path / "cov")},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does cov_db_dir do here and in the next test?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment above

A run step that compiles for itself instead of loading the build's
snapshot has to compile the way the build did.  Every build now records
its options in build_opts.f, named by the hjson as {build_opts_file}.

Signed-off-by: Martin Velay <mvelay@lowrisc.org>
@martin-velay
martin-velay force-pushed the xcelium_reinvoke_simulator branch from 13e6aca to 4ce9202 Compare September 9, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants