Skip to content

Fix "id is already declared" #122

@luizademelo

Description

@luizademelo

Currently, the addConstantIDsToParameterList function creates parameters by searching for constant IDs in the program and adding them manually. However, it's possible that these parameters are already explicitly declared in the program:

// Seed: 3489505891
module module_0 #(
    parameter id_12 = 32'd20
) (
    id_1,
    ....
);
...
  localparam id_12 = 1;
...
endmodule

In this case, id_12 is already declared both as a parameter and as a localparam inside the module. The current implementation does not account for such existing declarations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions