data/full_repos/permissive/432364608/sources/new/smooth.v
1: b'%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:49: Operator ADD expects 32 bits on the LHS, but LHS\'s SEL generates 8 bits.\n                                                                            : ... In instance smooth\n            transform =  RGB_Smooth[15:8] +\n                                          ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:49: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'top\' generates 8 bits.\n                                                                            : ... In instance smooth\n            transform =  RGB_Smooth[15:8] +\n                                          ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:50: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'bot\' generates 8 bits.\n                                                                            : ... In instance smooth\n                         top +\n                             ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:51: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'left\' generates 8 bits.\n                                                                            : ... In instance smooth\n                         bot +\n                             ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:52: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'right\' generates 8 bits.\n                                                                            : ... In instance smooth\n                         left +\n                              ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:53: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'top_left\' generates 8 bits.\n                                                                            : ... In instance smooth\n                         right +\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:54: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'top_right\' generates 8 bits.\n                                                                            : ... In instance smooth\n                         top_left +\n                                  ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:55: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'bot_left\' generates 8 bits.\n                                                                            : ... In instance smooth\n                         top_right +\n                                   ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:56: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'bot_right\' generates 8 bits.\n                                                                            : ... In instance smooth\n                         bot_left +\n                                  ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:61: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s SUB generates 32 bits.\n                                                                            : ... In instance smooth\n            RGB_Smoothened[7:0]=(transform >> 3) - (transform >> 6);  \n                               ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:62: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s SUB generates 32 bits.\n                                                                            : ... In instance smooth\n            RGB_Smoothened[15:8]=(transform >> 3) - (transform >> 6);  \n                                ^\n%Warning-WIDTH: data/full_repos/permissive/432364608/sources/new/smooth.v:63: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s SUB generates 32 bits.\n                                                                            : ... In instance smooth\n            RGB_Smoothened[23:16]=(transform >> 3) - (transform >> 6);  \n                                 ^\n%Error: Exiting due to 12 warning(s)\n'
module smooth(
    input clk,
    input reset,
    input [23:0] RGB_Smooth,
    input [7:0] top,
    input [7:0] bot,
    input [7:0] left,
    input [7:0] right,
    input [7:0] top_left,
    input [7:0] top_right,
    input [7:0] bot_left,
    input [7:0] bot_right,
    output reg [23:0] RGB_Smoothened
    );
    
    
    integer transform;
    

    initial begin

        RGB_Smoothened   = 0;
    end
    



    always @(posedge clk)begin

        if(reset)begin
            RGB_Smoothened   = 0;
            end
        else begin

            transform =  RGB_Smooth[15:8] +
                         top +
                         bot +
                         left +
                         right +
                         top_left +
                         top_right +
                         bot_left +
                         bot_right;
                         


            RGB_Smoothened[7:0]=(transform >> 3) - (transform >> 6);
            RGB_Smoothened[15:8]=(transform >> 3) - (transform >> 6);
            RGB_Smoothened[23:16]=(transform >> 3) - (transform >> 6);
            end
       end
    
endmodule
module smooth(
    input clk,
    input reset,
    input [23:0] RGB_Smooth,
    input [7:0] top,
    input [7:0] bot,
    input [7:0] left,
    input [7:0] right,
    input [7:0] top_left,
    input [7:0] top_right,
    input [7:0] bot_left,
    input [7:0] bot_right,
    output reg [23:0] RGB_Smoothened
    );

    
    
    integer transform;
    

    initial begin

        RGB_Smoothened   = 0;
    end
    



    always @(posedge clk)begin

        if(reset)begin
            RGB_Smoothened   = 0;
            end
        else begin

            transform =  RGB_Smooth[15:8] +
                         top +
                         bot +
                         left +
                         right +
                         top_left +
                         top_right +
                         bot_left +
                         bot_right;
                         


            RGB_Smoothened[7:0]=(transform >> 3) - (transform >> 6);
            RGB_Smoothened[15:8]=(transform >> 3) - (transform >> 6);
            RGB_Smoothened[23:16]=(transform >> 3) - (transform >> 6);
            end
       end
    
endmodule