mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			262 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			262 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
module syn_reset (clk,reset,a,c);
 | 
						|
   input clk;
 | 
						|
   input reset;
 | 
						|
   input a; 
 | 
						|
   output c; 
 | 
						|
 | 
						|
   wire clk;
 | 
						|
   wire reset;   
 | 
						|
   wire a;   
 | 
						|
   reg c;
 | 
						|
  
 | 
						|
always @ (posedge clk )
 | 
						|
  if ( reset == 1'b1) begin
 | 
						|
    c <= 0;
 | 
						|
  end else begin
 | 
						|
    c <= a;
 | 
						|
  end
 | 
						|
 
 | 
						|
endmodule 
 |