mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Add front-end detection for *.tcl files
This commit is contained in:
		
							parent
							
								
									58ee8e3b8a
								
							
						
					
					
						commit
						b8d7f57f61
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -796,6 +796,8 @@ void run_frontend(std::string filename, std::string command, std::string *backen | ||||||
| 			command = "ilang"; | 			command = "ilang"; | ||||||
| 		else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".ys") | 		else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".ys") | ||||||
| 			command = "script"; | 			command = "script"; | ||||||
|  | 		else if (filename.size() > 2 && filename.substr(filename.size()-4) == ".tcl") | ||||||
|  | 			command = "tcl"; | ||||||
| 		else if (filename == "-") | 		else if (filename == "-") | ||||||
| 			command = "script"; | 			command = "script"; | ||||||
| 		else | 		else | ||||||
|  | @ -875,6 +877,9 @@ void run_frontend(std::string filename, std::string command, std::string *backen | ||||||
| 		log("\n-- Parsing `%s' using frontend `%s' --\n", filename.c_str(), command.c_str()); | 		log("\n-- Parsing `%s' using frontend `%s' --\n", filename.c_str(), command.c_str()); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	if (command == "tcl") | ||||||
|  | 		Pass::call(design, vector<string>({command, filename})); | ||||||
|  | 	else | ||||||
| 		Frontend::frontend_call(design, NULL, filename, command); | 		Frontend::frontend_call(design, NULL, filename, command); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue