We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using reg_file (in its 2008) version and realised that setting default values isn't straightforward. Imho, adding generics
reg_file
USE_DEFAULT_VALS: boolean := false; DEFAULT_VALS: reg_array;
and extending the reset branch by
if USE_DEFAULT_VALS then registers_loc <= DEFAULT_VALS; else registers_loc <= (others => (others => '0')); end if;
would solve this and the block would still function identically for anyone happy with default values at all 0.
0
Have you considered this? Am I totally off in terms of use-case?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using
reg_file
(in its 2008) version and realised that setting default values isn't straightforward.Imho, adding generics
and extending the reset branch by
would solve this and the block would still function identically for anyone happy with default values at all
0
.Have you considered this? Am I totally off in terms of use-case?
The text was updated successfully, but these errors were encountered: