mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Fix xilinx_dsp index cast
This commit is contained in:
		
							parent
							
								
									8326af5418
								
							
						
					
					
						commit
						0727b2c902
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -11,7 +11,7 @@ match ffA
 | 
			
		|||
	select ffA->type.in($dff, $dffe)
 | 
			
		||||
	select param(ffA, \CLK_POLARITY).as_bool()
 | 
			
		||||
	// select nusers(port(ffA, \Q)) == 2
 | 
			
		||||
	index <SigSpec> port(ffA, \Q).to_sigbit_pool() === port(dsp, \A).remove_const().to_sigbit_pool()
 | 
			
		||||
	index <pool<SigBit>> port(ffA, \Q).to_sigbit_pool() === port(dsp, \A).remove_const().to_sigbit_pool()
 | 
			
		||||
	// DSP48E1 does not support clock inversion
 | 
			
		||||
	optional
 | 
			
		||||
endmatch
 | 
			
		||||
| 
						 | 
				
			
			@ -25,7 +25,7 @@ match ffB
 | 
			
		|||
	select ffB->type.in($dff, $dffe)
 | 
			
		||||
	select param(ffB, \CLK_POLARITY).as_bool()
 | 
			
		||||
	// select nusers(port(ffB, \Q)) == 2
 | 
			
		||||
	index <SigSpec> port(ffB, \Q).to_sigbit_pool() === port(dsp, \B).remove_const().to_sigbit_pool()
 | 
			
		||||
	index <pool<SigBit>> port(ffB, \Q).to_sigbit_pool() === port(dsp, \B).remove_const().to_sigbit_pool()
 | 
			
		||||
	optional
 | 
			
		||||
endmatch
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue