data/full_repos/permissive/159479522/washing_machine.v
'utf-8' codec can't decode byte 0xa3 in position 767: invalid start byte
1: b"%Error: data/full_repos/permissive/159479522/washing_machine.v:46: Cannot find file containing module: 'water_in'\n   water_in  model1(reset,power_led,start_led,water_select,if_finish,water_level);       \n   ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/159479522,data/full_repos/permissive/159479522/water_in\n             data/full_repos/permissive/159479522,data/full_repos/permissive/159479522/water_in.v\n             data/full_repos/permissive/159479522,data/full_repos/permissive/159479522/water_in.sv\n             water_in\n             water_in.v\n             water_in.sv\n             obj_dir/water_in\n             obj_dir/water_in.v\n             obj_dir/water_in.sv\n%Error: data/full_repos/permissive/159479522/washing_machine.v:47: Cannot find file containing module: 'Select_module'\n   Select_module model2(reset,power_led,start_pause,module_select,if_finish,model_now );  \n   ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/159479522/washing_machine.v:48: Cannot find file containing module: 'Show_time'\n   Show_time model3(reset,clk,clk_sec,power_led,module_select,water_select,model_now,start_led,if_finish,water_level,time_now,time_all);\n   ^~~~~~~~~\n%Error: data/full_repos/permissive/159479522/washing_machine.v:50: Cannot find file containing module: 'clk_div'\n  clk_div   model5(clk,clk_sec,clk,clk_buzzer);    \n  ^~~~~~~\n%Error: data/full_repos/permissive/159479522/washing_machine.v:51: Cannot find file containing module: 'led_control'\n   led_control  model6(reset,clk_sec,power_led,water_level,model_now,module_select,start_led,if_finish,wash_led,rinse_led,dry_led,in_led,out_led,time_now,time_all );\n   ^~~~~~~~~~~\n%Error: data/full_repos/permissive/159479522/washing_machine.v:53: Cannot find file containing module: 'led_shine'\n   led_shine  model7(clk,clk_KHZ,reset,if_finish,counter_power,water_level,time_now,power_off,time_all,state,count);\n   ^~~~~~~~~\n%Error: data/full_repos/permissive/159479522/washing_machine.v:55: Cannot find file containing module: 'buzzer_led'\n  buzzer_led  model8(clk,buzzer_clk,reset,start_pause,module_select,water_select,buzzer_led );\n  ^~~~~~~~~~\n%Error: Exiting due to 7 error(s)\n"
module Washing_machine(clk,reset,start_pause,module_select,water_select,power_led,start_led,
wash_led,rinse_led,dry_led,in_led,out_led,state,count,buzzer_led,water_level,model_now,time_now,time_all,power_off,if_finish);

  input wire clk,reset,start_pause,module_select,water_select;

  output wire wash_led,rinse_led,dry_led,in_led,out_led,buzzer_led;

  output reg power_led,start_led;
  output wire [7:0] state,count;
  output wire [3:0]water_level;
  output wire [2:0]model_now;

  output wire [5:0]time_all;
  output wire [5:0]time_now;
  output reg  if_finish,power_off;
         reg  [3:0] counter_power;
         wire clk_sec,clk_KHZ,clk_buzzer;
 initial begin
    if_finish=0;
    power_off=0;
    power_led=0;
    counter_power=0;
    end
   water_in  model1(reset,power_led,start_led,water_select,if_finish,water_level);
   Select_module model2(reset,power_led,start_pause,module_select,if_finish,model_now );
   Show_time model3(reset,clk,clk_sec,power_led,module_select,water_select,model_now,start_led,if_finish,water_level,time_now,time_all);

  clk_div   model5(clk,clk_sec,clk,clk_buzzer);
   led_control  model6(reset,clk_sec,power_led,water_level,model_now,module_select,start_led,if_finish,wash_led,rinse_led,dry_led,in_led,out_led,time_now,time_all );

   led_shine  model7(clk,clk_KHZ,reset,if_finish,counter_power,water_level,time_now,power_off,time_all,state,count);

  buzzer_led  model8(clk,buzzer_clk,reset,start_pause,module_select,water_select,buzzer_led );
  
    always@(*)    begin
      if(power_led==1&&if_finish==0&&start_pause==1)
        begin 
         start_led=1;
         end
       else
         start_led=0;
      end    
      always@(reset or power_off) 
       begin
       if(reset==1&& power_off==0)
          power_led=1;
          else
          power_led=0;
       end
       
        always @(posedge clk)  
           begin
           if(time_all==0)
           if_finish=1;
       end     
        
         always @(posedge clk_sec)  begin
              if(if_finish==1) begin
              if(counter_power>=9)begin
                 power_off<=1;

                 end
              else
                 counter_power=counter_power+1;
              end    
              else power_off=0;
            end      
endmodule
module Washing_machine(clk,reset,start_pause,module_select,water_select,power_led,start_led,
wash_led,rinse_led,dry_led,in_led,out_led,state,count,buzzer_led,water_level,model_now,time_now,time_all,power_off,if_finish);


  input wire clk,reset,start_pause,module_select,water_select;

  output wire wash_led,rinse_led,dry_led,in_led,out_led,buzzer_led;

  output reg power_led,start_led;
  output wire [7:0] state,count;
  output wire [3:0]water_level;
  output wire [2:0]model_now;

  output wire [5:0]time_all;
  output wire [5:0]time_now;
  output reg  if_finish,power_off;
         reg  [3:0] counter_power;
         wire clk_sec,clk_KHZ,clk_buzzer;
 initial begin
    if_finish=0;
    power_off=0;
    power_led=0;
    counter_power=0;
    end
   water_in  model1(reset,power_led,start_led,water_select,if_finish,water_level);
   Select_module model2(reset,power_led,start_pause,module_select,if_finish,model_now );
   Show_time model3(reset,clk,clk_sec,power_led,module_select,water_select,model_now,start_led,if_finish,water_level,time_now,time_all);

  clk_div   model5(clk,clk_sec,clk,clk_buzzer);
   led_control  model6(reset,clk_sec,power_led,water_level,model_now,module_select,start_led,if_finish,wash_led,rinse_led,dry_led,in_led,out_led,time_now,time_all );

   led_shine  model7(clk,clk_KHZ,reset,if_finish,counter_power,water_level,time_now,power_off,time_all,state,count);

  buzzer_led  model8(clk,buzzer_clk,reset,start_pause,module_select,water_select,buzzer_led );
  
    always@(*)    begin
      if(power_led==1&&if_finish==0&&start_pause==1)
        begin 
         start_led=1;
         end
       else
         start_led=0;
      end    
      always@(reset or power_off) 
       begin
       if(reset==1&& power_off==0)
          power_led=1;
          else
          power_led=0;
       end
       
        always @(posedge clk)  
           begin
           if(time_all==0)
           if_finish=1;
       end     
        
         always @(posedge clk_sec)  begin
              if(if_finish==1) begin
              if(counter_power>=9)begin
                 power_off<=1;

                 end
              else
                 counter_power=counter_power+1;
              end    
              else power_off=0;
            end      
endmodule