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
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
21cd321f
Commit
21cd321f
authored
Jun 28, 2022
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
radtol: improve secdec_32b package and tb
parent
c7593f46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
secded_32b_pkg.vhd
modules/radtol/secded_32b_pkg.vhd
+2
-2
tb_secded_32b_pkg.vhd
testbench/radtol/tb_secded_32b_pkg.vhd
+15
-0
No files found.
modules/radtol/secded_32b_pkg.vhd
View file @
21cd321f
...
...
@@ -4,9 +4,9 @@
-- https://www.ohwr.org/projects/general-cores
--------------------------------------------------------------------------------
--
-- unit name: secded_
ecc
-- unit name: secded_
32b_pkg
--
-- description:
SECDED RAM controller
-- description:
ECC on 32b
--
--------------------------------------------------------------------------------
-- Copyright CERN 2020-2021
...
...
testbench/radtol/tb_secded_32b_pkg.vhd
View file @
21cd321f
...
...
@@ -24,9 +24,24 @@ architecture behav of tb_secded_32b_pkg is
signal
orig_data
,
data
:
std_logic_vector
(
31
downto
0
);
signal
orig_ecc
,
ecc
,
comp_ecc
,
syndrome
:
std_logic_vector
(
6
downto
0
);
signal
err
,
cor
:
std_logic_vector
(
38
downto
0
);
type
vectors_type
is
array
(
natural
range
<>
)
of
std_logic_vector
(
31
downto
0
);
constant
vectors
:
vectors_type
:
=
(
x"00001197"
,
x"22c18193"
,
x"00040117"
,
x"ffffffff"
);
begin
process
variable
ecc2
:
std_logic_vector
(
6
downto
0
);
begin
for
i
in
vectors
'range
loop
ecc2
:
=
f_calc_ecc
(
vectors
(
i
));
report
"data: "
&
to_hstring
(
vectors
(
i
))
&
", ecc: "
&
to_hstring
(
ecc2
);
end
loop
;
orig_data
<=
x"789a_d3f5"
;
syndrome
<=
"0000000"
;
wait
for
1
ns
;
...
...
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