diff --git a/test/lib/CANtestLib.vhd b/test/lib/CANtestLib.vhd index 1bcfe2e4caa1118ba518e2015c2d0d0a09f66413..457a7b468fe8ff75ac742ca4db63671f8d73bf0f 100644 --- a/test/lib/CANtestLib.vhd +++ b/test/lib/CANtestLib.vhd @@ -2449,19 +2449,19 @@ package body CANtestLib is end procedure; - impure function aval_is_invalid_burst_size( + impure function aval_is_valid_burst_size( constant data_length : natural ) return boolean is begin - if ((data_length mod 4) = 0) then + if ((data_length mod 32) /= 0) then warning("Invalid Avalon Burst size: " & integer'image(data_length) & " Burst size should be 32 bit aligned!"); return false; end if; - if ((data_length / 4) > 64) then + if ((data_length / 32) > 64) then warning("Invalid Avalon Burst size: " & integer'image(data_length) & " Burst size should not be larger than 64 words! " & @@ -2490,7 +2490,7 @@ package body CANtestLib is return; end if; - if (aval_is_invalid_burst_size(w_data'length)) then + if (not aval_is_valid_burst_size(w_data'length)) then return; end if; @@ -2543,7 +2543,7 @@ package body CANtestLib is return; end if; - if (aval_is_invalid_burst_size(r_data'length)) then + if (not aval_is_valid_burst_size(r_data'length)) then return; end if;