mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29: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)
 | 
								if (help_mode)
 | 
				
			||||||
				run("techmap -map +/techmap.v -map +/xilinx/arith_map.v", "(skip if '-nocarry')");
 | 
									run("techmap -map +/techmap.v [-map +/xilinx/arith_map.v]", "(skip if '-nocarry')");
 | 
				
			||||||
			else if (!vpr)
 | 
								else if (!nocarry) {
 | 
				
			||||||
 | 
					                                if (!vpr)
 | 
				
			||||||
                                        run("techmap -map +/techmap.v -map +/xilinx/arith_map.v");
 | 
					                                        run("techmap -map +/techmap.v -map +/xilinx/arith_map.v");
 | 
				
			||||||
                                else
 | 
					                                else
 | 
				
			||||||
                                        run("techmap -map +/techmap.v -map +/xilinx/arith_map.v -D _EXPLICIT_CARRY");
 | 
					                                        run("techmap -map +/techmap.v -map +/xilinx/arith_map.v -D _EXPLICIT_CARRY");
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			run("opt -fast");
 | 
								run("opt -fast");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue