mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	fix hierarchy -generate mode handling of cells
This commit is contained in:
		
							parent
							
								
									1c09862ad9
								
							
						
					
					
						commit
						b87327d1b9
					
				
					 2 changed files with 20 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -47,7 +47,7 @@ void generate(RTLIL::Design *design, const std::vector<std::string> &celltypes,
 | 
			
		|||
	{
 | 
			
		||||
		if (design->module(cell->type) != nullptr)
 | 
			
		||||
			continue;
 | 
			
		||||
		if (cell->type.begins_with("$__"))
 | 
			
		||||
		if (cell->type.begins_with("$") && !cell->type.begins_with("$__"))
 | 
			
		||||
			continue;
 | 
			
		||||
		for (auto &pattern : celltypes)
 | 
			
		||||
			if (patmatch(pattern.c_str(), RTLIL::unescape_id(cell->type).c_str()))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue