1 import ( "fft.lib.dsp" ) ;
2 import ( "complex.lib" ) ;
6 (n) => _ , ! , evens(n - 2);
10 (n) => ! , _ , odds(n - 2);
13 eo(n) = evens(n), odds(n);
17 (n) => (evens(n) <: shuffling(n/2)), (odds(n) <: shuffling(n/2));
20 shuffle(n) = bus(n) <: shuffling(n);
22 input2complex(n) = par(i, n, (sca2pcplx));
24 fft(n) = input2complex(n) : shuffle(n) : xbutterflies(n);
26 picks(n) = par(i, n, [i]);
30 (n) => concats(n-1) # vectorize(1);
33 modules_vector(n) = concats(n);
35 fft_test(n) = _ : vectorize(n) <: picks(n) : fft(n) : pcplx_moduls(n) : modules_vector(n) : serialize;
37 //process = +, _ : + : fft_test(128);
38 process = fft_test(128);
39 //process = (0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7) <: shuffle(8);