User guide
System Generator for DSP User Guide www.xilinx.com 61
UG640 (v 12.2) July 23, 2010
Compiling MATLAB into an FPGA
The Block Interface Editor of the MCode block labeled add is shown in below.
As a result, the add block features two input ports a and b; it performs full precision
addition. Input parameter sub of the MCode block labeled addsub is not bound with any
value. Consequently, the addsub block features three input ports: a, b, and sub; it
performs full precision addition or subtraction based on the value of input port sub.