mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed width detection for part selects
This commit is contained in:
		
							parent
							
								
									27a872d1e7
								
							
						
					
					
						commit
						0598bc8708
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -599,8 +599,8 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint, bool *foun
 | 
			
		|||
			} else
 | 
			
		||||
				this_width = range->range_left - range->range_right + 1;
 | 
			
		||||
			sign_hint = false;
 | 
			
		||||
		} else
 | 
			
		||||
			width_hint = std::max(width_hint, this_width);
 | 
			
		||||
		}
 | 
			
		||||
		width_hint = std::max(width_hint, this_width);
 | 
			
		||||
		if (!id_ast->is_signed)
 | 
			
		||||
			sign_hint = false;
 | 
			
		||||
		break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue