Check for infinite and continuous sample time sources
Check ID:
com.mathworks.HDL.ModelChecker.runSampleTimeChecks
Check ID:
com.mathworks.HDL.ModelAdvisor.runSampleTimeChecks
Check source blocks with infinite or continuous sample time.
Available with Simulink® and HDL Coder™.
Description
By default, the Sample time parameter of a Constant block is
inf
. During HDL code generation, HDL Coder does not resolve inf
sample times of
Constant blocks if the sample times propagate to the device under
test (DUT) output. For more details, see the HDL Code Generation section of the Constant
block page.
This check reports a warning if your design contains source blocks that have an infinite or continuous sample time.
Results and Recommended Actions
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.