data/full_repos/permissive/175122930/power_on_reset.v
data/verilator_xmls/297fce2f-8352-4542-936d-c8db15c16780.xml
module power_on_reset(
	input pll_locked,
	input clock,
	output reg reset);

reg [31:0] counter = 32'h2;

always @(*) begin
	if (counter == 0)
		reset = 1;
	else
		reset = 0;
end

always @(negedge clock) begin
	if (counter != 0 && pll_locked)
		counter <= counter - 1;
end

endmodule
module power_on_reset(
	input pll_locked,
	input clock,
	output reg reset);


reg [31:0] counter = 32'h2;

always @(*) begin
	if (counter == 0)
		reset = 1;
	else
		reset = 0;
end

always @(negedge clock) begin
	if (counter != 0 && pll_locked)
		counter <= counter - 1;
end

endmodule