mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-28 10:19:26 +00:00 
			
		
		
		
	Increment _TECHMAP_BITS_CONNMAP_ by one since counting from zero
This commit is contained in:
		
							parent
							
								
									00d8a9dce2
								
							
						
					
					
						commit
						c2db70f41e
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -649,10 +649,13 @@ struct TechmapWorker | |||
| 									unique_bit_id[bit] = unique_bit_id_counter++; | ||||
| 						} | ||||
| 
 | ||||
| 					// Find highest bit set
 | ||||
| 					int bits = 0; | ||||
| 					for (int i = 0; i < 32; i++) | ||||
| 						if (((unique_bit_id_counter-1) & (1 << i)) != 0) | ||||
| 							bits = i; | ||||
| 					// Increment index by one to get number of bits
 | ||||
| 					bits++; | ||||
| 					if (tpl->avail_parameters.count("\\_TECHMAP_BITS_CONNMAP_")) | ||||
| 						parameters["\\_TECHMAP_BITS_CONNMAP_"] = bits; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue