Ejercicio1 1
Ejercicio1 1
CODIGO:
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Design Name:
-- Project Name:
-- Target Devices:
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
--use UNISIM.VComponents.all;
entity EJERCICIO_1 is
end EJERCICIO_1;
begin
case OP is
(A NAND B);
(A OR B);
(A NOR B);
(A XOR B);
(NOT A);
end case;
end process;
end Behavioral;
SIMULACION:
--------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Design Name:
-- Module Name:
C:/Users/Priscila/Desktop/PRACTICA_3/EJERCICIO_1/EJERCICIO_1/EJERCICIO_1/ALU.vhd
-- Target Device:
-- Tool versions:
-- Description:
--
--
-- Dependencies:
--
-- Revision:
-- Additional Comments:
--
-- Notes:
-- This testbench has been automatically generated using types std_logic and
-- std_logic_vector for the ports of the unit under test. Xilinx recommends
-- that these types always be used for the top-level I/O of a design in order
-- simulation model.
--------------------------------------------------------------------------------
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
--USE ieee.numeric_std.ALL;
ENTITY ALU IS
END ALU;
COMPONENT EJERCICIO_1
PORT(
);
END COMPONENT;
--Inputs
BEGIN
A => A,
B => B,
OP => OP,
);
--- begin
---end process;
-- Stimulus process
stim_proc: process
begin
A <= "00000000";
B <= "00000001";
OP <= "000";
A <= "00000000";
B <= "00000001";
OP <= "001";
A <= "00000000";
B <= "00000001";
OP <= "010";
A <= "00000000";
B <= "00000001";
OP <= "011";
A <= "00000000";
B <= "00000001";
OP <= "100";
B <= "00000001";
OP <= "101";
A <= "00000000";
B <= "00000001";
OP <= "110";
A <= "00000000";
B <= "00000001";
OP <= "OTHERS";
wait;
end process;
END;