I updated to a more recent version and I'm getting errors on asserts that weren't there before: here an example of asserts rising issues:
library ieee;
use ieee.numeric_std.all;
entity test_mod is
generic (
size : integer
);
end entity test_mod;
architecture test of test_mod is
begin
assert size mod 4 = 0 report "test a"; -- good
assert (size mod 4) = 0 report "test a"; -- error
assert (size+1) mod 4 = 0 report "test a"; -- error
assert (size mod 4 = 0) report "test a"; -- error
end test;
The given error is
** Error: no matching operator "mod" [INTEGER, universal_integer return BOOLEAN | BIT]
> test.vhd:16
|
16 | assert (size mod 4) = 0 report "a is not 0";
| ^^^^^^^^^^
|
= Note: no implicit conversion was performed on the second argument as the innermost complete context did not
determine a unique numeric type
= Help: IEEE Std 1076-2008 section 9.3.6 "Type conversions"
I updated to a more recent version and I'm getting errors on asserts that weren't there before: here an example of asserts rising issues:
The given error is