data/full_repos/permissive/214278225/1_7SegmentDisplay/display2/timer.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/35710bdc-46ac-460e-8ff3-06e9b1d3fb58.xml
module timer(clk, rst, en
    );
input clk, rst;
output en;

parameter RCWIDTH = 25;

reg [RCWIDTH-1:0] cnt, cntNext;

always@(posedge clk)begin
	cnt <= cntNext;
end

always@(*)begin
	if(rst)
		cntNext = 0;
	else
		cntNext = cnt + 1;
end

assign en = (cnt==0);

endmodule
module timer(clk, rst, en
    );

input clk, rst;
output en;

parameter RCWIDTH = 25;

reg [RCWIDTH-1:0] cnt, cntNext;

always@(posedge clk)begin
	cnt <= cntNext;
end

always@(*)begin
	if(rst)
		cntNext = 0;
	else
		cntNext = cnt + 1;
end

assign en = (cnt==0);

endmodule