blob: 5f1fb0a3fccda554f9159eb525c345680332d3cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
library ieee;
use ieee.std_logic_1164.all;
entity negadff is
port(
clk : in std_logic;
rst : in std_logic;
d : in std_logic;
q : out std_logic
);
end entity;
architecture arch of negadff is
begin
process (clk, rst)
begin
if rst = '1' then
q <= '0';
elsif falling_edge(clk) then
q <= d;
end if;
end process;
end architecture;
|