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
37e0981e
Commit
37e0981e
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Make code for v.rd_blk_pointer more clear.
parent
8235dc62
No related branches found
No related tags found
1 merge request
!389
Resolve L2SDP-1013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/src/vhdl/dp_bsn_align_v2.vhd
+10
-6
10 additions, 6 deletions
libraries/base/dp/src/vhdl/dp_bsn_align_v2.vhd
with
10 additions
and
6 deletions
libraries/base/dp/src/vhdl/dp_bsn_align_v2.vhd
+
10
−
6
View file @
37e0981e
...
...
@@ -275,12 +275,16 @@ begin
v
.
bsn_arr
(
v
.
wr_blk_pointer
)
:
=
w
.
ref_sosi
.
bsn
(
g_bsn_w
-
1
downto
0
);
-- . update read block pointer at g_bsn_latency_max blocks behind the
-- reference write pointer, dependent on the node_index. For
-- g_bsn_latency_max = 1 the node_index = 0 fixed. For
-- g_bsn_latency_max > 1, node_index is the first BSN aligner in a
-- chain. Each subsequent node in the chain then has to account for
-- g_bsn_latency_max additional block latency.
v
.
rd_blk_pointer
:
=
v
.
wr_blk_pointer
-
g_bsn_latency_max
*
(
1
+
node_index
);
-- reference write pointer, dependent on the node_index:
-- - for g_nof_aligners_max = 1 the node_index = 0 fixed
-- - for g_nof_aligners_max > 1, node_index is the first BSN aligner in
-- a chain. Each subsequent node in the chain then has to account
-- for g_bsn_latency_max additional block latency.
if
g_nof_aligners_max
=
1
then
v
.
rd_blk_pointer
:
=
v
.
wr_blk_pointer
-
g_bsn_latency_max
;
else
v
.
rd_blk_pointer
:
=
v
.
wr_blk_pointer
-
g_bsn_latency_max
*
(
1
+
node_index
);
end
if
;
if
v
.
rd_blk_pointer
<
0
then
v
.
rd_blk_pointer
:
=
v
.
rd_blk_pointer
+
c_buffer_nof_blocks
;
end
if
;
...
...
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