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

[pwm,dv] Very basic tidy-ups #24929

Merged
merged 9 commits into from
Nov 8, 2024
Merged

Conversation

rswarbrick
Copy link
Contributor

This is a sequence of very basic tidy-ups in the DV code. There isn't supposed to be any functional change, but this gets rid of lots of duplicated state.

I think the original author was trying to pass bit vectors as
arguments to $urandom_range, and this actually causes warnings in
Xcelium.

Signed-off-by: Rupert Swarbrick <[email protected]>
There's no real reason to have this struct, so let's just get rid of
it.

Signed-off-by: Rupert Swarbrick <[email protected]>
This is already mirrored in the RAL, so there's no need to mirror it a
second time separately.

Signed-off-by: Rupert Swarbrick <[email protected]>
There's no need to use an explicit bit vector type, so it probably
makes more sense to use an int and check the range properly.

Signed-off-by: Rupert Swarbrick <[email protected]>
This makes things a bit simpler, but should behave the same as before.

Signed-off-by: Rupert Swarbrick <[email protected]>
No big change here, but it should make a following cleanup slightly
simpler.

Signed-off-by: Rupert Swarbrick <[email protected]>
This is already mirrored in the RAL. Use that instead.

Signed-off-by: Rupert Swarbrick <[email protected]>
This is just a duplicate of information that's already in the
RAL (seemingly used for configuring vseqs).

Signed-off-by: Rupert Swarbrick <[email protected]>
@rswarbrick rswarbrick added Component:DV DV issue: testbench, test case, etc. IP:pwm labels Oct 29, 2024
@rswarbrick rswarbrick requested a review from a team as a code owner October 29, 2024 15:17
@rswarbrick rswarbrick requested review from eshapira and removed request for a team October 29, 2024 15:17
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.

This LGTM, thanks for the cleanups.

@rswarbrick rswarbrick merged commit 65ee6b5 into lowRISC:master Nov 8, 2024
45 checks passed
@rswarbrick rswarbrick deleted the pwm-tidyups branch November 8, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:DV DV issue: testbench, test case, etc. IP:pwm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants