vhdl-extras
vhdl-extras copied to clipboard
Would default values for reg_file make sense to you?
I'm using reg_file (in its 2008) version and realised that setting default values isn't straightforward.
Imho, adding generics
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.
Have you considered this? Am I totally off in terms of use-case?