mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-28 10:19:26 +00:00 
			
		
		
		
	Logic loop bugfix for "share" pass
This commit is contained in:
		
							parent
							
								
									b28be0759f
								
							
						
					
					
						commit
						d6e2ace95b
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		|  | @ -958,13 +958,17 @@ struct ShareWorker | |||
| 
 | ||||
| 				for (auto bit : topo_sigmap(all_ctrl_signals)) | ||||
| 					for (auto c : topo_bit_drivers[bit]) | ||||
| 						topo_cell_drivers[cell].insert(c); | ||||
| 						topo_cell_drivers[supercell].insert(c); | ||||
| 
 | ||||
| 				topo_cell_drivers[supercell].insert(topo_cell_drivers[cell].begin(), topo_cell_drivers[cell].end()); | ||||
| 				topo_cell_drivers[supercell].insert(topo_cell_drivers[other_cell].begin(), topo_cell_drivers[other_cell].end()); | ||||
| 
 | ||||
| 				topo_cell_drivers[cell] = { supercell }; | ||||
| 				topo_cell_drivers[other_cell] = { supercell }; | ||||
| 
 | ||||
| 				if (config.limit > 0) | ||||
| 					config.limit--; | ||||
| 
 | ||||
| 				topo_cell_drivers[cell].insert(topo_cell_drivers[other_cell].begin(), topo_cell_drivers[other_cell].end()); | ||||
| 				topo_cell_drivers[other_cell] = topo_cell_drivers[cell]; | ||||
| 				break; | ||||
| 			} | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue