I am getting 3 same errors after compiling this code -
** Error: C:/Modeltech_pe_edu_10.4a/examples/DECODER.vhd(24): near "then": (vcom-1576) expecting == or '+' or '-' or '&'.
I have tried adding "end if;" at the end but it gives me the above errors and the following error -
** Error: C:/Modeltech_pe_edu_10.4a/examples/DECODER.vhd(35): VHDL Compiler exiting
library IEEE;
use IEEE.std_logic_1164.all;
entity DECODER is
port
(
I0: in std_logic;
I1: in std_logic;
D0: out std_logic;
D1: out std_logic;
D2: out std_logic;
D3: out std_logic
);
end DECODER;
architecture bhv of DECODER is
begin
process(I0,I1) is
begin
if (I0='0' AND I1='0') then
D0<= (NOT I0) AND (NOT I1);
elseif (I0='0' AND I1='1') then
D1<= (NOT I0) AND I1;
elseif (I0='1' AND I1='0') then
D2<= I0 AND (NOT I1);
elseif (I0='1' AND I1='1') then
D3<= I0 AND I1;
end process;
end bhv;