F
fl
Guest
Hi,
I write the following conditional decoder, but the synthesis gives error:
Line 240. parse error, unexpected EQ
from the first elsif line and thereafter elsif lines.
What is wrong?
Thanks,
signal tmp : unsigned(14 DOWNTO 0);
PROCESS(tmp)
BEGIN
if tmp(14) then
lut_reciprocal_internal <= o_tmp_6;
elsif (tmp(14 downto 13)=="01") then
lut_reciprocal_internal <= o_tmp_5;
elsif (tmp(14 downto 12)=="001") then
lut_reciprocal_internal <= o_tmp_4;
elsif (tmp(14 downto 11)=="0001") then
lut_reciprocal_internal <= o_tmp_3;
elsif (tmp(14 downto 10)=="00001") then
lut_reciprocal_internal <= o_tmp_2;
elsif (tmp(14 downto 9)=="000001") then
lut_reciprocal_internal <= o_tmp_1;
elsif (tmp(14 downto 9)=="000000") then
lut_reciprocal_internal <= o_tmp_0;
end if;
END PROCESS;
I write the following conditional decoder, but the synthesis gives error:
Line 240. parse error, unexpected EQ
from the first elsif line and thereafter elsif lines.
What is wrong?
Thanks,
signal tmp : unsigned(14 DOWNTO 0);
PROCESS(tmp)
BEGIN
if tmp(14) then
lut_reciprocal_internal <= o_tmp_6;
elsif (tmp(14 downto 13)=="01") then
lut_reciprocal_internal <= o_tmp_5;
elsif (tmp(14 downto 12)=="001") then
lut_reciprocal_internal <= o_tmp_4;
elsif (tmp(14 downto 11)=="0001") then
lut_reciprocal_internal <= o_tmp_3;
elsif (tmp(14 downto 10)=="00001") then
lut_reciprocal_internal <= o_tmp_2;
elsif (tmp(14 downto 9)=="000001") then
lut_reciprocal_internal <= o_tmp_1;
elsif (tmp(14 downto 9)=="000000") then
lut_reciprocal_internal <= o_tmp_0;
end if;
END PROCESS;