mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			128 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			128 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
| module adlatch( input d, rst, en, output reg q );
 | |
| 	always @* begin
 | |
| 		if (rst)
 | |
| 			q = 0;
 | |
| 		else if (en)
 | |
| 			q = d;
 | |
| 	end
 | |
| endmodule
 |