Use the Linear Algebra functions to perform vector and matrix calculations in high speed and high throughput FPGA applications, such as RF applications. You can configure the Linear Algebra functions to fit different throughput rates, matrix or vector sizes, and data types to meet timing and resource requirements.
Consider the following behaviors when developing FPGA applications with the Linear Algebra functions:
Scheduling Timing Using Handshaking Signals (FPGA Module)
To configure a Linear Algebra function, either double-click the function or right-click the function and select Configure. LabVIEW displays a configuration dialog box for the function. Use this dialog box to configure how the function executes and the results the function returns. To avoid unsupported fixed-point configurations that result in broken wires, such as unsupported word lengths or integer word lengths, use the configuration dialog box to set the encodings, word lengths, and integer word lengths of input terminals.
You can display each Linear Algebra function in either expanded or contracted form. The expanded view displays the encoding, word length, and integer word length of each terminal. The contracted view saves space on the block diagram. To configure the appearance of a function, right-click that function and select Expanded View or Contracted View.
The following list describes input and output terminal behavior of the Linear Algebra functions:
If you wire an unsupported fixed-point configuration to a terminal, LabVIEW breaks the wire and you cannot run the function. LabVIEW also might coerce the data type to a supported configuration. You can run the function, but this coercion might cause the function to behave unexpectedly. If the wire is not broken and does not have a coercion dot, the input terminal supports this fixed-point configuration.
You can avoid broken wires or coerced data types on input terminals by using the configuration dialog box to specify the fixed-point configuration for a particular input terminal. Complete the following steps to configure a terminal in this way:
Right-click the input terminal and select Create»Control or Create»Constant to create an input with a fixed-point configuration that the function supports.
Using the Fixed-Point Data Type (FPGA Module)
For the Linear Algebra functions that include an Overflow mode configuration, if the range of an output terminal is not large enough to hold the theoretical computed value, overflow occurs. In this situation, the function either wraps or saturates, as specified in the Overflow mode pull-down in the configuration dialog box.
In many situations, you can avoid overflow by placing a checkmark in the Adapt to source checkbox in the configuration dialog box of the function. If you enable this option, LabVIEW attempts to adjust the width and range of the output data type such that neither overflow nor rounding occurs. However, this adjustment is not possible in all situations. LabVIEW supports a maximum word length of 64 bits and a maximum integer word length of 1023 bits. If you place a checkmark in this checkbox and the output data type requires a word length that exceeds these maximum values, overflow and/or rounding errors might occur.
Helpful
Not Helpful