ENTITY FIFO5 IS
PORT(
Reset : IN std_logic;--复位管理
CLK : IN std_logic; --时钟管理,晶振输入
count : integer range 0 to 65535
);process(CLK,Reset) --复位
begin
if (Reset='0' ) then --复位
time_manage_temp <= 0;
elsif (CLK'event and CLK='1') then --采样事件时钟计时累加
if(count = 65535) then
count <=0;
else count <= count + 1;
end if;
end if;
end process;