LIBRARY IEEE;
USE IEEE.Std_Logic_1164.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
ENTITY ADSIGNAL IS
PORT( ADcode: OUT Std_Logic_Vector(15 downto 0);
CLKin: BUFFER Std_Logic;
Flagreset: OUT Std_Logic);
Constant CLKPeriod : TIME := 10 ns;
END;
ARCHITECTURE SIGN OF ADSIGNAL IS
BEGIN
PROCESS
BEGIN
ADcode<= X"0000",
X"0007" AFTER 80 ns,
X"000E" AFTER 120 ns,
X"0017" AFTER 160 ns,
X"0011" AFTER 200 ns,
X"0008" AFTER 240 ns,
X"0000" AFTER 300 ns,
X"0000" AFTER 340 ns,
X"0000" AFTER 380 ns,
X"0000" AFTER 420 ns,
X"0000" AFTER 460 ns,
X"0000" AFTER 500 ns,
X"0000" AFTER 540 ns,
X"0007" AFTER 600 ns,
X"000E" AFTER 640 ns,
X"0017" AFTER 680 ns,
X"0011" AFTER 720 ns,
X"0008" AFTER 760 ns,
X"0000" AFTER 800 ns,
X"0000" AFTER 840 ns,
X"0000" AFTER 880 ns,
X"0000" AFTER 920 ns,
X"0000" AFTER 960 ns;
END PROCESS;
PROCESS
BEGIN
CLKin<=NOT CLKin after(CLKperiod/2);
END PROCESS;
PROCESS
BEGIN
Flagreset<= '0',
'1' AFTER 30 ns,
'0' AFTER 60 ns,
'1' AFTER 300 ns,
'0' AFTER 360 ns,
'1' AFTER 800 ns,
'0' AFTER 860 ns;
END PROCESS;
END;