data/full_repos/permissive/120845848/002-led/src/led.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/1478aa29-766f-4d09-91cc-cdd2f5dee1b0.xml
module led(clk,nrst,led_pin);

	input clk;
	input nrst;
	output [9:0]led_pin;
	
	reg [31:0]cnt;
	reg [9:0]pin;
	
	always@(posedge clk,negedge nrst)
	if(!nrst)
		cnt <= 32'd0;
	else if(cnt == 32'd24_999_999)
		cnt <= 32'd0;
	else
		cnt <= cnt + 1'b1;
		
	always@(posedge clk,negedge nrst)
	if(!nrst)
		pin <= 10'd1;
	else if(cnt == 32'd24_999_999)
		pin <= {pin[8:0],pin[9]};
		
	assign led_pin = pin;
	
endmodule
module led(clk,nrst,led_pin);


	input clk;
	input nrst;
	output [9:0]led_pin;
	
	reg [31:0]cnt;
	reg [9:0]pin;
	
	always@(posedge clk,negedge nrst)
	if(!nrst)
		cnt <= 32'd0;
	else if(cnt == 32'd24_999_999)
		cnt <= 32'd0;
	else
		cnt <= cnt + 1'b1;
		
	always@(posedge clk,negedge nrst)
	if(!nrst)
		pin <= 10'd1;
	else if(cnt == 32'd24_999_999)
		pin <= {pin[8:0],pin[9]};
		
	assign led_pin = pin;
	
endmodule