data/full_repos/permissive/520487363/EX4 - Accelerator and Wrappers/Files/Exp-Engine/Counter.sv
1: b'%Error: Invalid Option: -\n'
module counter (input clk,rst,zero,ld,enb, input [2:0] in ,output logic [3:0] out, output  co);
	always@(posedge clk, posedge rst)begin
		if(rst == 1'b1)
			out <= 0;
		else
			if(zero == 1'b1)
				out <= 0;
			else if(ld == 1'b1)
				out <= in;
			else if(enb == 1'b1)
				out <= out + 1'b1;
	end
	assign co = (out >= 4'b1000)? 1'b1: 1'b0;
endmodule
module counter (input clk,rst,zero,ld,enb, input [2:0] in ,output logic [3:0] out, output  co);

	always@(posedge clk, posedge rst)begin
		if(rst == 1'b1)
			out <= 0;
		else
			if(zero == 1'b1)
				out <= 0;
			else if(ld == 1'b1)
				out <= in;
			else if(enb == 1'b1)
				out <= out + 1'b1;
	end
	assign co = (out >= 4'b1000)? 1'b1: 1'b0;
endmodule