data/full_repos/permissive/458935738/common/edge_detectors.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/458935738/common/edge_detectors.v:18: Multiple top level modules\n                                                                                  : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                  : ... Top module \'rising\'\nmodule rising (\n       ^~~~~~\n                                                                                  : ... Top module \'falling\'\nmodule falling (\n       ^~~~~~~\n                                                                                  : ... Top module \'debouncer\'\nmodule debouncer (\n       ^~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module falling (
    input clk,
    input signal,
    output wire is_falling
);

    reg sig1, sig2, sig3;
    always @(posedge clk) begin
        sig1 <= signal;
        sig2 <= sig1;
        sig3 <= sig2;
    end
    assign is_falling = ~sig2 & sig3;
    
endmodule
module falling (
    input clk,
    input signal,
    output wire is_falling
);


    reg sig1, sig2, sig3;
    always @(posedge clk) begin
        sig1 <= signal;
        sig2 <= sig1;
        sig3 <= sig2;
    end
    assign is_falling = ~sig2 & sig3;
    
endmodule