data/full_repos/permissive/167263918/pwm/top.v
1: b'%Error: data/full_repos/permissive/167263918/pwm/top.v:1: Cannot find include file: pwm.v\n`include "pwm.v" \n         ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/167263918/pwm,data/full_repos/permissive/167263918/pwm.v\n             data/full_repos/permissive/167263918/pwm,data/full_repos/permissive/167263918/pwm.v.v\n             data/full_repos/permissive/167263918/pwm,data/full_repos/permissive/167263918/pwm.v.sv\n             pwm.v\n             pwm.v.v\n             pwm.v.sv\n             obj_dir/pwm.v\n             obj_dir/pwm.v.v\n             obj_dir/pwm.v.sv\n%Error: Exiting due to 1 error(s)\n'
module top(input [3:0] SW, input clk, output LED_R, output LED_G, output LED_B);
  
  reg [17:0] counter;
  reg [6:0] val_pwm;
  

  wire pwm_en_write;
  wire [7:0] pwm_value_write;
  wire pwm_out;
  
  pwm pwm_inst(
    .clk(clk), .en(pwm_en_write), .value_input(pwm_value_write), .out(pwm_out)
  );
  

  assign LED_R = ~pwm_out;
  assign LED_G = ~pwm_out;
  assign LED_B = ~pwm_out;
  
  initial begin
      pwm_en_write = 1;
      pwm_value_write = 0;
      val_pwm = 0;
  end
  
  always @(posedge clk)
  begin
    
    pwm_en_write = 0;
    counter <= counter + 1;
    
    if(counter == 0) begin
      val_pwm <= val_pwm + 1;
      pwm_en_write = 1;
      pwm_value_write <= val_pwm;
    end
  end

endmodule
module top(input [3:0] SW, input clk, output LED_R, output LED_G, output LED_B);

  
  reg [17:0] counter;
  reg [6:0] val_pwm;
  

  wire pwm_en_write;
  wire [7:0] pwm_value_write;
  wire pwm_out;
  
  pwm pwm_inst(
    .clk(clk), .en(pwm_en_write), .value_input(pwm_value_write), .out(pwm_out)
  );
  

  assign LED_R = ~pwm_out;
  assign LED_G = ~pwm_out;
  assign LED_B = ~pwm_out;
  
  initial begin
      pwm_en_write = 1;
      pwm_value_write = 0;
      val_pwm = 0;
  end
  
  always @(posedge clk)
  begin
    
    pwm_en_write = 0;
    counter <= counter + 1;
    
    if(counter == 0) begin
      val_pwm <= val_pwm + 1;
      pwm_en_write = 1;
      pwm_value_write <= val_pwm;
    end
  end

endmodule