data/full_repos/permissive/147690299/lab/26_seq_counter/rtl/board_terasic.sv
1: b"%Error: data/full_repos/permissive/147690299/lab/26_seq_counter/rtl/board_terasic.sv:20: Cannot find file containing module: 'counter'\n    counter\n    ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/147690299/lab/26_seq_counter/rtl,data/full_repos/permissive/147690299/counter\n             data/full_repos/permissive/147690299/lab/26_seq_counter/rtl,data/full_repos/permissive/147690299/counter.v\n             data/full_repos/permissive/147690299/lab/26_seq_counter/rtl,data/full_repos/permissive/147690299/counter.sv\n             counter\n             counter.v\n             counter.sv\n             obj_dir/counter\n             obj_dir/counter.v\n             obj_dir/counter.sv\n%Error: data/full_repos/permissive/147690299/lab/26_seq_counter/rtl/board_terasic.sv:33: Cannot find file containing module: 'seven_seg_6'\n    seven_seg_6 hex\n    ^~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module board_terasic
(
    input         CLK,
    input  [ 9:0] SW,
    input  [ 1:0] KEY,
    output [ 9:0] LED,
    output [ 7:0] HEX0,
    output [ 7:0] HEX1,
    output [ 7:0] HEX2,
    output [ 7:0] HEX3,
    output [ 7:0] HEX4,
    output [ 7:0] HEX5 
);
    localparam WIDTH   = 64;
    localparam LSB_NUM = 22;

    wire [WIDTH-1:0] cntr;

    counter
    #(
        .WIDTH ( WIDTH  )
    )
    counter
    (
        .clk   ( CLK    ),
        .rst_n ( KEY[0] ),
        .cntr  ( cntr   )
    );

    wire [23:0] data = cntr [LSB_NUM +: 24];

    seven_seg_6 hex
    (
        .data ( data ),
        .hex0 ( HEX0 ),
        .hex1 ( HEX1 ),
        .hex2 ( HEX2 ),
        .hex3 ( HEX3 ),
        .hex4 ( HEX4 ),
        .hex5 ( HEX5 ) 
    );

    assign LED = cntr [LSB_NUM +: 10];

endmodule
module board_terasic
(
    input         CLK,
    input  [ 9:0] SW,
    input  [ 1:0] KEY,
    output [ 9:0] LED,
    output [ 7:0] HEX0,
    output [ 7:0] HEX1,
    output [ 7:0] HEX2,
    output [ 7:0] HEX3,
    output [ 7:0] HEX4,
    output [ 7:0] HEX5 
);

    localparam WIDTH   = 64;
    localparam LSB_NUM = 22;

    wire [WIDTH-1:0] cntr;

    counter
    #(
        .WIDTH ( WIDTH  )
    )
    counter
    (
        .clk   ( CLK    ),
        .rst_n ( KEY[0] ),
        .cntr  ( cntr   )
    );

    wire [23:0] data = cntr [LSB_NUM +: 24];

    seven_seg_6 hex
    (
        .data ( data ),
        .hex0 ( HEX0 ),
        .hex1 ( HEX1 ),
        .hex2 ( HEX2 ),
        .hex3 ( HEX3 ),
        .hex4 ( HEX4 ),
        .hex5 ( HEX5 ) 
    );

    assign LED = cntr [LSB_NUM +: 10];

endmodule