mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Add test for abc9+mince issue
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
		
							parent
							
								
									e813624f21
								
							
						
					
					
						commit
						fa77fb857b
					
				
					 1 changed files with 17 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								tests/various/ice40_mince_abc9.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tests/various/ice40_mince_abc9.ys
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					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
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue