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

[rtl] Avoid name collision in ibex_pmp.sv #2104

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

rswarbrick
Copy link
Contributor

Recent versions of Verilator complain about the code that was there because the csr_pmp_cfg argument clashes with a name in ibex_core.sv.

What's more, they mean different things! In ibex_core.sv, it was the PMP configuration for the entire core. In the functions, it's the PMP configuration for a single region. This patch adds a "region_" prefix to the names, which fixes both the Verilator warning and my confusion!

@rswarbrick rswarbrick added Component:RTL RTL issue Type:Cleanup Cleanup tasks labels Nov 20, 2023
@rswarbrick rswarbrick requested a review from GregAC November 20, 2023 16:53
Recent versions of Verilator complain about the code that was there
because the csr_pmp_cfg argument clashes with a name in ibex_core.sv.

What's more, they mean different things! In ibex_core.sv, it was the
PMP configuration for the entire core. In the functions, it's the PMP
configuration for a single region. This patch adds a "region_" prefix
to the names, which fixes both the Verilator warning and my confusion!
Copy link
Contributor

@marnovandermaas marnovandermaas left a comment

Choose a reason for hiding this comment

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

Thanks, I'm happy with this change.

@rswarbrick rswarbrick added this pull request to the merge queue Dec 5, 2023
Merged via the queue into lowRISC:master with commit d097c91 Dec 5, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:RTL RTL issue Type:Cleanup Cleanup tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants