mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	synth_intel: Use stringf
This commit is contained in:
		
							parent
							
								
									50f5e29724
								
							
						
					
					
						commit
						0c999ac2c4
					
				
					 1 changed files with 2 additions and 7 deletions
				
			
		| 
						 | 
					@ -166,11 +166,8 @@ struct SynthIntelPass : public ScriptPass {
 | 
				
			||||||
	void script() YS_OVERRIDE
 | 
						void script() YS_OVERRIDE
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		if (check_label("begin")) {
 | 
							if (check_label("begin")) {
 | 
				
			||||||
			string cmd = "read_verilog -sv -lib +/intel/FAMILY/cells_sim.v";
 | 
					 | 
				
			||||||
			cmd.replace(cmd.find("FAMILY"), 6, family_opt);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			if (check_label("family"))
 | 
								if (check_label("family"))
 | 
				
			||||||
				run(cmd);
 | 
									run(stringf("read_verilog -sv -lib +/intel/%s/cells_sim.v", family_opt.c_str()));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			// Misc and common cells
 | 
								// Misc and common cells
 | 
				
			||||||
			run("read_verilog -sv -lib +/intel/common/m9k_bb.v");
 | 
								run("read_verilog -sv -lib +/intel/common/m9k_bb.v");
 | 
				
			||||||
| 
						 | 
					@ -220,9 +217,7 @@ struct SynthIntelPass : public ScriptPass {
 | 
				
			||||||
		if (check_label("map_cells")) {
 | 
							if (check_label("map_cells")) {
 | 
				
			||||||
			if (!noiopads)
 | 
								if (!noiopads)
 | 
				
			||||||
				run("iopadmap -bits -outpad $__outpad I:O -inpad $__inpad O:I", "(unless -noiopads)");
 | 
									run("iopadmap -bits -outpad $__outpad I:O -inpad $__inpad O:I", "(unless -noiopads)");
 | 
				
			||||||
			string cmd = "techmap -map +/intel/FAMILY/cells_map.v";
 | 
					                        run(stringf("techmap -map +/intel/%s/cells_map.v", family_opt.c_str()));
 | 
				
			||||||
			cmd.replace(cmd.find("FAMILY"), 6, family_opt);
 | 
					 | 
				
			||||||
			run(cmd);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
			run("dffinit -highlow -ff dffeas q power_up");
 | 
								run("dffinit -highlow -ff dffeas q power_up");
 | 
				
			||||||
			run("clean -purge");
 | 
								run("clean -purge");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue