VHDL语言 Max+Plus II编译报错
Error:Unknownproblemin+文件路径+(%dls-f-nullarg,nulllistitemarguementtovalue.)源文件:LIBRARY...
Error:Unknown problem in +文件路径+ (%dls-f-nullarg,null list item arguement to value.)
源文件:
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_unsigned.all;
ENTITY count10 IS
PORT(EN,LD,RD,CLK:INSTD_LOGIC;
D0,D1,D2,D3:INSTD_LOGIC;
C:OUTSTD_LOGIC;
Q0,Q1,Q2,Q3:BUFFERSTD_LOGIC);
END count10;
ARCHITECTURE counttry OF count10 IS
BEGIN
PROCESS(EN,LD,RD,CLK,D0,D1,D2,D3)
BEGIN
IF RD='0' THENQ0<='0';Q1<='0';Q2<='0';Q3<='0';
ELSE IF LD='0' THENQ0<=D0;Q1<=D1;Q2<=D2;Q3<=D3;
ELSE IF RISING_EDGE(CLK) AND CLK='1' THEN
IF Q0='0' THEN Q0<='1';
ELSE IF Q1='0' THEN Q0<='0';Q1<='1';
ELSE IF Q2='0' THEN Q0<='0';Q1<='0';Q2<='1';
ELSE IF Q3='0' THEN Q0<='0';Q1<='0';Q2<='0';Q3<='1';
ELSE Q0<='0';Q1<='0';Q2<='0';Q3<='0';C<='1';
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END PROCESS;
END counttry; 展开
源文件:
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_unsigned.all;
ENTITY count10 IS
PORT(EN,LD,RD,CLK:INSTD_LOGIC;
D0,D1,D2,D3:INSTD_LOGIC;
C:OUTSTD_LOGIC;
Q0,Q1,Q2,Q3:BUFFERSTD_LOGIC);
END count10;
ARCHITECTURE counttry OF count10 IS
BEGIN
PROCESS(EN,LD,RD,CLK,D0,D1,D2,D3)
BEGIN
IF RD='0' THENQ0<='0';Q1<='0';Q2<='0';Q3<='0';
ELSE IF LD='0' THENQ0<=D0;Q1<=D1;Q2<=D2;Q3<=D3;
ELSE IF RISING_EDGE(CLK) AND CLK='1' THEN
IF Q0='0' THEN Q0<='1';
ELSE IF Q1='0' THEN Q0<='0';Q1<='1';
ELSE IF Q2='0' THEN Q0<='0';Q1<='0';Q2<='1';
ELSE IF Q3='0' THEN Q0<='0';Q1<='0';Q2<='0';Q3<='1';
ELSE Q0<='0';Q1<='0';Q2<='0';Q3<='0';C<='1';
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END PROCESS;
END counttry; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询