Marking Functions for Hardware Implementation
This application has two hardware functions. One hardware function,mmult
, multiplies two matrices to produce a matrix product, and the second hardware function,madd
, adds two matrices to produce a matrix sum. These hardware functions are combined to compute a matrix multiply-add function. Both functionsmmult
andmadd
are specified to be implemented in hardware.
When the SDSoC environment creates the project from a template, it specifies the hardware functions for you. In cases where hardware functions have been removed or have not been specified, follow the steps below to add hardware functions.
Note:For this lab, you do not need to mark functions for hardware – the template code for matrix multiplication and addition has already marked them. If you don't have the
madd
and
mmult
functions marked as HW Functions, you could do the following to mark them as HW Functions.
CAUTION:
Not all functions can be implemented in hardware. See the
Coding Guidelinesfor more information.