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
651ac102
"git@git.astron.nl:ro/lofar.git" did not exist on "0c5039c9ff26353d9d6de756fff4e84a46b38db7"
Commit
651ac102
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Use last_size=exp_size'last_value. Extended duration of rst to avoid 'X' warning.
parent
7e218ccd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/diag/tb/vhdl/tb_diag_block_gen.vhd
+4
-2
4 additions, 2 deletions
libraries/base/diag/tb/vhdl/tb_diag_block_gen.vhd
with
4 additions
and
2 deletions
libraries/base/diag/tb/vhdl/tb_diag_block_gen.vhd
+
4
−
2
View file @
651ac102
...
@@ -111,12 +111,13 @@ ARCHITECTURE tb OF tb_diag_block_gen IS
...
@@ -111,12 +111,13 @@ ARCHITECTURE tb OF tb_diag_block_gen IS
SIGNAL
out_sosi
:
t_dp_sosi
;
SIGNAL
out_sosi
:
t_dp_sosi
;
SIGNAL
prev_out_sosi
:
t_dp_sosi
;
SIGNAL
prev_out_sosi
:
t_dp_sosi
;
SIGNAL
hold_sop
:
STD_LOGIC
;
SIGNAL
hold_sop
:
STD_LOGIC
;
SIGNAL
last_size
:
NATURAL
;
SIGNAL
exp_size
:
NATURAL
;
SIGNAL
exp_size
:
NATURAL
;
SIGNAL
cnt_size
:
NATURAL
;
SIGNAL
cnt_size
:
NATURAL
;
BEGIN
BEGIN
rst
<=
'1'
,
'0'
AFTER
clk_period
/
10
;
rst
<=
'1'
,
'0'
AFTER
clk_period
*
10
;
clk
<=
NOT
clk
OR
tb_end
AFTER
clk_period
/
2
;
clk
<=
NOT
clk
OR
tb_end
AFTER
clk_period
/
2
;
...
@@ -205,12 +206,13 @@ BEGIN
...
@@ -205,12 +206,13 @@ BEGIN
-- Verification
-- Verification
exp_size
<=
TO_UINT
(
bg_ctrl
.
samples_per_packet
);
exp_size
<=
TO_UINT
(
bg_ctrl
.
samples_per_packet
);
last_size
<=
exp_size
'last_value
;
proc_dp_verify_data
(
"BSN"
,
clk
,
verify_en
,
out_sosi
.
sop
,
out_sosi
.
bsn
,
prev_out_sosi
.
bsn
);
proc_dp_verify_data
(
"BSN"
,
clk
,
verify_en
,
out_sosi
.
sop
,
out_sosi
.
bsn
,
prev_out_sosi
.
bsn
);
proc_dp_verify_data
(
"DATA"
,
TO_UINT
(
c_bg_ctrl
.
mem_high_adrs
),
c_alternative_data_gap
,
clk
,
verify_en
,
out_sosi
.
valid
,
out_sosi
.
data
,
prev_out_sosi
.
data
);
proc_dp_verify_data
(
"DATA"
,
TO_UINT
(
c_bg_ctrl
.
mem_high_adrs
),
c_alternative_data_gap
,
clk
,
verify_en
,
out_sosi
.
valid
,
out_sosi
.
data
,
prev_out_sosi
.
data
);
proc_dp_verify_sop_and_eop
(
clk
,
out_sosi
.
valid
,
out_sosi
.
sop
,
out_sosi
.
eop
,
hold_sop
);
proc_dp_verify_sop_and_eop
(
clk
,
out_sosi
.
valid
,
out_sosi
.
sop
,
out_sosi
.
eop
,
hold_sop
);
proc_dp_verify_block_size
(
exp_size
,
clk
,
out_sosi
.
valid
,
out_sosi
.
sop
,
out_sosi
.
eop
,
cnt_size
);
proc_dp_verify_block_size
(
last_size
,
exp_size
,
clk
,
out_sosi
.
valid
,
out_sosi
.
sop
,
out_sosi
.
eop
,
cnt_size
);
-- Waveform buffer
-- Waveform buffer
u_buf
:
ENTITY
common_lib
.
common_ram_crw_crw
u_buf
:
ENTITY
common_lib
.
common_ram_crw_crw
...
...
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