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 @@ ...@@ -17,10 +17,12 @@
`endif `endif
module hamming16t11d_dec # module hamming16t11d_dec #
( (
// Width of sampled signal //Parameter that does nothing but prevents tcmalloc bug VIVADO
localparam integer IN_WIDTH = 11, parameter VIVADO=0,
// Number of hamming bits // Width of sampled signal
localparam integer N_CHECKB = $clog2(IN_WIDTH) //4 localparam integer IN_WIDTH = 11,
// Number of hamming bits
localparam integer N_CHECKB = $clog2(IN_WIDTH) //4
) )
( (
// Corrected data // Corrected data
......
...@@ -17,10 +17,12 @@ ...@@ -17,10 +17,12 @@
`endif `endif
module hamming16t11d_enc # module hamming16t11d_enc #
( (
// Width of sampled signal //Parameter that does nothing but prevents tcmalloc bug VIVADO
localparam integer IN_WIDTH = 11, parameter VIVADO=0,
// Number of hamming bits // Width of sampled signal
localparam integer N_CHECKB = $clog2(IN_WIDTH) //4 localparam integer IN_WIDTH = 11,
// Number of hamming bits
localparam integer N_CHECKB = $clog2(IN_WIDTH) //4
) )
( (
// Signal at register input // Signal at register input
...@@ -28,6 +30,7 @@ module hamming16t11d_enc # ...@@ -28,6 +30,7 @@ module hamming16t11d_enc #
// Hamming vector // Hamming vector
output wire [IN_WIDTH+N_CHECKB:0] hv_o output wire [IN_WIDTH+N_CHECKB:0] hv_o
); );
logic [N_CHECKB-1:0] hcheck_int; // hamming parity bits logic [N_CHECKB-1:0] hcheck_int; // hamming parity bits
logic ocheck_int; // Overall parity bit logic ocheck_int; // Overall parity bit
......
...@@ -17,10 +17,12 @@ ...@@ -17,10 +17,12 @@
`endif `endif
module hamming32t26d_dec # module hamming32t26d_dec #
( (
// Width of sampled signal //Parameter that does nothing but prevents tcmalloc bug VIVADO
localparam integer IN_WIDTH = 26, parameter VIVADO=0,
// Number of hamming bits, overall parity bit not included // Width of sampled signal
localparam integer N_CHECKB = $clog2(IN_WIDTH) //5 localparam integer IN_WIDTH = 26,
// Number of hamming bits, overall parity bit not included
localparam integer N_CHECKB = $clog2(IN_WIDTH) //5
) )
( (
// Corrected data // Corrected data
......
...@@ -17,10 +17,12 @@ ...@@ -17,10 +17,12 @@
`endif `endif
module hamming32t26d_enc # module hamming32t26d_enc #
( (
// Width of sampled signal //Parameter that does nothing but prevents tcmalloc bug VIVADO
localparam integer IN_WIDTH = 26, parameter VIVADO=0,
// Number of hamming bits // Width of sampled signal
localparam integer N_CHECKB = $clog2(IN_WIDTH) //4 localparam integer IN_WIDTH = 26,
// Number of hamming bits
localparam integer N_CHECKB = $clog2(IN_WIDTH) //4
) )
( (
// Signal at register input // 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