OpenCores
URL https://opencores.org/ocsvn/astron_wb_fft/astron_wb_fft/trunk

Subversion Repositories astron_wb_fft

[/] [astron_wb_fft/] [trunk/] [tb_fft_r2_wide.vhd] - Diff between revs 3 and 5

Show entire file | Details | Blame | View Log

Rev 3 Rev 5
Line 38... Line 38...
--   > run -all
--   > run -all
--   > testbench is selftesting.
--   > testbench is selftesting.
--   > observe the *_scope signals as radix decimal, format analogue format
--   > observe the *_scope signals as radix decimal, format analogue format
--     signals in the Wave window
--     signals in the Wave window
--
--
library ieee, common_pkg_lib, rTwoSDF_lib, common_ram_lib, mm_lib, other_lib;
library ieee, common_pkg_lib, astron_r2sdf_fft_lib, astron_ram_lib, astron_mm_lib, astron_sim_tools_lib;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use IEEE.numeric_std.all;
use IEEE.std_logic_textio.all;
use IEEE.std_logic_textio.all;
use std.textio.all;
use std.textio.all;
use common_pkg_lib.common_pkg.all;
use common_pkg_lib.common_pkg.all;
use common_ram_lib.common_ram_pkg.ALL;
use astron_ram_lib.common_ram_pkg.ALL;
use common_pkg_lib.common_lfsr_sequences_pkg.ALL;
use common_pkg_lib.common_lfsr_sequences_pkg.ALL;
use common_pkg_lib.tb_common_pkg.all;
use common_pkg_lib.tb_common_pkg.all;
use mm_lib.tb_common_mem_pkg.ALL;
use astron_mm_lib.tb_common_mem_pkg.ALL;
use rTwoSDF_lib.rTwoSDFPkg.all;
use astron_r2sdf_fft_lib.rTwoSDFPkg.all;
use work.fft_pkg.all;
use work.fft_pkg.all;
use work.tb_fft_pkg.all;
use work.tb_fft_pkg.all;
 
 
entity tb_fft_r2_wide is
entity tb_fft_r2_wide is
  generic(
  generic(
Line 446... Line 446...
      out_re_data((P+1)*c_out_dat_w-1 downto P*c_out_dat_w) <= out_re_arr(P)(c_out_dat_w-1 downto 0);
      out_re_data((P+1)*c_out_dat_w-1 downto P*c_out_dat_w) <= out_re_arr(P)(c_out_dat_w-1 downto 0);
      out_im_data((P+1)*c_out_dat_w-1 downto P*c_out_dat_w) <= out_im_arr(P)(c_out_dat_w-1 downto 0);
      out_im_data((P+1)*c_out_dat_w-1 downto P*c_out_dat_w) <= out_im_arr(P)(c_out_dat_w-1 downto 0);
    end loop;
    end loop;
  end process;
  end process;
 
 
  u_in_re_scope : entity other_lib.common_wideband_data_scope
  u_in_re_scope : entity astron_sim_tools_lib.common_wideband_data_scope
  generic map (
  generic map (
    g_sim                 => TRUE,
    g_sim                 => TRUE,
    g_wideband_factor     => g_fft.wb_factor,  -- Wideband rate factor = 4 for dp_clk processing frequency is 200 MHz frequency and SCLK sample frequency Fs is 800 MHz
    g_wideband_factor     => g_fft.wb_factor,  -- Wideband rate factor = 4 for dp_clk processing frequency is 200 MHz frequency and SCLK sample frequency Fs is 800 MHz
    g_wideband_big_endian => FALSE,            -- When true in_data[3:0] = sample[t0,t1,t2,t3], else when false : in_data[3:0] = sample[t3,t2,t1,t0]
    g_wideband_big_endian => FALSE,            -- When true in_data[3:0] = sample[t0,t1,t2,t3], else when false : in_data[3:0] = sample[t3,t2,t1,t0]
    g_dat_w               => c_in_dat_w        -- Actual width of the data samples
    g_dat_w               => c_in_dat_w        -- Actual width of the data samples
Line 467... Line 467...
    out_dat   => OPEN,
    out_dat   => OPEN,
    out_int   => in_re_scope,
    out_int   => in_re_scope,
    out_val   => in_val_scope
    out_val   => in_val_scope
  );
  );
 
 
  u_in_im_scope : entity other_lib.common_wideband_data_scope
  u_in_im_scope : entity astron_sim_tools_lib.common_wideband_data_scope
  generic map (
  generic map (
    g_sim                 => TRUE,
    g_sim                 => TRUE,
    g_wideband_factor     => g_fft.wb_factor,  -- Wideband rate factor = 4 for dp_clk processing frequency is 200 MHz frequency and SCLK sample frequency Fs is 800 MHz
    g_wideband_factor     => g_fft.wb_factor,  -- Wideband rate factor = 4 for dp_clk processing frequency is 200 MHz frequency and SCLK sample frequency Fs is 800 MHz
    g_wideband_big_endian => FALSE,            -- When true in_data[3:0] = sample[t0,t1,t2,t3], else when false : in_data[3:0] = sample[t3,t2,t1,t0]
    g_wideband_big_endian => FALSE,            -- When true in_data[3:0] = sample[t0,t1,t2,t3], else when false : in_data[3:0] = sample[t3,t2,t1,t0]
    g_dat_w               => c_in_dat_w        -- Actual width of the data samples
    g_dat_w               => c_in_dat_w        -- Actual width of the data samples
Line 488... Line 488...
    out_dat   => OPEN,
    out_dat   => OPEN,
    out_int   => in_im_scope,
    out_int   => in_im_scope,
    out_val   => open
    out_val   => open
  );
  );
 
 
  u_out_re_scope : entity other_lib.common_wideband_data_scope
  u_out_re_scope : entity astron_sim_tools_lib.common_wideband_data_scope
  generic map (
  generic map (
    g_sim                 => TRUE,
    g_sim                 => TRUE,
    g_wideband_factor     => g_fft.wb_factor,  -- Wideband rate factor = 4 for dp_clk processing frequency is 200 MHz frequency and SCLK sample frequency Fs is 800 MHz
    g_wideband_factor     => g_fft.wb_factor,  -- Wideband rate factor = 4 for dp_clk processing frequency is 200 MHz frequency and SCLK sample frequency Fs is 800 MHz
    g_wideband_big_endian => FALSE,            -- When true in_data[3:0] = sample[t0,t1,t2,t3], else when false : in_data[3:0] = sample[t3,t2,t1,t0]
    g_wideband_big_endian => FALSE,            -- When true in_data[3:0] = sample[t0,t1,t2,t3], else when false : in_data[3:0] = sample[t3,t2,t1,t0]
    g_dat_w               => c_out_dat_w       -- Actual width of the data samples
    g_dat_w               => c_out_dat_w       -- Actual width of the data samples
Line 509... Line 509...
    out_dat   => OPEN,
    out_dat   => OPEN,
    out_int   => out_re_scope,
    out_int   => out_re_scope,
    out_val   => out_val_c
    out_val   => out_val_c
  );
  );
 
 
  u_out_im_scope : entity other_lib.common_wideband_data_scope
  u_out_im_scope : entity astron_sim_tools_lib.common_wideband_data_scope
  generic map (
  generic map (
    g_sim                 => TRUE,
    g_sim                 => TRUE,
    g_wideband_factor     => g_fft.wb_factor,  -- Wideband rate factor = 4 for dp_clk processing frequency is 200 MHz frequency and SCLK sample frequency Fs is 800 MHz
    g_wideband_factor     => g_fft.wb_factor,  -- Wideband rate factor = 4 for dp_clk processing frequency is 200 MHz frequency and SCLK sample frequency Fs is 800 MHz
    g_wideband_big_endian => FALSE,            -- When true in_data[3:0] = sample[t0,t1,t2,t3], else when false : in_data[3:0] = sample[t3,t2,t1,t0]
    g_wideband_big_endian => FALSE,            -- When true in_data[3:0] = sample[t0,t1,t2,t3], else when false : in_data[3:0] = sample[t3,t2,t1,t0]
    g_dat_w               => c_out_dat_w       -- Actual width of the data samples
    g_dat_w               => c_out_dat_w       -- Actual width of the data samples

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.