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

Cast '0 reset values to data type #227

Conversation

michael-platzer
Copy link
Contributor

Several of the modules in this repository allow the user to specify a custom data type. Yet, the reset value for data registers is always '0, which causes linter errors if the data type is, for instance, an enum.

This PR casts all '0 reset values for data registers to the respective data type (e.g., T'('0)), thus avoiding linter warnings.

Copy link
Collaborator

@niwis niwis left a comment

Choose a reason for hiding this comment

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

Thank you @michael-platzer! Only one suggested change to fix CI.

src/shift_reg_gated.sv Outdated Show resolved Hide resolved
@michael-platzer michael-platzer force-pushed the michael-platzer/feature/cast-reset-values branch from a0dbb49 to 26ab10e Compare August 26, 2024 05:58
@michael-platzer michael-platzer requested a review from niwis August 26, 2024 05:59
@niwis niwis merged commit a66efbd into pulp-platform:master Aug 27, 2024
5 checks passed
@michael-platzer michael-platzer deleted the michael-platzer/feature/cast-reset-values branch August 27, 2024 14:00
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.

2 participants