mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +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,7 +462,10 @@ struct Smt2Worker | |||
| 		int width = GetSize(sig_y); | ||||
| 
 | ||||
| 		if (type == 's' || type == 'S' || type == 'd' || type == 'b') { | ||||
| 			width = max(width, GetSize(cell->getPort(ID::A))); | ||||
| 			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