22 lines
413 B
VHDL
22 lines
413 B
VHDL
|
library IEEE;
|
||
|
use IEEE.STD_LOGIC_1664.all;
|
||
|
|
||
|
entity FlipFlopD_Demo is
|
||
|
port(
|
||
|
SW : std_logic_vector(2 downto 0);
|
||
|
KEY : std_logic_vector(0 downto 0);
|
||
|
LEDR : std_logic_vector(0 downto 0)
|
||
|
);
|
||
|
end FlipFlopD_Demo
|
||
|
|
||
|
architecture Shell of FlipFlopD_Demo is
|
||
|
begin
|
||
|
ff_d : work.FlipFlopD(Behav)
|
||
|
port map(
|
||
|
clk => KEY(0 downto 0),
|
||
|
d => SW(0),
|
||
|
set => SW(1),
|
||
|
reset => SW(2),
|
||
|
q => LEDR(0 downto 0),
|
||
|
);
|
||
|
end Shell;
|