data/full_repos/permissive/132304455/src/top_level.v
1: b"%Error: data/full_repos/permissive/132304455/src/top_level.v:44: Cannot find file containing module: 'clk_wiz'\n    clk_wiz divider_base(clk, base_clock);\n    ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/132304455/src,data/full_repos/permissive/132304455/clk_wiz\n             data/full_repos/permissive/132304455/src,data/full_repos/permissive/132304455/clk_wiz.v\n             data/full_repos/permissive/132304455/src,data/full_repos/permissive/132304455/clk_wiz.sv\n             clk_wiz\n             clk_wiz.v\n             clk_wiz.sv\n             obj_dir/clk_wiz\n             obj_dir/clk_wiz.v\n             obj_dir/clk_wiz.sv\n%Error: data/full_repos/permissive/132304455/src/top_level.v:59: Cannot find file containing module: 'fsm'\n    fsm state_machine(gen, training, training_sel, testing, testing_sel, win, reset_game, game_clock, input_correct, input_done, advance, play_swt, base_clock);\n    ^~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:70: Cannot find file containing module: 'score_tracker'\n    score_tracker score_track(score, game_clock, win, reset_game);\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:75: Cannot find file containing module: 'thirty_bit_lfsr'\n    thirty_bit_lfsr lfsr(random_number, gen, base_clock, reset_game);  \n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:80: Cannot find file containing module: 'number_generator'\n    number_generator num_gen(rand_num0, rand_num1, rand_num2, rand_num3, rand_num4, random_number);  \n    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:85: Cannot find file containing module: 'fivexn_bit_mux'\n    fivexn_bit_mux #(.width(6)) num_sel(chosen_number, rand_num0, rand_num1, rand_num2, rand_num3, rand_num4, training_sel | testing_sel);  \n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:90: Cannot find file containing module: 'sound_generator'\n    sound_generator sound_gen(sound0, sound1, sound2, sound3, sound4);\n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:95: Cannot find file containing module: 'fivexn_bit_mux'\n    fivexn_bit_mux #(.width(13)) sound_sel(chosen_sound, sound0, sound1, sound2, sound3, sound4, training_sel | testing_sel);  \n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:100: Cannot find file containing module: 'equality_check'\n    equality_check eq_check(input_correct, input_done, input_swt, chosen_number, submit_button, game_clock);\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:104: Cannot find file containing module: 'amp_control'\n    amp_control amp(amp_audio_out, amp_gain, amp_not_shutdown, chosen_sound, training | testing, reset, base_clock);\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:109: Cannot find file containing module: 'mux2v'\n    mux2v #(.width(6)) display_mux(display_num, input_swt, chosen_number, training);\n    ^~~~~\n%Error: data/full_repos/permissive/132304455/src/top_level.v:110: Cannot find file containing module: 'display_control'\n    display_control display(seg, an, display_num, score, base_clock);\n    ^~~~~~~~~~~~~~~\n%Error: Exiting due to 12 error(s)\n"
module top_level(correct_led,
                 state_leds,
                 seg,
                 an,
                 amp_audio_out,
                 amp_gain,
                 amp_not_shutdown,
                 input_swt,
                 play_swt,
                 submit_button,
                 advance_button,
                 clk);
    
    output [6:0] seg;
    output [3:0] an;
    output  [5:1] state_leds;
    output       correct_led, amp_audio_out, amp_gain, amp_not_shutdown;
    input  [5:0] input_swt;
    input        play_swt, submit_button, advance_button, clk;
    

    wire base_clock;
    clk_wiz divider_base(clk, base_clock);

    

    wire gen;
    wire training;
    wire [2:0] training_sel;
    wire testing;
    wire [2:0] testing_sel;
    wire win;
    wire reset_game;
    wire game_clock;
    wire input_correct;
    wire input_done;
    wire advance = advance_button;
    fsm state_machine(gen, training, training_sel, testing, testing_sel, win, reset_game, game_clock, input_correct, input_done, advance, play_swt, base_clock);
    
    assign state_leds[1] = gen;
    assign state_leds[2] = training;
    assign state_leds[3] = testing;
    assign state_leds[4] = win;
    assign state_leds[5] = reset_game;



    wire [5:0] score;
    score_tracker score_track(score, game_clock, win, reset_game);



    wire [29:0] random_number;
    thirty_bit_lfsr lfsr(random_number, gen, base_clock, reset_game);



    wire [5:0] rand_num0, rand_num1, rand_num2, rand_num3, rand_num4;
    number_generator num_gen(rand_num0, rand_num1, rand_num2, rand_num3, rand_num4, random_number);



    wire [5:0] chosen_number;
    fivexn_bit_mux #(.width(6)) num_sel(chosen_number, rand_num0, rand_num1, rand_num2, rand_num3, rand_num4, training_sel | testing_sel);



    wire [12:0] sound0, sound1, sound2, sound3, sound4;
    sound_generator sound_gen(sound0, sound1, sound2, sound3, sound4);



    wire [12:0] chosen_sound;
    fivexn_bit_mux #(.width(13)) sound_sel(chosen_sound, sound0, sound1, sound2, sound3, sound4, training_sel | testing_sel);



    assign correct_led = input_correct & input_done & testing;
    equality_check eq_check(input_correct, input_done, input_swt, chosen_number, submit_button, game_clock);



    amp_control amp(amp_audio_out, amp_gain, amp_not_shutdown, chosen_sound, training | testing, reset, base_clock);



    wire [5:0] display_num;
    mux2v #(.width(6)) display_mux(display_num, input_swt, chosen_number, training);
    display_control display(seg, an, display_num, score, base_clock);


endmodule
module top_level(correct_led,
                 state_leds,
                 seg,
                 an,
                 amp_audio_out,
                 amp_gain,
                 amp_not_shutdown,
                 input_swt,
                 play_swt,
                 submit_button,
                 advance_button,
                 clk);

    
    output [6:0] seg;
    output [3:0] an;
    output  [5:1] state_leds;
    output       correct_led, amp_audio_out, amp_gain, amp_not_shutdown;
    input  [5:0] input_swt;
    input        play_swt, submit_button, advance_button, clk;
    

    wire base_clock;
    clk_wiz divider_base(clk, base_clock);

    

    wire gen;
    wire training;
    wire [2:0] training_sel;
    wire testing;
    wire [2:0] testing_sel;
    wire win;
    wire reset_game;
    wire game_clock;
    wire input_correct;
    wire input_done;
    wire advance = advance_button;
    fsm state_machine(gen, training, training_sel, testing, testing_sel, win, reset_game, game_clock, input_correct, input_done, advance, play_swt, base_clock);
    
    assign state_leds[1] = gen;
    assign state_leds[2] = training;
    assign state_leds[3] = testing;
    assign state_leds[4] = win;
    assign state_leds[5] = reset_game;



    wire [5:0] score;
    score_tracker score_track(score, game_clock, win, reset_game);



    wire [29:0] random_number;
    thirty_bit_lfsr lfsr(random_number, gen, base_clock, reset_game);



    wire [5:0] rand_num0, rand_num1, rand_num2, rand_num3, rand_num4;
    number_generator num_gen(rand_num0, rand_num1, rand_num2, rand_num3, rand_num4, random_number);



    wire [5:0] chosen_number;
    fivexn_bit_mux #(.width(6)) num_sel(chosen_number, rand_num0, rand_num1, rand_num2, rand_num3, rand_num4, training_sel | testing_sel);



    wire [12:0] sound0, sound1, sound2, sound3, sound4;
    sound_generator sound_gen(sound0, sound1, sound2, sound3, sound4);



    wire [12:0] chosen_sound;
    fivexn_bit_mux #(.width(13)) sound_sel(chosen_sound, sound0, sound1, sound2, sound3, sound4, training_sel | testing_sel);



    assign correct_led = input_correct & input_done & testing;
    equality_check eq_check(input_correct, input_done, input_swt, chosen_number, submit_button, game_clock);



    amp_control amp(amp_audio_out, amp_gain, amp_not_shutdown, chosen_sound, training | testing, reset, base_clock);



    wire [5:0] display_num;
    mux2v #(.width(6)) display_mux(display_num, input_swt, chosen_number, training);
    display_control display(seg, an, display_num, score, base_clock);


endmodule