mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Improved $adff simplification
This commit is contained in:
		
							parent
							
								
									c6ca4780e2
								
							
						
					
					
						commit
						914ae3401e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -147,7 +147,7 @@ bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff) | |||
| 		goto delete_dff; | ||||
| 	} | ||||
| 
 | ||||
| 	if (sig_d.is_fully_const() && !sig_r.size() && (!has_init || val_init == sig_d.as_const())) { | ||||
| 	if (sig_d.is_fully_const() && (!sig_r.size() || val_rv == sig_d.as_const()) && (!has_init || val_init == sig_d.as_const())) { | ||||
| 		RTLIL::SigSig conn(sig_q, sig_d); | ||||
| 		mod->connect(conn); | ||||
| 		goto delete_dff; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue