mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	More bugfixes related to new RTLIL::IdString
This commit is contained in:
		
							parent
							
								
									08392aad8f
								
							
						
					
					
						commit
						768eb846c4
					
				
					 10 changed files with 60 additions and 44 deletions
				
			
		|  | @ -700,7 +700,7 @@ struct ExtractPass : public Pass { | |||
| 				log("\nFrequent SubCircuit with %d nodes and %d matches:\n", int(result.nodes.size()), result.totalMatchesAfterLimits); | ||||
| 				log("  primary match in %s:", id2cstr(haystack_map.at(result.graphId)->name)); | ||||
| 				for (auto &node : result.nodes) | ||||
| 					log(" %s", id2cstr(node.nodeId)); | ||||
| 					log(" %s", RTLIL::unescape_id(node.nodeId).c_str()); | ||||
| 				log("\n"); | ||||
| 				for (auto &it : result.matchesPerGraph) | ||||
| 					log("  matches in %s: %d\n", id2cstr(haystack_map.at(it.first)->name), it.second); | ||||
|  |  | |||
|  | @ -57,7 +57,7 @@ struct TechmapWorker | |||
| 	std::map<RTLIL::IdString, void(*)(RTLIL::Module*, RTLIL::Cell*)> simplemap_mappers; | ||||
| 	std::map<std::pair<RTLIL::IdString, std::map<RTLIL::IdString, RTLIL::Const>>, RTLIL::Module*> techmap_cache; | ||||
| 	std::map<RTLIL::Module*, bool> techmap_do_cache; | ||||
| 	std::set<RTLIL::Module*> module_queue; | ||||
| 	std::set<RTLIL::Module*, RTLIL::IdString::compare_ptr_by_name<RTLIL::Module>> module_queue; | ||||
| 
 | ||||
| 	struct TechmapWireData { | ||||
| 		RTLIL::Wire *wire; | ||||
|  | @ -479,7 +479,7 @@ struct TechmapWorker | |||
| 								cmd_string = cmd_string.substr(strlen("CONSTMAP; ")); | ||||
| 
 | ||||
| 								log("Analyzing pattern of constant bits for this cell:\n"); | ||||
| 								std::string new_tpl_name = constmap_tpl_name(sigmap, tpl, cell, true); | ||||
| 								RTLIL::IdString new_tpl_name = constmap_tpl_name(sigmap, tpl, cell, true); | ||||
| 								log("Creating constmapped module `%s'.\n", log_id(new_tpl_name)); | ||||
| 								log_assert(map->module(new_tpl_name) == nullptr); | ||||
| 
 | ||||
|  | @ -824,7 +824,9 @@ struct TechmapPass : public Pass { | |||
| 				celltypeMap[it.first].insert(it.first); | ||||
| 		} | ||||
| 
 | ||||
| 		worker.module_queue = design->modules(); | ||||
| 		for (auto module : design->modules()) | ||||
| 			worker.module_queue.insert(module); | ||||
| 
 | ||||
| 		while (!worker.module_queue.empty()) | ||||
| 		{ | ||||
| 			RTLIL::Module *module = *worker.module_queue.begin(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue