data/full_repos/permissive/426864978/lab2/task2/task2.sv
1: b'%Error: data/full_repos/permissive/426864978/lab2/task2/task2.sv:29: Cannot find file containing module: \'fillscreen\'\n    fillscreen fs(.clk(CLOCK_50), \n    ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/426864978/lab2/task2,data/full_repos/permissive/426864978/fillscreen\n             data/full_repos/permissive/426864978/lab2/task2,data/full_repos/permissive/426864978/fillscreen.v\n             data/full_repos/permissive/426864978/lab2/task2,data/full_repos/permissive/426864978/fillscreen.sv\n             fillscreen\n             fillscreen.v\n             fillscreen.sv\n             obj_dir/fillscreen\n             obj_dir/fillscreen.v\n             obj_dir/fillscreen.sv\n%Error: data/full_repos/permissive/426864978/lab2/task2/task2.sv:39: Cannot find file containing module: \'vga_adapter\'\n    vga_adapter#(.RESOLUTION("160x120")) vga_u0(.resetn(rst_n),\n    ^~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n'
module task2(input logic CLOCK_50, input logic [3:0] KEY,
             input logic [9:0] SW, output logic [9:0] LEDR,
             output logic [6:0] HEX0, output logic [6:0] HEX1, output logic [6:0] HEX2,
             output logic [6:0] HEX3, output logic [6:0] HEX4, output logic [6:0] HEX5,
             output logic [7:0] VGA_R, output logic [7:0] VGA_G, output logic [7:0] VGA_B,
             output logic VGA_HS, output logic VGA_VS, output logic VGA_CLK,
             output logic [7:0] VGA_X, output logic [6:0] VGA_Y,
             output logic [2:0] VGA_COLOUR, output logic VGA_PLOT);

    reg done, start;
    wire rst_n;

    logic [9:0] VGA_R_10;
    logic [9:0] VGA_G_10;
    logic [9:0] VGA_B_10;
    logic VGA_BLANK, VGA_SYNC;

    assign rst_n = KEY[3];
    assign VGA_R = VGA_R_10[9:2];
    assign VGA_G = VGA_G_10[9:2];
    assign VGA_B = VGA_B_10[9:2];

    always @(*)
        if (done)
            start <= 1'b0;
        else
            start <= 1'b1;

    fillscreen fs(.clk(CLOCK_50), 
                  .rst_n(rst_n),
                  .colour(VGA_COLOUR),
                  .start(start),
                  .done(done),
                  .vga_x(VGA_X),
                  .vga_y(VGA_Y),
                  .vga_colour(VGA_COLOUR),
                  .vga_plot(VGA_PLOT));

    vga_adapter#(.RESOLUTION("160x120")) vga_u0(.resetn(rst_n),
                                                .clock(CLOCK_50),
                                                .colour(VGA_COLOUR),
                                                .x(VGA_X),
                                                .y(VGA_Y),
                                                .plot(VGA_PLOT),
                                                .VGA_R(VGA_R_10),
                                                .VGA_G(VGA_G_10),
                                                .VGA_B(VGA_B_10),
                                                .*);

endmodule
module task2(input logic CLOCK_50, input logic [3:0] KEY,
             input logic [9:0] SW, output logic [9:0] LEDR,
             output logic [6:0] HEX0, output logic [6:0] HEX1, output logic [6:0] HEX2,
             output logic [6:0] HEX3, output logic [6:0] HEX4, output logic [6:0] HEX5,
             output logic [7:0] VGA_R, output logic [7:0] VGA_G, output logic [7:0] VGA_B,
             output logic VGA_HS, output logic VGA_VS, output logic VGA_CLK,
             output logic [7:0] VGA_X, output logic [6:0] VGA_Y,
             output logic [2:0] VGA_COLOUR, output logic VGA_PLOT);


    reg done, start;
    wire rst_n;

    logic [9:0] VGA_R_10;
    logic [9:0] VGA_G_10;
    logic [9:0] VGA_B_10;
    logic VGA_BLANK, VGA_SYNC;

    assign rst_n = KEY[3];
    assign VGA_R = VGA_R_10[9:2];
    assign VGA_G = VGA_G_10[9:2];
    assign VGA_B = VGA_B_10[9:2];

    always @(*)
        if (done)
            start <= 1'b0;
        else
            start <= 1'b1;

    fillscreen fs(.clk(CLOCK_50), 
                  .rst_n(rst_n),
                  .colour(VGA_COLOUR),
                  .start(start),
                  .done(done),
                  .vga_x(VGA_X),
                  .vga_y(VGA_Y),
                  .vga_colour(VGA_COLOUR),
                  .vga_plot(VGA_PLOT));

    vga_adapter#(.RESOLUTION("160x120")) vga_u0(.resetn(rst_n),
                                                .clock(CLOCK_50),
                                                .colour(VGA_COLOUR),
                                                .x(VGA_X),
                                                .y(VGA_Y),
                                                .plot(VGA_PLOT),
                                                .VGA_R(VGA_R_10),
                                                .VGA_G(VGA_G_10),
                                                .VGA_B(VGA_B_10),
                                                .*);

endmodule