mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Make flatten less expressive
This commit is contained in:
		
							parent
							
								
									39e8fc90bc
								
							
						
					
					
						commit
						aec3df36d1
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -33,10 +33,7 @@ IdString concat_name(RTLIL::Cell *cell, IdString object_name)
 | 
				
			||||||
	if (object_name[0] == '\\')
 | 
						if (object_name[0] == '\\')
 | 
				
			||||||
		return stringf("%s.%s", cell->name.c_str(), object_name.c_str() + 1);
 | 
							return stringf("%s.%s", cell->name.c_str(), object_name.c_str() + 1);
 | 
				
			||||||
	else {
 | 
						else {
 | 
				
			||||||
		std::string object_name_str = object_name.str();
 | 
							return stringf("%s.%s", cell->name.c_str(), object_name.c_str());
 | 
				
			||||||
		if (object_name_str.substr(0, 8) == "$flatten")
 | 
					 | 
				
			||||||
			object_name_str.erase(0, 8);
 | 
					 | 
				
			||||||
		return stringf("$flatten%s.%s", cell->name.c_str(), object_name_str.c_str());
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue