程序如下:
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;
不胜感激
一周热门 更多>