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_data (
        input clk,
        input resetn,
        input ld_xys,
        input [7:0] x_anchor_in,
        input [6:0] y_anchor_in,
        input [3:0] sprite_id_in,
        input [5:0] pixel_loc,
        output [17:0] color_out,
        output [7:0] x_out,
        output [6:0] y_out
    );


reg [7:0] x_anchor;
reg [6:0] y_anchor;
reg [3:0] sprite_id;
wire [3:0] w_sprite_id;
assign w_sprite_id = sprite_id;

assign x_out = x_anchor + pixel_loc[2:0];
assign y_out = y_anchor + pixel_loc[5:3];

always @ (posedge clk) begin
    if (!resetn) begin
        x_anchor <= 8'd0;
        y_anchor <= 7'd0;
        sprite_id <= 4'd0;
    end
    else begin
        if (ld_xys) begin
            x_anchor <= x_anchor_in;
            y_anchor <= y_anchor_in;
            sprite_id <= sprite_id_in;
        end
    end
end

get_sprite_color gsc(
                     .get_x(pixel_loc[2:0]),
                     .get_y(pixel_loc[5:3]),
                     .sprite_id(w_sprite_id),
                     .color_data(color_out)
                 );

endmodule
module sprite_data (
        input clk,
        input resetn,
        input ld_xys,
        input [7:0] x_anchor_in,
        input [6:0] y_anchor_in,
        input [3:0] sprite_id_in,
        input [5:0] pixel_loc,
        output [17:0] color_out,
        output [7:0] x_out,
        output [6:0] y_out
    );



reg [7:0] x_anchor;
reg [6:0] y_anchor;
reg [3:0] sprite_id;
wire [3:0] w_sprite_id;
assign w_sprite_id = sprite_id;

assign x_out = x_anchor + pixel_loc[2:0];
assign y_out = y_anchor + pixel_loc[5:3];

always @ (posedge clk) begin
    if (!resetn) begin
        x_anchor <= 8'd0;
        y_anchor <= 7'd0;
        sprite_id <= 4'd0;
    end
    else begin
        if (ld_xys) begin
            x_anchor <= x_anchor_in;
            y_anchor <= y_anchor_in;
            sprite_id <= sprite_id_in;
        end
    end
end

get_sprite_color gsc(
                     .get_x(pixel_loc[2:0]),
                     .get_y(pixel_loc[5:3]),
                     .sprite_id(w_sprite_id),
                     .color_data(color_out)
                 );

endmodule