mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			235 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			235 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
module top ( out, clk, reset );
 | 
						|
    output [7:0] out;
 | 
						|
    input clk, reset;
 | 
						|
    reg [7:0] out;
 | 
						|
 | 
						|
    always @(posedge clk, posedge reset)
 | 
						|
      if (reset)
 | 
						|
          out <= 8'b0;
 | 
						|
      else
 | 
						|
          out <= out + 1;
 | 
						|
endmodule
 |