data/full_repos/permissive/193790231/B_FSMs.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/193790231/B_FSMs.v:66: 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 \'FSM_4xSequenceDetectorA\'\nmodule FSM_4xSequenceDetectorA(\n       ^~~~~~~~~~~~~~~~~~~~~~~\n                                                                   : ... Top module \'FSM_4xSequenceDetectorB\'\nmodule FSM_4xSequenceDetectorB(\n       ^~~~~~~~~~~~~~~~~~~~~~~\n                                                                   : ... Top module \'FSM_4xSequenceDetectorC\'\nmodule FSM_4xSequenceDetectorC(\n       ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/193790231/B_FSMs.v:130: Cannot find file containing module: \'shiftRegisterNx\'\n    shiftRegisterNx #(4) detect0(.Q(shiftRegA), .D(~W), .sregCLK(pCLK), .sregRESN(nREST));\n    ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/193790231,data/full_repos/permissive/193790231/shiftRegisterNx\n             data/full_repos/permissive/193790231,data/full_repos/permissive/193790231/shiftRegisterNx.v\n             data/full_repos/permissive/193790231,data/full_repos/permissive/193790231/shiftRegisterNx.sv\n             shiftRegisterNx\n             shiftRegisterNx.v\n             shiftRegisterNx.sv\n             obj_dir/shiftRegisterNx\n             obj_dir/shiftRegisterNx.v\n             obj_dir/shiftRegisterNx.sv\n%Error: data/full_repos/permissive/193790231/B_FSMs.v:131: Cannot find file containing module: \'shiftRegisterNx\'\n    shiftRegisterNx #(4) detect1(.Q(shiftRegB), .D(W), .sregCLK(pCLK), .sregRESN(nREST));\n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/193790231/B_FSMs.v:111: Cannot find file containing module: \'registerNx\'\n    registerNx #(4) ffx4(.Q(fQ[3:0]), .D(fD[3:0]), .regCLK(pCLK), .regRESN(nREST)); \n    ^~~~~~~~~~\n%Error: Exiting due to 3 error(s), 1 warning(s)\n'
module FSM_4xSequenceDetectorA(
    output fOut, 

    input W, pCLK, nREST
);
	reg [8:0]Q;
    always@(posedge pCLK or negedge nREST) begin
        if(~nREST) begin

            Q[8:0] <= 9'b000000000;
        end
        else begin
            Q[0] <= 1;  
            Q[1] <= (Q[0]|Q[5]|Q[6]|Q[7]|Q[8])&(~W);
            Q[2] <= (Q[1])&(~W);
            Q[3] <= (Q[2])&(~W);
            Q[4] <= (Q[3]|Q[4])&(~W);
            Q[5] <= (Q[0]|Q[1]|Q[2]|Q[3]|Q[4])&(W);
            Q[6] <= (Q[5])&(W);
            Q[7] <= (Q[6])&(W);
            Q[8] <= (Q[7]|Q[8])&(W);
        end
    end
	 assign fOut = Q[4]|Q[8];
endmodule
module FSM_4xSequenceDetectorA(
    output fOut, 

    input W, pCLK, nREST
);

	reg [8:0]Q;
    always@(posedge pCLK or negedge nREST) begin
        if(~nREST) begin

            Q[8:0] <= 9'b000000000;
        end
        else begin
            Q[0] <= 1;  
            Q[1] <= (Q[0]|Q[5]|Q[6]|Q[7]|Q[8])&(~W);
            Q[2] <= (Q[1])&(~W);
            Q[3] <= (Q[2])&(~W);
            Q[4] <= (Q[3]|Q[4])&(~W);
            Q[5] <= (Q[0]|Q[1]|Q[2]|Q[3]|Q[4])&(W);
            Q[6] <= (Q[5])&(W);
            Q[7] <= (Q[6])&(W);
            Q[8] <= (Q[7]|Q[8])&(W);
        end
    end
	 assign fOut = Q[4]|Q[8];
endmodule