Skip to content
Snippets Groups Projects
Commit 920bbdab authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

-Added generics to tb_mms_st_histogram and updated comment block.

parent 6bca7903
No related branches found
No related tags found
3 merge requests!101Merged sub-branch L2SDP-151 into L2SDP-143 (st_histogram rework),!99Cleaned/rewrote st_histogram.,!98Major rework on st_histogram.
...@@ -23,18 +23,14 @@ ...@@ -23,18 +23,14 @@
-- Author: -- Author:
-- . Daniel van der Schuur -- . Daniel van der Schuur
-- Purpose: -- Purpose:
-- . TB to verify correct MM access across clock domain by eye. -- .
-- ModelSim usage: -- ModelSim usage:
-- . (open project, compile) -- . (open project, compile)
-- . (load simulation config) -- . (load simulation config)
-- . as 8 -- . as 8
-- . run -a -- . run -a
-- Description: -- Description:
-- . reg_mosi/miso uses traditional _reg instance to cross clock domain and -- .
-- therefor does not need additional checks.
-- . ram_mosi/miso uses several common_reg_cross_domain instances to let the
-- MM buses cross MM<->DP clock domain in both directions. Should work, but
-- is not a proven method - hence this TB.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
LIBRARY IEEE, common_lib, mm_lib, dp_lib; LIBRARY IEEE, common_lib, mm_lib, dp_lib;
...@@ -48,6 +44,12 @@ USE dp_lib.dp_stream_pkg.ALL; ...@@ -48,6 +44,12 @@ USE dp_lib.dp_stream_pkg.ALL;
USE dp_lib.tb_dp_pkg.ALL; USE dp_lib.tb_dp_pkg.ALL;
ENTITY tb_mms_st_histogram IS ENTITY tb_mms_st_histogram IS
GENERIC(
g_nof_instances : NATURAL := 1;
g_data_w : NATURAL := 8;
g_nof_bins : NATURAL := 256;
g_nof_data_per_sync : NATURAL := 1024
);
END tb_mms_st_histogram; END tb_mms_st_histogram;
...@@ -96,10 +98,10 @@ BEGIN ...@@ -96,10 +98,10 @@ BEGIN
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
u_mms_st_histogram : ENTITY work.mms_st_histogram u_mms_st_histogram : ENTITY work.mms_st_histogram
GENERIC MAP( GENERIC MAP(
g_nof_instances => 1, g_nof_instances => g_nof_instances,
g_data_w => 8, g_data_w => g_data_w,
g_nof_bins => 256, g_nof_bins => g_nof_bins,
g_nof_data_per_sync => 1024 g_nof_data_per_sync => g_nof_data_per_sync
) )
PORT MAP ( PORT MAP (
dp_clk => dp_clk, dp_clk => dp_clk,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment