data/full_repos/permissive/521104862/resources/Psychic5_core_ModelSim/Psychic5_component/hybrid/M67636.v
1: b'%Warning-WIDTH: data/full_repos/permissive/521104862/resources/Psychic5_core_ModelSim/Psychic5_component/hybrid/M67636.v:41: Operator ADD expects 5 bits on the RHS, but RHS\'s VARREF \'i_BLENDMODE\' generates 1 bits.\n                                                                                                                           : ... In instance M67636\nwire    [4:0]   COLORADDER  = TMMUX + i_OBJPIXEL + i_BLENDMODE;\n                                                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module M67636
(
    input   wire    [3:0]   i_OBJPIXEL,
    input   wire    [3:0]   i_TMPIXEL,

    input   wire            i_TMEN,
    input   wire            i_OUTEN,
    input   wire            i_FORCEWHITE,

    output  wire            o_CARRY,
    input   wire            i_BLENDMODE,

    output  wire    [3:0]   o_OUT
);

wire    [3:0]   TMMUX       = (i_TMEN == 1'b0) ? 4'h0 :
                              i_TMPIXEL;

wire    [4:0]   COLORADDER  = TMMUX + i_OBJPIXEL + i_BLENDMODE;
assign  o_CARRY = COLORADDER[4];

assign  o_OUT   = (i_OUTEN == 1'b0) ? 4'h0 :
                  (i_FORCEWHITE == 1'b1) ? 4'hF :
                  COLORADDER[3:0];

endmodule
module M67636
(
    input   wire    [3:0]   i_OBJPIXEL,
    input   wire    [3:0]   i_TMPIXEL,

    input   wire            i_TMEN,
    input   wire            i_OUTEN,
    input   wire            i_FORCEWHITE,

    output  wire            o_CARRY,
    input   wire            i_BLENDMODE,

    output  wire    [3:0]   o_OUT
);


wire    [3:0]   TMMUX       = (i_TMEN == 1'b0) ? 4'h0 :
                              i_TMPIXEL;

wire    [4:0]   COLORADDER  = TMMUX + i_OBJPIXEL + i_BLENDMODE;
assign  o_CARRY = COLORADDER[4];

assign  o_OUT   = (i_OUTEN == 1'b0) ? 4'h0 :
                  (i_FORCEWHITE == 1'b1) ? 4'hF :
                  COLORADDER[3:0];

endmodule