Commit baa5e114 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

test: fix double error in burst size alignment.

parent d710c954
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment