data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1021: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:319: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:319: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:319: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:319: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:319: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:319: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:320: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:320: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:320: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:320: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:320: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:320: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:321: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:443: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:443: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:492: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:763: 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%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:827: Operator ASSIGN expects 32 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 34 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\n   msg_buf_in = {24\'b0, hue};\n              ^\n%Error: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:845: 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/Qsys/synthesis/submodules,data/full_repos/permissive/517493654/MSG_FIFO\n             data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules,data/full_repos/permissive/517493654/MSG_FIFO.v\n             data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules,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/Qsys/synthesis/submodules/EEE_IMGPROC.v:858: 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/Qsys/synthesis/submodules/EEE_IMGPROC.v:869: Cannot find file containing module: \'STREAM_REG\'\nSTREAM_REG #(.DATA_WIDTH(26)) out_reg (\n^~~~~~~~~~\n%Error: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:961: Cannot find file containing module: \'distance_cal\'\ndistance_cal red_ball( \n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:969: Cannot find file containing module: \'distance_cal\'\ndistance_cal pink_ball( \n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:976: Cannot find file containing module: \'distance_cal\'\ndistance_cal green_ball(\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:983: Cannot find file containing module: \'distance_cal\'\ndistance_cal orange_ball(\n^~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:994: Operator COND expects 12 bits on the Conditional True, but Conditional True\'s VARREF \'distance_r\' generates 1 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\nassign c_1 = (valid_r && distance_r)? distance_r : 12\'b111111111111;\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:995: Operator LT expects 12 bits on the LHS, but LHS\'s VARREF \'distance_p\' generates 1 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\nassign c_2 = (valid_p && distance_p < c_1) ? distance_p : c_1;\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:995: Operator COND expects 12 bits on the Conditional True, but Conditional True\'s VARREF \'distance_p\' generates 1 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\nassign c_2 = (valid_p && distance_p < c_1) ? distance_p : c_1;\n                                           ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:996: Operator LT expects 12 bits on the LHS, but LHS\'s VARREF \'distance_g\' generates 1 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\nassign c_3 = (valid_g && distance_g < c_2) ? distance_g : c_2;\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:996: Operator COND expects 12 bits on the Conditional True, but Conditional True\'s VARREF \'distance_g\' generates 1 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\nassign c_3 = (valid_g && distance_g < c_2) ? distance_g : c_2;\n                                           ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:997: Operator LT expects 12 bits on the LHS, but LHS\'s VARREF \'distance_o\' generates 1 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\nassign c_4 = (valid_o && distance_o < c_3) ? distance_o : c_3;\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:997: Operator COND expects 12 bits on the Conditional True, but Conditional True\'s VARREF \'distance_o\' generates 1 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\nassign c_4 = (valid_o && distance_o < c_3) ? distance_o : c_3;\n                                           ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:998: Operator LT expects 12 bits on the LHS, but LHS\'s VARREF \'distance_b\' generates 1 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\nassign c_5 = (valid_b && distance_b < c_4) ? distance_b : c_4;\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:998: Operator COND expects 12 bits on the Conditional True, but Conditional True\'s VARREF \'distance_b\' generates 1 bits.\n                                                                                                                               : ... In instance EEE_IMGPROC\nassign c_5 = (valid_b && distance_b < c_4) ? distance_b : c_4;\n                                           ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1000: Operator EQ expects 12 bits on the RHS, but RHS\'s VARREF \'distance_r\' generates 1 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\nassign data_colour = (c_5 == distance_r) ? 3\'b000 :\n                          ^~\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1001: Operator EQ expects 12 bits on the RHS, but RHS\'s VARREF \'distance_p\' generates 1 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n      (c_5 == distance_p) ? 3\'b001 :\n           ^~\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1002: Operator EQ expects 12 bits on the RHS, but RHS\'s VARREF \'distance_g\' generates 1 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n      (c_5 == distance_g) ? 3\'b001 :\n           ^~\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1003: Operator EQ expects 12 bits on the RHS, but RHS\'s VARREF \'distance_o\' generates 1 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n      (c_5 == distance_o) ? 3\'b010 :\n           ^~\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1004: Operator EQ expects 12 bits on the RHS, but RHS\'s VARREF \'distance_b\' generates 1 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n      (c_5 == distance_b) ? 3\'b100 : 3\'b111;\n           ^~\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1008: Operator COND expects 16 bits on the Conditional True, but Conditional True\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  0 : message_to_ESP32 = (formate_r)? {1\'b0, data_colour, distance_r}: {1\'b1, data_colour, red_center_x_pixel};\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1008: Operator COND expects 16 bits on the Conditional False, but Conditional False\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  0 : message_to_ESP32 = (formate_r)? {1\'b0, data_colour, distance_r}: {1\'b1, data_colour, red_center_x_pixel};\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1009: Operator COND expects 16 bits on the Conditional True, but Conditional True\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  1 : message_to_ESP32 = (formate_p)? {1\'b0, data_colour, distance_p}: {1\'b1, data_colour, pink_center_x_pixel};\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1009: Operator COND expects 16 bits on the Conditional False, but Conditional False\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  1 : message_to_ESP32 = (formate_p)? {1\'b0, data_colour, distance_p}: {1\'b1, data_colour, pink_center_x_pixel};\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1010: Operator COND expects 16 bits on the Conditional True, but Conditional True\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  2 : message_to_ESP32 = (formate_g)? {1\'b0, data_colour, distance_g}: {1\'b1, data_colour, green_center_x_pixel};\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1010: Operator COND expects 16 bits on the Conditional False, but Conditional False\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  2 : message_to_ESP32 = (formate_g)? {1\'b0, data_colour, distance_g}: {1\'b1, data_colour, green_center_x_pixel};\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1011: Operator COND expects 16 bits on the Conditional True, but Conditional True\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  3 : message_to_ESP32 = (formate_o)? {1\'b0, data_colour, distance_o}: {1\'b1, data_colour, orange_center_x_pixel};\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1011: Operator COND expects 16 bits on the Conditional False, but Conditional False\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  3 : message_to_ESP32 = (formate_o)? {1\'b0, data_colour, distance_o}: {1\'b1, data_colour, orange_center_x_pixel};\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1012: Operator COND expects 16 bits on the Conditional True, but Conditional True\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  4 : message_to_ESP32 = (formate_b)? {1\'b0, data_colour, distance_b}: {1\'b1, data_colour, black_center_x_pixel};\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/517493654/04-Vision/DE10_LITE_D8M_VIP_16/Qsys/synthesis/submodules/EEE_IMGPROC.v:1012: Operator COND expects 16 bits on the Conditional False, but Conditional False\'s REPLICATE generates 5 bits.\n                                                                                                                                : ... In instance EEE_IMGPROC\n  4 : message_to_ESP32 = (formate_b)? {1\'b0, data_colour, distance_b}: {1\'b1, data_colour, black_center_x_pixel};\n                                    ^\n%Error: Exiting due to 7 error(s), 52 warning(s)\n'
module comparator(
    input [7:0] a_1,
    input [7:0] b_1,
    output reg [7:0] a_0,
    output reg [7:0] b_0
);

    always @(a_1, b_1) begin
        if (a_1 > b_1) begin
            a_0 = a_1;
            b_0 = b_1;
        end
        else begin
            a_0 = b_1;
            b_0 = a_1;
        end
    end
endmodule
module comparator(
    input [7:0] a_1,
    input [7:0] b_1,
    output reg [7:0] a_0,
    output reg [7:0] b_0
);


    always @(a_1, b_1) begin
        if (a_1 > b_1) begin
            a_0 = a_1;
            b_0 = b_1;
        end
        else begin
            a_0 = b_1;
            b_0 = a_1;
        end
    end
endmodule