data/full_repos/permissive/444559342/mp1/cam/hdl/cam_controller.sv
1: b'%Error: data/full_repos/permissive/444559342/mp1/cam/hdl/cam_controller.sv:3: syntax error, unexpected IDENTIFIER, expecting PACKAGE-IDENTIFIER or STRING\nimport cam_types::*;\n       ^~~~~~~~~\n%Error: Exiting due to 1 error(s)\n'
module one_hot0_encoder
(
    input logic [7:0]  vec_i,
    output logic [2:0] idx_o,
    output logic valid_o
);

assign valid_o = |vec_i;

always_comb begin
    idx_o = '0;
    unique case (vec_i)
        8'h00: idx_o = 0;
        8'h01: idx_o = 0;
        8'h02: idx_o = 1;
        8'h04: idx_o = 2;
        8'h08: idx_o = 3;
        8'h10: idx_o = 4;
        8'h20: idx_o = 5;
        8'h40: idx_o = 6;
        8'h80: idx_o = 7;
        default: if ($time != 0)
            $info("CAMCTL: %s %0d: reset to make valid",
                            `__FILE__, `__LINE__);
    endcase
end
endmodule
module one_hot0_encoder
(
    input logic [7:0]  vec_i,
    output logic [2:0] idx_o,
    output logic valid_o
);


assign valid_o = |vec_i;

always_comb begin
    idx_o = '0;
    unique case (vec_i)
        8'h00: idx_o = 0;
        8'h01: idx_o = 0;
        8'h02: idx_o = 1;
        8'h04: idx_o = 2;
        8'h08: idx_o = 3;
        8'h10: idx_o = 4;
        8'h20: idx_o = 5;
        8'h40: idx_o = 6;
        8'h80: idx_o = 7;
        default: if ($time != 0)
            $info("CAMCTL: %s %0d: reset to make valid",
                            `__FILE__, `__LINE__);
    endcase
end
endmodule