data/full_repos/permissive/455874613/Projects/Module01/TemperatureCalculator.v
1: b"%Error: data/full_repos/permissive/455874613/Projects/Module01/TemperatureCalculator.v:37: Cannot find file containing module: 'Multiplier8x8'\n Multiplier8x8 multiplier_first(.A(tempRef[7:0]),.B(tempRef[7:0]),.P(_8x8res[15:0]));\n ^~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/455874613/Projects/Module01,data/full_repos/permissive/455874613/Multiplier8x8\n             data/full_repos/permissive/455874613/Projects/Module01,data/full_repos/permissive/455874613/Multiplier8x8.v\n             data/full_repos/permissive/455874613/Projects/Module01,data/full_repos/permissive/455874613/Multiplier8x8.sv\n             Multiplier8x8\n             Multiplier8x8.v\n             Multiplier8x8.sv\n             obj_dir/Multiplier8x8\n             obj_dir/Multiplier8x8.v\n             obj_dir/Multiplier8x8.sv\n%Error: data/full_repos/permissive/455874613/Projects/Module01/TemperatureCalculator.v:38: Cannot find file containing module: 'Multiplier16x16'\n Multiplier16x16 multiplier_second(.A(_8x8res[15:0]),.B({1'b0,adc_data[14:0]}),.P(_16x16res[31:0]));\n ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/455874613/Projects/Module01/TemperatureCalculator.v:41: Cannot find file containing module: 'AdderSubtractor32x32'\n AdderSubtractor32x32 adder32x32(.A(tc_base[31:0]),.B(div[31:0]),.sel(adc_data[15]),.S(tempc[31:0]));\n ^~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module TemperatureCalculator (
	input  [31:0] tc_base  ,
	input  [ 7:0] tc_ref   ,
	input  [15:0] adc_data ,
	output [31:0] tempc
);

	wire [15:0] _8x8res;
	wire [7:0] tempRef;
	wire [31:0] div, _16x16res;
	
	assign tempRef=(tc_ref[7]?-tc_ref:tc_ref);
	
	Multiplier8x8 multiplier_first(.A(tempRef[7:0]),.B(tempRef[7:0]),.P(_8x8res[15:0]));
	Multiplier16x16 multiplier_second(.A(_8x8res[15:0]),.B({1'b0,adc_data[14:0]}),.P(_16x16res[31:0]));

	assign div = _16x16res / 64;
	AdderSubtractor32x32 adder32x32(.A(tc_base[31:0]),.B(div[31:0]),.sel(adc_data[15]),.S(tempc[31:0]));
	

endmodule
module TemperatureCalculator (
	input  [31:0] tc_base  ,
	input  [ 7:0] tc_ref   ,
	input  [15:0] adc_data ,
	output [31:0] tempc
);


	wire [15:0] _8x8res;
	wire [7:0] tempRef;
	wire [31:0] div, _16x16res;
	
	assign tempRef=(tc_ref[7]?-tc_ref:tc_ref);
	
	Multiplier8x8 multiplier_first(.A(tempRef[7:0]),.B(tempRef[7:0]),.P(_8x8res[15:0]));
	Multiplier16x16 multiplier_second(.A(_8x8res[15:0]),.B({1'b0,adc_data[14:0]}),.P(_16x16res[31:0]));

	assign div = _16x16res / 64;
	AdderSubtractor32x32 adder32x32(.A(tc_base[31:0]),.B(div[31:0]),.sel(adc_data[15]),.S(tempc[31:0]));
	

endmodule