www.pudn.com > the-zynq-book-tutorial-sources.zip > matrix_mult.h, change:2014-05-06,size:544b


#ifndef __MATRIXMUL_H__ 
#define __MATRIXMUL_H__ 
 
#include <cmath> 
using namespace std; 
 
// Compare TB vs HW C-model and/or RTL 
#define HW_COSIM 
 
#define IN_A_ROWS 5 
#define IN_A_COLS 5 
#define IN_B_ROWS 5 
#define IN_B_COLS 5 
 
typedef char mat_a; 
typedef char mat_b; 
typedef short mat_prod; 
 
// Prototype of top level function for C-synthesis 
void matrix_mult( 
      mat_a a[IN_A_ROWS][IN_A_COLS], 
      mat_b b[IN_B_ROWS][IN_B_COLS], 
      mat_prod prod[IN_A_ROWS][IN_B_COLS]); 
 
#endif // __MATRIXMUL_H__ not defined