在用VHDL编写一段程序之后,quartus里编译不通过,错误Error (10500),如何才能编译通过,求解,先谢过了
程序如下:LIBRARYIEEE;USEIEEE.STD_LOGIC_1164.ALL;ENTITYCPLDCISISPORT(CLK,P_EN,L_EN:INSTD_L...
程序如下:
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY CPLDCIS IS
PORT(CLK,P_EN,L_EN:IN STD_LOGIC;
CNT,AD_EN,CIS_SI:OUT STD_LOGIC);
END;
ARCHITECTURE bhv OF CPLDCIS IS
BEGIN
process(clk)
begin
if P_EN ='1' then
CNT<='0';
AD_EN<='1';
CIS_SI<='0';
elsif (CLK'event and CLK ='1') then
if L_EN ='1' then CNT<=1;
elsif CNT=647 or CNT=0 then CNT<=0;
else CNT<=CNT+1; end if;
if CNT=2 then CIS_SI <=1;
else CIS_SI <=0;end if;
if CNT>=64 and CNT<=640 then AD_EN<=0;
else AD_EN<=1;
end if;
end if;
end process;
end bhv; 展开
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY CPLDCIS IS
PORT(CLK,P_EN,L_EN:IN STD_LOGIC;
CNT,AD_EN,CIS_SI:OUT STD_LOGIC);
END;
ARCHITECTURE bhv OF CPLDCIS IS
BEGIN
process(clk)
begin
if P_EN ='1' then
CNT<='0';
AD_EN<='1';
CIS_SI<='0';
elsif (CLK'event and CLK ='1') then
if L_EN ='1' then CNT<=1;
elsif CNT=647 or CNT=0 then CNT<=0;
else CNT<=CNT+1; end if;
if CNT=2 then CIS_SI <=1;
else CIS_SI <=0;end if;
if CNT>=64 and CNT<=640 then AD_EN<=0;
else AD_EN<=1;
end if;
end if;
end process;
end bhv; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询