mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Merge pull request #4742 from YosysHQ/hierarchy_notify_top_attr
Print a note about finding attribute (* top *) in hierarchy
This commit is contained in:
		
						commit
						956313efe8
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1003,8 +1003,10 @@ struct HierarchyPass : public Pass {
 | 
			
		|||
 | 
			
		||||
		if (top_mod == nullptr)
 | 
			
		||||
			for (auto mod : design->modules())
 | 
			
		||||
				if (mod->get_bool_attribute(ID::top))
 | 
			
		||||
				if (mod->get_bool_attribute(ID::top)) {
 | 
			
		||||
					log("Attribute `top' found on module `%s'. Setting top module to %s.\n", log_id(mod), log_id(mod));
 | 
			
		||||
					top_mod = mod;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
		if (top_mod == nullptr)
 | 
			
		||||
		{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue