g_guard_w:natural:=2;-- guard bits are used to avoid overflow in single FFT stage.
g_guard_w:natural:=2;-- guard bits are used to avoid overflow in single FFT stage.
g_nof_points:natural:=1024;-- N point FFT
g_nof_points:natural:=1024;-- N point FFT
-- generics for rTwoSDFStage
-- generics for rTwoSDFStage
g_r2_mul_extra_w:natural:=0;-- extra bits at rTwoWMult output in rTwoSDFStage to improve rTwoSDFStage output requantization,
-- proper value is 2, default use 0 to fit original tb_rTwoSDF.vhd golden results file
g_pipeline:t_fft_pipeline:=c_fft_pipeline
g_pipeline:t_fft_pipeline:=c_fft_pipeline
);
);
port(
port(
...
@@ -106,7 +104,6 @@ begin
...
@@ -106,7 +104,6 @@ begin
g_stage_offset=>c_stage_offset,
g_stage_offset=>c_stage_offset,
g_twiddle_offset=>c_twiddle_offset,
g_twiddle_offset=>c_twiddle_offset,
g_scale_enable=>sel_a_b(stage<=g_guard_w,FALSE,TRUE),-- On average all stages have a gain factor of 2 therefore each stage needs to round 1 bit except for the last g_guard_w nof stages due to the input c_in_scale_w
g_scale_enable=>sel_a_b(stage<=g_guard_w,FALSE,TRUE),-- On average all stages have a gain factor of 2 therefore each stage needs to round 1 bit except for the last g_guard_w nof stages due to the input c_in_scale_w