mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Use State::S{0,1}
This commit is contained in:
		
							parent
							
								
									3486235338
								
							
						
					
					
						commit
						046e1a5214
					
				
					 10 changed files with 19 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -357,7 +357,7 @@ struct SvaFsm
 | 
			
		|||
		for (int i = 0; i < GetSize(nodes); i++)
 | 
			
		||||
		{
 | 
			
		||||
			if (next_state_sig[i] != State::S0) {
 | 
			
		||||
				clocking.addDff(NEW_ID, next_state_sig[i], state_wire[i], Const(0, 1));
 | 
			
		||||
				clocking.addDff(NEW_ID, next_state_sig[i], state_wire[i], State::S0);
 | 
			
		||||
			} else {
 | 
			
		||||
				module->connect(state_wire[i], State::S0);
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue