data/full_repos/permissive/412297935/hdl/priority.v
1: b'%Error: data/full_repos/permissive/412297935/hdl/priority.v:1: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/412297935/hdl,data/full_repos/permissive/412297935/defines.v\n             data/full_repos/permissive/412297935/hdl,data/full_repos/permissive/412297935/defines.v.v\n             data/full_repos/permissive/412297935/hdl,data/full_repos/permissive/412297935/defines.v.sv\n             defines.v\n             defines.v.v\n             defines.v.sv\n             obj_dir/defines.v\n             obj_dir/defines.v.v\n             obj_dir/defines.v.sv\n%Error: Exiting due to 1 error(s)\n'
module PriorityEncoder 
	(
  	input wire 	[7:0] 	bits,
  	output reg 	[3:0] 	index
  	);

  	always @ * 
  		begin
  			casez (bits)
				8'b1zzzzzzz : index = 4'h7;
				8'b01zzzzzz : index = 4'h6;
				8'b001zzzzz : index = 4'h5;
				8'b0001zzzz : index = 4'h4;
				8'b00001zzz : index = 4'h3;
				8'b000001zz : index = 4'h2;
				8'b0000001z : index = 4'h1;
				8'b00000001 : index = 4'h0;
				default		: index = 4'h8;
    		endcase
  		end
endmodule
module PriorityEncoder 
	(
  	input wire 	[7:0] 	bits,
  	output reg 	[3:0] 	index
  	);


  	always @ * 
  		begin
  			casez (bits)
				8'b1zzzzzzz : index = 4'h7;
				8'b01zzzzzz : index = 4'h6;
				8'b001zzzzz : index = 4'h5;
				8'b0001zzzz : index = 4'h4;
				8'b00001zzz : index = 4'h3;
				8'b000001zz : index = 4'h2;
				8'b0000001z : index = 4'h1;
				8'b00000001 : index = 4'h0;
				default		: index = 4'h8;
    		endcase
  		end
endmodule