mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Don't be too smart with $dff cells with "init" attribute on out signal
This commit is contained in:
		
							parent
							
								
									66eb254fc2
								
							
						
					
					
						commit
						18cb8b4636
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -83,7 +83,7 @@ bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff)
 | 
			
		|||
		val_init.bits.push_back(bit.wire == NULL ? bit.data : RTLIL::State::Sx);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (dff->type == "$dff" && mux_drivers.has(sig_d)) {
 | 
			
		||||
	if (dff->type == "$dff" && mux_drivers.has(sig_d) && !has_init) {
 | 
			
		||||
		std::set<RTLIL::Cell*> muxes;
 | 
			
		||||
		mux_drivers.find(sig_d, muxes);
 | 
			
		||||
		for (auto mux : muxes) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue