data/full_repos/permissive/423547971/Modules with Simulations/PWM Generator/pwm_gen.v
1: b'%Error: Cannot find file containing module: with\n        ... Looked in:\n             data/full_repos/permissive/423547971/Modules/with\n             data/full_repos/permissive/423547971/Modules/with.v\n             data/full_repos/permissive/423547971/Modules/with.sv\n             with\n             with.v\n             with.sv\n             obj_dir/with\n             obj_dir/with.v\n             obj_dir/with.sv\n%Error: Cannot find file containing module: Simulations/PWM\n%Error: Cannot find file containing module: Generator,data/full_repos/permissive/423547971\n%Error: Cannot find file containing module: data/full_repos/permissive/423547971/Modules\n%Error: Cannot find file containing module: Generator/pwm_gen.v\n%Error: Exiting due to 5 error(s)\n'
module pwm_gen(
    input clk,
    output pwm30,
    output pwm50,
    output pwm70,
    output pwm90
    );
    
reg [6:0] counter = 0;

always @(posedge clk) begin
    if (counter < 100) 
	counter <= counter + 1;
    else 
	counter <= 0;
end

  
assign pwm30 = (counter < 30) ? 1 : 0;
    
assign pwm50 = (counter < 50) ? 1 : 0;
   
assign pwm70 = (counter < 70) ? 1 : 0;

assign pwm90 = (counter < 90) ? 1 : 0;
    
endmodule
module pwm_gen(
    input clk,
    output pwm30,
    output pwm50,
    output pwm70,
    output pwm90
    );

    
reg [6:0] counter = 0;

always @(posedge clk) begin
    if (counter < 100) 
	counter <= counter + 1;
    else 
	counter <= 0;
end

  
assign pwm30 = (counter < 30) ? 1 : 0;
    
assign pwm50 = (counter < 50) ? 1 : 0;
   
assign pwm70 = (counter < 70) ? 1 : 0;

assign pwm90 = (counter < 90) ? 1 : 0;
    
endmodule