mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Do not die if DSP48E1.P has no users (would otherwise get 'clean'-ed)
This commit is contained in:
		
							parent
							
								
									cd8a640989
								
							
						
					
					
						commit
						f1de93edf5
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -53,6 +53,10 @@ code sigA sigB sigC sigD sigM clock
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		sigM = P;
 | 
							sigM = P;
 | 
				
			||||||
 | 
						// This sigM could have no users if downstream $add
 | 
				
			||||||
 | 
						//   is narrower than $mul result, for example
 | 
				
			||||||
 | 
						if (sigM.empty())
 | 
				
			||||||
 | 
							reject;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	clock = port(dsp, \CLK, SigBit());
 | 
						clock = port(dsp, \CLK, SigBit());
 | 
				
			||||||
endcode
 | 
					endcode
 | 
				
			||||||
| 
						 | 
					@ -261,7 +265,7 @@ endcode
 | 
				
			||||||
 | 
					
 | 
				
			||||||
match postAdd
 | 
					match postAdd
 | 
				
			||||||
	// Ensure that Z mux is not already used
 | 
						// Ensure that Z mux is not already used
 | 
				
			||||||
	if port(dsp, \OPMODE).extract(4,3).is_fully_zero()
 | 
						if port(dsp, \OPMODE, SigSpec()).extract(4,3).is_fully_zero()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	select postAdd->type.in($add)
 | 
						select postAdd->type.in($add)
 | 
				
			||||||
	select GetSize(port(postAdd, \Y)) <= 48
 | 
						select GetSize(port(postAdd, \Y)) <= 48
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue