主要内容

Data Type Agent for Reciprocal HDL Optimized Blocks

R2026b
Since R2026b

The Data Type Agent for the Reciprocal HDL Optimized blocks is an interactive graphical tool that visually depicts the pipelining allocation and block latency as a function of block parameter selections for algorithm implementation and input data type for these blocks:

Open the Data Type Agent

To open the Data Type Agent, click a supported block in the model. On the Block tab, under Data Type, click the Data Type Agent icon.

Examples

Use Data Type Agent to Select Parameters for Normalized Reciprocal HDL Optimized Block

Follow the How to Use HDL Optimized Normalized Reciprocal example to set up a model containing the Normalized Reciprocal HDL Optimized block.

The NormalizedReciprocalModel model.

To open the Data Type Agent, first select the Normalized Reciprocal HDL Optimized block in the model. Then, on the Block tab, under Data Type, click the Data Type Agent icon.

Data Type Agent for the Normalized Reciprocal HDL Optimized block.

By default, the Data Type Agent displays the block parameters and input data type set on the block. For this example, the block uses the CORDIC approximation method, automatically selects the CORDIC maximum shift value of 17, and uses one iteration per pipeline register. The input data type is numerictype(1,18,10), which corresponds to the sfix18_En10 data type displayed on the input signal line in the NormalizedReciprocalModel model.

The Benchmark section reports the latency of the block for this parameter configuration. The Latency Chart section provides a visual depiction of the corresponding process stages for this configuration. Blue squares represent normalization stages, green circles represent CORDIC iterations, and vertical orange bars represent pipeline registers. From left to right, the x-axis shows the register count.

To update the latency value and chart, change the block parameter values and input data type in the Data Type Agent. To apply the parameters to the selected block, click Update Block. Note that while the tool displays the impact of a changed input data type, you must manually update the input data type in the model.

Parameters

expand all

Algorithm to use for approximation of reciprocal, specified as CORDIC or Lookup Table.

Dependencies

  • The Lookup Table approximation method is available only for the Real Reciprocal HDL Optimized block.

  • When the Lookup Table approximation method is selected, the Data Type Agent displays block latency only for the selected input data type.

Option to automatically select the CORDIC maximum shift value based on input word length. When this parameter is selected, the default CORDIC maximum shift value is equal to wl - 1, where wl = u.WordLength + ~issigned(u).

Dependencies

To enable this parameter, set the Approximation method to CORDIC.

Maximum shift value of linear vectoring CORDIC, specified as a positive integer-valued scalar. The default value for this parameter is wl - 1, where wl = u.WordLength + ~issigned(u).

Dependencies

To enable this parameter:

  1. Set the Approximation method to CORDIC.

  2. Deselect the Automatically select CORDIC maximum shift value based on input word length parameter.

Number of CORDIC iterations to perform per pipeline stage, specified as a positive integer-valued scalar.

Data type of the block input u.

Algorithms

Using the Data Type Agent for the Reciprocal HDL Optimized blocks is equivalent to manually setting block parameters for these blocks.

For a full description of the block parameters and algorithms, see:

See Also

Blocks

Functions

Topics