mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Import all modules from all libraries when when needed
This commit is contained in:
		
							parent
							
								
									7c3094633d
								
							
						
					
					
						commit
						0a81c8e161
					
				
					 1 changed files with 22 additions and 14 deletions
				
			
		|  | @ -2731,7 +2731,10 @@ std::string verific_import(Design *design, const std::map<std::string,std::strin | |||
| 		netlists = new Array(1); | ||||
| 		MapIter mi ; | ||||
| 		Verific::Cell *c ; | ||||
| 		Library *l = Libset::Global()->GetLibrary("work"); | ||||
| 		MapIter it ; | ||||
| 		Library *l ; | ||||
| 		FOREACH_LIBRARY_OF_LIBSET(Libset::Global(),it,l) { | ||||
| 			if (l == Library::Primitives() || l == Library::Operators()) continue; | ||||
| 			FOREACH_CELL_OF_LIBRARY(l,mi,c) { | ||||
| 				MapIter ni ; | ||||
| 				Netlist *nl; | ||||
|  | @ -2740,6 +2743,7 @@ std::string verific_import(Design *design, const std::map<std::string,std::strin | |||
| 						netlists->InsertLast(nl); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| #endif | ||||
| 	} | ||||
| 	else { | ||||
|  | @ -3994,7 +3998,10 @@ struct VerificPass : public Pass { | |||
| #endif | ||||
| 				MapIter mi ; | ||||
| 				Verific::Cell *c ; | ||||
| 				Library *l = Libset::Global()->GetLibrary(work.c_str()); | ||||
| 				MapIter it ; | ||||
| 				Library *l ; | ||||
| 				FOREACH_LIBRARY_OF_LIBSET(Libset::Global(),it,l) { | ||||
| 					if (l == Library::Primitives() || l == Library::Operators()) continue; | ||||
| 					FOREACH_CELL_OF_LIBRARY(l,mi,c) { | ||||
| 						MapIter ni ; | ||||
| 						Netlist *nl; | ||||
|  | @ -4003,6 +4010,7 @@ struct VerificPass : public Pass { | |||
| 								nl_todo.emplace(nl->CellBaseName(), nl); | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
| #endif | ||||
| 			} | ||||
| 			else | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue