Skip to content

Commit c661dce

Browse files
committed
code clean up
1 parent fdd53bc commit c661dce

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

axi/dma/rtl/v2/AxiStreamDmaV2Desc.vhd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,12 @@ begin
754754
-- Always 16 byte WSTRB (64-bit case to break apart into two cycle implemented in surf.AxiStreamDmaV2WriteMux)
755755
v.axiWriteMaster.wstrb(15 downto 0) := x"FFFF";
756756

757-
-- Check for 256-bits (or more) case
758-
elsif (AXI_CONFIG_G.DATA_BYTES_C >= 16) then
759-
wStrbIdx := conv_integer(v.axiWriteMaster.awaddr(log2(AXI_CONFIG_G.DATA_BYTES_C) - 1 downto 4));
757+
-- Else 256-bits (or more) case
758+
else
759+
-- Find the 128-bit word offset
760+
wStrbIdx := conv_integer(v.axiWriteMaster.awaddr(log2(AXI_CONFIG_G.DATA_BYTES_C) - 1 downto 4));
761+
762+
-- Assign the WSTRB to this offset
760763
v.axiWriteMaster.wstrb((wStrbIdx*16+15) downto (wStrbIdx*16)) := x"FFFF";
761764
end if;
762765

0 commit comments

Comments
 (0)