mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	abc: Fix {I} and {P} substitution
We were searching for {D} after the first match of {I} or {P}.
			
			
This commit is contained in:
		
							parent
							
								
									a41c1df76f
								
							
						
					
					
						commit
						89300b2dca
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -757,10 +757,10 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin
 | 
			
		|||
	for (size_t pos = abc_script.find("{D}"); pos != std::string::npos; pos = abc_script.find("{D}", pos))
 | 
			
		||||
		abc_script = abc_script.substr(0, pos) + delay_target + abc_script.substr(pos+3);
 | 
			
		||||
 | 
			
		||||
	for (size_t pos = abc_script.find("{I}"); pos != std::string::npos; pos = abc_script.find("{D}", pos))
 | 
			
		||||
	for (size_t pos = abc_script.find("{I}"); pos != std::string::npos; pos = abc_script.find("{I}", pos))
 | 
			
		||||
		abc_script = abc_script.substr(0, pos) + sop_inputs + abc_script.substr(pos+3);
 | 
			
		||||
 | 
			
		||||
	for (size_t pos = abc_script.find("{P}"); pos != std::string::npos; pos = abc_script.find("{D}", pos))
 | 
			
		||||
	for (size_t pos = abc_script.find("{P}"); pos != std::string::npos; pos = abc_script.find("{P}", pos))
 | 
			
		||||
		abc_script = abc_script.substr(0, pos) + sop_products + abc_script.substr(pos+3);
 | 
			
		||||
 | 
			
		||||
	for (size_t pos = abc_script.find("{S}"); pos != std::string::npos; pos = abc_script.find("{S}", pos))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue