mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix handling of (* keep *) wires in wreduce
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									e09e49ca54
								
							
						
					
					
						commit
						0a840dd883
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -235,8 +235,11 @@ struct WreduceWorker | |||
| 		} else { | ||||
| 			while (GetSize(sig) > 0) | ||||
| 			{ | ||||
| 				auto info = mi.query(sig[GetSize(sig)-1]); | ||||
| 				auto bit = sig[GetSize(sig)-1]; | ||||
| 				if (keep_bits.count(bit)) | ||||
| 					break; | ||||
| 
 | ||||
| 				auto info = mi.query(bit); | ||||
| 				if (info->is_output || GetSize(info->ports) > 1) | ||||
| 					break; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue