Skip to content
GitLab
Explore
Sign in
Register
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
d52574e6
Commit
d52574e6
authored
8 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Added proc_common_timeout_failure().
parent
4dda9c5f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/base/common/tb/vhdl/tb_common_pkg.vhd
+16
-0
16 additions, 0 deletions
libraries/base/common/tb/vhdl/tb_common_pkg.vhd
libraries/io/ddr/tb/vhdl/tb_tb_io_ddr.vhd
+4
-1
4 additions, 1 deletion
libraries/io/ddr/tb/vhdl/tb_tb_io_ddr.vhd
with
20 additions
and
1 deletion
libraries/base/common/tb/vhdl/tb_common_pkg.vhd
+
16
−
0
View file @
d52574e6
...
...
@@ -94,6 +94,11 @@ PACKAGE tb_common_pkg IS
CONSTANT
c_value
:
IN
INTEGER
;
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC_VECTOR
);
-- Exit simulation on timeout failure
PROCEDURE
proc_common_timeout_failure
(
CONSTANT
c_timeout
:
IN
TIME
;
SIGNAL
tb_end
:
IN
STD_LOGIC
);
-- Handle stream ready signal, only support ready latency c_rl = 0 or 1.
PROCEDURE
proc_common_ready_latency
(
CONSTANT
c_rl
:
IN
NATURAL
;
...
...
@@ -483,6 +488,17 @@ PACKAGE BODY tb_common_pkg IS
END
LOOP
;
END
proc_common_wait_until_value
;
PROCEDURE
proc_common_timeout_failure
(
CONSTANT
c_timeout
:
IN
TIME
;
SIGNAL
tb_end
:
IN
STD_LOGIC
)
IS
BEGIN
WHILE
tb_end
=
'0'
LOOP
ASSERT
NOW
<
c_timeout
REPORT
"Test bench timeout."
SEVERITY
FAILURE
;
WAIT
FOR
1
us
;
END
LOOP
;
END
PROCEDURE
;
------------------------------------------------------------------------------
-- PROCEDURE: Handle stream ready signal for data valid
-- . output active when ready='1' and enable='1'
...
...
This diff is collapsed.
Click to expand it.
libraries/io/ddr/tb/vhdl/tb_tb_io_ddr.vhd
+
4
−
1
View file @
d52574e6
...
...
@@ -25,11 +25,12 @@
-- > as 5
-- > run -all
LIBRARY
IEEE
,
technology_lib
,
tech_ddr_lib
;
LIBRARY
IEEE
,
technology_lib
,
tech_ddr_lib
,
common_lib
;
USE
IEEE
.
std_logic_1164
.
ALL
;
USE
technology_lib
.
technology_pkg
.
ALL
;
USE
technology_lib
.
technology_select_pkg
.
ALL
;
USE
tech_ddr_lib
.
tech_ddr_pkg
.
ALL
;
USE
common_lib
.
tb_common_pkg
.
ALL
;
ENTITY
tb_tb_io_ddr
IS
...
...
@@ -96,6 +97,8 @@ BEGIN
tb_end
<=
'1'
WHEN
tb_end_vec
=
c_tb_end_vec
ELSE
'0'
;
proc_common_timeout_failure
(
1
ms
,
tb_end
);
p_tb_end
:
PROCESS
BEGIN
WAIT
UNTIL
tb_end
=
'1'
;
...
...
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