data/full_repos/permissive/451861474/Priority Encoder/A1Q3_priority_encoder.v
1: b'%Error: Cannot find file containing module: Encoder,data/full_repos/permissive/451861474\n        ... Looked in:\n             data/full_repos/permissive/451861474/Priority/Encoder,data/full_repos/permissive/451861474\n             data/full_repos/permissive/451861474/Priority/Encoder,data/full_repos/permissive/451861474.v\n             data/full_repos/permissive/451861474/Priority/Encoder,data/full_repos/permissive/451861474.sv\n             Encoder,data/full_repos/permissive/451861474\n             Encoder,data/full_repos/permissive/451861474.v\n             Encoder,data/full_repos/permissive/451861474.sv\n             obj_dir/Encoder,data/full_repos/permissive/451861474\n             obj_dir/Encoder,data/full_repos/permissive/451861474.v\n             obj_dir/Encoder,data/full_repos/permissive/451861474.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/451861474/Priority\n%Error: Cannot find file containing module: Encoder/A1Q3_priority_encoder.v\n%Error: Exiting due to 3 error(s)\n'
module priority_encoder8to3(
        input [7:0] in,
        output reg [2:0] out
);

always @(*) begin
        if(in[0]) assign out = 3'b000;
        else if(in[1]) assign out = 3'b001;
        else if(in[2]) assign out = 3'b010;
        else if(in[3]) assign out = 3'b011;
        else if(in[4]) assign out = 3'b100;
        else if(in[5]) assign out = 3'b101;
        else if(in[6]) assign out = 3'b110;
        else assign out = 3'b111;
end

endmodule
module priority_encoder8to3(
        input [7:0] in,
        output reg [2:0] out
);


always @(*) begin
        if(in[0]) assign out = 3'b000;
        else if(in[1]) assign out = 3'b001;
        else if(in[2]) assign out = 3'b010;
        else if(in[3]) assign out = 3'b011;
        else if(in[4]) assign out = 3'b100;
        else if(in[5]) assign out = 3'b101;
        else if(in[6]) assign out = 3'b110;
        else assign out = 3'b111;
end

endmodule