mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-29 18:52:30 +00:00 
			
		
		
		
	Fixed handling of memory read without address
This commit is contained in:
		
							parent
							
								
									c475deec6c
								
							
						
					
					
						commit
						eb38722e98
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1274,7 +1274,7 @@ skip_dynamic_range_lvalue_expansion:; | ||||||
| 
 | 
 | ||||||
| 	// found right-hand side identifier for memory -> replace with memory read port
 | 	// found right-hand side identifier for memory -> replace with memory read port
 | ||||||
| 	if (stage > 1 && type == AST_IDENTIFIER && id2ast != NULL && id2ast->type == AST_MEMORY && !in_lvalue && | 	if (stage > 1 && type == AST_IDENTIFIER && id2ast != NULL && id2ast->type == AST_MEMORY && !in_lvalue && | ||||||
| 			children[0]->type == AST_RANGE && children[0]->children.size() == 1) { | 			children.size() == 1 && children[0]->type == AST_RANGE && children[0]->children.size() == 1) { | ||||||
| 		newNode = new AstNode(AST_MEMRD, children[0]->children[0]->clone()); | 		newNode = new AstNode(AST_MEMRD, children[0]->children[0]->clone()); | ||||||
| 		newNode->str = str; | 		newNode->str = str; | ||||||
| 		newNode->id2ast = id2ast; | 		newNode->id2ast = id2ast; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue