Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
CAOS_HW
HDL_IP
SafeSU
Commits
bf33df9f
Commit
bf33df9f
authored
Aug 06, 2021
by
GuillemCabo
Committed by
Guillem
Nov 23, 2021
Browse files
change local parameter position
RTL is correct but it tirgers a bug on VIVADO add dummy param
parent
99991e11
Changes
4
Hide whitespace changes
Inline
Side-by-side
submodules/seu_ip/hamming16t11d_dec.sv
View file @
bf33df9f
...
...
@@ -17,10 +17,12 @@
`endif
module
hamming16t11d_dec
#
(
// Width of sampled signal
localparam
integer
IN_WIDTH
=
11
,
// Number of hamming bits
localparam
integer
N_CHECKB
=
$
clog2
(
IN_WIDTH
)
//4
//Parameter that does nothing but prevents tcmalloc bug VIVADO
parameter
VIVADO
=
0
,
// Width of sampled signal
localparam
integer
IN_WIDTH
=
11
,
// Number of hamming bits
localparam
integer
N_CHECKB
=
$
clog2
(
IN_WIDTH
)
//4
)
(
// Corrected data
...
...
submodules/seu_ip/hamming16t11d_enc.sv
View file @
bf33df9f
...
...
@@ -17,10 +17,12 @@
`endif
module
hamming16t11d_enc
#
(
// Width of sampled signal
localparam
integer
IN_WIDTH
=
11
,
// Number of hamming bits
localparam
integer
N_CHECKB
=
$
clog2
(
IN_WIDTH
)
//4
//Parameter that does nothing but prevents tcmalloc bug VIVADO
parameter
VIVADO
=
0
,
// Width of sampled signal
localparam
integer
IN_WIDTH
=
11
,
// Number of hamming bits
localparam
integer
N_CHECKB
=
$
clog2
(
IN_WIDTH
)
//4
)
(
// Signal at register input
...
...
@@ -28,6 +30,7 @@ module hamming16t11d_enc #
// Hamming vector
output
wire
[
IN_WIDTH
+
N_CHECKB
:
0
]
hv_o
);
logic
[
N_CHECKB
-
1
:
0
]
hcheck_int
;
// hamming parity bits
logic
ocheck_int
;
// Overall parity bit
...
...
submodules/seu_ip/hamming32t26d_dec.sv
View file @
bf33df9f
...
...
@@ -17,10 +17,12 @@
`endif
module
hamming32t26d_dec
#
(
// Width of sampled signal
localparam
integer
IN_WIDTH
=
26
,
// Number of hamming bits, overall parity bit not included
localparam
integer
N_CHECKB
=
$
clog2
(
IN_WIDTH
)
//5
//Parameter that does nothing but prevents tcmalloc bug VIVADO
parameter
VIVADO
=
0
,
// Width of sampled signal
localparam
integer
IN_WIDTH
=
26
,
// Number of hamming bits, overall parity bit not included
localparam
integer
N_CHECKB
=
$
clog2
(
IN_WIDTH
)
//5
)
(
// Corrected data
...
...
submodules/seu_ip/hamming32t26d_enc.sv
View file @
bf33df9f
...
...
@@ -17,10 +17,12 @@
`endif
module
hamming32t26d_enc
#
(
// Width of sampled signal
localparam
integer
IN_WIDTH
=
26
,
// Number of hamming bits
localparam
integer
N_CHECKB
=
$
clog2
(
IN_WIDTH
)
//4
//Parameter that does nothing but prevents tcmalloc bug VIVADO
parameter
VIVADO
=
0
,
// Width of sampled signal
localparam
integer
IN_WIDTH
=
26
,
// Number of hamming bits
localparam
integer
N_CHECKB
=
$
clog2
(
IN_WIDTH
)
//4
)
(
// Signal at register input
...
...
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