Skip to content

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

Merged
hcallahan-lowrisc merged 1 commit into
lowRISC:masterfrom
martin-velay:xcelium_reinvoke_simulator
Sep 11, 2026
Merged

hcallahan-lowrisc merged 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
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

@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.

Looks great to me: thanks.

@martin-velay

Copy link
Copy Markdown
Contributor Author

@machshev, is it OK for you too?

@hcallahan-lowrisc hcallahan-lowrisc 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.

Thanks @martin-velay this LGTM

@hcallahan-lowrisc
hcallahan-lowrisc added this pull request to the merge queue Sep 11, 2026
Merged via the queue into lowRISC:master with commit 367a7e8 Sep 11, 2026
6 checks passed
@martin-velay
martin-velay deleted the xcelium_reinvoke_simulator branch September 11, 2026 11:50
martin-velay added a commit to martin-velay/opentitan that referenced this pull request Sep 15, 2026
The Xcelium GUI run step reads the build's options back from
{build_opts_file}, which dvsim gained in 1.53.0 (lowRISC/dvsim#256).

Signed-off-by: Martin Velay <mvelay@lowrisc.org>
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.

3 participants