mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed handling of local memories in functions
This commit is contained in:
		
							parent
							
								
									0cac95ea94
								
							
						
					
					
						commit
						2d32c6c4f6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -2173,7 +2173,7 @@ skip_dynamic_range_lvalue_expansion:;
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		for (auto child : decl->children)
 | 
			
		||||
			if (child->type == AST_WIRE || child->type == AST_PARAMETER || child->type == AST_LOCALPARAM)
 | 
			
		||||
			if (child->type == AST_WIRE || child->type == AST_MEMORY || child->type == AST_PARAMETER || child->type == AST_LOCALPARAM)
 | 
			
		||||
			{
 | 
			
		||||
				AstNode *wire = nullptr;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -2233,7 +2233,7 @@ skip_dynamic_range_lvalue_expansion:;
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		for (auto child : decl->children)
 | 
			
		||||
			if (child->type != AST_WIRE && child->type != AST_PARAMETER && child->type != AST_LOCALPARAM)
 | 
			
		||||
			if (child->type != AST_WIRE && child->type != AST_MEMORY && child->type != AST_PARAMETER && child->type != AST_LOCALPARAM)
 | 
			
		||||
			{
 | 
			
		||||
				AstNode *stmt = child->clone();
 | 
			
		||||
				stmt->replace_ids(prefix, replace_rules);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue