@@ -330,22 +330,13 @@ SC_MODULE(Tb_top)
330330 Mat detectedImageAfterMemY (IMAG_ROWS, IMAG_COLS, CV_8UC1);
331331 Mat detectedImageAfterMem (IMAG_ROWS, IMAG_COLS, CV_8UC1);
332332
333- dbgprint (" Starting VGA to receive image" );
333+ dbgprint (" Starting receiving of the image through VGA " );
334334
335335 unsigned char *vga_start = new unsigned char ;
336336 unsigned char *vga_done;
337337 *vga_start = 1 ;
338338 tb_initiator->write (vga_start, IMG_INPUT_START_ADDRESS_LO, sizeof (char ));
339339
340- // for (int i = 0; i < IPS_TOTAL_VERTICAL; ++i)
341- // {
342- // for (int j = 0; j < IPS_TOTAL_HORIZONTAL; ++j)
343- // {
344- // // this->vga_DUT->run();
345- // // Wait 40ns for conversions
346-
347- // }
348- // }
349340 tb_initiator->read (vga_done, IMG_INPUT_DONE_ADDRESS_LO, sizeof (char ));
350341 while (*vga_done == 0 )
351342 {
@@ -355,7 +346,7 @@ SC_MODULE(Tb_top)
355346 }
356347 delete[] vga_done;
357348
358- dbgprint (" Ending VGA" );
349+ dbgprint (" Finished receiving of the image through VGA" );
359350
360351 tb_initiator->read (local_results, IMG_INPUT_ADDRESS_LO, IMAG_ROWS * IMAG_COLS * 3 );
361352
@@ -370,8 +361,6 @@ SC_MODULE(Tb_top)
370361 }
371362 }
372363
373- /*
374-
375364 total_number_of_pixels = IMAG_ROWS * IMAG_COLS;
376365
377366 dbgprint (" Starting gray scale conversion" );
@@ -844,10 +833,10 @@ SC_MODULE(Tb_top)
844833 }
845834
846835 dbgprint (" Finished with the transmision of the image" );
847- */
836+
848837
849838 imwrite (" originalImageAfterMem.jpg" , originalImageAfterMem);
850- /*
839+
851840 imwrite (" grayImagePrevMem.jpg" , grayImagePrevMem);
852841 imwrite (" grayImageAfterMem.jpg" , grayImageAfterMem);
853842 imwrite (" filteredImagePrevMem.jpg" , filteredImagePrevMem);
@@ -857,7 +846,7 @@ SC_MODULE(Tb_top)
857846 imwrite (" detectedImagePrevMemY.jpg" , detectedImagePrevMemY);
858847 imwrite (" detectedImageAfterMemY.jpg" , detectedImageAfterMemY);
859848 imwrite (" detectedImagePrevMem.jpg" , detectedImagePrevMem);
860- imwrite("detectedImageAfterMem.jpg", detectedImageAfterMem);*/
849+ imwrite (" detectedImageAfterMem.jpg" , detectedImageAfterMem);
861850
862851 sc_stop ();
863852 }
0 commit comments