enable result check in raven_spn fw
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -29,7 +29,6 @@ void check_results(int addr, int k, int step) { | ||||
|     bool result = 0; | ||||
|     double *res_base = (double*) (addr); | ||||
|     int * error_exit = (int *)0xF0000000; | ||||
|     printf("Start result comparison %d - %d\n", k, k+step); | ||||
|  | ||||
|     for (int i = 0; i < step; i++) { | ||||
|  | ||||
| @@ -76,7 +75,7 @@ int main() { | ||||
|     printf("Result Bytes: %d\n", result_bytes); | ||||
|  | ||||
|     uint32_t step = 500; | ||||
|     uint32_t iterations = 10; | ||||
|     uint32_t iterations = 20; | ||||
|      | ||||
|     uint32_t in_beats = (step * sample_bytes) / axi_bytes; | ||||
|     if (in_beats * axi_bytes < step * sample_bytes) in_beats++; | ||||
| @@ -86,16 +85,15 @@ int main() { | ||||
|     int in_addr  = (int)input_data.data(); | ||||
|     int out_addr = 0x800B0000; | ||||
|  | ||||
|     //run_xspn(in_addr, out_addr); | ||||
|     for (int k = 0; k < iterations*step; k+=step) { | ||||
|         printf("XSPN processes samples %d - %d\n", k, k+step); | ||||
|         run_xspn(in_addr, out_addr, step, in_beats, out_beats); | ||||
|         wait_for_interrupt(); | ||||
|         printf("XSPN finished\n"); | ||||
|         spn::interrupt_reg() = 1; | ||||
|         //check_results(out_addr, 0, step); | ||||
|         check_results(out_addr, k, step); | ||||
|  | ||||
|         //in_addr += step * sample_bytes; // 5 bytes in each sample | ||||
|         in_addr += step * sample_bytes; // 5 bytes in each sample | ||||
|     } | ||||
|  | ||||
|     return 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user