data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v
1: b"%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:27: Cannot find file containing module: 'clk_divider'\n    clk_divider # (.w (24)) i_clk_divider\n    ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite,data/full_repos/permissive/110151336/clk_divider\n             data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite,data/full_repos/permissive/110151336/clk_divider.v\n             data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite,data/full_repos/permissive/110151336/clk_divider.sv\n             clk_divider\n             clk_divider.v\n             clk_divider.sv\n             obj_dir/clk_divider\n             obj_dir/clk_divider.v\n             obj_dir/clk_divider.sv\n%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:34: Cannot find file containing module: 'global'\n    global gclk (divided_clk, slow_clk);\n    ^~~~~~\n%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:38: Cannot find file containing module: 'strobe_generator'\n    strobe_generator # (.w (24)) i_strobe_generator\n    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:49: Cannot find file containing module: 'board_independent_wrapper'\n    board_independent_wrapper i_board_independent_wrapper\n    ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:69: Cannot find file containing module: 'display_driver'\n    display_driver i_digit_5 (disp_en [5], disp [23:20], disp_dot [5] , HEX5);\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:70: Cannot find file containing module: 'display_driver'\n    display_driver i_digit_4 (disp_en [4], disp [19:16], disp_dot [4] , HEX4);\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:71: Cannot find file containing module: 'display_driver'\n    display_driver i_digit_3 (disp_en [3], disp [15:12], disp_dot [3] , HEX3);\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:72: Cannot find file containing module: 'display_driver'\n    display_driver i_digit_2 (disp_en [2], disp [11: 8], disp_dot [2] , HEX2);\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:73: Cannot find file containing module: 'display_driver'\n    display_driver i_digit_1 (disp_en [1], disp [ 7: 4], disp_dot [1] , HEX1);\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/110151336/lab_10/src/lab_10_1_pow_5/common/synthesis/de10_lite/board_wrapper.v:74: Cannot find file containing module: 'display_driver'\n    display_driver i_digit_0 (disp_en [0], disp [ 3: 0], disp_dot [0] , HEX0);\n    ^~~~~~~~~~~~~~\n%Error: Exiting due to 10 error(s)\n"
module board_wrapper
(
    input         ADC_CLK_10,
    input         MAX10_CLK1_50,
    input         MAX10_CLK2_50,

    input  [ 1:0] KEY,
    input  [ 9:0] SW,

    output [ 9:0] LEDR,

    output [ 7:0] HEX0,
    output [ 7:0] HEX1,
    output [ 7:0] HEX2,
    output [ 7:0] HEX3,
    output [ 7:0] HEX4,
    output [ 7:0] HEX5,

    inout  [35:0] GPIO
);

    wire fast_clk = MAX10_CLK1_50;
    wire rst_n    = ~ SW [9];
    
    wire divided_clk, slow_clk;

    clk_divider # (.w (24)) i_clk_divider
    (
        .clk         ( fast_clk    ),
        .rst_n       ( rst_n       ),
        .divided_clk ( divided_clk )
    );

    global gclk (divided_clk, slow_clk);

    wire fast_clk_en;

    strobe_generator # (.w (24)) i_strobe_generator
    (
        .clk    ( fast_clk    ),
        .rst_n  ( rst_n       ),
        .strobe ( fast_clk_en )
    );

    wire   [ 7:0] disp_en;
    wire   [31:0] disp;
    wire   [ 7:0] disp_dot;

    board_independent_wrapper i_board_independent_wrapper
    (
        .fast_clk    ( fast_clk                    ),
        .slow_clk    ( slow_clk                    ),
        .rst_n       ( rst_n                       ),
        .fast_clk_en ( fast_clk_en                 ),

        .key         ( { 2'b0, ~ KEY      [ 1:0] } ),
        .sw          (           SW       [ 7:0]   ),
        .led         (           LEDR     [ 7:0]   ),
        .disp_en     (           disp_en  [ 7:0]   ),
        .disp        (           disp     [31:0]   ),
        .disp_dot    (           disp_dot [ 7:0]   )
    );

    wire unused =   ADC_CLK_10
                  & MAX10_CLK2_50
                  & SW [8]
                  & (GPIO == 36'b0);

    display_driver i_digit_5 (disp_en [5], disp [23:20], disp_dot [5] , HEX5);
    display_driver i_digit_4 (disp_en [4], disp [19:16], disp_dot [4] , HEX4);
    display_driver i_digit_3 (disp_en [3], disp [15:12], disp_dot [3] , HEX3);
    display_driver i_digit_2 (disp_en [2], disp [11: 8], disp_dot [2] , HEX2);
    display_driver i_digit_1 (disp_en [1], disp [ 7: 4], disp_dot [1] , HEX1);
    display_driver i_digit_0 (disp_en [0], disp [ 3: 0], disp_dot [0] , HEX0);

endmodule
module board_wrapper
(
    input         ADC_CLK_10,
    input         MAX10_CLK1_50,
    input         MAX10_CLK2_50,

    input  [ 1:0] KEY,
    input  [ 9:0] SW,

    output [ 9:0] LEDR,

    output [ 7:0] HEX0,
    output [ 7:0] HEX1,
    output [ 7:0] HEX2,
    output [ 7:0] HEX3,
    output [ 7:0] HEX4,
    output [ 7:0] HEX5,

    inout  [35:0] GPIO
);


    wire fast_clk = MAX10_CLK1_50;
    wire rst_n    = ~ SW [9];
    
    wire divided_clk, slow_clk;

    clk_divider # (.w (24)) i_clk_divider
    (
        .clk         ( fast_clk    ),
        .rst_n       ( rst_n       ),
        .divided_clk ( divided_clk )
    );

    global gclk (divided_clk, slow_clk);

    wire fast_clk_en;

    strobe_generator # (.w (24)) i_strobe_generator
    (
        .clk    ( fast_clk    ),
        .rst_n  ( rst_n       ),
        .strobe ( fast_clk_en )
    );

    wire   [ 7:0] disp_en;
    wire   [31:0] disp;
    wire   [ 7:0] disp_dot;

    board_independent_wrapper i_board_independent_wrapper
    (
        .fast_clk    ( fast_clk                    ),
        .slow_clk    ( slow_clk                    ),
        .rst_n       ( rst_n                       ),
        .fast_clk_en ( fast_clk_en                 ),

        .key         ( { 2'b0, ~ KEY      [ 1:0] } ),
        .sw          (           SW       [ 7:0]   ),
        .led         (           LEDR     [ 7:0]   ),
        .disp_en     (           disp_en  [ 7:0]   ),
        .disp        (           disp     [31:0]   ),
        .disp_dot    (           disp_dot [ 7:0]   )
    );

    wire unused =   ADC_CLK_10
                  & MAX10_CLK2_50
                  & SW [8]
                  & (GPIO == 36'b0);

    display_driver i_digit_5 (disp_en [5], disp [23:20], disp_dot [5] , HEX5);
    display_driver i_digit_4 (disp_en [4], disp [19:16], disp_dot [4] , HEX4);
    display_driver i_digit_3 (disp_en [3], disp [15:12], disp_dot [3] , HEX3);
    display_driver i_digit_2 (disp_en [2], disp [11: 8], disp_dot [2] , HEX2);
    display_driver i_digit_1 (disp_en [1], disp [ 7: 4], disp_dot [1] , HEX1);
    display_driver i_digit_0 (disp_en [0], disp [ 3: 0], disp_dot [0] , HEX0);

endmodule