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
f87158be
Commit
f87158be
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Add overloaded variant of proc_dp_verify_sosi_equal().
parent
2b71c2dc
No related branches found
No related tags found
1 merge request
!339
Resolve L2SDP-959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/tb/vhdl/tb_dp_pkg.vhd
+30
-0
30 additions, 0 deletions
libraries/base/dp/tb/vhdl/tb_dp_pkg.vhd
with
30 additions
and
0 deletions
libraries/base/dp/tb/vhdl/tb_dp_pkg.vhd
+
30
−
0
View file @
f87158be
...
@@ -450,6 +450,10 @@ package tb_dp_pkg is
...
@@ -450,6 +450,10 @@ package tb_dp_pkg is
signal
dut_sosi
:
in
t_dp_sosi_integer
;
-- use func_dp_stream_slv_to_integer for conversion
signal
dut_sosi
:
in
t_dp_sosi_integer
;
-- use func_dp_stream_slv_to_integer for conversion
signal
exp_sosi
:
in
t_dp_sosi_integer
);
-- use func_dp_stream_slv_to_integer for conversion
signal
exp_sosi
:
in
t_dp_sosi_integer
);
-- use func_dp_stream_slv_to_integer for conversion
procedure
proc_dp_verify_sosi_equal
(
constant
c_use_complex
:
in
boolean
;
signal
dut_sosi
:
in
t_dp_sosi
;
signal
exp_sosi
:
in
t_dp_sosi
);
procedure
proc_dp_verify_valid
(
constant
c_ready_latency
:
in
natural
;
procedure
proc_dp_verify_valid
(
constant
c_ready_latency
:
in
natural
;
signal
clk
:
in
std_logic
;
signal
clk
:
in
std_logic
;
signal
verify_en
:
in
std_logic
;
signal
verify_en
:
in
std_logic
;
...
@@ -2261,6 +2265,32 @@ package body tb_dp_pkg is
...
@@ -2261,6 +2265,32 @@ package body tb_dp_pkg is
end
if
;
end
if
;
end
proc_dp_verify_sosi_equal
;
end
proc_dp_verify_sosi_equal
;
procedure
proc_dp_verify_sosi_equal
(
constant
c_use_complex
:
in
boolean
;
signal
dut_sosi
:
in
t_dp_sosi
;
signal
exp_sosi
:
in
t_dp_sosi
)
is
begin
assert
dut_sosi
.
sync
=
exp_sosi
.
sync
report
"Wrong dut_sosi.sync"
severity
ERROR
;
assert
dut_sosi
.
sop
=
exp_sosi
.
sop
report
"Wrong dut_sosi.sop"
severity
ERROR
;
assert
dut_sosi
.
eop
=
exp_sosi
.
eop
report
"Wrong dut_sosi.eop"
severity
ERROR
;
assert
dut_sosi
.
valid
=
exp_sosi
.
valid
report
"Wrong dut_sosi.valid"
severity
ERROR
;
if
exp_sosi
.
sop
=
'1'
then
assert
dut_sosi
.
bsn
=
exp_sosi
.
bsn
report
"Wrong dut_sosi.bsn"
severity
ERROR
;
assert
dut_sosi
.
channel
=
exp_sosi
.
channel
report
"Wrong dut_sosi.channel"
severity
ERROR
;
end
if
;
if
exp_sosi
.
eop
=
'1'
then
assert
dut_sosi
.
empty
=
exp_sosi
.
empty
report
"Wrong dut_sosi.empty"
severity
ERROR
;
assert
dut_sosi
.
err
=
exp_sosi
.
err
report
"Wrong dut_sosi.err"
severity
ERROR
;
end
if
;
if
exp_sosi
.
valid
=
'1'
then
if
c_use_complex
then
assert
dut_sosi
.
re
=
exp_sosi
.
re
report
"Wrong dut_sosi.re"
severity
ERROR
;
assert
dut_sosi
.
im
=
exp_sosi
.
im
report
"Wrong dut_sosi.im"
severity
ERROR
;
else
assert
dut_sosi
.
data
=
exp_sosi
.
data
report
"Wrong dut_sosi.data"
severity
ERROR
;
end
if
;
end
if
;
end
proc_dp_verify_sosi_equal
;
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- PROCEDURE: Verify the DUT output valid
-- PROCEDURE: Verify the DUT output valid
------------------------------------------------------------------------------
------------------------------------------------------------------------------
...
...
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