Line 16... |
Line 16... |
-- See the License for the specific language governing permissions and
|
-- See the License for the specific language governing permissions and
|
-- limitations under the License.
|
-- limitations under the License.
|
--
|
--
|
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
|
|
library ieee, common_pkg_lib, common_components_lib, common_counter_lib, common_requantize_lib;
|
library ieee, common_pkg_lib, common_components_lib, astron_counter_lib, astron_requantize_lib;
|
use IEEE.std_logic_1164.all;
|
use IEEE.std_logic_1164.all;
|
use common_pkg_lib.common_pkg.all;
|
use common_pkg_lib.common_pkg.all;
|
use work.twiddlesPkg.all;
|
use work.twiddlesPkg.all;
|
use work.rTwoSDFPkg.all;
|
use work.rTwoSDFPkg.all;
|
|
|
Line 78... |
Line 78... |
begin
|
begin
|
|
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
-- stage counter
|
-- stage counter
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
u_control : entity common_counter_lib.common_counter
|
u_control : entity astron_counter_lib.common_counter
|
generic map (
|
generic map (
|
g_latency => c_cnt_lat,
|
g_latency => c_cnt_lat,
|
g_init => c_cnt_init,
|
g_init => c_cnt_init,
|
g_width => g_stage + g_nof_chan,
|
g_width => g_stage + g_nof_chan,
|
g_step_size => 1
|
g_step_size => 1
|
Line 163... |
Line 163... |
);
|
);
|
|
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
-- stage requantization
|
-- stage requantization
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
u_requantize_re : entity common_requantize_lib.common_requantize
|
u_requantize_re : entity astron_requantize_lib.common_requantize
|
generic map (
|
generic map (
|
g_representation => "SIGNED",
|
g_representation => "SIGNED",
|
g_lsb_w => c_rtwo_stage_bit_growth,
|
g_lsb_w => c_rtwo_stage_bit_growth,
|
g_lsb_round => TRUE,
|
g_lsb_round => TRUE,
|
g_lsb_round_clip => FALSE,
|
g_lsb_round_clip => FALSE,
|
Line 184... |
Line 184... |
in_dat => mul_out_re,
|
in_dat => mul_out_re,
|
out_dat => quant_out_re,
|
out_dat => quant_out_re,
|
out_ovr => open
|
out_ovr => open
|
);
|
);
|
|
|
u_requantize_im : entity common_requantize_lib.common_requantize
|
u_requantize_im : entity astron_requantize_lib.common_requantize
|
generic map (
|
generic map (
|
g_representation => "SIGNED",
|
g_representation => "SIGNED",
|
g_lsb_w => c_rtwo_stage_bit_growth,
|
g_lsb_w => c_rtwo_stage_bit_growth,
|
g_lsb_round => TRUE,
|
g_lsb_round => TRUE,
|
g_lsb_round_clip => FALSE,
|
g_lsb_round_clip => FALSE,
|