data/full_repos/permissive/13953309/NW_vc_allocator.v
 line:63: before: "integer"
1: b'%Error: data/full_repos/permissive/13953309/NW_vc_allocator.v:47: Cannot find include file: NW_functions.v\n   `include "NW_functions.v" \n            ^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/13953309,data/full_repos/permissive/13953309/NW_functions.v\n             data/full_repos/permissive/13953309,data/full_repos/permissive/13953309/NW_functions.v.v\n             data/full_repos/permissive/13953309,data/full_repos/permissive/13953309/NW_functions.v.sv\n             NW_functions.v\n             NW_functions.v.v\n             NW_functions.v.sv\n             obj_dir/NW_functions.v\n             obj_dir/NW_functions.v.v\n             obj_dir/NW_functions.v.sv\n%Error: data/full_repos/permissive/13953309/NW_vc_allocator.v:73: syntax error, unexpected IDENTIFIER, expecting \';\'\n   input flit_priority_t req_priority [np-1:0][nv-1:0];\n                         ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953309/NW_vc_allocator.v:74: syntax error, unexpected IDENTIFIER, expecting \';\'\n   input output_port_t output_port [np-1:0][nv-1:0];\n                       ^~~~~~~~~~~\n%Error: data/full_repos/permissive/13953309/NW_vc_allocator.v:86: syntax error, unexpected IDENTIFIER, expecting \';\'\n   input flit_t flit [np-1:0][nv-1:0];\n                ^~~~\n%Error: Exiting due to 4 error(s)\n'
module NW_vc_allocator (req, output_port,
			req_priority,
			vc_new, vc_new_valid,

			next_free_vc,
			no_free_vc,
			pop_free_vc,

			vc_mask,

			vc_allocated,
			vc_requested,
			vc_alloc_status,
			flit,
			vc_credits,
			clk, rst_n);

   `include "NW_functions.v"


   
   parameter buf_len=4;
   
   parameter xs=4;
   parameter ys=4;
		
   parameter np=5;
   parameter nv=4;
   parameter dynamic_priority_vc_alloc = 0;
   parameter vcalloc_unrestricted = 0;






   parameter vcselect_bydestinationnode = 0;
   parameter vcselect_leastfullbuffer = 0;
   parameter vcselect_arbstateupdate = 0;  
   parameter vcselect_usepacketmask = 0;   
   

   input [np-1:0][nv-1:0] req;
   input flit_priority_t req_priority [np-1:0][nv-1:0];
   input output_port_t output_port [np-1:0][nv-1:0];
   input [np-1:0][nv-1:0] next_free_vc;
   input [np-1:0]  no_free_vc;
   output [np-1:0][nv-1:0][nv-1:0] vc_new;
   output [np-1:0][nv-1:0] vc_new_valid;
   output [np-1:0] pop_free_vc;

   input [np-1:0][nv-1:0][nv-1:0] vc_mask;

   output [np-1:0][nv-1:0] vc_allocated;  
   output [np-1:0][nv-1:0][nv-1:0] vc_requested;
   input [np-1:0][nv-1:0] vc_alloc_status;
   input flit_t flit [np-1:0][nv-1:0];
   input [np-1:0][nv-1:0][clogb2(buf_len+1)-1:0] vc_credits;
   
   input clk, rst_n;

   generate
      if (!vcalloc_unrestricted) begin

      end else begin
	 
	 NW_vc_unrestricted_allocator
	   #(.np(np), .nv(nv), .xs(xs), .ys(ys), .buf_len(buf_len), 
	     .dynamic_priority_vc_alloc(dynamic_priority_vc_alloc),
	     .vcselect_bydestinationnode(vcselect_bydestinationnode), 
	     .vcselect_leastfullbuffer(vcselect_leastfullbuffer), 
	     .vcselect_arbstateupdate(vcselect_arbstateupdate), 
	     .vcselect_usepacketmask(vcselect_usepacketmask))
	     unrestricted
	       (
		.req, 
		.output_port,     

		.req_priority,    

		.vc_status(vc_alloc_status),        
		.vc_new,          
		.vc_new_valid,    
		.vc_allocated,    
		.vc_requested, 
		.flit, .vc_credits,
		.clk, .rst_n
		);

      end
   endgenerate

endmodule
module NW_vc_allocator (req, output_port,
			req_priority,
			vc_new, vc_new_valid,

			next_free_vc,
			no_free_vc,
			pop_free_vc,

			vc_mask,

			vc_allocated,
			vc_requested,
			vc_alloc_status,
			flit,
			vc_credits,
			clk, rst_n);


   `include "NW_functions.v"


   
   parameter buf_len=4;
   
   parameter xs=4;
   parameter ys=4;
		
   parameter np=5;
   parameter nv=4;
   parameter dynamic_priority_vc_alloc = 0;
   parameter vcalloc_unrestricted = 0;






   parameter vcselect_bydestinationnode = 0;
   parameter vcselect_leastfullbuffer = 0;
   parameter vcselect_arbstateupdate = 0;  
   parameter vcselect_usepacketmask = 0;   
   

   input [np-1:0][nv-1:0] req;
   input flit_priority_t req_priority [np-1:0][nv-1:0];
   input output_port_t output_port [np-1:0][nv-1:0];
   input [np-1:0][nv-1:0] next_free_vc;
   input [np-1:0]  no_free_vc;
   output [np-1:0][nv-1:0][nv-1:0] vc_new;
   output [np-1:0][nv-1:0] vc_new_valid;
   output [np-1:0] pop_free_vc;

   input [np-1:0][nv-1:0][nv-1:0] vc_mask;

   output [np-1:0][nv-1:0] vc_allocated;  
   output [np-1:0][nv-1:0][nv-1:0] vc_requested;
   input [np-1:0][nv-1:0] vc_alloc_status;
   input flit_t flit [np-1:0][nv-1:0];
   input [np-1:0][nv-1:0][clogb2(buf_len+1)-1:0] vc_credits;
   
   input clk, rst_n;

   generate
      if (!vcalloc_unrestricted) begin

      end else begin
	 
	 NW_vc_unrestricted_allocator
	   #(.np(np), .nv(nv), .xs(xs), .ys(ys), .buf_len(buf_len), 
	     .dynamic_priority_vc_alloc(dynamic_priority_vc_alloc),
	     .vcselect_bydestinationnode(vcselect_bydestinationnode), 
	     .vcselect_leastfullbuffer(vcselect_leastfullbuffer), 
	     .vcselect_arbstateupdate(vcselect_arbstateupdate), 
	     .vcselect_usepacketmask(vcselect_usepacketmask))
	     unrestricted
	       (
		.req, 
		.output_port,     

		.req_priority,    

		.vc_status(vc_alloc_status),        
		.vc_new,          
		.vc_new_valid,    
		.vc_allocated,    
		.vc_requested, 
		.flit, .vc_credits,
		.clk, .rst_n
		);

      end
   endgenerate

endmodule