Beruflich Dokumente
Kultur Dokumente
-- Company:
-- Engineer:
--
-- Create Date: 03/06/2018 13:15:00
-- Design Name:
-- Project Name:
-- Target Devices:
-- Tool Versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
--use IEEE.NUMERIC_STD.ALL;
--library UNISIM;
--use UNISIM.VComponents.all;
entity ALU is
Port ( clk : in STD_LOGIC;
end ALU;
signal en:STD_LOGIC;
component Monoimpuls is
clk : in STD_LOGIC;
en : out STD_LOGIC);
end component;
component SSD is
clk : in STD_LOGIC;
end component;
begin
process(clk)
begin
if rising_edge(clk) then
if en='1' then
if sw(0)='1' then
tmp<=tmp+1;
else
tmp<=tmp-1;
end if;
end if;
end if;
end process;
process(tmp,x,y,z)
begin
case tmp is
end case;
end process;
--led(7)<=conv_integer(rez) xor 1;
end Behavioral;