LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
USE IEEE.STD_LOGIC_ARITH.ALL;
EN
tiTY P2 IS
PORT
(
countdiv,en:IN STD_LOGIC;
rst :IN STD_LOGIC;
);
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;
求助告诉我怎么改 谢谢
谢谢分享,楼主辛苦了
一周热门 更多>