aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue150/concat2.vhdl
blob: b014f102d6ab082374827067ab2f52a9699a3c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
library ieee;
use ieee.std_logic_1164.all;
entity concat is
  port (a: in std_ulogic_vector (3 downto 0);
        b: in std_ulogic_vector (3 downto 0);
        q1: out std_ulogic_vector (7 downto 0);
        q2: out std_ulogic_vector (7 downto 0);
        q3: out std_ulogic_vector (7 downto 0));
end concat;


architecture rtl of concat is
begin
  as_q1: q1 <= "0000" & b;
  as_q2: q2 <= a & "0000";
  as_q3: q3 <= a & b;
end rtl;