mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Added MEMID handling to "flatten" pass
This commit is contained in:
		
							parent
							
								
									09aeb9a2aa
								
							
						
					
					
						commit
						ffbb4e992e
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -345,6 +345,12 @@ struct TechmapWorker
 | 
			
		|||
				c->setParam("\\MEMID", Const(memory_renames[memid].str()));
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (c->type == "$mem") {
 | 
			
		||||
				string memid = c->getParam("\\MEMID").decode_string();
 | 
			
		||||
				apply_prefix(cell->name.str(), memid);
 | 
			
		||||
				c->setParam("\\MEMID", Const(memid));
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (c->attributes.count("\\src"))
 | 
			
		||||
				c->add_strpool_attribute("\\src", extra_src_attrs);
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue