Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
920bbdab
Commit
920bbdab
authored
3 years ago
by
Daniel van der Schuur
Browse files
Options
Downloads
Patches
Plain Diff
-Added generics to tb_mms_st_histogram and updated comment block.
parent
6bca7903
No related branches found
Branches containing commit
No related tags found
3 merge requests
!101
Merged sub-branch L2SDP-151 into L2SDP-143 (st_histogram rework)
,
!99
Cleaned/rewrote st_histogram.
,
!98
Major rework on st_histogram.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/dsp/st/tb/vhdl/tb_mms_st_histogram.vhd
+12
-10
12 additions, 10 deletions
libraries/dsp/st/tb/vhdl/tb_mms_st_histogram.vhd
with
12 additions
and
10 deletions
libraries/dsp/st/tb/vhdl/tb_mms_st_histogram.vhd
+
12
−
10
View file @
920bbdab
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment