aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1914/delayline1d.vhdl
blob: e5d79c01ce94a8d60242a589e664cc9b7bb1a722 (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 delayline1d is
    generic (
        delay : positive
    );
    port (
        clk   : in std_logic;
        i     : in std_logic;
        o     : out std_logic
    );
end entity;

architecture rtl of delayline1d is
    signal d : std_logic_vector(delay - 1 downto 0);
begin
    (o, d) <= d & i when rising_edge(clk);

end architecture rtl;