Guest
Why x2 did not receive the value (d c b a x y z k) ?
Many thanks,
Romulo
entity aggregate is
port (x1, x2 : out string (8 downto 1));
end aggregate;
architecture funny of aggregate is
constant fix : string (4 downto 1):= "xyzk" ;
begin
-- result = expected: x1= d,c,b,a,x,y,z,k
x1 <= ( 8 => 'd', 7 => 'c', 6 => 'b', 5 => 'a', 4 => 'x', 3 =>
'y', 2 => 'z', 1 => 'k');
-- result: x2= a,b,c,d,x,y,z,k
-- expected: x2= d,c,b,a,x,y,z,k
x2 <= ( 8 => 'd', 7 => 'c', 6 => 'b', 5 => 'a') & fix;
end funny;
Many thanks,
Romulo
entity aggregate is
port (x1, x2 : out string (8 downto 1));
end aggregate;
architecture funny of aggregate is
constant fix : string (4 downto 1):= "xyzk" ;
begin
-- result = expected: x1= d,c,b,a,x,y,z,k
x1 <= ( 8 => 'd', 7 => 'c', 6 => 'b', 5 => 'a', 4 => 'x', 3 =>
'y', 2 => 'z', 1 => 'k');
-- result: x2= a,b,c,d,x,y,z,k
-- expected: x2= d,c,b,a,x,y,z,k
x2 <= ( 8 => 'd', 7 => 'c', 6 => 'b', 5 => 'a') & fix;
end funny;