diff --git a/src/axi_pkg.sv b/src/axi_pkg.sv index 583846491..3f723e262 100644 --- a/src/axi_pkg.sv +++ b/src/axi_pkg.sv @@ -198,7 +198,7 @@ package axi_pkg; beat_lower_byte(largest_addr_t addr, size_t size, len_t len, burst_t burst, shortint unsigned strobe_width, shortint unsigned i_beat); largest_addr_t _addr = beat_addr(addr, size, len, burst, i_beat); - return _addr - (_addr / strobe_width) * strobe_width; + return shortint'(_addr - (_addr / strobe_width) * strobe_width); endfunction /// Index of highest byte in beat (see A3-51).