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
2172b1ff
Commit
2172b1ff
authored
7 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Fixed rd_data verification for DB buffer read during write conflicts.
parent
bf1cc3f6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/apertif/designs/apertif_unb1_fn_beamformer/tb/vhdl/tb_apertif_unb1_fn_beamformer_nodes.vhd
+9
-6
9 additions, 6 deletions
...eamformer/tb/vhdl/tb_apertif_unb1_fn_beamformer_nodes.vhd
with
9 additions
and
6 deletions
applications/apertif/designs/apertif_unb1_fn_beamformer/tb/vhdl/tb_apertif_unb1_fn_beamformer_nodes.vhd
+
9
−
6
View file @
2172b1ff
...
@@ -237,7 +237,7 @@ BEGIN
...
@@ -237,7 +237,7 @@ BEGIN
CONSTANT
c_max_X
:
NATURAL
:
=
4
;
CONSTANT
c_max_X
:
NATURAL
:
=
4
;
VARIABLE
v_I
:
NATURAL
;
VARIABLE
v_I
:
INTEGER
;
VARIABLE
v_exp_re
:
NATURAL
;
VARIABLE
v_exp_re
:
NATURAL
;
VARIABLE
v_exp_im
:
NATURAL
;
VARIABLE
v_exp_im
:
NATURAL
;
VARIABLE
v_exp_data
:
NATURAL
;
VARIABLE
v_exp_data
:
NATURAL
;
...
@@ -260,10 +260,12 @@ BEGIN
...
@@ -260,10 +260,12 @@ BEGIN
-- <-> <-> <-> <-> Q_interleave = 2
-- <-> <-> <-> <-> Q_interleave = 2
FOR
u
IN
0
TO
c_bf
.
nof_bf_units
-1
LOOP
FOR
u
IN
0
TO
c_bf
.
nof_bf_units
-1
LOOP
v_exp_im
:
=
u
;
v_exp_im
:
=
u
;
v_I
:
=
0
;
v_I
:
=
c_output_db_nof_words
-1
;
FOR
bui
IN
0
TO
N_blk
/
Q_interleave
-1
LOOP
-- Read the DB buffer in reverse order (so with decrementing addresses) to be able to use retry MM read
FOR
t
IN
0
TO
N_int_x
-1
LOOP
-- after rd_data conflict with firmware write (that uses incrementing addresses)
FOR
q
IN
0
TO
Q_interleave
-1
LOOP
FOR
bui
IN
N_blk
/
Q_interleave
-1
DOWNTO
0
LOOP
FOR
t
IN
N_int_x
-1
DOWNTO
0
LOOP
FOR
q
IN
Q_interleave
-1
DOWNTO
0
LOOP
-- Expected data
-- Expected data
v_exp_re
:
=
bui
*
Q_interleave
+
q
;
v_exp_re
:
=
bui
*
Q_interleave
+
q
;
v_exp_data
:
=
v_exp_im
*
2
**
c_transport_w
+
v_exp_re
;
v_exp_data
:
=
v_exp_im
*
2
**
c_transport_w
+
v_exp_re
;
...
@@ -272,13 +274,14 @@ BEGIN
...
@@ -272,13 +274,14 @@ BEGIN
v_rd_data
:
=
TO_UINT
(
rd_data_db
);
v_rd_data
:
=
TO_UINT
(
rd_data_db
);
IF
v_rd_data
/=
v_exp_data
THEN
IF
v_rd_data
/=
v_exp_data
THEN
-- Retry MM read when occasionaly MM read and internal firmware write occur at same address and then cause 'X'
-- Retry MM read when occasionaly MM read and internal firmware write occur at same address and then cause 'X'
proc_common_wait_some_cycles
(
ext_clk
,
1
);
mmf_mm_bus_rd
(
c_mm_file_ram_diag_data_buf_output
,
u
*
c_output_db_nof_words_pow2
+
v_I
,
rd_data_db
,
tb_clk
);
mmf_mm_bus_rd
(
c_mm_file_ram_diag_data_buf_output
,
u
*
c_output_db_nof_words_pow2
+
v_I
,
rd_data_db
,
tb_clk
);
v_rd_data
:
=
TO_UINT
(
rd_data_db
);
v_rd_data
:
=
TO_UINT
(
rd_data_db
);
nof_rd_data_db_X
<=
nof_rd_data_db_X
+
1
;
nof_rd_data_db_X
<=
nof_rd_data_db_X
+
1
;
REPORT
int_to_str
(
v_I
)
&
int_to_str
(
nof_rd_data_db_X
)
&
" : "
&
int_to_str
(
v_rd_data
)
&
" /= "
&
int_to_str
(
v_exp_data
);
REPORT
int_to_str
(
v_I
)
&
int_to_str
(
nof_rd_data_db_X
)
&
" : "
&
int_to_str
(
v_rd_data
)
&
" /= "
&
int_to_str
(
v_exp_data
);
END
IF
;
END
IF
;
ASSERT
v_rd_data
=
v_exp_data
REPORT
"DB unexpected transpose output data : "
&
int_to_str
(
v_rd_data
)
&
" /= "
&
int_to_str
(
v_exp_data
);
ASSERT
v_rd_data
=
v_exp_data
REPORT
"DB unexpected transpose output data : "
&
int_to_str
(
v_rd_data
)
&
" /= "
&
int_to_str
(
v_exp_data
);
v_I
:
=
v_I
+
1
;
v_I
:
=
v_I
-
1
;
END
LOOP
;
END
LOOP
;
END
LOOP
;
END
LOOP
;
END
LOOP
;
END
LOOP
;
...
...
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