Commit bf33df9f authored by GuillemCabo's avatar GuillemCabo Committed by Guillem
Browse files

change local parameter position

RTL is correct but it tirgers a bug on VIVADO

add dummy param
parent 99991e11
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment