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
8fd4e4e0
Commit
8fd4e4e0
authored
4 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
L2SDP-180
, ntb_mms_* now working.
parent
3bb042a4
No related branches found
No related tags found
2 merge requests
!100
Removed text for XSub that is now written in Confluence Subband correlator...
,
!59
Resolve L2SDP-180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/common/tb/vhdl/tb_mms_common_variable_delay.vhd
+12
-9
12 additions, 9 deletions
...ries/base/common/tb/vhdl/tb_mms_common_variable_delay.vhd
with
12 additions
and
9 deletions
libraries/base/common/tb/vhdl/tb_mms_common_variable_delay.vhd
+
12
−
9
View file @
8fd4e4e0
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
-- Author:
-- Author:
-- . Pieter Donker
-- . Pieter Donker
-- Purpose:
-- Purpose:
-- . test bench for common_variable_delay.vhd to test enable by signal mm interface
-- . test bench for
mms_
common_variable_delay.vhd to test enable by signal mm interface
-- Description:
-- Description:
-- . see common_variable_delay.vhd
-- . see common_variable_delay.vhd
-- --------------------------------------------------------------------------
-- --------------------------------------------------------------------------
...
@@ -41,7 +41,7 @@ ARCHITECTURE tb OF tb_mms_common_variable_delay IS
...
@@ -41,7 +41,7 @@ ARCHITECTURE tb OF tb_mms_common_variable_delay IS
CONSTANT
c_clk_period
:
TIME
:
=
10
ns
;
CONSTANT
c_clk_period
:
TIME
:
=
10
ns
;
CONSTANT
c_trigger_interval
:
NATURAL
:
=
40
;
-- in clk's
CONSTANT
c_trigger_interval
:
NATURAL
:
=
40
;
-- in clk's
CONSTANT
c_mm_addr_enable
:
NATURAL
:
=
0
;
CONSTANT
c_mm_addr_enable
:
NATURAL
:
=
0
;
CONSTANT
c_cross_clock_domain_latency
:
NATURAL
:
=
2
0
;
CONSTANT
c_cross_clock_domain_latency
:
NATURAL
:
=
4
0
;
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
SIGNAL
rst
:
STD_LOGIC
;
SIGNAL
rst
:
STD_LOGIC
;
...
@@ -63,21 +63,24 @@ BEGIN
...
@@ -63,21 +63,24 @@ BEGIN
BEGIN
BEGIN
WAIT
UNTIL
rst
=
'0'
;
WAIT
UNTIL
rst
=
'0'
;
proc_common_wait_some_cycles
(
clk
,
10
);
proc_common_wait_some_cycles
(
clk
,
10
);
proc_mem_mm_bus_wr
(
c_mm_addr_enable
,
0
,
clk
,
mm_miso
,
mm_mosi
);
proc_common_wait_some_cycles
(
clk
,
c_cross_clock_domain_latency
);
proc_mem_mm_bus_rd
(
c_mm_addr_enable
,
clk
,
mm_miso
,
mm_mosi
);
proc_mem_mm_bus_rd_latency
(
1
,
clk
);
enable
<=
TO_UINT
(
mm_miso
.
rddata
(
0
DOWNTO
0
));
ASSERT
enable
=
0
REPORT
"enable not off"
SEVERITY
ERROR
;
proc_mem_mm_bus_wr
(
c_mm_addr_enable
,
1
,
clk
,
mm_miso
,
mm_mosi
);
proc_mem_mm_bus_wr
(
c_mm_addr_enable
,
1
,
clk
,
mm_miso
,
mm_mosi
);
proc_common_wait_some_cycles
(
clk
,
c_cross_clock_domain_latency
);
proc_common_wait_some_cycles
(
clk
,
c_cross_clock_domain_latency
);
proc_mem_mm_bus_rd
(
c_mm_addr_enable
,
clk
,
mm_miso
,
mm_mosi
);
proc_mem_mm_bus_rd
(
c_mm_addr_enable
,
clk
,
mm_miso
,
mm_mosi
);
proc_mem_mm_bus_rd_latency
(
1
,
clk
);
proc_mem_mm_bus_rd_latency
(
1
,
clk
);
enable
<=
TO_UINT
(
mm_miso
.
rddata
(
1
DOWNTO
0
));
enable
<=
TO_UINT
(
mm_miso
.
rddata
(
1
DOWNTO
0
));
proc_common_wait_some_cycles
(
clk
,
1
);
ASSERT
enable
=
1
REPORT
"enable not on"
SEVERITY
ERROR
;
ASSERT
enable
=
1
REPORT
"enable not on"
SEVERITY
ERROR
;
proc_mem_mm_bus_wr
(
c_mm_addr_enable
,
0
,
clk
,
mm_miso
,
mm_mosi
);
proc_common_wait_some_cycles
(
clk
,
c_cross_clock_domain_latency
);
proc_mem_mm_bus_rd
(
c_mm_addr_enable
,
clk
,
mm_miso
,
mm_mosi
);
proc_mem_mm_bus_rd_latency
(
1
,
clk
);
enable
<=
TO_UINT
(
mm_miso
.
rddata
(
0
DOWNTO
0
));
proc_common_wait_some_cycles
(
clk
,
1
);
ASSERT
enable
=
0
REPORT
"enable not off"
SEVERITY
ERROR
;
proc_common_wait_some_cycles
(
clk
,
100
);
tb_end
<=
'1'
;
tb_end
<=
'1'
;
WAIT
;
WAIT
;
END
PROCESS
;
END
PROCESS
;
...
...
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