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
3b0118bc
Commit
3b0118bc
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Add proc_common_wait_until_clk_and_high().
parent
e911346e
No related branches found
No related tags found
1 merge request
!311
Correct beamlet output indexing in tr_10GbE_src_out.data. Verify exact beamlet...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/common/tb/vhdl/tb_common_pkg.vhd
+18
-0
18 additions, 0 deletions
libraries/base/common/tb/vhdl/tb_common_pkg.vhd
with
18 additions
and
0 deletions
libraries/base/common/tb/vhdl/tb_common_pkg.vhd
+
18
−
0
View file @
3b0118bc
...
...
@@ -81,6 +81,9 @@ PACKAGE tb_common_pkg IS
PROCEDURE
proc_common_wait_until_high
(
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC
);
PROCEDURE
proc_common_wait_until_clk_and_high
(
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC
);
PROCEDURE
proc_common_wait_until_low
(
CONSTANT
c_timeout
:
IN
NATURAL
;
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC
);
...
...
@@ -88,6 +91,9 @@ PACKAGE tb_common_pkg IS
PROCEDURE
proc_common_wait_until_low
(
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC
);
PROCEDURE
proc_common_wait_until_clk_and_low
(
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC
);
PROCEDURE
proc_common_wait_until_hi_lo
(
CONSTANT
c_timeout
:
IN
NATURAL
;
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC
);
...
...
@@ -427,6 +433,12 @@ PACKAGE BODY tb_common_pkg IS
WAIT
UNTIL
rising_edge
(
clk
)
AND
level
=
'1'
;
END
IF
;
END
proc_common_wait_until_high
;
PROCEDURE
proc_common_wait_until_clk_and_high
(
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC
)
IS
BEGIN
WAIT
UNTIL
rising_edge
(
clk
)
AND
level
=
'1'
;
END
proc_common_wait_until_clk_and_high
;
PROCEDURE
proc_common_wait_until_high
(
CONSTANT
c_timeout
:
IN
NATURAL
;
SIGNAL
clk
:
IN
STD_LOGIC
;
...
...
@@ -452,6 +464,12 @@ PACKAGE BODY tb_common_pkg IS
END
IF
;
END
proc_common_wait_until_low
;
PROCEDURE
proc_common_wait_until_clk_and_low
(
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC
)
IS
BEGIN
WAIT
UNTIL
rising_edge
(
clk
)
AND
level
=
'0'
;
END
proc_common_wait_until_clk_and_low
;
PROCEDURE
proc_common_wait_until_low
(
CONSTANT
c_timeout
:
IN
NATURAL
;
SIGNAL
clk
:
IN
STD_LOGIC
;
SIGNAL
level
:
IN
STD_LOGIC
)
IS
...
...
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