mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Merge branch 'master' of github.com:YosysHQ/yosys into pmgen
This commit is contained in:
		
						commit
						c06c062469
					
				
					 28 changed files with 627 additions and 199 deletions
				
			
		| 
						 | 
				
			
			@ -72,7 +72,8 @@ struct FsmOpt
 | 
			
		|||
 | 
			
		||||
			new_transition_table.swap(fsm_data.transition_table);
 | 
			
		||||
			new_state_table.swap(fsm_data.state_table);
 | 
			
		||||
			fsm_data.reset_state = old_to_new_state.at(fsm_data.reset_state);
 | 
			
		||||
			if (fsm_data.reset_state != -1)
 | 
			
		||||
				fsm_data.reset_state = old_to_new_state.at(fsm_data.reset_state);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -82,9 +82,15 @@ void proc_clean_switch(RTLIL::SwitchRule *sw, RTLIL::CaseRule *parent, bool &did
 | 
			
		|||
		{
 | 
			
		||||
			if (max_depth != 0)
 | 
			
		||||
				proc_clean_case(cs, did_something, count, max_depth-1);
 | 
			
		||||
			int size = 0;
 | 
			
		||||
			for (auto cmp : cs->compare)
 | 
			
		||||
			{
 | 
			
		||||
				size += cmp.size();
 | 
			
		||||
				if (!cmp.is_fully_def())
 | 
			
		||||
					all_fully_def = false;
 | 
			
		||||
			}
 | 
			
		||||
			if (sw->signal.size() != size)
 | 
			
		||||
				all_fully_def = false;
 | 
			
		||||
		}
 | 
			
		||||
		if (all_fully_def)
 | 
			
		||||
		{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue