data/full_repos/permissive/20289584/CountUP.v
 line:19: before: "~"
1: b"%Error: data/full_repos/permissive/20289584/CountUP.v:19: syntax error, unexpected '~', expecting TYPE-IDENTIFIER\nalways @(posedge clk or posedge ~rst)\n                                ^\n%Error: data/full_repos/permissive/20289584/CountUP.v:30: syntax error, unexpected '=', expecting IDENTIFIER\n    Carry = 0;\n          ^\n%Error: data/full_repos/permissive/20289584/CountUP.v:34: syntax error, unexpected '=', expecting IDENTIFIER\n    CountOut = 0;\n             ^\n%Error: Cannot continue\n"
module countup(clk,rst,CountOut,Carry);


parameter Divider =6;
parameter Bitwidth = 4;


input clk,rst;
output [3:0] CountOut;
output Carry;


wire clk,rst;
reg [3:0] CountOut;
reg Carry;



always @(posedge clk or posedge ~rst)
begin
		if(rst==0)
		begin
			CountOut =0;
		end
		else
		begin
			CountOut = CountOut+1;
			if(CountOut == 1)
			begin
				Carry = 0;
			end
			if(CountOut == Divider)
			begin
				CountOut = 0;
				Carry = 1;
			end
		end
end

endmodule
module countup(clk,rst,CountOut,Carry);



parameter Divider =6;
parameter Bitwidth = 4;


input clk,rst;
output [3:0] CountOut;
output Carry;


wire clk,rst;
reg [3:0] CountOut;
reg Carry;



always @(posedge clk or posedge ~rst)
begin
		if(rst==0)
		begin
			CountOut =0;
		end
		else
		begin
			CountOut = CountOut+1;
			if(CountOut == 1)
			begin
				Carry = 0;
			end
			if(CountOut == Divider)
			begin
				CountOut = 0;
				Carry = 1;
			end
		end
end

endmodule