Commit 48b95afc authored by Raymond Knopp's avatar Raymond Knopp

added ARM64 for unitary simulation of FFTs

parent 687bdebe
...@@ -12,3 +12,6 @@ lte_dfts_sse4.s: lte_dfts.c ...@@ -12,3 +12,6 @@ lte_dfts_sse4.s: lte_dfts.c
dft_cycles_avx2: lte_dfts_avx2 dft_cycles_avx2: lte_dfts_avx2
./lte_dfts_avx2 | egrep cycles ./lte_dfts_avx2 | egrep cycles
lte_dfts_arm64: lte_dfts.c
gcc -O2 -g -ggdb -o lte_dfts_arm64 lte_dfts.c time_meas.c file_output.c ../../SIMULATION/TOOLS/taus.c -I$$OPENAIR1_DIR -I$$OPENAIR_TARGETS -I$$OPENAIR2_DIR/COMMON -DMR_MAIN -DNB_ANTENNAS_RX=1
...@@ -18913,7 +18913,7 @@ int main(int argc, char**argv) ...@@ -18913,7 +18913,7 @@ int main(int argc, char**argv)
for (i=0;i<300;i++) for (i=0;i<300;i++)
printf("%d: %d,%d\n",i,((int16_t*)(&y[i]))[0],((int16_t *)(&y[i]))[1]); printf("%d: %d,%d\n",i,((int16_t*)(&y[i]))[0],((int16_t *)(&y[i]))[1]);
printf("\n"); printf("\n");
*/
for (i=0;i<32;i++) { for (i=0;i<32;i++) {
((int16_t*)x)[i] = (int16_t)((taus()&0xffff))>>5; ((int16_t*)x)[i] = (int16_t)((taus()&0xffff))>>5;
} }
...@@ -18928,7 +18928,7 @@ int main(int argc, char**argv) ...@@ -18928,7 +18928,7 @@ int main(int argc, char**argv)
for (i=0;i<4;i++) for (i=0;i<4;i++)
printf("%d,%d,%d,%d,%d,%d,%d,%d,",((int16_t*)&y[i])[0],((int16_t *)&y[i])[1],((int16_t*)&y[i])[2],((int16_t *)&y[i])[3],((int16_t*)&y[i])[4],((int16_t *)&y[i])[5],((int16_t*)&y[i])[6],((int16_t *)&y[i])[7]); printf("%d,%d,%d,%d,%d,%d,%d,%d,",((int16_t*)&y[i])[0],((int16_t *)&y[i])[1],((int16_t*)&y[i])[2],((int16_t *)&y[i])[3],((int16_t*)&y[i])[4],((int16_t *)&y[i])[5],((int16_t*)&y[i])[6],((int16_t *)&y[i])[7]);
printf("\n"); printf("\n");
*/
memset((void*)&x[0],0,2048*4); memset((void*)&x[0],0,2048*4);
for (i=0; i<2048; i+=4) { for (i=0; i<2048; i+=4) {
...@@ -18970,16 +18970,17 @@ int main(int argc, char**argv) ...@@ -18970,16 +18970,17 @@ int main(int argc, char**argv)
printf("64-point\n"); printf("64-point\n");
printf("X: "); /* printf("X: ");
for (i=0;i<8;i++) for (i=0;i<8;i++){
print_shorts256("",((int16_t *)x)+(i*16)); print_shorts256("",((int16_t *)x)+(i*16)); printf(",");
}
printf("\nY:"); printf("\nY:");
for (i=0;i<8;i++) for (i=0;i<8;i++)
print_shorts256("",((int16_t *)y)+(i*16)); print_shorts256("",((int16_t *)y)+(i*16));
printf("\n"); printf("\n");
*/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment