@@ -13,6 +13,7 USE lpp.lpp_matrix.ALL; | |||
|
13 | 13 | USE lpp.lpp_lfr_pkg.ALL; |
|
14 | 14 | USE lpp.lpp_fft.ALL; |
|
15 | 15 | USE lpp.fft_components.ALL; |
|
16 | USE lpp.window_function_pkg.ALL; | |
|
16 | 17 | |
|
17 | 18 | ENTITY lpp_lfr_ms_FFT IS |
|
18 | 19 | PORT ( |
@@ -36,8 +37,27 END; | |||
|
36 | 37 | |
|
37 | 38 | ARCHITECTURE Behavioral OF lpp_lfr_ms_FFT IS |
|
38 | 39 | |
|
40 | SIGNAL data_win : STD_LOGIC_VECTOR(15 DOWNTO 0); | |
|
41 | SIGNAL data_win_valid : STD_LOGIC; | |
|
42 | ||
|
39 | 43 | BEGIN |
|
40 | 44 | |
|
45 | window_hanning: window_function | |
|
46 | GENERIC MAP ( | |
|
47 | SIZE_DATA => 16, | |
|
48 | SIZE_PARAM => 15, | |
|
49 | NB_POINT_BY_WINDOW => 256) | |
|
50 | PORT MAP ( | |
|
51 | clk => clk, | |
|
52 | rstn => rstn, | |
|
53 | ||
|
54 | restart_window => '0', | |
|
55 | data_in => sample_data, | |
|
56 | data_in_valid => sample_valid, | |
|
57 | ||
|
58 | data_out => data_win, | |
|
59 | data_out_valid => data_win_valid); | |
|
60 | ||
|
41 | 61 |
|
|
42 | 62 | -- FFT |
|
43 | 63 | ----------------------------------------------------------------------------- |
@@ -59,10 +79,10 BEGIN | |||
|
59 | 79 | ifiStart => '0', -- '1' |
|
60 | 80 | ifiNreset => rstn, |
|
61 | 81 | |
|
62 |
ifiD_valid => |
|
|
82 | ifiD_valid => data_win_valid, -- IN | |
|
63 | 83 | ifiRead_y => fft_read, |
|
64 | 84 | ifiD_im => (OTHERS => '0'), -- IN |
|
65 |
ifiD_re => |
|
|
85 | ifiD_re => data_win, -- IN | |
|
66 | 86 | ifoLoad => sample_load, -- IN |
|
67 | 87 | |
|
68 | 88 | ifoPong => fft_pong, |
General Comments 0
You need to be logged in to leave comments.
Login now