mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Oops. Actually use nocarry flag as spotted by @koriakin
This commit is contained in:
		
							parent
							
								
									4ce329aefd
								
							
						
					
					
						commit
						cb722e7b58
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -254,11 +254,13 @@ struct SynthXilinxPass : public ScriptPass
 | 
			
		|||
			}
 | 
			
		||||
 | 
			
		||||
			if (help_mode)
 | 
			
		||||
				run("techmap -map +/techmap.v -map +/xilinx/arith_map.v", "(skip if '-nocarry')");
 | 
			
		||||
			else if (!vpr)
 | 
			
		||||
				run("techmap -map +/techmap.v [-map +/xilinx/arith_map.v]", "(skip if '-nocarry')");
 | 
			
		||||
			else if (!nocarry) {
 | 
			
		||||
                                if (!vpr)
 | 
			
		||||
                                        run("techmap -map +/techmap.v -map +/xilinx/arith_map.v");
 | 
			
		||||
                                else
 | 
			
		||||
                                        run("techmap -map +/techmap.v -map +/xilinx/arith_map.v -D _EXPLICIT_CARRY");
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
			run("opt -fast");
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue