uaveiro-leci/1ano/2semestre/lsd/aula01/part2/GateDemo.vhd

19 lines
391 B
VHDL

library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity GateDemo is
port (
SW : in std_logic_vector(1 downto 0);
LEDR : out std_logic_vector(1 downto 0)
);
end GateDemo;
architecture Shell of GateDemo is
begin
system_core: entity work.NAND2Gate(Structural)
port map(
inPort0 => SW(0),
inPort1 => SW(1),
outPort => LEDR(0)
);
end Shell;