Check ID:
com.mathworks.HDL.ModelChecker.runSampleTimeChecks
Check source blocks with infinite or continuous sample time.
By default, the sample time of a Constant block is
inf
. When you connect a Constant block with
sample time of inf
to other blocks in your design, it hinders
speed and area optimizations. Optimizations such as retiming, sharing, and streaming
use the clock rate information to improve the speed and area of your design. For
more details, see the HDL Code Generationsection of the Constant
page.
This check reports a warning if your design contains source blocks that have an infinite or continuous sample time.
To fix this warning, click Modify Settings to update the
Sample time of these source blocks to inherit through back
propagation. That is, HDL Coder™ sets Sample time of these blocks to
-1
. You can then rerun the check.