Main Content
Implement Control Signal-Based Mathematical Functions by Using HDL Coder
HDL Coder™ provides HDLMathLib
blocks that have control signal-based fixed-point mathematical functions. The blocks have control signals that indicate whether the input and output data are valid. You can also simulate these blocks with latency.
HDLMathLib
Library With Control Ports for Mathematical Functions
To see all the mathematical function blocks in the HDLMathLib library, open the library by using this command.
open_system('HDLMathLib')
HDLMathLib include these blocks:
These blocks are a masked subsystem that contains a MATLAB Function block, LumpLatency
. This MATLAB Function block is used to compute the latency. To see the latency computation for a block, view inside the masked subsystem and open LumpLatency
block.