data/full_repos/permissive/175316557/sprite.v
 line:42: before: "."
1: b'%Warning-WIDTHCONCAT: data/full_repos/permissive/175316557/sprite.v:203: Unsized numbers/parameters not allowed in concatenations.\n                                                                       : ... In instance sprite_draw.s_data.gsc\nassign mem_offset_x = {7-get_x,2\'b00};\n                        ^\n                      ... Use "/* verilator lint_off WIDTHCONCAT */" and lint_on around source to disable this message.\n%Warning-WIDTHCONCAT: data/full_repos/permissive/175316557/sprite.v:203: Unsized numbers/parameters not allowed in replications.\n                                                                       : ... In instance sprite_draw.s_data.gsc\nassign mem_offset_x = {7-get_x,2\'b00};\n                              ^\n%Warning-WIDTH: data/full_repos/permissive/175316557/sprite.v:89: Operator ADD expects 8 bits on the RHS, but RHS\'s SEL generates 3 bits.\n                                                                : ... In instance sprite_draw.s_data\nassign x_out = x_anchor + pixel_loc[2:0];\n                        ^\n%Warning-WIDTH: data/full_repos/permissive/175316557/sprite.v:90: Operator ADD expects 7 bits on the RHS, but RHS\'s SEL generates 3 bits.\n                                                                : ... In instance sprite_draw.s_data\nassign y_out = y_anchor + pixel_loc[5:3];\n                        ^\n%Error: data/full_repos/permissive/175316557/sprite.v:26: Cannot find file containing module: \'vga_adapter\'\nvga_adapter VGA(\n^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/175316557,data/full_repos/permissive/175316557/vga_adapter\n             data/full_repos/permissive/175316557,data/full_repos/permissive/175316557/vga_adapter.v\n             data/full_repos/permissive/175316557,data/full_repos/permissive/175316557/vga_adapter.sv\n             vga_adapter\n             vga_adapter.v\n             vga_adapter.sv\n             obj_dir/vga_adapter\n             obj_dir/vga_adapter.v\n             obj_dir/vga_adapter.sv\n%Error: Exiting due to 1 error(s), 4 warning(s)\n'
module sprite_draw(
           input clk,
           input resetn,
           input [7:0] x_in,
           input [6:0] y_in,
           input begin_draw,
           input [3:0] sprite_id_in,

           output          VGA_CLK,
           output          VGA_HS,
           output          VGA_VS,
           output          VGA_BLANK,
           output          VGA_SYNC,
           output  [9:0]   VGA_R,
           output  [9:0]   VGA_G,
           output  [9:0]   VGA_B
       );

wire [17:0] colour;
wire [7:0] x;
wire [6:0] y;
wire writeEn;
wire w_ld_xys;
wire [5:0] w_pixel_loc;

vga_adapter VGA(
                .resetn(resetn),
                .clock(clk),
                .colour(colour),
                .x(x),
                .y(y),
                .plot(writeEn),

                .VGA_R(VGA_R),
                .VGA_G(VGA_G),
                .VGA_B(VGA_B),
                .VGA_HS(VGA_HS),
                .VGA_VS(VGA_VS),
                .VGA_BLANK(VGA_BLANK),
                .VGA_SYNC(VGA_SYNC),
                .VGA_CLK(VGA_CLK));
defparam VGA.RESOLUTION = "160x120";
defparam VGA.MONOCHROME = "FALSE";
defparam VGA.BITS_PER_COLOUR_CHANNEL = 6;
defparam VGA.BACKGROUND_IMAGE = "black.mif";

sprite_data s_data (
                .clk(clk),
                .resetn(resetn),
                .ld_xys(w_ld_xys),
                .x_anchor_in(x_in),
                .y_anchor_in(y_in),
                .sprite_id_in(sprite_id_in),
                .pixel_loc(w_pixel_loc),
                .color_out(colour),
                .x_out(x),
                .y_out(y)
            );
sprite_control s_control (
                   .clk(clk),
                   .resetn(resetn),
                   .go(begin_draw),
                   .plot(writeEn),
                   .ld_xys(w_ld_xys),
                   .pixel_loc(w_pixel_loc)
               );
endmodule
module sprite_draw(
           input clk,
           input resetn,
           input [7:0] x_in,
           input [6:0] y_in,
           input begin_draw,
           input [3:0] sprite_id_in,

           output          VGA_CLK,
           output          VGA_HS,
           output          VGA_VS,
           output          VGA_BLANK,
           output          VGA_SYNC,
           output  [9:0]   VGA_R,
           output  [9:0]   VGA_G,
           output  [9:0]   VGA_B
       );


wire [17:0] colour;
wire [7:0] x;
wire [6:0] y;
wire writeEn;
wire w_ld_xys;
wire [5:0] w_pixel_loc;

vga_adapter VGA(
                .resetn(resetn),
                .clock(clk),
                .colour(colour),
                .x(x),
                .y(y),
                .plot(writeEn),

                .VGA_R(VGA_R),
                .VGA_G(VGA_G),
                .VGA_B(VGA_B),
                .VGA_HS(VGA_HS),
                .VGA_VS(VGA_VS),
                .VGA_BLANK(VGA_BLANK),
                .VGA_SYNC(VGA_SYNC),
                .VGA_CLK(VGA_CLK));
defparam VGA.RESOLUTION = "160x120";
defparam VGA.MONOCHROME = "FALSE";
defparam VGA.BITS_PER_COLOUR_CHANNEL = 6;
defparam VGA.BACKGROUND_IMAGE = "black.mif";

sprite_data s_data (
                .clk(clk),
                .resetn(resetn),
                .ld_xys(w_ld_xys),
                .x_anchor_in(x_in),
                .y_anchor_in(y_in),
                .sprite_id_in(sprite_id_in),
                .pixel_loc(w_pixel_loc),
                .color_out(colour),
                .x_out(x),
                .y_out(y)
            );
sprite_control s_control (
                   .clk(clk),
                   .resetn(resetn),
                   .go(begin_draw),
                   .plot(writeEn),
                   .ld_xys(w_ld_xys),
                   .pixel_loc(w_pixel_loc)
               );
endmodule