data/full_repos/permissive/52900389/Contador_conResetEnable.v
data/verilator_xmls/add90914-e3d7-4df9-b5e3-98ed8ec99d99.xml
module Contador_conReset
	# (parameter N = 4)
	(
		input wire clk,
		input wire reset,
		output wire [N-1:0] q
    );


reg [N-1:0] q_act, q_next;



always@(posedge clk,posedge reset)
	if(reset)
		q_act <= 0;
	else
		q_act <= q_next;


always@*

q_next = q_act + 1'b1;
		

assign q = q_act;

endmodule
module Contador_conReset
	# (parameter N = 4)
	(
		input wire clk,
		input wire reset,
		output wire [N-1:0] q
    );



reg [N-1:0] q_act, q_next;



always@(posedge clk,posedge reset)
	if(reset)
		q_act <= 0;
	else
		q_act <= q_next;


always@*

q_next = q_act + 1'b1;
		

assign q = q_act;

endmodule