data/full_repos/permissive/529642835/rtl/MotionObjectVerticalControl.v
1: b'%Warning-WIDTH: data/full_repos/permissive/529642835/rtl/MotionObjectVerticalControl.v:22: Operator XOR expects 4 bits on the RHS, but RHS\'s VARREF \'PLAYER2\' generates 1 bits.\n                                                                                         : ... In instance MotionObjectVerticalControl\nassign addr = { q ^ PLAYER2, ~CK1 ^ PLAYER2 };               \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 MotionObjectVerticalControl
(
   input clk, ce2Hd5,
   input [15:0] SR,
   input [7:0] VC,
   input CK1, PLAYER2,
   
   output [4:0] addr,
   output reg MATCHn
);

wire [7:0] sum = VC + SR[15:8];

reg [3:0] q;
always @(posedge clk)
if (CK1 & ce2Hd5)
begin
   MATCHn <= ~(sum[7] & sum[6] & sum[5] & sum[4]);
   q <= sum[3:0];
end
   
assign addr = { q ^ PLAYER2, ~CK1 ^ PLAYER2 };

endmodule
module MotionObjectVerticalControl
(
   input clk, ce2Hd5,
   input [15:0] SR,
   input [7:0] VC,
   input CK1, PLAYER2,
   
   output [4:0] addr,
   output reg MATCHn
);


wire [7:0] sum = VC + SR[15:8];

reg [3:0] q;
always @(posedge clk)
if (CK1 & ce2Hd5)
begin
   MATCHn <= ~(sum[7] & sum[6] & sum[5] & sum[4]);
   q <= sum[3:0];
end
   
assign addr = { q ^ PLAYER2, ~CK1 ^ PLAYER2 };

endmodule