data/full_repos/permissive/156506242/src/song_player.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b"%Error: data/full_repos/permissive/156506242/src/song_player.v:18: Cannot find file containing module: 'music_sheet'\n    music_sheet mysong(number, notePeriod, duration);\n    ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/156506242/src,data/full_repos/permissive/156506242/music_sheet\n             data/full_repos/permissive/156506242/src,data/full_repos/permissive/156506242/music_sheet.v\n             data/full_repos/permissive/156506242/src,data/full_repos/permissive/156506242/music_sheet.sv\n             music_sheet\n             music_sheet.v\n             music_sheet.sv\n             obj_dir/music_sheet\n             obj_dir/music_sheet.v\n             obj_dir/music_sheet.sv\n%Error: Exiting due to 1 error(s)\n"
module song_player( 
    input clock, 
    input reset, 
    input playSound, 
    output reg audioOut, 
    output reg aud_sd
    );
    
    reg [19:0] counter;
    reg [31:0] time1, noteTime;
    reg [9:0] msec, number;
    wire [4:0] note, duration;
    wire [19:0] notePeriod;
    parameter clockFrequency = 100_000_000;
    
    music_sheet mysong(number, notePeriod, duration);
    
    always @ (posedge clock) begin
        aud_sd = 1'b1;
        if(reset | ~playSound) begin
            counter <= 0;
            time1 <= 0;  
            number  <= 0;  
            audioOut <= 1;	
        end
        else begin
            counter <= counter + 1; 
            time1 <= time1 + 1;
            if( counter >= notePeriod) begin
                counter <= 0;  
                audioOut <= ~audioOut;
            end
            if( time1 >= noteTime) begin
                time1 <= 0;
                number <= number + 1;
            end
            if(number == 70) number <= 0;
        end
      end	
             
      always @(duration) noteTime = duration * clockFrequency / 12; 

endmodule
module song_player( 
    input clock, 
    input reset, 
    input playSound, 
    output reg audioOut, 
    output reg aud_sd
    );

    
    reg [19:0] counter;
    reg [31:0] time1, noteTime;
    reg [9:0] msec, number;
    wire [4:0] note, duration;
    wire [19:0] notePeriod;
    parameter clockFrequency = 100_000_000;
    
    music_sheet mysong(number, notePeriod, duration);
    
    always @ (posedge clock) begin
        aud_sd = 1'b1;
        if(reset | ~playSound) begin
            counter <= 0;
            time1 <= 0;  
            number  <= 0;  
            audioOut <= 1;	
        end
        else begin
            counter <= counter + 1; 
            time1 <= time1 + 1;
            if( counter >= notePeriod) begin
                counter <= 0;  
                audioOut <= ~audioOut;
            end
            if( time1 >= noteTime) begin
                time1 <= 0;
                number <= number + 1;
            end
            if(number == 70) number <= 0;
        end
      end	
             
      always @(duration) noteTime = duration * clockFrequency / 12; 

endmodule