mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	extract_counter: Fix clock enable
This commit is contained in:
		
							parent
							
								
									12fa4a3121
								
							
						
					
					
						commit
						5fc180ed2d
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -509,13 +509,15 @@ void counter_worker(
 | 
			
		|||
		cell->setPort(ID(CE), extract.ce);
 | 
			
		||||
	}
 | 
			
		||||
	else
 | 
			
		||||
	{
 | 
			
		||||
		cell->setParam(ID(HAS_CE), RTLIL::Const(0));
 | 
			
		||||
		cell->setPort(ID(CE), RTLIL::Const(1));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	//Hook up hard-wired ports (for now up/down are not supported), default to no parallel output
 | 
			
		||||
	cell->setParam(ID(HAS_POUT), RTLIL::Const(0));
 | 
			
		||||
	cell->setParam(ID(RESET_TO_MAX), RTLIL::Const(0));
 | 
			
		||||
	cell->setParam(ID(DIRECTION), RTLIL::Const("DOWN"));
 | 
			
		||||
	cell->setPort(ID(CE), RTLIL::Const(1));
 | 
			
		||||
	cell->setPort(ID(UP), RTLIL::Const(0));
 | 
			
		||||
 | 
			
		||||
	//Hook up any parallel outputs
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue