Library IEEE Circuit - 1
Library IEEE Circuit - 1
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
--library UNISIM;
--use UNISIM.VComponents.all;
entity circuit is
Port ( n : in STD_LOGIC;
d : in STD_LOGIC;
q : in STD_LOGIC;
resetn : in STD_LOGIC;
clk : in STD_LOGIC;
z : out STD_LOGIC);
end circuit;
begin
x(0)<=n or q;
x(1)<=d;
x(2)<=n;
x(3)<=d or q;
x(4)<=q;
process(resetn,clk)
begin
if resetn='0'then
s<="000000";
s<=('0'&x)+s;
end if;
end process;
end Behavioral;