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

presence of rvtest_strap_routine must be conditional on presence of smode (issue #552) #584

Open
allenjbaum opened this issue Dec 25, 2024 · 0 comments

Comments

@allenjbaum
Copy link
Collaborator

RVTEST_CASE(1,"//check ISA:=regex(.*32.*); check ISA:=regex(.*I.*S.*Zicsr.*); def rvtest_mtrap_routine=True; def rvtest_strap_routine=True; def TEST_CASE_1=True; mac PMP_MACROS; mac PMP_helper_Coverpoints",pmp_cfg_locked_write_unrelated)

This should still compile if smode isn't present, but rvtest_strap_routine must not be defined in that case, because it will try to touch nonexistent CSRs, so either this must be a separate instantiation of the RVTEST_CASE macro
or possibly a conditional assignment:
?maybe something like? RVTEST_CASE(1,"//check ISA:=regex(.32.); check ISA:=regex(.*I.Zicsr.); def rvtest_mtrap_routine=True; def TEST_CASE_1=True; def rvtest_strap_routine = check ISA:=regex(.S.);mac PMP_MACROS; mac PMP_helper_Coverpoints",pmp_cfg_locked_write_unrelated;)

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

No branches or pull requests

1 participant