> The error below occurs when I uncomment the section.
> I just want to make sure that all other output bits are 0.
You cannot do this (assigning two values to one signal) with a
concurrent statement! Use a process instead:
1 | process (E, INDEX) begin
|
2 | Y <= "0000"; -- default assignment
|
3 | Y(INDEX) <= E; -- "last" assignment "wins"
|
4 | end process;
|
> the following example won't be compiled with gvhdl
A simulator should be able to handle this conflict. It must result in
"X" values, but all in all the concurrent style code is able to be
compiled...