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

Subversion Repositories astron_statistics

[/] [astron_statistics/] [trunk/] [tb_mmf_st_sst.vhd] - Diff between revs 3 and 4

Show entire file | Details | Blame | View Log

Rev 3 Rev 4
Line 28... Line 28...
--   > Run python script in separate terminal: "python tc_mmf_st_xst.py --unb 0 --bn 0 --sim"
--   > Run python script in separate terminal: "python tc_mmf_st_xst.py --unb 0 --bn 0 --sim"
--   > Check the results of the python script. 
--   > Check the results of the python script. 
--   > Stop the simulation manually in Modelsim by pressing the stop-button.
--   > Stop the simulation manually in Modelsim by pressing the stop-button.
--   > Evalute the WAVE window. 
--   > Evalute the WAVE window. 
 
 
LIBRARY IEEE, common_pkg_lib, common_ram_lib, mm_lib, diag_lib, dp_pkg_lib;
LIBRARY IEEE, common_pkg_lib, astron_ram_lib, astron_mm_lib, astron_diagnostics_lib, dp_pkg_lib;
USE IEEE.std_logic_1164.ALL;
USE IEEE.std_logic_1164.ALL;
USE IEEE.numeric_std.ALL;
USE IEEE.numeric_std.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_str_pkg.ALL;
USE common_pkg_lib.common_str_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 mm_lib.mm_file_unb_pkg.ALL;
USE astron_mm_lib.mm_file_unb_pkg.ALL;
USE mm_lib.mm_file_pkg.ALL;
USE astron_mm_lib.mm_file_pkg.ALL;
USE dp_pkg_lib.dp_stream_pkg.ALL;
USE dp_pkg_lib.dp_stream_pkg.ALL;
USE diag_lib.diag_pkg.ALL;
USE astron_diagnostics_lib.diag_pkg.ALL;
 
 
ENTITY tb_mmf_st_sst IS
ENTITY tb_mmf_st_sst IS
  GENERIC(
  GENERIC(
    g_nof_stat      : NATURAL := 8; -- nof accumulators
    g_nof_stat      : NATURAL := 8; -- nof accumulators
    g_xst_enable    : BOOLEAN := TRUE;
    g_xst_enable    : BOOLEAN := TRUE;
Line 150... Line 150...
                                           PORT MAP(mm_rst, mm_clk, reg_st_sst_mosi, reg_st_sst_miso);
                                           PORT MAP(mm_rst, mm_clk, reg_st_sst_mosi, reg_st_sst_miso);
 
 
  ----------------------------------------------------------------------------
  ----------------------------------------------------------------------------
  -- Source: block generator
  -- Source: block generator
  ---------------------------------------------------------------------------- 
  ---------------------------------------------------------------------------- 
  u_bg : ENTITY diag_lib.mms_diag_block_gen
  u_bg : ENTITY astron_diagnostics_lib.mms_diag_block_gen
  GENERIC MAP(
  GENERIC MAP(
    g_nof_streams        => c_bg_nof_output_streams,
    g_nof_streams        => c_bg_nof_output_streams,
    g_buf_dat_w          => c_bg_buf_dat_w,
    g_buf_dat_w          => c_bg_buf_dat_w,
    g_buf_addr_w         => c_bg_buf_adr_w,
    g_buf_addr_w         => c_bg_buf_adr_w,
    g_file_index_arr     => c_bg_data_file_index_arr,
    g_file_index_arr     => c_bg_data_file_index_arr,
Line 176... Line 176...
    out_siso_arr         => bg_siso_arr,
    out_siso_arr         => bg_siso_arr,
    out_sosi_arr         => bg_sosi_arr
    out_sosi_arr         => bg_sosi_arr
  );
  );
 
 
  -- Combine the internal array of mm interfaces for the beamlet statistics to one array that is connected to the port of bf
  -- Combine the internal array of mm interfaces for the beamlet statistics to one array that is connected to the port of bf
  u_mem_mux_ram_sst : ENTITY mm_lib.common_mem_mux
  u_mem_mux_ram_sst : ENTITY astron_mm_lib.common_mem_mux
  GENERIC MAP (
  GENERIC MAP (
    g_nof_mosi    => g_nof_instances,
    g_nof_mosi    => g_nof_instances,
    g_mult_addr_w => c_ram_addr_w
    g_mult_addr_w => c_ram_addr_w
  )
  )
  PORT MAP (
  PORT MAP (
Line 188... Line 188...
    miso     => ram_st_sst_miso,
    miso     => ram_st_sst_miso,
    mosi_arr => ram_st_sst_mosi_arr,
    mosi_arr => ram_st_sst_mosi_arr,
    miso_arr => ram_st_sst_miso_arr
    miso_arr => ram_st_sst_miso_arr
  );
  );
 
 
  u_mem_mux_reg_sst : ENTITY mm_lib.common_mem_mux
  u_mem_mux_reg_sst : ENTITY astron_mm_lib.common_mem_mux
  GENERIC MAP (
  GENERIC MAP (
    g_nof_mosi    => g_nof_instances,
    g_nof_mosi    => g_nof_instances,
    g_mult_addr_w => 1
    g_mult_addr_w => 1
  )
  )
  PORT MAP (
  PORT MAP (

powered by: WebSVN 2.1.0

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