data/full_repos/permissive/210844779/lab2/2.2/encoder.v
data/verilator_xmls/f493cf78-1b78-41d9-b7f2-2a72c6d28c77.xml
module prio_enc(I,Y);
  
  input [7:0]I;
  output [2:0]Y;
  
  assign Y= I[7] ? 3'b111:(I[6] ? 3'b110:(I[5] ? 3'b101:(I[4] ? 3'b100:(I[3] ? 3'b011:(I[2] ? 3'b010:(I[1] ? 3'b001: 3'b000))))));
  
endmodule
module prio_enc(I,Y);

  
  input [7:0]I;
  output [2:0]Y;
  
  assign Y= I[7] ? 3'b111:(I[6] ? 3'b110:(I[5] ? 3'b101:(I[4] ? 3'b100:(I[3] ? 3'b011:(I[2] ? 3'b010:(I[1] ? 3'b001: 3'b000))))));
  
endmodule