mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Fixed processing of initial values for block-local variables
This commit is contained in:
		
							parent
							
								
									3b52121d32
								
							
						
					
					
						commit
						55a1b8dbac
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -423,6 +423,11 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, | ||||||
| 			if (did_something_here) | 			if (did_something_here) | ||||||
| 				did_something = true; | 				did_something = true; | ||||||
| 		} | 		} | ||||||
|  | 		if (stage == 2 && children[i]->type == AST_INITIAL && current_ast_mod != this) { | ||||||
|  | 			current_ast_mod->children.push_back(children[i]); | ||||||
|  | 			children.erase(children.begin() + (i--)); | ||||||
|  | 			did_something = true; | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	for (auto &attr : attributes) { | 	for (auto &attr : attributes) { | ||||||
| 		while (attr.second->simplify(true, false, false, stage, -1, false, true)) | 		while (attr.second->simplify(true, false, false, stage, -1, false, true)) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue