# Divide

## Description

The Divide block performs the division operation on the input data signals. 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 Divide 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 input and output data types. The software calculates the latency of
the block using the word length and fractional length of fixed-point input and
output.

The block supports three 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 Divide Block.

## Limitations

The block does not support floating-point data types, such as

`half`

,`single`

, and`double`

.

## Ports

### Input

### Output

## Parameters

## Tips

The block supports HDL code generation using HDL Coder™. HDL Coder supports additional configuration options that affect HDL implementation and synthesized logic. For more information, see HDL Block Properties.

## Algorithms

## Version History

**Introduced in R2020b**