mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	ice40_dsp: tolerant of fanout-less outputs, as well as all-zero inputs
This commit is contained in:
		
							parent
							
								
									2bda51ac34
								
							
						
					
					
						commit
						6692e5d558
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -57,6 +57,9 @@ code sigA sigB sigH | |||
| 		sigH.append(O[i]); | ||||
| 	} | ||||
| 	log_assert(nusers(O.extract_end(i)) <= 1); | ||||
| 
 | ||||
| 	if (sigH.empty()) | ||||
| 		reject; | ||||
| endcode | ||||
| 
 | ||||
| code argQ ffA ffAholdmux ffArstmux ffAholdpol ffArstpol sigA clock clock_pol | ||||
|  | @ -328,6 +331,8 @@ arg argD argQ clock clock_pol | |||
| 
 | ||||
| code | ||||
| 	dff = nullptr; | ||||
| 	if (argQ.empty()) | ||||
| 		reject; | ||||
| 	for (auto c : argQ.chunks()) { | ||||
| 		if (!c.wire) | ||||
| 			reject; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue