Owning Palette: High Throughput Math Functions
Requires: FPGA Module
Computes the quotient of x and y. This function rounds the result by truncating the value of the x/y output terminal towards 0. This rounding mode uses fewer FPGA resources than other rounding modes do.This function supports only the fixed-point data type.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description | ||||||
|---|---|---|---|---|---|---|---|
| Fixed-Point Configuration | Specifies the encodings, word lengths, and integer word lengths of the input and output terminals of this function. The configurations you specify determine the value range of the terminals.
| ||||||
| Execution Mode | Specifies how this function executes.
| ||||||
| Registers | Specifies whether to add internal registers for function inputs and/or outputs. This section is available only if you select Inside single-cycle Timed Loop.
| ||||||
| Optional Terminal | Specifies a setting for displaying an optional block diagram terminal.
| ||||||
| Configuration Feedback | Displays information about how this function executes. This information is based on the configuration options you specify. |
| Parameter | Description | ||
|---|---|---|---|
| x | Specifies the dividend. | ||
| y | Specifies the divisor. If the value of y is 0, overflow occurs in the x/y output terminal. | ||
| input valid | Specifies whether the next data point has arrived for processing. Wire the output valid output of an upstream node to this input to transfer data from the upstream node to this node. To display this handshaking terminal, select the Inside single-cycle Timed Loop option in the configuration dialog box. | ||
| ready for output | Specifies whether downstream nodes are ready for this node to return a new value. The default is TRUE. Use a Feedback Node to wire the ready for input output of a downstream node to this input of the current node.
|
| Parameter | Description | ||
|---|---|---|---|
| x/y | Returns x divided by y. | ||
| operation overflow | Returns TRUE if the theoretical computed value exceeds the valid range of the output data type. If operation overflow returns TRUE, the Overflow mode option determines the value this function returns. LabVIEW displays the operation overflow terminal only if you place a checkmark in the Operation overflow checkbox. This checkbox is located in the Optional Terminal section of the configuration dialog box. | ||
| output valid | Returns TRUE if this node has computed a result that downstream nodes can use. Use this terminal for handshaking with other FPGA VIs and functions. To display this terminal, select the Inside single-cycle Timed Loop option in the configuration dialog box. | ||
| ready for input | Returns TRUE if this node is ready to accept new input data. Use a Feedback Node to wire this output to the ready for output input of an upstream node.
|
If you place a checkmark in the Adapt to source checkbox, overflow still can occur in the x/y output terminal for non-zero values of y if both of the following conditions are true:
where wl refers to the word length of a terminal and iwl refers to the integer word length of a terminal.
Complete the following steps to avoid overflow in this situation and for any non-zero value of y.
After you complete these steps, LabVIEW does not adjust the fixed-point configuration of the x/y terminal automatically. If you change the fixed-point configuration of the x or y terminal and still want to avoid overflow for any non-zero value of y, place a checkmark in the Adapt to source checkbox again. LabVIEW adjusts the fixed-point configuration of the x/y terminal automatically. Then, complete steps 1–2 above to ensure that no overflow occurs with the updated fixed-point configurations.