提示错误ERROR:HDLParsers:164 - "G:/040141/a/top.vhd" Line 610. parse error, unexpected IF, expecting PROCESS
代码如下:
process(clk3,timer,reset,change)
begin
if reset='1' then
dis2<="0001";
dis3<="0000"; ----------dis2,dis3 表示1 分钟
elsif rising_edge(clk3) then
if timer='1' then
if ifstart='1' then
if dis0="0000" and dis1="0000" then
if dis2="0000" then
dis2<="1001";
if dis3="0000" then
dis3<="0101";
else
dis3<=dis1-'1';
end if;
else
dis2<=dis2-'1';
end if;
end if;
end if;
-------自定义的倒计时时间
elsif change='1' and rising_edge(clk3) then
if dis2="1001" then
dis2<="0000";
if dis3="0101" then
dis3<="0000";
else
dis3<=dis3+1;
end if ;
else
dis2<=dis2+1;
end if;
end if;
end if;
end if;
end if;
end process;