Research Article

Experiencing a Problem-Based Learning Approach for Teaching Reconfigurable Architecture Design

Algorithm 3

Code example for the reduction computing unit (intermediate macro procedure).
macro proc reductionUnit
(funcChan, inChan, outChan)
declaring communication channels
chan signed 13 c5,c6,c7;
chan signed 14 c2[ ];
chan signed 15 c3[ ];
chan signed 16 c4;
parallel activity of compute nodes
par
par( ; 4; ++)
computeUnit1(funcChan,
inChan[ ], inChan[ ], c2[ ]);
nopNode (inChan[ ], c5);
par( ; 2; ++)
computeUnit2 (funcChan,
c2[ ], c2[ ], c3[ ]);
nopNode (c5, c6);
computeUnit3(funcChan,c3[ ],c3[ ],c4);
nopNode (c6, c7);
computeUnit4(funcChan,c4,c7,outChan);