mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Add CLKPOL == 0
This commit is contained in:
		
							parent
							
								
									1c7d721558
								
							
						
					
					
						commit
						a980f0d4be
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -64,6 +64,8 @@ void reduce_chain(xilinx_srl_pm &pm)
 | 
			
		|||
		c->setParam(ID(INIT), initval.as_const());
 | 
			
		||||
		if (c->type.in(ID($_DFF_P_), ID($_DFFE_PN_), ID($_DFFE_PP_)))
 | 
			
		||||
			c->setParam(ID(CLKPOL), 1);
 | 
			
		||||
		else if (c->type.in(ID($_DFF_N_), ID($DFFE_NN_), ID($_DFFE_NP_), ID(FDRE_1)))
 | 
			
		||||
			c->setParam(ID(CLKPOL), 0);
 | 
			
		||||
		else
 | 
			
		||||
			log_abort();
 | 
			
		||||
		if (c->type.in(ID($_DFFE_NN_), ID($_DFFE_PN_)))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue