Skip to content

Match doesn't work on module ports. #77

@max-kudinov

Description

@max-kudinov

If there are 2 modules with identical functionality, but different port names, match section doesn't link them.

module mod (
    input      clk,
    input      a,
    output reg b
);

always @(posedge clk) b <= a;

endmodule
module mod (
    input      clk,
    input      a,
    output reg c
);

always @(posedge clk) c <= a;

endmodule
[match *]
gate-match c b
ERROR: No matching port in gate module was found for \b!

As I can tell while running with --debug, combine.ys script is executed before matching and errors out on ports.

Sometimes during refactoring port names are changed too, so it would be convenient if old and new names could be matched as all other nets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions