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
6b0d3b01
Commit
6b0d3b01
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
No functional change. Use short index variables v_Q, v_B to ease recognizing them as loop indices.
parent
3b42b2f2
No related branches found
Branches containing commit
No related tags found
1 merge request
!219
No functional change. Use short index variables names in capitals, to ease...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/src/vhdl/sdp_bf_weights.vhd
+13
-12
13 additions, 12 deletions
...ications/lofar2/libraries/sdp/src/vhdl/sdp_bf_weights.vhd
with
13 additions
and
12 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_bf_weights.vhd
+
13
−
12
View file @
6b0d3b01
...
...
@@ -77,30 +77,31 @@ BEGIN
-- [N_pol_bf][S_pn/Q_fft]_[S_sub_bf][Q_fft]. Therefore this counter
-- has to account for this difference in order.
p_cnt
:
PROCESS
(
dp_clk
,
dp_rst
)
VARIABLE
v_Q_fft
,
v_S_sub_bf
:
NATURAL
;
-- Use short index variables v_Q, v_B names, to ease recognizing them as (loop) indices.
VARIABLE
v_Q
,
v_B
:
NATURAL
;
BEGIN
IF
dp_rst
=
'1'
THEN
cnt
<=
0
;
v_Q
_fft
:
=
0
;
v_
S_sub_bf
:
=
0
;
v_Q
:
=
0
;
v_
B
:
=
0
;
ELSIF
rising_edge
(
dp_clk
)
THEN
IF
in_sosi_arr
(
0
)
.
valid
=
'1'
THEN
IF
in_sosi_arr
(
0
)
.
eop
=
'1'
THEN
v_Q
_fft
:
=
0
;
v_
S_sub_bf
:
=
0
;
v_Q
:
=
0
;
v_
B
:
=
0
;
ELSE
IF
v_Q
_fft
>=
c_sdp_Q_fft
-1
THEN
v_Q
_fft
:
=
0
;
IF
v_
S_sub_bf
>=
c_sdp_S_sub_bf
-1
THEN
v_
S_sub_bf
:
=
0
;
IF
v_Q
>=
c_sdp_Q_fft
-1
THEN
v_Q
:
=
0
;
IF
v_
B
>=
c_sdp_S_sub_bf
-1
THEN
v_
B
:
=
0
;
ELSE
v_
S_sub_bf
:
=
v_S_sub_bf
+
1
;
v_
B
:
=
v_B
+
1
;
END
IF
;
ELSE
v_Q
_fft
:
=
v_Q
_fft
+
1
;
v_Q
:
=
v_Q
+
1
;
END
IF
;
END
IF
;
cnt
<=
v_Q
_fft
*
c_sdp_S_sub_bf
+
v_
S_sub_bf
;
cnt
<=
v_Q
*
c_sdp_S_sub_bf
+
v_
B
;
END
IF
;
END
IF
;
END
PROCESS
;
...
...
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