mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Merge pull request #3655 from jix/smt2_fix_b_op_width
smt2: Fix operation width computation for boolean producing cells
This commit is contained in:
		
						commit
						0f2cb80a26
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -462,6 +462,9 @@ struct Smt2Worker
 | 
			
		|||
		int width = GetSize(sig_y);
 | 
			
		||||
 | 
			
		||||
		if (type == 's' || type == 'S' || type == 'd' || type == 'b') {
 | 
			
		||||
			if (type == 'b')
 | 
			
		||||
				width = GetSize(cell->getPort(ID::A));
 | 
			
		||||
			else
 | 
			
		||||
				width = max(width, GetSize(cell->getPort(ID::A)));
 | 
			
		||||
			if (cell->hasPort(ID::B))
 | 
			
		||||
				width = max(width, GetSize(cell->getPort(ID::B)));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue