Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak ibex_cmd.py to fail more cleanly #2082

Merged
merged 1 commit into from Aug 31, 2023

Conversation

rswarbrick
Copy link
Contributor

This shouldn't change the behaviour when it works. On a failure, we now print out a bit more about what's going on.

When asked to do something impossible now, I think the output is a bit clearer. For example, if you try to run riscv_bitmanip_full_test with an OpenTitan configuration (which doesn't have full bitmanip), the warning message is now:

WARNING:ibex_cmd:Rejecting test: riscv_bitmanip_full_test. It specifies rtl_params of ['ibex_pkg::RV32BFull'], which doesn't contain the expected 'ibex_pkg::RV32BOTEarlGrey'.

(The following stuff that appears is a bit messy, but at least the first line is now clearer!)

Triggered by issue #2071.

This shouldn't change the behaviour when it works. On a failure, we
now print out a bit more about what's going on.

When asked to do something impossible now, I think the output is a bit
clearer. For example, if you try to run riscv_bitmanip_full_test with
an OpenTitan configuration (which doesn't have full bitmanip), the
warning message is now:

    WARNING:ibex_cmd:Rejecting test: riscv_bitmanip_full_test. It specifies rtl_params of ['ibex_pkg::RV32BFull'], which doesn't contain the expected 'ibex_pkg::RV32BOTEarlGrey'.

(The following stuff that appears is a bit messy, but at least the
first line is now clearer!)
@rswarbrick rswarbrick added the Component:Tool-and-Build Tool and build system related issues label Aug 30, 2023
Copy link
Contributor

@hcallahan-lowrisc hcallahan-lowrisc left a comment

Choose a reason for hiding this comment

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

Great! Thanks

@rswarbrick rswarbrick added this pull request to the merge queue Aug 30, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Aug 30, 2023
@rswarbrick rswarbrick added this pull request to the merge queue Aug 31, 2023
Merged via the queue into lowRISC:master with commit eb95f74 Aug 31, 2023
10 checks passed
@rswarbrick rswarbrick deleted the ibex-cmd-msg branch August 31, 2023 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:Tool-and-Build Tool and build system related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants