mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Add attributes to module instantiation
This commit is contained in:
		
							parent
							
								
									191ac91951
								
							
						
					
					
						commit
						8f207eed1b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1980,6 +1980,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		RTLIL::Cell *cell = module->addCell(inst_name, inst_type);
 | 
			
		||||
		import_attributes(cell->attributes, inst);
 | 
			
		||||
 | 
			
		||||
		if (inst->IsPrimitive() && mode_keep)
 | 
			
		||||
			cell->attributes[ID::keep] = 1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue