mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-27 01:39:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			177 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			177 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
| module aldff( input [0:3] d, input [0:3] ad, input clk, aload, output reg [0:3] q );
 | |
| 	always @( posedge clk, posedge aload)
 | |
| 		if (aload)
 | |
| 			q <= ad;
 | |
| 		else
 | |
| 			q <= d;
 | |
| endmodule
 |