Cleanup SPN firmwares
This commit is contained in:
		| @@ -26,16 +26,15 @@ void run_xspn(int in_addr, int out_addr, int num_samples, int in_beats, int out_ | ||||
| } | ||||
|  | ||||
| void check_results(int addr, int k, int step) { | ||||
|     int k0 = 0; | ||||
|     bool result = 0; | ||||
|     double *res_base = (double*) (addr); | ||||
|     int * error_exit = (int *)0xF0000000; | ||||
|  | ||||
|     for (int i = 0; i < step; i++) { | ||||
|  | ||||
|         if (!double_equals(res_base[i], ref_data.at(k + i))) { | ||||
|             printf("%x%x vs %x%x\n", ((uint32_t*)res_base)[2*i], ((uint32_t*)res_base)[1+2*i], ((uint32_t*)ref_data.data())[2*i+k*20], ((uint32_t*)ref_data.data())[1+2*i+k*20]); | ||||
|  | ||||
|             printf("XSPN ref %d comparison FAILED\n", k + i); | ||||
|         if (!double_equals(res_base[i], ref_data.at(k0 + i))) { | ||||
|             printf("XSPN ref %d comparison FAILED\n", k0 + i); | ||||
|             result = 1; | ||||
|         } | ||||
|     } | ||||
| @@ -75,7 +74,11 @@ int main() { | ||||
|     printf("Result Bytes: %d\n", result_bytes); | ||||
|  | ||||
|     uint32_t step = 500; | ||||
| <<<<<<< Updated upstream | ||||
|     uint32_t iterations = 20; | ||||
| ======= | ||||
|     uint32_t iterations = 5; | ||||
| >>>>>>> Stashed changes | ||||
|      | ||||
|     uint32_t in_beats = (step * sample_bytes) / axi_bytes; | ||||
|     if (in_beats * axi_bytes < step * sample_bytes) in_beats++; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Johannes Wirth
					Johannes Wirth