data/full_repos/permissive/156506242/src/main.v
1: b"%Error: data/full_repos/permissive/156506242/src/main.v:64: syntax error, unexpected '(', expecting IDENTIFIER\n    check_alarm(minutes_ones, load_minutes_ones, minutes_tens, load_minutes_tens, load_SW, alarm_off_SW, play_sound);\n                ^~~~~~~~~~~~\n%Error: Exiting due to 1 error(s)\n"
module main(
    input clk, 
    input reset_SW, load_SW, fastfwd_SW, alarm_off_SW,
    input moveRight_BTN, moveLeft_BTN, increment_BTN, decrement_BTN,
    output outsignal_counter, outsignal_time,
    output [7:0] timer_seven_seg, AN,
    output audioOut, aud_sd
    );
    
    wire [3:0] seconds_ones, minutes_ones, load_minutes_ones;
    wire [2:0] seconds_tens, minutes_tens, load_minutes_tens;
    
    wire [3:0] out_seconds_ones, out_minutes_ones;
    wire [2:0] out_seconds_tens, out_minutes_tens;
    
    wire [7:0] timer_seconds_ones, timer_seconds_tens, timer_minutes_ones, timer_minutes_tens;
    
    wire [1:0] two_bit_count;
    wire [3:0] enable_signal;
    

    clock_generator clk_module(clk, reset_SW, fastfwd_SW, outsignal_counter, outsignal_time);
    



    two_bit_counter two_counter(outsignal_time, two_bit_count);
    



    two_four_decoder two_decoder(two_bit_count, enable_signal);


    counter_60 second_counter(reset_SW, load_SW, outsignal_counter, seconds_ones, seconds_tens, min);
    counter_60 minute_counter(reset_SW, load_SW, min, minutes_ones, minutes_tens, hrs);
    

    wire test_signal = moveRight_BTN | moveLeft_BTN | increment_BTN | decrement_BTN;
    set_alarm set_time(test_signal, load_SW, moveRight_BTN, moveLeft_BTN, increment_BTN, decrement_BTN, load_minutes_ones, load_minutes_tens);
    

    display_clock clock_alarm(
        load_SW, 
        seconds_ones, minutes_ones, load_minutes_ones, 
        seconds_tens, minutes_tens, load_minutes_tens,
        out_seconds_ones, out_minutes_ones, 
        out_seconds_tens, out_minutes_tens
    );
    

    seven_seg_decoder seconds_decoder(out_seconds_ones, out_seconds_tens, timer_seconds_ones, timer_seconds_tens);
    seven_seg_decoder minutes_decoder(out_minutes_ones, out_minutes_tens, timer_minutes_ones, timer_minutes_tens);
    

    four_one_mux four_mux(timer_seconds_ones, timer_seconds_tens, timer_minutes_ones, timer_minutes_tens, two_bit_count, timer_seven_seg);
    


    seven_seg_display display(enable_signal, AN);
    
    check_alarm(minutes_ones, load_minutes_ones, minutes_tens, load_minutes_tens, load_SW, alarm_off_SW, play_sound);
    song_player alarm(clk, reset_SW, play_sound, audioOut, aud_sd);
    
endmodule
module main(
    input clk, 
    input reset_SW, load_SW, fastfwd_SW, alarm_off_SW,
    input moveRight_BTN, moveLeft_BTN, increment_BTN, decrement_BTN,
    output outsignal_counter, outsignal_time,
    output [7:0] timer_seven_seg, AN,
    output audioOut, aud_sd
    );

    
    wire [3:0] seconds_ones, minutes_ones, load_minutes_ones;
    wire [2:0] seconds_tens, minutes_tens, load_minutes_tens;
    
    wire [3:0] out_seconds_ones, out_minutes_ones;
    wire [2:0] out_seconds_tens, out_minutes_tens;
    
    wire [7:0] timer_seconds_ones, timer_seconds_tens, timer_minutes_ones, timer_minutes_tens;
    
    wire [1:0] two_bit_count;
    wire [3:0] enable_signal;
    

    clock_generator clk_module(clk, reset_SW, fastfwd_SW, outsignal_counter, outsignal_time);
    



    two_bit_counter two_counter(outsignal_time, two_bit_count);
    



    two_four_decoder two_decoder(two_bit_count, enable_signal);


    counter_60 second_counter(reset_SW, load_SW, outsignal_counter, seconds_ones, seconds_tens, min);
    counter_60 minute_counter(reset_SW, load_SW, min, minutes_ones, minutes_tens, hrs);
    

    wire test_signal = moveRight_BTN | moveLeft_BTN | increment_BTN | decrement_BTN;
    set_alarm set_time(test_signal, load_SW, moveRight_BTN, moveLeft_BTN, increment_BTN, decrement_BTN, load_minutes_ones, load_minutes_tens);
    

    display_clock clock_alarm(
        load_SW, 
        seconds_ones, minutes_ones, load_minutes_ones, 
        seconds_tens, minutes_tens, load_minutes_tens,
        out_seconds_ones, out_minutes_ones, 
        out_seconds_tens, out_minutes_tens
    );
    

    seven_seg_decoder seconds_decoder(out_seconds_ones, out_seconds_tens, timer_seconds_ones, timer_seconds_tens);
    seven_seg_decoder minutes_decoder(out_minutes_ones, out_minutes_tens, timer_minutes_ones, timer_minutes_tens);
    

    four_one_mux four_mux(timer_seconds_ones, timer_seconds_tens, timer_minutes_ones, timer_minutes_tens, two_bit_count, timer_seven_seg);
    


    seven_seg_display display(enable_signal, AN);
    
    check_alarm(minutes_ones, load_minutes_ones, minutes_tens, load_minutes_tens, load_SW, alarm_off_SW, play_sound);
    song_player alarm(clk, reset_SW, play_sound, audioOut, aud_sd);
    
endmodule