data/full_repos/permissive/174263347/crtv10/hdl/fextractor.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/174263347/crtv10/hdl/fextractor.v:28: 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 \'fextractor\'\nmodule fextractor ( clk, reset, ena, in, out);\n       ^~~~~~~~~~\n                                                                                  : ... Top module \'onefextractor\'\nmodule onefextractor ( clk, reset, ena, in, out);\n       ^~~~~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module onefextractor ( clk, reset, ena, in, out);

    input   clk, reset, ena, in;
    output  out;

    reg     a,b;


    always @ (posedge reset or posedge clk)
        if (reset)
                {a, b} <= 2'b00;
        else if(ena)
                {b,a} <= {a, in};
    
    assign out = a & ~b;

endmodule
module onefextractor ( clk, reset, ena, in, out);


    input   clk, reset, ena, in;
    output  out;

    reg     a,b;


    always @ (posedge reset or posedge clk)
        if (reset)
                {a, b} <= 2'b00;
        else if(ena)
                {b,a} <= {a, in};
    
    assign out = a & ~b;

endmodule