src/test/cosim/EmuTestExecStage.cpp
/*
This is for the right hand side
*/
This is for the right hand side
This is for the right hand side
void BramTransferRHS(uint64_t *rmat, int StartAddr, int steps, int sel){
  cout << "starting rhs"  << endl;
  t->set_tilemem_rhs_sel(sel); 
  for (int i = StartAddr ; i < StartAddr+steps ; i++){
    t->set_tilemem_rhs_addr(i); 
    t->set_tilemem_rhs_data(*rmat);
    cout <<"Element "<<i<<"  "<< *rmat << endl;
    t->set_tilemem_rhs_write(1); 
    t->set_tilemem_rhs_write(0); 
    rmat++;
  }
}
void BramTransferRHS ( uint64_t * rmat , int StartAddr , int steps , int sel ) { cout << " " << endl ; t -> set_tilemem_rhs_sel ( sel ) ; for ( int i = StartAddr ; i < StartAddr + steps ; i ++ ) { t -> set_tilemem_rhs_addr ( i ) ; t -> set_tilemem_rhs_data ( * rmat ) ; cout << " " << i << " " << * rmat << endl ; t -> set_tilemem_rhs_write ( 1 ) ; t -> set_tilemem_rhs_write ( 0 ) ; rmat ++ ; } }
This is for the right hand side
This is for the right hand side
// // // //