data/full_repos/permissive/132176809/number.v
1: b'%Error: data/full_repos/permissive/132176809/number.v:51: Cannot find file containing module: \'image\'\n    image\n    ^~~~~\n        ... Looked in:\n             data/full_repos/permissive/132176809,data/full_repos/permissive/132176809/image\n             data/full_repos/permissive/132176809,data/full_repos/permissive/132176809/image.v\n             data/full_repos/permissive/132176809,data/full_repos/permissive/132176809/image.sv\n             image\n             image.v\n             image.sv\n             obj_dir/image\n             obj_dir/image.v\n             obj_dir/image.sv\n%Warning-WIDTH: data/full_repos/permissive/132176809/number.v:60: Operator ASSIGNW expects 8 bits on the Assign RHS, but Assign RHS\'s SUB generates 10 bits.\n                                                                : ... In instance number\n    assign x_img = x_px - x_numbers;\n                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/132176809/number.v:61: Operator ASSIGNW expects 8 bits on the Assign RHS, but Assign RHS\'s ADD generates 32 or 10 bits.\n                                                                : ... In instance number\n    assign y_img = (y_px - y_numbers) + number * height_numbers;\n                 ^\n%Error: Exiting due to 1 error(s), 2 warning(s)\n'
module number (
                input wire        clk,
                input wire        clr,
                input wire [9:0]  x_px,
                input wire [9:0]  y_px,
                input wire [9:0]  x_numbers,
                input wire [9:0]  y_numbers,
                input wire [3:0]  number,
                output reg [5:0]  color_px
                );
    

    parameter [5:0] black  = 6'b000000;
    parameter [5:0] blue   = 6'b000011;
    parameter [5:0] green  = 6'b001100;
    parameter [5:0] red    = 6'b110000;
    parameter [5:0] yellow = 6'b111100;
    parameter [5:0] white  = 6'b111111;

    parameter background = white;
    parameter background_number = white;
    parameter ink = blue;
    

    parameter width_numbers = 21;
    parameter height_numbers = 23;


    reg [7:0] x_img;
    reg [7:0] y_img;
    reg pixel;
   

    image
    image01 (
            .clk (clk),
            .x_img (x_img),
            .y_img (y_img),
            .pixel (pixel)
            );


    assign x_img = x_px - x_numbers;
    assign y_img = (y_px - y_numbers) + number * height_numbers;


    always @(posedge clk)
    begin


        if ((x_px >= x_numbers) && (x_px < x_numbers + width_numbers) && (y_px >= y_numbers) && (y_px < y_numbers + height_numbers))   
        begin
            if (pixel)
                color_px = ink;
            else
                color_px = background_number;
        end
        else
           color_px = background;
    end
endmodule
module number (
                input wire        clk,
                input wire        clr,
                input wire [9:0]  x_px,
                input wire [9:0]  y_px,
                input wire [9:0]  x_numbers,
                input wire [9:0]  y_numbers,
                input wire [3:0]  number,
                output reg [5:0]  color_px
                );

    

    parameter [5:0] black  = 6'b000000;
    parameter [5:0] blue   = 6'b000011;
    parameter [5:0] green  = 6'b001100;
    parameter [5:0] red    = 6'b110000;
    parameter [5:0] yellow = 6'b111100;
    parameter [5:0] white  = 6'b111111;

    parameter background = white;
    parameter background_number = white;
    parameter ink = blue;
    

    parameter width_numbers = 21;
    parameter height_numbers = 23;


    reg [7:0] x_img;
    reg [7:0] y_img;
    reg pixel;
   

    image
    image01 (
            .clk (clk),
            .x_img (x_img),
            .y_img (y_img),
            .pixel (pixel)
            );


    assign x_img = x_px - x_numbers;
    assign y_img = (y_px - y_numbers) + number * height_numbers;


    always @(posedge clk)
    begin


        if ((x_px >= x_numbers) && (x_px < x_numbers + width_numbers) && (y_px >= y_numbers) && (y_px < y_numbers + height_numbers))   
        begin
            if (pixel)
                color_px = ink;
            else
                color_px = background_number;
        end
        else
           color_px = background;
    end
endmodule