T
Tricky
Guest
Do any Vendors synthesisors actually take action on asserts?
I can see it being quite useful, so why dont they do it?
for example:
...
generic (
word_width : integer; --Only use a multiple of 8
);
...
function check_generics return boolean is
begin
assert ( (word_width rem 8 ) = 0 )
report "word width must be a multiple of 8"
severity failure;
end function check_generics;
constant GEN_CHECK : boolean := check_generics;
begin
...
This would work quite happily in simulation, but if you gave it to
someone else as fully specced and working, they may not want to write
their own testbench to make sure it works (Im sure some people
do
) . This would stop them compiling it out of spec.
I can see it being quite useful, so why dont they do it?
for example:
...
generic (
word_width : integer; --Only use a multiple of 8
);
...
function check_generics return boolean is
begin
assert ( (word_width rem 8 ) = 0 )
report "word width must be a multiple of 8"
severity failure;
end function check_generics;
constant GEN_CHECK : boolean := check_generics;
begin
...
This would work quite happily in simulation, but if you gave it to
someone else as fully specced and working, they may not want to write
their own testbench to make sure it works (Im sure some people
do