data/full_repos/permissive/120749710/no_fitter.v
data/verilator_xmls/e5dc0337-2b68-44c8-ba45-2906b2b0bcc0.xml
module no_fitter(
	input raw, rst_n, clk,
	output reg en 
);
localparam milli = 50000000 / 1000;
integer cnt;
always@(posedge clk or negedge rst_n)
begin
	if(~rst_n)
		cnt <= 0;
	else if(raw)
		cnt <= 0;
	else if(cnt <= milli)
		cnt <= cnt + 1;
end
always@(*)
begin
	if(cnt == milli)
		en <= 1;
	else
		en <= 0;
end
endmodule
module no_fitter(
	input raw, rst_n, clk,
	output reg en 
);

localparam milli = 50000000 / 1000;
integer cnt;
always@(posedge clk or negedge rst_n)
begin
	if(~rst_n)
		cnt <= 0;
	else if(raw)
		cnt <= 0;
	else if(cnt <= milli)
		cnt <= cnt + 1;
end
always@(*)
begin
	if(cnt == milli)
		en <= 1;
	else
		en <= 0;
end
endmodule