Check for infinite and continuous sample time sources - MATLAB & Simulink (original) (raw)

Main Content

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 isinf. During HDL code generation, HDL Coder does not resolve inf sample times ofConstant 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.

To fix this warning, click Modify Settings to update theSample 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.

See Also