程序如下:
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
USE IEEE.STD_LOGIC_ARITH.ALL;
EN
tiTY P2 IS
BEGIN
PROCESS (countdiv,en)
BEGIN
IF rst='1' THEN
en<='0';
else
IF countdiv="1111" THEN
clr<='1';
ELSE
clr<='0';
END IF;
IF countdiv<="0111" THEN
en<='1';
ELSE
en<='0';
END IF;
END IF;
ceen<=en;
END PROCESS;
END P2;
不胜感激
Error (10500): VHDL syntax error at PROCESS.vhd(10) near text ")"; expecting an identifier, or "constant", or "file", or "signal", or "variable" 这个搞不懂
一周热门 更多>