uaveiro-leci/1ano/2semestre/lsd/pratica04/FlipFlopD_Demo/FlipFlopD.vhd.bak

21 lines
299 B
VHDL
Raw Normal View History

2023-03-21 22:39:46 +00:00
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity FlipFlopD is
port
(
clk : in std_logic;
d : in std_logic;
q : out std_logic;
);
end FlipFlopD;
architecture Behav of FlipFlopD is
begin
process (clk)
begin
if (rising_edge(clk)) then
q <= d;
end if;
end process;
end Behav;