aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue450/disptree.vhdl
blob: 11f9d87ea19ab115d399f70df998f2cfe943baa8 (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
26
27
28
29
30
31
32
library ieee;
    use ieee.std_logic_1164.all;

entity disptree is
    port ( 
        clk : in std_logic;
        A : in std_logic_vector(5 downto 1);
        B : out std_logic_vector(5 downto 1)
    );
end disptree;

architecture rtl of disptree is
begin
    gen_for : for i in 1 to 4 generate
        test1: process (clk) is
        begin
            if (rising_edge(clk)) then 
                B(i) <= A(i);
            end if;
        end process test1;
    end generate gen_for;
    
    gen_if : if True generate
		test2: process (clk) is
        begin
            if (rising_edge(clk)) then 
                B(5) <= A(5);
            end if;
        end process test2;
	end generate gen_if;
end rtl;