mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Try and fix again
This commit is contained in:
		
							parent
							
								
									c926eeb43a
								
							
						
					
					
						commit
						09beeee38a
					
				
					 1 changed files with 4 additions and 5 deletions
				
			
		|  | @ -372,13 +372,12 @@ struct WreduceWorker | ||||||
| 
 | 
 | ||||||
| 			int i; | 			int i; | ||||||
| 			for (i = 0; i < GetSize(sig); i++) { | 			for (i = 0; i < GetSize(sig); i++) { | ||||||
| 				if (B.at(i, Sx) != S0 && (sub || A.at(i, Sx) != S0)) | 				if (B.at(i, Sx) == S0 && A.at(i, Sx) != Sx) | ||||||
| 					break; |  | ||||||
| 				if (B[i] == S0) |  | ||||||
| 					module->connect(sig[i], A[i]); | 					module->connect(sig[i], A[i]); | ||||||
| 				else if (A[i] == S0) | 				else if (!sub && A.at(i, Sx) == S0 && B.at(i, Sx) != Sx) | ||||||
| 					module->connect(sig[i], B[i]); | 					module->connect(sig[i], B[i]); | ||||||
| 				else log_abort(); | 				else | ||||||
|  | 					break; | ||||||
| 			} | 			} | ||||||
| 			if (i > 0) { | 			if (i > 0) { | ||||||
| 				cell->setPort("\\A", A.extract(i, -1)); | 				cell->setPort("\\A", A.extract(i, -1)); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue