Skip to content

Commit a969b70

Browse files
committed
amba/axi4_stream: Fix metadata extraction in packet_receive
1 parent 8d35083 commit a969b70

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/nsl_amba/axi4_stream/axi4_stream.pkg.vhd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ package body axi4_stream is
14181418
variable beat: master_t;
14191419
variable d: byte_string(0 to cfg.data_width-1);
14201420
variable s, k: std_ulogic_vector(0 to cfg.data_width-1);
1421-
variable first: boolean := false;
1421+
variable first: boolean := true;
14221422
begin
14231423
assert cfg.has_last
14241424
report "Packet_receive with a byte stream cannot support unframed interface"
@@ -1448,9 +1448,9 @@ package body axi4_stream is
14481448
if first then
14491449
first := false;
14501450

1451-
id := work.axi4_stream.id(cfg, beat)(0 to id'length-1);
1452-
user := work.axi4_stream.user(cfg, beat)(0 to user'length-1);
1453-
dest := work.axi4_stream.dest(cfg, beat)(0 to dest'length-1);
1451+
id := work.axi4_stream.id(cfg, beat);
1452+
user := work.axi4_stream.user(cfg, beat);
1453+
dest := work.axi4_stream.dest(cfg, beat);
14541454
end if;
14551455

14561456
if is_last(cfg, beat) then
@@ -1474,7 +1474,7 @@ package body axi4_stream is
14741474
variable beat: master_t;
14751475
variable d: byte_string(0 to cfg.data_width-1);
14761476
variable s, k: std_ulogic_vector(0 to cfg.data_width-1);
1477-
variable first: boolean := false;
1477+
variable first: boolean := true;
14781478
variable should_be_last: boolean;
14791479
variable offset: integer := 0;
14801480
begin
@@ -1510,9 +1510,9 @@ package body axi4_stream is
15101510
if first then
15111511
first := false;
15121512

1513-
id := work.axi4_stream.id(cfg, beat)(0 to id'length-1);
1514-
user := work.axi4_stream.user(cfg, beat)(0 to user'length-1);
1515-
dest := work.axi4_stream.dest(cfg, beat)(0 to dest'length-1);
1513+
id := work.axi4_stream.id(cfg, beat);
1514+
user := work.axi4_stream.user(cfg, beat);
1515+
dest := work.axi4_stream.dest(cfg, beat);
15161516
end if;
15171517

15181518
if cfg.has_last then

0 commit comments

Comments
 (0)