I am trying to compile the following code,
--data output
with counter select
--select DATA_IN between 0 <= counter <= 55 select DATA_IN
DATA_OUT <= DATA_IN when ("000000" <= counter <= "110111"),
--select parity_reg(0) between 56<= counter <= 63 select parity
parity_reg(0) when ("111000" <= counter <= "111111"),
'0' when others;
--busy output
with counter select
--between 0 <= counter <= 63 assert BUSY_OUT
BUSY_OUT <= '1' when ("000000" <= counter <= "111111"),
'0' when others;
end architecture encode;
Note: I am using the IEEE library, and the std_logic_1164 and numeric_std packages. The with-select statements are not inside a process.
The error shown by Model Sim during compilation is,
vhdl(61): near "<=": (vcom-1576) expecting ')'.
vhdl(69): near "<=": (vcom-1576) expecting ')'.
Is there away to resolve this around the with-select construt itself? Other than by having to choose another parallel statement, such as a process.