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 priority_encoder
(
    input logic [7:0] vec_i,
    output logic [2:0] idx_o,
    output logic valid_o
);

always_comb begin
    idx_o = '0;
    valid_o = '1;
    unique casex (vec_i)
        8'bxxxxxxx0: idx_o = 0;
        8'bxxxxxx01: idx_o = 1;
        8'bxxxxx011: idx_o = 2;
        8'bxxxx0111: idx_o = 3;
        8'bxxx01111: idx_o = 4;
        8'bxx011111: idx_o = 5;
        8'bx0111111: idx_o = 6;
        8'b01111111: idx_o = 7;
        8'hFF: valid_o = '0;
    endcase
end

endmodule
module priority_encoder
(
    input logic [7:0] vec_i,
    output logic [2:0] idx_o,
    output logic valid_o
);


always_comb begin
    idx_o = '0;
    valid_o = '1;
    unique casex (vec_i)
        8'bxxxxxxx0: idx_o = 0;
        8'bxxxxxx01: idx_o = 1;
        8'bxxxxx011: idx_o = 2;
        8'bxxxx0111: idx_o = 3;
        8'bxxx01111: idx_o = 4;
        8'bxx011111: idx_o = 5;
        8'bx0111111: idx_o = 6;
        8'b01111111: idx_o = 7;
        8'hFF: valid_o = '0;
    endcase
end

endmodule