Line 54... |
Line 54... |
-- . A nice new feature would be to continuously write the DB and to stop
|
-- . A nice new feature would be to continuously write the DB and to stop
|
-- writting it on a trigger. This trigger can then eg. be when the rx_seq
|
-- writting it on a trigger. This trigger can then eg. be when the rx_seq
|
-- detects an error. By delaying the trigger somewhat it the DB can then
|
-- detects an error. By delaying the trigger somewhat it the DB can then
|
-- capture some data before and after the trigger event.
|
-- capture some data before and after the trigger event.
|
|
|
LIBRARY IEEE, common_pkg_lib, technology_lib, dp_pkg_lib, common_ram_lib, mm_lib;
|
LIBRARY IEEE, common_pkg_lib, dp_pkg_lib, astron_ram_lib, astron_mm_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 dp_pkg_lib.dp_stream_pkg.ALL;
|
USE dp_pkg_lib.dp_stream_pkg.ALL;
|
USE work.diag_pkg.ALL;
|
USE work.diag_pkg.ALL;
|
USE technology_lib.technology_select_pkg.ALL;
|
--USE technology_lib.technology_select_pkg.ALL;
|
|
|
ENTITY mms_diag_data_buffer IS
|
ENTITY mms_diag_data_buffer IS
|
GENERIC (
|
GENERIC (
|
g_technology : NATURAL := c_tech_select_default;
|
g_technology : NATURAL := 0;
|
-- Generate configurations
|
-- Generate configurations
|
g_use_db : BOOLEAN := TRUE;
|
g_use_db : BOOLEAN := TRUE;
|
g_use_rx_seq : BOOLEAN := FALSE;
|
g_use_rx_seq : BOOLEAN := FALSE;
|
-- General
|
-- General
|
g_nof_streams : POSITIVE := 16; -- each stream gets an data buffer
|
g_nof_streams : POSITIVE := 16; -- each stream gets an data buffer
|
Line 130... |
Line 130... |
reg_data_buf_miso <= c_mem_miso_rst;
|
reg_data_buf_miso <= c_mem_miso_rst;
|
END GENERATE;
|
END GENERATE;
|
|
|
gen_db : IF g_use_db=TRUE GENERATE
|
gen_db : IF g_use_db=TRUE GENERATE
|
-- Combine the internal array of mm interfaces for the data_buf to one array that is connected to the port of the MM bus
|
-- Combine the internal array of mm interfaces for the data_buf to one array that is connected to the port of the MM bus
|
u_mem_mux_data_buf : ENTITY mm_lib.common_mem_mux
|
u_mem_mux_data_buf : ENTITY astron_mm_lib.common_mem_mux
|
GENERIC MAP (
|
GENERIC MAP (
|
g_nof_mosi => g_nof_streams,
|
g_nof_mosi => g_nof_streams,
|
g_mult_addr_w => c_buf_adr_w
|
g_mult_addr_w => c_buf_adr_w
|
)
|
)
|
PORT MAP (
|
PORT MAP (
|
Line 142... |
Line 142... |
miso => ram_data_buf_miso,
|
miso => ram_data_buf_miso,
|
mosi_arr => ram_data_buf_mosi_arr,
|
mosi_arr => ram_data_buf_mosi_arr,
|
miso_arr => ram_data_buf_miso_arr
|
miso_arr => ram_data_buf_miso_arr
|
);
|
);
|
|
|
u_mem_mux_reg : ENTITY mm_lib.common_mem_mux
|
u_mem_mux_reg : ENTITY astron_mm_lib.common_mem_mux
|
GENERIC MAP (
|
GENERIC MAP (
|
g_nof_mosi => g_nof_streams,
|
g_nof_mosi => g_nof_streams,
|
g_mult_addr_w => c_reg_adr_w
|
g_mult_addr_w => c_reg_adr_w
|
)
|
)
|
PORT MAP (
|
PORT MAP (
|