aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/examples/dff/negdff.vhdl
blob: 2d2fb11eb6ecd36973fd42be9b50ac4787c4a808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
library ieee;
use ieee.std_logic_1164.all;

entity negdff is
	port(
		clk : in std_logic;
		d : in std_logic;
		q : out std_logic
	);
end entity;

architecture arch of negdff is
begin
	process (clk)
	begin
		if falling_edge(clk) then
			q <= d;
		end if;
	end process;
end architecture;