mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Automatically run "proc" on extract map files
This commit is contained in:
		
							parent
							
								
									ad9bbcbf40
								
							
						
					
					
						commit
						88d0829d65
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -521,6 +521,11 @@ struct ExtractPass : public Pass {
 | 
				
			||||||
			map = new RTLIL::Design;
 | 
								map = new RTLIL::Design;
 | 
				
			||||||
			Frontend::frontend_call(map, f, filename, (filename.size() > 3 && filename.substr(filename.size()-3) == ".il") ? "ilang" : "verilog");
 | 
								Frontend::frontend_call(map, f, filename, (filename.size() > 3 && filename.substr(filename.size()-3) == ".il") ? "ilang" : "verilog");
 | 
				
			||||||
			fclose(f);
 | 
								fclose(f);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								if (filename.size() <= 3 || filename.substr(filename.size()-3) != ".il") {
 | 
				
			||||||
 | 
									Pass::call(map, "proc");
 | 
				
			||||||
 | 
									Pass::call(map, "opt_clean");
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		std::map<std::string, RTLIL::Module*> needle_map, haystack_map;
 | 
							std::map<std::string, RTLIL::Module*> needle_map, haystack_map;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue