Create a dependence between the input port ``s1'' and the port ``a'' of ``mul'' ;
create a dependence between the input port ``s2'' and the port ``b'' of ``mul'' ;
create a dependence between the input port ``acc'' and the port ``b'' of ``add'';
create a dependence between the port ``o'' of ``mul'' and the port ``a'' of ``add'' ;
create a dependence between the output port ``acc'' and the port ``o'' of ``add''.
Create a dependence between the input port ``v1'' and the port ``s1'' of ``dpacc'' ;
create a dependence between the input port ``v2'' and the port ``s2'' of ``dpacc'' ;
create a dependence between the port ``o'' of ``zero'' and the input port ``acc'' of ``dpacc'' ;
create a dependence between the output port ``dp'' and the output port ``acc'' of ``dpacc''.
Create a dependence between the input port ``outm'' and the port ``v1'' of ``dotprod'' ;
create a dependence between the input port ``inv'' and the port ``v2'' of ``dotprod'' ;
create a dependence between the output port ``inm'' and the output port ``dp'' of ``dotprod''.
Define two parameters names: N=3 and M=4.
Create the references ``m1<N;M>'' on the definition inm, ``inv<N>'' on the definition v_input in the library float, ``matprodvec<N;M>'' on the definition prodmatvec, ``outv<N>'' on the definition v_output in the library float.
Create a dependence between ``m1'' and the port ``outm'' of ``matprodvec'' ;
create a dependence between ``v'' and the port ``inv'' of ``matprodvec'' ;
create a dependence between ``outv'' and the output port ``inm'' of ``matprodvec''.
The ``AlgorithmMain2'' looks like the figure 4.8.