data/full_repos/permissive/165873996/src/modified/gameover_display.v
1: b'%Warning-WIDTH: data/full_repos/permissive/165873996/src/modified/gameover_display.v:12: Operator ASSIGNW expects 4 bits on the Assign RHS, but Assign RHS\'s SUB generates 32 or 10 bits.\n                                                                                       : ... In instance gameover_display\n assign row = y - 72;\n            ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/165873996/src/modified/gameover_display.v:13: Operator ASSIGNW expects 7 bits on the Assign RHS, but Assign RHS\'s SUB generates 32 or 10 bits.\n                                                                                       : ... In instance gameover_display\n assign col = x - 282;\n            ^\n%Error: data/full_repos/permissive/165873996/src/modified/gameover_display.v:20: Cannot find file containing module: \'MK9_gameover_rom\'\n MK9_gameover_rom gameover_rom_unit (.clock(clk), .address({row,col}), .q(rgb_out));\n ^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/165873996/src/modified,data/full_repos/permissive/165873996/MK9_gameover_rom\n             data/full_repos/permissive/165873996/src/modified,data/full_repos/permissive/165873996/MK9_gameover_rom.v\n             data/full_repos/permissive/165873996/src/modified,data/full_repos/permissive/165873996/MK9_gameover_rom.sv\n             MK9_gameover_rom\n             MK9_gameover_rom.v\n             MK9_gameover_rom.sv\n             obj_dir/MK9_gameover_rom\n             obj_dir/MK9_gameover_rom.v\n             obj_dir/MK9_gameover_rom.sv\n%Error: Exiting due to 1 error(s), 2 warning(s)\n'
module gameover_display
    (
        input wire clk,
        input wire [9:0] x, y,
        output wire [11:0] rgb_out,
        output wire gameover_on
    );
	

	wire [3:0] row;
	wire [6:0] col;
	assign row = y - 72;
	assign col = x - 282;
	

	assign gameover_on = (x >= 282 && x < 360 && y >= 72 && y < 86 && rgb_out != 12'b011011011110) ? 1 : 0;
	

`ifndef ICARUS_SIMULATOR
	MK9_gameover_rom gameover_rom_unit (.clock(clk), .address({row,col}), .q(rgb_out));
`else
	gameover_rom gameover_rom_unit (.clk(clk), .row(row), .col(col), .color_data(rgb_out));
`endif

endmodule
module gameover_display
    (
        input wire clk,
        input wire [9:0] x, y,
        output wire [11:0] rgb_out,
        output wire gameover_on
    );

	

	wire [3:0] row;
	wire [6:0] col;
	assign row = y - 72;
	assign col = x - 282;
	

	assign gameover_on = (x >= 282 && x < 360 && y >= 72 && y < 86 && rgb_out != 12'b011011011110) ? 1 : 0;
	

`ifndef ICARUS_SIMULATOR
	MK9_gameover_rom gameover_rom_unit (.clock(clk), .address({row,col}), .q(rgb_out));
`else
	gameover_rom gameover_rom_unit (.clk(clk), .row(row), .col(col), .color_data(rgb_out));
`endif

endmodule