data/full_repos/permissive/461620575/Simple DACs/PWM/PWM.v
1: b'%Error: Cannot find file containing module: DACs/PWM,data/full_repos/permissive/461620575\n        ... Looked in:\n             data/full_repos/permissive/461620575/Simple/DACs/PWM,data/full_repos/permissive/461620575\n             data/full_repos/permissive/461620575/Simple/DACs/PWM,data/full_repos/permissive/461620575.v\n             data/full_repos/permissive/461620575/Simple/DACs/PWM,data/full_repos/permissive/461620575.sv\n             DACs/PWM,data/full_repos/permissive/461620575\n             DACs/PWM,data/full_repos/permissive/461620575.v\n             DACs/PWM,data/full_repos/permissive/461620575.sv\n             obj_dir/DACs/PWM,data/full_repos/permissive/461620575\n             obj_dir/DACs/PWM,data/full_repos/permissive/461620575.v\n             obj_dir/DACs/PWM,data/full_repos/permissive/461620575.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/461620575/Simple\n%Error: Cannot find file containing module: DACs/PWM/PWM.v\n%Error: Exiting due to 3 error(s)\n'
module PWM #(parameter COUNT_UP = 1'b1, WIDTH = 10)(
	input clk,
	input rst,
	input [WIDTH-1:0] PWM_in,
	
	output PWM_out
	);

	reg [WIDTH-1:0] count;
	
	always@(posedge clk) begin
		count <= count + 1'b1;
		
		if (rst) count <= {WIDTH-1{1'b0}};
	end
	
	
	assign PWM_out = COUNT_UP ~^ (PWM_in > count);	
endmodule
module PWM #(parameter COUNT_UP = 1'b1, WIDTH = 10)(
	input clk,
	input rst,
	input [WIDTH-1:0] PWM_in,
	
	output PWM_out
	);


	reg [WIDTH-1:0] count;
	
	always@(posedge clk) begin
		count <= count + 1'b1;
		
		if (rst) count <= {WIDTH-1{1'b0}};
	end
	
	
	assign PWM_out = COUNT_UP ~^ (PWM_in > count);	
endmodule