Skip to content

Decoder.v define array problem #1

@qxtcreat

Description

@qxtcreat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions