Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Platform-independent core collection
Commits
9d62248e
Commit
9d62248e
authored
Dec 08, 2021
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
radtol: improve secded_32b testbench
parent
aae6f6df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tb_secded_32b_pkg.vhd
testbench/radtol/tb_secded_32b_pkg.vhd
+6
-0
No files found.
testbench/radtol/tb_secded_32b_pkg.vhd
View file @
9d62248e
...
...
@@ -28,9 +28,13 @@ begin
process
begin
data
<=
x"789a_d3f5"
;
syndrome
<=
"0000000"
;
wait
for
1
ns
;
assert
f_ecc_errors
(
syndrome
)
=
'0'
severity
failure
;
assert
f_ecc_one_error
(
syndrome
)
=
'0'
severity
failure
;
ecc
<=
f_calc_ecc
(
data
);
-- Single error (detection and correction)
for
i
in
0
to
38
loop
err
<=
(
others
=>
'0'
);
if
i
<
32
then
...
...
@@ -48,6 +52,8 @@ begin
wait
for
1
ns
;
syndrome
<=
ecc2
xor
ecc
;
wait
for
1
ns
;
assert
f_ecc_errors
(
syndrome
)
=
'1'
severity
failure
;
assert
f_ecc_one_error
(
syndrome
)
=
'1'
severity
failure
;
cor
<=
f_fix_error
(
syndrome
,
ecc2
,
data2
);
wait
for
1
ns
;
report
"data: "
&
image
(
data
)
&
", ecc: "
&
image
(
ecc
)
&
", err: "
&
image
(
err
)
&
", ecc/err: "
&
image
(
ecc2
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment