data/full_repos/permissive/458737381/src/verilog-parser/tests/i2c_cpx_cnt.v
1: b'%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/i2c_cpx_cnt.v:29: Cannot find include file: sys.h\n`include "sys.h" // system level definition file which contains the  \n         ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/458737381/src/verilog-parser/tests,data/full_repos/permissive/458737381/sys.h\n             data/full_repos/permissive/458737381/src/verilog-parser/tests,data/full_repos/permissive/458737381/sys.h.v\n             data/full_repos/permissive/458737381/src/verilog-parser/tests,data/full_repos/permissive/458737381/sys.h.sv\n             sys.h\n             sys.h.v\n             sys.h.sv\n             obj_dir/sys.h\n             obj_dir/sys.h.v\n             obj_dir/sys.h.sv\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/i2c_cpx_cnt.v:31: Cannot find include file: iop.h\n`include        "iop.h" \n                ^~~~~~~\n%Error: Exiting due to 2 error(s)\n'
module i2c_cpx_cnt (

   cpx_buf_full, 

   rst_l, clk, iob_cpx_req_next, cpx_iob_grant
   );
   




   input         rst_l;
   input 	 clk;

   

   input 	 iob_cpx_req_next;
   input 	 cpx_iob_grant;
   output 	 cpx_buf_full;   

   

   wire 	 cpx_cnt_plus1_sel;
   wire 	 cpx_cnt_minus1_sel;
   wire [1:0] 	 cpx_cnt_plus1;
   wire [1:0] 	 cpx_cnt_minus1;
   wire [1:0] 	 cpx_cnt;
   reg [1:0] 	 cpx_cnt_next;

   wire 	 cpx_buf_full;

   






   assign 	 cpx_cnt_plus1_sel = iob_cpx_req_next & ~cpx_iob_grant;
   assign 	 cpx_cnt_minus1_sel = cpx_iob_grant &  ~iob_cpx_req_next;
   
   assign 	 cpx_cnt_plus1 = cpx_cnt + 2'b01;
   assign 	 cpx_cnt_minus1 = cpx_cnt - 2'b01;

  
   always @(cpx_cnt or cpx_cnt_minus1
	    or cpx_cnt_minus1_sel or cpx_cnt_plus1
	    or cpx_cnt_plus1_sel)
     case ({cpx_cnt_minus1_sel,cpx_cnt_plus1_sel})
       2'b00:cpx_cnt_next = cpx_cnt;
       2'b01:cpx_cnt_next = cpx_cnt_plus1;
       2'b10:cpx_cnt_next = cpx_cnt_minus1;
       2'b11:cpx_cnt_next = cpx_cnt;
     endcase

   dffrl_ns #(2) cpx_cnt_ff (.din(cpx_cnt_next),
	       	             .clk(clk),
			     .rst_l(rst_l),
		             .q(cpx_cnt));

   assign 	 cpx_buf_full = cpx_cnt[1];

   
endmodule
module i2c_cpx_cnt (

   cpx_buf_full, 

   rst_l, clk, iob_cpx_req_next, cpx_iob_grant
   );

   




   input         rst_l;
   input 	 clk;

   

   input 	 iob_cpx_req_next;
   input 	 cpx_iob_grant;
   output 	 cpx_buf_full;   

   

   wire 	 cpx_cnt_plus1_sel;
   wire 	 cpx_cnt_minus1_sel;
   wire [1:0] 	 cpx_cnt_plus1;
   wire [1:0] 	 cpx_cnt_minus1;
   wire [1:0] 	 cpx_cnt;
   reg [1:0] 	 cpx_cnt_next;

   wire 	 cpx_buf_full;

   






   assign 	 cpx_cnt_plus1_sel = iob_cpx_req_next & ~cpx_iob_grant;
   assign 	 cpx_cnt_minus1_sel = cpx_iob_grant &  ~iob_cpx_req_next;
   
   assign 	 cpx_cnt_plus1 = cpx_cnt + 2'b01;
   assign 	 cpx_cnt_minus1 = cpx_cnt - 2'b01;

  
   always @(cpx_cnt or cpx_cnt_minus1
	    or cpx_cnt_minus1_sel or cpx_cnt_plus1
	    or cpx_cnt_plus1_sel)
     case ({cpx_cnt_minus1_sel,cpx_cnt_plus1_sel})
       2'b00:cpx_cnt_next = cpx_cnt;
       2'b01:cpx_cnt_next = cpx_cnt_plus1;
       2'b10:cpx_cnt_next = cpx_cnt_minus1;
       2'b11:cpx_cnt_next = cpx_cnt;
     endcase

   dffrl_ns #(2) cpx_cnt_ff (.din(cpx_cnt_next),
	       	             .clk(clk),
			     .rst_l(rst_l),
		             .q(cpx_cnt));

   assign 	 cpx_buf_full = cpx_cnt[1];

   
endmodule