mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed merging of compatible wire decls in AST frontend
This commit is contained in:
		
							parent
							
								
									de7bd12004
								
							
						
					
					
						commit
						d6a01fe412
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -206,10 +206,13 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
 | 
			
		|||
					did_something = true;
 | 
			
		||||
					delete node;
 | 
			
		||||
					continue;
 | 
			
		||||
				wires_are_incompatible:
 | 
			
		||||
					if (stage > 1)
 | 
			
		||||
						log_error("Incompatible re-declaration of wire %s at %s:%d.\n", node->str.c_str(), filename.c_str(), linenum);
 | 
			
		||||
					continue;
 | 
			
		||||
				}
 | 
			
		||||
				this_wire_scope[node->str] = node;
 | 
			
		||||
			}
 | 
			
		||||
		wires_are_incompatible:
 | 
			
		||||
			if (node->type == AST_PARAMETER || node->type == AST_LOCALPARAM || node->type == AST_WIRE || node->type == AST_AUTOWIRE || node->type == AST_GENVAR ||
 | 
			
		||||
					node->type == AST_MEMORY || node->type == AST_FUNCTION || node->type == AST_TASK || node->type == AST_CELL) {
 | 
			
		||||
				backup_scope[node->str] = current_scope[node->str];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue