data/full_repos/permissive/165663914/firmware/Led_flash.v
data/verilator_xmls/108164fc-7b15-441e-964f-e34592149d51.xml
module Led_flash (clock, signal, LED, period);

input clock;
input signal;
output LED;
input [23:0]period;

reg [23:0]counter;
reg LED;

always @ (posedge clock)
begin
	if (signal) begin
		counter <= 0;
		LED <= 1'b0;
		end
	else begin
	if (counter == period) begin
		LED <= 1'b1;
		end
	else counter <= counter + 1'b1;
	end
end
endmodule
module Led_flash (clock, signal, LED, period);


input clock;
input signal;
output LED;
input [23:0]period;

reg [23:0]counter;
reg LED;

always @ (posedge clock)
begin
	if (signal) begin
		counter <= 0;
		LED <= 1'b0;
		end
	else begin
	if (counter == period) begin
		LED <= 1'b1;
		end
	else counter <= counter + 1'b1;
	end
end
endmodule