mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Merge pull request #4714 from georgerennie/george/proc_dff_bug_multiple_sigs
proc_dff: fix early return bug
This commit is contained in:
		
						commit
						7ebe451f9a
					
				
					 2 changed files with 33 additions and 2 deletions
				
			
		|  | @ -262,7 +262,7 @@ void proc_dff(RTLIL::Module *mod, RTLIL::Process *proc, ConstEval &ce) | |||
| 		{ | ||||
| 			log_warning("Complex async reset for dff `%s'.\n", log_signal(sig)); | ||||
| 			gen_dffsr_complex(mod, insig, sig, sync_edge->signal, sync_edge->type == RTLIL::SyncType::STp, async_rules, proc); | ||||
| 			return; | ||||
| 			continue; | ||||
| 		} | ||||
| 
 | ||||
| 		// If there is a reset condition in the async rules, use it
 | ||||
|  | @ -277,7 +277,7 @@ void proc_dff(RTLIL::Module *mod, RTLIL::Process *proc, ConstEval &ce) | |||
| 					sync_edge->type == RTLIL::SyncType::STp, | ||||
| 					sync_level && sync_level->type == RTLIL::SyncType::ST1, | ||||
| 					sync_edge->signal, sync_level->signal, proc); | ||||
| 			return; | ||||
| 			continue; | ||||
| 		} | ||||
| 
 | ||||
| 		gen_dff(mod, insig, rstval.as_const(), sig_q, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue