data/full_repos/permissive/116563702/priority_encoder/pri_encoder.v
data/verilator_xmls/83298b3a-2668-458e-a747-ee0f2a8cf22a.xml
module priority_encoder(input [3:0] a,
			output reg [3:0] y);

   always @(a)
     begin
	if (a[3])
	  y = 4'b1000;
	else if (a[2])
	  y = 4'b0100;
	else if (a[1])
	  y = 4'b0010;
	else if(a[0])
	  y = 4'b0001;
	else
	  y = 4'b0000;
     end
endmodule
module priority_encoder(input [3:0] a,
			output reg [3:0] y);


   always @(a)
     begin
	if (a[3])
	  y = 4'b1000;
	else if (a[2])
	  y = 4'b0100;
	else if (a[1])
	  y = 4'b0010;
	else if(a[0])
	  y = 4'b0001;
	else
	  y = 4'b0000;
     end
endmodule