data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:1172: Multiple top level modules\n                                                                                                                      : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                                                      : ... Top module \'EEE_IMGPROC\'\nmodule EEE_IMGPROC(\n       ^~~~~~~~~~~\n                                                                                                                      : ... Top module \'L_abs\'\nmodule L_abs(\n       ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:332: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'value\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign hue = (red == green && red == blue) ? 0 :((value != red)? (value != green) ? (((240*((value - min))+ (60* (red - green)))/(value-min))>>1):\n                                                                                                   ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:332: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'min\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign hue = (red == green && red == blue) ? 0 :((value != red)? (value != green) ? (((240*((value - min))+ (60* (red - green)))/(value-min))>>1):\n                                                                                                   ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:332: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'red\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign hue = (red == green && red == blue) ? 0 :((value != red)? (value != green) ? (((240*((value - min))+ (60* (red - green)))/(value-min))>>1):\n                                                                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:332: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'green\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign hue = (red == green && red == blue) ? 0 :((value != red)? (value != green) ? (((240*((value - min))+ (60* (red - green)))/(value-min))>>1):\n                                                                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:332: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'value\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign hue = (red == green && red == blue) ? 0 :((value != red)? (value != green) ? (((240*((value - min))+ (60* (red - green)))/(value-min))>>1):\n                                                                                                                                       ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:332: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'min\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign hue = (red == green && red == blue) ? 0 :((value != red)? (value != green) ? (((240*((value - min))+ (60* (red - green)))/(value-min))>>1):\n                                                                                                                                       ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:333: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'value\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                ((120*(value-min)+60*(blue - red))/(value - min)>>1): \n                            ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:333: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'min\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                ((120*(value-min)+60*(blue - red))/(value - min)>>1): \n                            ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:333: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'blue\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                ((120*(value-min)+60*(blue - red))/(value - min)>>1): \n                                           ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:333: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'red\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                ((120*(value-min)+60*(blue - red))/(value - min)>>1): \n                                           ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:333: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'value\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                ((120*(value-min)+60*(blue - red))/(value - min)>>1): \n                                                          ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:333: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'min\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                ((120*(value-min)+60*(blue - red))/(value - min)>>1): \n                                                          ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'green\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                             ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'blue\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                             ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'value\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                                            ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'min\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                                            ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'value\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'min\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'green\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                                                                                        ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'blue\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                                                                                        ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the LHS, but LHS\'s VARREF \'value\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                                                                                                         ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:334: Operator SUB expects 32 or 10 bits on the RHS, but RHS\'s VARREF \'min\' generates 8 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n                (blue < green) ? ((60*(green - blue)/(value - min))>>1): (((360*(value-min) +(60*(green - blue)))/(value - min))>>1));\n                                                                                                                         ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:461: Operator ADD expects 8 bits on the RHS, but RHS\'s SEL generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign grey = green[7:1] + red[7:2] + blue[7:2];  \n                         ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:461: Operator ADD expects 8 bits on the RHS, but RHS\'s SEL generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign grey = green[7:1] + red[7:2] + blue[7:2];  \n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:532: Operator ASSIGNW expects 8 bits on the Assign RHS, but Assign RHS\'s MUL generates 32 or 11 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign current_valid_region_r = 100 * (count_r / (x - pre_edge_x_position));\n                              ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:533: Operator ASSIGNW expects 8 bits on the Assign RHS, but Assign RHS\'s MUL generates 32 or 11 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign current_valid_region_p = 100 * (count_p / (x - pre_edge_x_position));\n                              ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:534: Operator ASSIGNW expects 8 bits on the Assign RHS, but Assign RHS\'s MUL generates 32 or 11 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign current_valid_region_o = 100 * (count_o / (x - pre_edge_x_position));\n                              ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:535: Operator ASSIGNW expects 8 bits on the Assign RHS, but Assign RHS\'s MUL generates 32 or 11 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign current_valid_region_g = 100 * (count_g / (x - pre_edge_x_position));\n                              ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:536: Operator ASSIGNW expects 8 bits on the Assign RHS, but Assign RHS\'s MUL generates 32 or 11 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\nassign current_valid_region_b = 100 * (count_b / (x - pre_edge_x_position));\n                              ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:620: Operator GT expects 8 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n      if ( (current_valid_region_r > max_valid_region_r) &&  (current_valid_region_r > horizontal_edge_region_threshold) ) begin\n                                                                                     ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:629: Operator GT expects 8 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n      if ( (current_valid_region_p > max_valid_region_p) &&  (current_valid_region_p > horizontal_edge_region_threshold) ) begin\n                                                                                     ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:644: Operator GT expects 8 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n      if ( (current_valid_region_g > max_valid_region_g) &&  (current_valid_region_g > horizontal_edge_region_threshold) ) begin\n                                                                                     ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:652: Operator GT expects 8 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n      if ( (current_valid_region_b > max_valid_region_b) &&  (current_valid_region_b > horizontal_edge_region_threshold) ) begin\n                                                                                     ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:615: Operator GT expects 11 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n     if ((x - pre_edge_x_position > horizontal_edge_region_threshold) && (x - imm_edge_x_position > 20)) begin\n                                  ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:753: Operator GT expects 11 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n      if(mid_deviation_r > horizontal_edge_region_threshold)begin\n                         ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:792: Operator GT expects 11 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n      if(mid_deviation_p > horizontal_edge_region_threshold)begin\n                         ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:828: Operator GT expects 11 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n      if(mid_deviation_o > horizontal_edge_region_threshold)begin\n                         ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:864: Operator GT expects 11 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n      if(mid_deviation_g > horizontal_edge_region_threshold)begin\n                         ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:899: Operator GT expects 11 bits on the RHS, but RHS\'s VARREF \'horizontal_edge_region_threshold\' generates 6 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n      if(mid_deviation_b > horizontal_edge_region_threshold)begin\n                         ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:932: Operator EQ expects 4 bits on the RHS, but RHS\'s CONST \'3\'h0\' generates 3 bits.\n                                                                                                                  : ... In instance EEE_IMGPROC\n  packet_video <= (blue[3:0] == 3\'h0);\n                             ^~\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:1005: Operator LT expects 32 or 9 bits on the LHS, but LHS\'s VARREF \'msg_buf_size\' generates 8 bits.\n                                                                                                                   : ... In instance EEE_IMGPROC\n  if (frame_count == 0 && msg_buf_size < MESSAGE_BUF_MAX - 3) begin\n                                       ^\n%Error: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:1059: Cannot find file containing module: \'MSG_FIFO\'\nMSG_FIFO MSG_FIFO_inst (\n^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC,data/full_repos/permissive/517493654/MSG_FIFO\n             data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC,data/full_repos/permissive/517493654/MSG_FIFO.v\n             data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC,data/full_repos/permissive/517493654/MSG_FIFO.sv\n             MSG_FIFO\n             MSG_FIFO.v\n             MSG_FIFO.sv\n             obj_dir/MSG_FIFO\n             obj_dir/MSG_FIFO.v\n             obj_dir/MSG_FIFO.sv\n%Error: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:1072: Cannot find file containing module: \'STREAM_REG\'\nSTREAM_REG #(.DATA_WIDTH(26)) in_reg (\n^~~~~~~~~~\n%Error: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:1083: Cannot find file containing module: \'STREAM_REG\'\nSTREAM_REG #(.DATA_WIDTH(26)) out_reg (\n^~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/ip/EEE_IMGPROC/newfilter.v:1163: Operator ASSIGNW expects 16 bits on the Assign RHS, but Assign RHS\'s VARREF \'max_valid_region_r\' generates 8 bits.\n                                                                                                                   : ... In instance EEE_IMGPROC\nassign message_to_ESP32 = max_valid_region_r;\n                        ^\n%Error: Exiting due to 3 error(s), 43 warning(s)\n'
module L_abs(
	input [7:0] L_in,
	output reg [7:0] L_out
);
	always @(*) begin
			if(2 * L_in > 255) begin
				L_out = 2 * L_in - 255;	
			end 
			else begin
				L_out = 255 - 2*L_in;
			end
		end
endmodule
module L_abs(
	input [7:0] L_in,
	output reg [7:0] L_out
);

	always @(*) begin
			if(2 * L_in > 255) begin
				L_out = 2 * L_in - 255;	
			end 
			else begin
				L_out = 255 - 2*L_in;
			end
		end
endmodule