blob: 48c46af34f7eef3715b4a5520d6b39335e82524d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
library ieee;
use ieee.std_logic_1164.all;
entity testcase3 is
generic (
edge : std_logic := '1'
);
port (
clk : in std_logic;
D : in std_logic;
Q : out std_logic
);
end testcase3;
architecture behavior of testcase3 is
begin
tc3: process(clk)
begin
if (clk'event and clk=edge) then
Q <= D;
end if;
end process;
end behavior;
|