roeekalinsky
Contributor
2 years agoQuartus Pro bug report: erroneous generation of warning 21569
The following was observed with Quartus Pro version 22.4. Quartus Standard Edition version 22.1 does not exhibit this issue. And I've not checked any other Quartus versions.
Quartus erroneously generates the following warning:
Warning (21569): VHDL warning at example.vhd(19): function 'example_func' may not always return a value File: example.vhd Line: 19
The attached VHDL file is a trivial example that demonstrates this.
The function example_func certainly does always return a value, and yet Quartus generates this warning.
This is seemingly due to a bad heuristic that Quartus uses to detect this. It seems to take an overly simplistic view of flow of control constructs, i.e. conditional branching, looping, etc. with no regard to the actual flow of control that they implement.