mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Added call_on_selection() and call_on_module() API
This commit is contained in:
		
							parent
							
								
									2e358bd667
								
							
						
					
					
						commit
						8d04ca7d22
					
				
					 4 changed files with 37 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -393,15 +393,7 @@ struct TechmapWorker
 | 
			
		|||
							tpl->add(data.wire);
 | 
			
		||||
 | 
			
		||||
							std::string cmd_string = data.value.as_const().decode_string();
 | 
			
		||||
 | 
			
		||||
							RTLIL::Selection tpl_mod_sel(false);
 | 
			
		||||
							std::string backup_active_module = map->selected_active_module;
 | 
			
		||||
							map->selected_active_module = tpl->name;
 | 
			
		||||
							tpl_mod_sel.select(tpl);
 | 
			
		||||
							map->selection_stack.push_back(tpl_mod_sel);
 | 
			
		||||
							Pass::call(map, cmd_string);
 | 
			
		||||
							map->selection_stack.pop_back();
 | 
			
		||||
							map->selected_active_module = backup_active_module;
 | 
			
		||||
							Pass::call_on_module(map, tpl, cmd_string);
 | 
			
		||||
 | 
			
		||||
							keep_running = true;
 | 
			
		||||
							break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue