Reciprocal
Description
The Reciprocal block performs the reciprocal 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 Sqrt 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 output data type. The latency of the block is calculated from
word-length and fractional-length of fixed-point output.
The block supports four latency modes. You can specify a custom latency value by setting
the Latency Strategy parameter to
Custom
.
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. For more information, see Lump Latency for Reciprocal Block.
Examples
Limitations
The block has following HDL code generation limitations:
The block does not support floating-point data types, such as
half
,single
, anddouble
.Bus type inputs are not supported.
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.
Algorithms
Version History
Introduced in R2020b