mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix for SigSpec() == SigSpec(State::Sx, 0) to be true again
This commit is contained in:
		
							parent
							
								
									279fd22ddf
								
							
						
					
					
						commit
						6bf7114bbd
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -3554,6 +3554,12 @@ bool RTLIL::SigSpec::operator ==(const RTLIL::SigSpec &other) const | ||||||
| 	if (width_ != other.width_) | 	if (width_ != other.width_) | ||||||
| 		return false; | 		return false; | ||||||
| 
 | 
 | ||||||
|  | 	// Without this, SigSpec() == SigSpec(State::S0, 0) will fail
 | ||||||
|  | 	//   since the RHS will contain one SigChunk of width 0 causing
 | ||||||
|  | 	//   the size check below to fail
 | ||||||
|  | 	if (width_ == 0) | ||||||
|  | 		return true; | ||||||
|  | 
 | ||||||
| 	pack(); | 	pack(); | ||||||
| 	other.pack(); | 	other.pack(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue