mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			253 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			253 B
		
	
	
	
		
			Text
		
	
	
	
	
	
read_verilog <<EOT
 | 
						|
 | 
						|
module top(input clk, ce, input [2:0] a, b, output reg [2:0] q);
 | 
						|
 | 
						|
	reg [2:0] aa, bb;
 | 
						|
 | 
						|
	always @(posedge clk) begin
 | 
						|
		if (ce) begin
 | 
						|
			aa <= a;
 | 
						|
		end
 | 
						|
		bb <= b;
 | 
						|
		q <= aa + bb;
 | 
						|
	end
 | 
						|
endmodule
 | 
						|
EOT
 | 
						|
 | 
						|
synth_ice40 -abc9 -dffe_min_ce_use 4
 |