data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Motion_Compensation/New_Prediction.v
1: b'%Error: data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Motion_Compensation/New_Prediction.v:17: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Motion_Compensation,data/full_repos/permissive/502764644/defines.v\n             data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Motion_Compensation,data/full_repos/permissive/502764644/defines.v.v\n             data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Motion_Compensation,data/full_repos/permissive/502764644/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 New_Prediction(
	Current_PMV_I,
	
	Delta_Sign_I,
	Delta_Magnitude_I,
	
	F_Code_I,
	
	New_PMV_O
);

input 	[15:0]	Current_PMV_I;

input 				Delta_Sign_I;
input 	[12:0]	Delta_Magnitude_I;

input 	[3:0]		F_Code_I;

output 	[15:0]	New_PMV_O;

wire 		[16:0] 	Pre_range_PMV;

wire 		[15:0]	Range_small;
wire 		[16:0]	Range;

wire 					up_adjust, down_adjust;

wire 		[16:0]	adjustment_value;
wire 		[16:0]	adjusted_value;

wire 		[16:0]	adjust_up_check;
wire 		[16:0]	adjust_down_check;

assign Pre_range_PMV = (Delta_Sign_I) ? 
	{Current_PMV_I[15],Current_PMV_I} - {3'h0,Delta_Magnitude_I} : 
	{Current_PMV_I[15],Current_PMV_I} + {3'h0,Delta_Magnitude_I};

assign Range_small = 1 << (F_Code_I + 4);
assign Range = {1'b0,Range_small};

assign adjust_up_check = Pre_range_PMV + {1'b0,Range[16:1]};
assign adjust_down_check = Pre_range_PMV - {1'b0,Range[16:1]};

assign up_adjust = adjust_up_check[16];
assign down_adjust = ~adjust_down_check[16];

assign adjustment_value = (up_adjust | down_adjust) ? Range : 17'h00000;

assign adjusted_value = (down_adjust) ? 
	Pre_range_PMV - adjustment_value : Pre_range_PMV + adjustment_value;
	
assign New_PMV_O = adjusted_value[15:0];

endmodule
module New_Prediction(
	Current_PMV_I,
	
	Delta_Sign_I,
	Delta_Magnitude_I,
	
	F_Code_I,
	
	New_PMV_O
);


input 	[15:0]	Current_PMV_I;

input 				Delta_Sign_I;
input 	[12:0]	Delta_Magnitude_I;

input 	[3:0]		F_Code_I;

output 	[15:0]	New_PMV_O;

wire 		[16:0] 	Pre_range_PMV;

wire 		[15:0]	Range_small;
wire 		[16:0]	Range;

wire 					up_adjust, down_adjust;

wire 		[16:0]	adjustment_value;
wire 		[16:0]	adjusted_value;

wire 		[16:0]	adjust_up_check;
wire 		[16:0]	adjust_down_check;

assign Pre_range_PMV = (Delta_Sign_I) ? 
	{Current_PMV_I[15],Current_PMV_I} - {3'h0,Delta_Magnitude_I} : 
	{Current_PMV_I[15],Current_PMV_I} + {3'h0,Delta_Magnitude_I};

assign Range_small = 1 << (F_Code_I + 4);
assign Range = {1'b0,Range_small};

assign adjust_up_check = Pre_range_PMV + {1'b0,Range[16:1]};
assign adjust_down_check = Pre_range_PMV - {1'b0,Range[16:1]};

assign up_adjust = adjust_up_check[16];
assign down_adjust = ~adjust_down_check[16];

assign adjustment_value = (up_adjust | down_adjust) ? Range : 17'h00000;

assign adjusted_value = (down_adjust) ? 
	Pre_range_PMV - adjustment_value : Pre_range_PMV + adjustment_value;
	
assign New_PMV_O = adjusted_value[15:0];

endmodule