mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			194 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			194 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
| module aldffe( input [0:3] d, input [0:3] ad, input clk, aload, en, output reg [0:3] q );
 | |
| 	always @( posedge clk, posedge aload)
 | |
| 		if (aload)
 | |
| 			q <= ad;
 | |
| 		else
 | |
| 			if (en)
 | |
| 				q <= d;
 | |
| endmodule
 |