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
2e3aab01
Commit
2e3aab01
authored
5 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Renamed g_pipeline_miso_rd into g_pipeline_miso_rdval.
parent
95a771bd
No related branches found
No related tags found
2 merge requests
!28
Master
,
!15
Resolve L2SDP-27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/mm/tb/vhdl/tb_mm_master_mux.vhd
+21
-21
21 additions, 21 deletions
libraries/base/mm/tb/vhdl/tb_mm_master_mux.vhd
with
21 additions
and
21 deletions
libraries/base/mm/tb/vhdl/tb_mm_master_mux.vhd
+
21
−
21
View file @
2e3aab01
...
...
@@ -52,13 +52,13 @@ USE common_lib.tb_common_mem_pkg.ALL;
ENTITY
tb_mm_master_mux
IS
GENERIC
(
g_nof_masters
:
POSITIVE
:
=
2
;
-- Number of master memory interfaces on the MM bus array.
g_base_arr
:
t_nat_natural_arr
:
=
(
0
,
256
);
-- Address base per slave port of mm_bus
g_width_arr
:
t_nat_natural_arr
:
=
(
4
,
8
);
-- Address width per slave port of mm_bus
g_waitrequest
:
BOOLEAN
:
=
TRUE
;
-- When TRUE model waitrequest by the MM RAM slave, else fixed '0'
g_pipeline_bus_mosi
:
BOOLEAN
:
=
FALSE
;
g_pipeline_bus_miso_rd
:
BOOLEAN
:
=
FALSE
;
g_pipeline_bus_miso_wait
:
BOOLEAN
:
=
FALSE
g_nof_masters
:
POSITIVE
:
=
2
;
-- Number of master memory interfaces on the MM bus array.
g_base_arr
:
t_nat_natural_arr
:
=
(
0
,
256
);
-- Address base per slave port of mm_bus
g_width_arr
:
t_nat_natural_arr
:
=
(
4
,
8
);
-- Address width per slave port of mm_bus
g_waitrequest
:
BOOLEAN
:
=
TRUE
;
-- When TRUE model waitrequest by the MM RAM slave, else fixed '0'
g_pipeline_bus_mosi
:
BOOLEAN
:
=
FALSE
;
g_pipeline_bus_miso_rd
val
:
BOOLEAN
:
=
FALSE
;
g_pipeline_bus_miso_wait
:
BOOLEAN
:
=
FALSE
);
END
tb_mm_master_mux
;
...
...
@@ -71,14 +71,14 @@ ARCHITECTURE tb OF tb_mm_master_mux IS
CONSTANT
mm_clk_period
:
TIME
:
=
10
ns
;
CONSTANT
c_repeat
:
NATURAL
:
=
sel_a_b
(
g_waitrequest
,
10
,
2
);
-- repeat 2 for deterministic, more often for random
CONSTANT
c_bus_pipeline_mosi
:
NATURAL
:
=
sel_a_b
(
g_pipeline_bus_mosi
,
1
,
0
);
CONSTANT
c_bus_pipeline_miso_rd
:
NATURAL
:
=
sel_a_b
(
g_pipeline_bus_miso_rd
,
1
,
0
);
CONSTANT
c_bus_pipeline_miso_wait
:
NATURAL
:
=
sel_a_b
(
g_pipeline_bus_miso_wait
,
1
,
0
);
CONSTANT
c_ram_rd_latency
:
NATURAL
:
=
1
;
CONSTANT
c_ram_rd_latency_arr
:
t_nat_natural_arr
:
=
array_init
(
c_ram_rd_latency
,
g_nof_masters
);
CONSTANT
c_repeat
:
NATURAL
:
=
sel_a_b
(
g_waitrequest
,
10
,
2
);
-- repeat 2 for deterministic, more often for random
CONSTANT
c_bus_pipeline_mosi
:
NATURAL
:
=
sel_a_b
(
g_pipeline_bus_mosi
,
1
,
0
);
CONSTANT
c_bus_pipeline_miso_rd
val
:
NATURAL
:
=
sel_a_b
(
g_pipeline_bus_miso_rd
val
,
1
,
0
);
CONSTANT
c_bus_pipeline_miso_wait
:
NATURAL
:
=
sel_a_b
(
g_pipeline_bus_miso_wait
,
1
,
0
);
CONSTANT
c_ram_rd_latency
:
NATURAL
:
=
1
;
CONSTANT
c_ram_rd_latency_arr
:
t_nat_natural_arr
:
=
array_init
(
c_ram_rd_latency
,
g_nof_masters
);
CONSTANT
c_read_latency
:
NATURAL
:
=
c_bus_pipeline_mosi
+
c_ram_rd_latency
+
c_bus_pipeline_miso_rd
;
CONSTANT
c_read_latency
:
NATURAL
:
=
c_bus_pipeline_mosi
+
c_ram_rd_latency
+
c_bus_pipeline_miso_rd
val
;
CONSTANT
c_addr_w
:
NATURAL
:
=
largest
(
ceil_log2
(
largest
(
g_base_arr
)),
largest
(
g_width_arr
))
+
1
;
CONSTANT
c_data_w
:
NATURAL
:
=
32
;
...
...
@@ -157,13 +157,13 @@ BEGIN
-- Model multiple masters using stimuli from a single master
u_masters
:
ENTITY
work
.
mm_bus
GENERIC
MAP
(
g_nof_slaves
=>
g_nof_masters
,
g_base_arr
=>
g_base_arr
,
g_width_arr
=>
g_width_arr
,
g_rd_latency_arr
=>
c_ram_rd_latency_arr
,
g_pipeline_mosi
=>
g_pipeline_bus_mosi
,
g_pipeline_miso_rd
=>
g_pipeline_bus_miso_rd
,
g_pipeline_miso_wait
=>
g_pipeline_bus_miso_wait
g_nof_slaves
=>
g_nof_masters
,
g_base_arr
=>
g_base_arr
,
g_width_arr
=>
g_width_arr
,
g_rd_latency_arr
=>
c_ram_rd_latency_arr
,
g_pipeline_mosi
=>
g_pipeline_bus_mosi
,
g_pipeline_miso_rd
val
=>
g_pipeline_bus_miso_rd
val
,
g_pipeline_miso_wait
=>
g_pipeline_bus_miso_wait
)
PORT
MAP
(
mm_clk
=>
mm_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