Duke, I think your method is a good solution to initialize a
record...thanks!
Andreas, I think this is one possible solution to parsing individual
parts of a vector...but in my scenario I will have tens of these records
of different types and I'm concerned these aliases could take up alot of
code space. I think what I've found is that records are not the answer
to my problem.
To follow up, what are your suggestions to taking an input
std_logic_vector(31 downto 0) and also an output std_logic_vector(31
downto 0) and having the ability to dynamically "cast" these to
particular "formats" based on a given state. In other words, maybe at a
given time each bit in the input std_logic_vector has a different
"name", but in another state the input is divided into an upper and
lower word. instead of doing:
1 | alias a is input(0);
|
2 | alias b is input(1);
|
3 | alias c is input(2);
|
4 | ...
|
5 |
|
6 | alias a_a is input(31 downto 16);
|
7 | alias a_b is input(15 downto 0);
|
8 | ...
|
I would have tens and tens if not hundreds of aliases if I did it this
way, which is why I tried using records until I found out there
limitations. No other solutions?