data/full_repos/permissive/162874044/HDL Files/hsync.v
 line:27: before: "("
1: b'%Error: Cannot find file containing module: Files,data/full_repos/permissive/162874044\n        ... Looked in:\n             data/full_repos/permissive/162874044/HDL/Files,data/full_repos/permissive/162874044\n             data/full_repos/permissive/162874044/HDL/Files,data/full_repos/permissive/162874044.v\n             data/full_repos/permissive/162874044/HDL/Files,data/full_repos/permissive/162874044.sv\n             Files,data/full_repos/permissive/162874044\n             Files,data/full_repos/permissive/162874044.v\n             Files,data/full_repos/permissive/162874044.sv\n             obj_dir/Files,data/full_repos/permissive/162874044\n             obj_dir/Files,data/full_repos/permissive/162874044.v\n             obj_dir/Files,data/full_repos/permissive/162874044.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/162874044/HDL\n%Error: Cannot find file containing module: Files/hsync.v\n%Error: Exiting due to 3 error(s)\n'
module hsync #( 
	parameter busWidth = 11,
	parameter [ ( busWidth - 1 ) : 0 ] resHorizontal = 1920
)
(


	input							clock,
	output 							hSyncPulse,
	output							DE

);


	reg pulseReg 							= 1'b0;
	reg [ ( busWidth - 1 ) : 0 ] hCounter 	= 1'b0;
	reg de 									= 1'b0;

	

	assign hSyncPulse = pulseReg;
	assign DE = de;

	
	always @( posedge(clock) )
	begin

		if( hCounter == resHorizontal)
			begin

				pulseReg	= 1'b1;
				de			= 1'b0;

				hCounter 	= 0;
			end
		else
			begin

				pulseReg 	= 1'b0;
				de			= 1'b1;

				hCounter = hCounter + 1'b1;

			end
	end
	
endmodule
module hsync #( 
	parameter busWidth = 11,
	parameter [ ( busWidth - 1 ) : 0 ] resHorizontal = 1920
)
(


	input							clock,
	output 							hSyncPulse,
	output							DE

);



	reg pulseReg 							= 1'b0;
	reg [ ( busWidth - 1 ) : 0 ] hCounter 	= 1'b0;
	reg de 									= 1'b0;

	

	assign hSyncPulse = pulseReg;
	assign DE = de;

	
	always @( posedge(clock) )
	begin

		if( hCounter == resHorizontal)
			begin

				pulseReg	= 1'b1;
				de			= 1'b0;

				hCounter 	= 0;
			end
		else
			begin

				pulseReg 	= 1'b0;
				de			= 1'b1;

				hCounter = hCounter + 1'b1;

			end
	end
	
endmodule