aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1999/tc.vhdl
blob: 410a3092ac86485b10956df6c874a45f617e2408 (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
--
-- test for overloaded "/" function
-- or signals of different size 
--

library ieee;
use ieee.std_logic_1164.all;
use work.t1_p.all;

entity tc is
        port (
     a : in std_logic_vector(1 downto 0);
     b : in std_logic_vector(3 downto 0);
     c : in std_logic_vector(2 downto 0);
     o : out std_logic_vector(3 downto 0));
end entity tc;


architecture rtl of tc is
begin
        --o <= a / b;   -- this works !
        o <=  a / b / c;   -- overloaded or function  <----  tc.vhd:19:17 
        -- o <= ("00" & a) or b or ("0" & C);
end architecture rtl;