rSqrt
Description
The rSqrt block performs the reciprocal square-root operation on the input data signal. The block has control signals that indicate whether the input and output data are valid. You can also specify the number of iterations of the algorithm and the latency strategy.
To use this block in your Simulink® model, open the HDLMathLib
library by entering this command
in the MATLAB® Command
Window:
open_system("HDLMathLib")
Latency Considerations
You can simulate the rSqrt block with latency. This block is a masked
subsystem that contains the LumpLatency
MATLAB Function block. The subsystem uses this MATLAB Function block to compute
the latency based on the Number of iterations. To view the function
that computes the latency of the block, open the LumpLatency
block in the
masked subsystem. To view inside the mask, click the ⇩ icon on the block.
The block supports four latency modes, Min
,
Max
, Custom
and
Zero
. To learn more about latency values of
rSqrt block, see Latency strategy.
Examples
Limitations
The rSqrt block has following HDL code generation limitations:
The block does not support floating-point data types, such as
half
,single
, anddouble
.The block does not support bus inputs.
Cannot be used in Synchronous Subsystem.
Does not support resource sharing optimization.
Ports
Input
Output
Parameters
Tips
The block supports HDL code generation using HDL Coder™. HDL Coder provides additional configuration options that affect HDL implementation and synthesized logic. For more information, see HDL Block Properties.
Version History
Introduced in R2020b