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

Update csr_access_test #37

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

silabs-robin
Copy link
Contributor

@silabs-robin silabs-robin commented Sep 7, 2023

This PR regenerates the CSR access test.

Relates to openhwgroup/cv32e40x#940 and openhwgroup/core-v-verif#2186.
And openhwgroup/core-v-verif#2218 and openhwgroup/cv32e40x#957.

(The generated test of course passes.)

Signed-off-by: Robin Pedersen <[email protected]>
@silabs-robin silabs-robin marked this pull request as ready for review September 8, 2023 11:50
Copy link
Contributor

@silabs-hfegran silabs-hfegran left a comment

Choose a reason for hiding this comment

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

CLIC should be enabled

Signed-off-by: Robin Pedersen <[email protected]>
@silabs-robin silabs-robin changed the title Update 'csr_access_test' Update csr_access_test Sep 29, 2023
bne x7, x14, csr_fail
li x7, 0x5a5a5a5a
csrrc x14, 800, x7
li x7, 0x00000008
Copy link
Contributor

@silabs-krdosvik silabs-krdosvik Nov 30, 2023

Choose a reason for hiding this comment

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

I dont understand this change. It seems like you change some values to 0, it that the purpose?

@@ -25,35 +25,35 @@ _start0:
csrrw x14, 2816, x7
Copy link
Contributor

Choose a reason for hiding this comment

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

You say that the csr_access test is updated. Could you give a quick recap on what are updated?

Copy link
Contributor Author

@silabs-robin silabs-robin Nov 30, 2023

Choose a reason for hiding this comment

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

This was updated: openhwgroup/cv32e40x#957

And... actually, in the 3 months since I PRed this, there was another update to that file. I will have to re-run the generation and run the test again.
Let's just leave this PR alone for now.
(Thanks for having a look at it, I'll see if I can squeeze in a fix this week or if it has to be postponed.)

For completeness:
After that Yaml change, then the regen script described in https://github.com/openhwgroup/cv32e40x-dv/pull/37/files#diff-43e71d36024fbe1d133827162b04bf6e64b864e979725f7c9f09f96562ccc09e was run.
That auto-generated the assembly file to match our most recent CSR definitions.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okei, I see. Thank you. Okei, then we leave it for now.

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.

4 participants