mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	abc9: Add wire delays to synth_ice40
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
		
							parent
							
								
									5db96b8aec
								
							
						
					
					
						commit
						0dd850e655
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		| 
						 | 
					@ -331,8 +331,16 @@ struct SynthIce40Pass : public ScriptPass
 | 
				
			||||||
				run("techmap -map +/gate2lut.v -D LUT_WIDTH=4", "(only if -noabc)");
 | 
									run("techmap -map +/gate2lut.v -D LUT_WIDTH=4", "(only if -noabc)");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			if (!noabc) {
 | 
								if (!noabc) {
 | 
				
			||||||
				if (abc == "abc9")
 | 
									if (abc == "abc9") {
 | 
				
			||||||
					run(abc + stringf(" -lut +/ice40/abc_%s.lut -box +/ice40/abc_%s.box", device_opt.c_str(), device_opt.c_str()), "(skip if -noabc)");
 | 
										int wire_delay;
 | 
				
			||||||
 | 
										if (device_opt == "lp")
 | 
				
			||||||
 | 
											wire_delay = 400;
 | 
				
			||||||
 | 
										else if (device_opt == "u")
 | 
				
			||||||
 | 
											wire_delay = 750;
 | 
				
			||||||
 | 
										else
 | 
				
			||||||
 | 
											wire_delay = 250;
 | 
				
			||||||
 | 
										run(abc + stringf(" -W %d -lut +/ice40/abc_%s.lut -box +/ice40/abc_%s.box", wire_delay, device_opt.c_str(), device_opt.c_str()), "(skip if -noabc)");
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
				else
 | 
									else
 | 
				
			||||||
					run(abc + " -dress -lut 4", "(skip if -noabc)");
 | 
										run(abc + " -dress -lut 4", "(skip if -noabc)");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue