Altera_Forum
Honored Contributor
14 years agoMessages in function during sythesis
I have errors that I want the compiler to check for inside a funciton, but Quartus just seems to jump over them. As an example if I create the following function:
function test_error(test : boolean) return boolean is
begin
assert false report "Error Message" severity error;
return not test;
endfunction; and use the function inside a vhdl file that is sythesized in a Quartus project:
architecture arch of ent is
constant test_bool : boolean := test_error(false);
being
...
The function works (test_bool is set to true) but no error are reported in Quartus. Anybody have any suggestions?