data/full_repos/permissive/426072575/labs/lab15_Mole state machine sequence detector/codes/par2ser.v
1: b'%Error: Cannot find file containing module: state\n        ... Looked in:\n             data/full_repos/permissive/426072575/labs/lab15_Mole/state\n             data/full_repos/permissive/426072575/labs/lab15_Mole/state.v\n             data/full_repos/permissive/426072575/labs/lab15_Mole/state.sv\n             state\n             state.v\n             state.sv\n             obj_dir/state\n             obj_dir/state.v\n             obj_dir/state.sv\n%Error: Cannot find file containing module: machine\n%Error: Cannot find file containing module: sequence\n%Error: Cannot find file containing module: detector/codes,data/full_repos/permissive/426072575\n%Error: Cannot find file containing module: data/full_repos/permissive/426072575/labs/lab15_Mole\n%Error: Cannot find file containing module: detector/codes/par2ser.v\n%Error: Exiting due to 6 error(s)\n'
module par2ser(clk,set,d,q);
    input clk, set;
    input [7:0]d;
    output reg q;
    
    reg [7:0] d_reg = 8'b0000_0000;
    always@ (posedge clk, posedge set)
    begin
        if(set)
            d_reg <= d;
        else
            d_reg <= (d_reg<<1);
            q = d_reg[7];
    end

endmodule
module par2ser(clk,set,d,q);

    input clk, set;
    input [7:0]d;
    output reg q;
    
    reg [7:0] d_reg = 8'b0000_0000;
    always@ (posedge clk, posedge set)
    begin
        if(set)
            d_reg <= d;
        else
            d_reg <= (d_reg<<1);
            q = d_reg[7];
    end

endmodule