I have a bunch of network packets and I am trying to specify fields in them, something like
constant UPPER_BOUND : natural := 15;
constant LOWER_BOUND : natural := 7;
I know that this syntax is CORRECT
The range does not change throughout the application and I was thinking if it is possible in the VHDL syntax to declare a constant range if you will. Something to the effect of:
constant FIELD_RANG : natural range := (15 downto 7);
I know that this syntax is WRONG
But, I was trying to understand, if specifying a generic range is possible ? Is the 1st mentioned syntax the only way to do this ?
