I notice that in Decoder.v ,there definereg [CNU_DATA_OUT_WIDTH-1:0][0:K-1] CNU_1_out[0:K-1];Then CNU_1out used in
CNU cnu
(
.clk(clk),
.X(CNU_1_in[i]),
.en(CNU_1_en[i]),
.Y(CNU_1_out[i]),
.p_bit()
);
the Y is [6-1][5-1],there are some wrong problely? And the reg [CNU_DATA_OUT_WIDTH-1:0][0:K-1] CNU_1_out[0:K-1]; can be changed to reg [CNU_DATA_OUT_WIDTH-1:0] CNU_1_out [0:K-1]; I think.
I notice that in Decoder.v ,there definereg [CNU_DATA_OUT_WIDTH-1:0][0:K-1] CNU_1_out[0:K-1];Then CNU_1out used in
the Y is [6-1][5-1],there are some wrong problely? And the
reg [CNU_DATA_OUT_WIDTH-1:0][0:K-1] CNU_1_out[0:K-1];can be changed to reg [CNU_DATA_OUT_WIDTH-1:0] CNU_1_out [0:K-1]; I think.