data/full_repos/permissive/506081587/quartus/src/i2c/I2C_Controller.v
1: b'%Error: data/full_repos/permissive/506081587/quartus/src/i2c/I2C_Controller.v:56: Cannot find include file: I2C_WRITE_WDATA.v\n`include "I2C_WRITE_WDATA.v" \n         ^~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/506081587/quartus/src/i2c,data/full_repos/permissive/506081587/I2C_WRITE_WDATA.v\n             data/full_repos/permissive/506081587/quartus/src/i2c,data/full_repos/permissive/506081587/I2C_WRITE_WDATA.v.v\n             data/full_repos/permissive/506081587/quartus/src/i2c,data/full_repos/permissive/506081587/I2C_WRITE_WDATA.v.sv\n             I2C_WRITE_WDATA.v\n             I2C_WRITE_WDATA.v.v\n             I2C_WRITE_WDATA.v.sv\n             obj_dir/I2C_WRITE_WDATA.v\n             obj_dir/I2C_WRITE_WDATA.v.v\n             obj_dir/I2C_WRITE_WDATA.v.sv\n%Error: Exiting due to 1 error(s)\n'
module I2C_Controller (
	input  CLOCK,
	input  [23:0]I2C_DATA,	
	input  GO,
	input  RESET,	
	input  W_R,
 	inout  I2C_SDAT,	
	output I2C_SCLK,
	output END,	
	output ACK
);

wire SDAO ; 

assign I2C_SDAT = SDAO?1'bz : 1'b0  ; 

I2C_WRITE_WDATA  wrd(
   .RESET_N  ( RESET),
	.PT_CK    ( CLOCK),
	.GO       ( GO   ),
	.END_OK   ( END  ),
	.ACK_OK   ( ACK  ),
	.BYTE_NUM ( 2    ),
	.SDAI     ( I2C_SDAT ),
	.SDAO     ( SDAO     ),
	.SCLO     ( I2C_SCLK ),	
	.SLAVE_ADDRESS( I2C_DATA[23:16] ),
	.REG_DATA     ( I2C_DATA[15:0]  )	
);	
	
	

endmodule
module I2C_Controller (
	input  CLOCK,
	input  [23:0]I2C_DATA,	
	input  GO,
	input  RESET,	
	input  W_R,
 	inout  I2C_SDAT,	
	output I2C_SCLK,
	output END,	
	output ACK
);


wire SDAO ; 

assign I2C_SDAT = SDAO?1'bz : 1'b0  ; 

I2C_WRITE_WDATA  wrd(
   .RESET_N  ( RESET),
	.PT_CK    ( CLOCK),
	.GO       ( GO   ),
	.END_OK   ( END  ),
	.ACK_OK   ( ACK  ),
	.BYTE_NUM ( 2    ),
	.SDAI     ( I2C_SDAT ),
	.SDAO     ( SDAO     ),
	.SCLO     ( I2C_SCLK ),	
	.SLAVE_ADDRESS( I2C_DATA[23:16] ),
	.REG_DATA     ( I2C_DATA[15:0]  )	
);	
	
	

endmodule