mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Merge remote-tracking branch 'origin/eddie/clkpart' into xaig_dff
This commit is contained in:
		
						commit
						bf7d36627e
					
				
					 1 changed files with 9 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -58,7 +58,7 @@ struct ClkPartPass : public Pass {
 | 
			
		|||
	}
 | 
			
		||||
	void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
 | 
			
		||||
	{
 | 
			
		||||
		log_header(design, "Executing CLKPART pass (TODO).\n");
 | 
			
		||||
		log_header(design, "Executing CLKPART pass (partition design according to clock domain).\n");
 | 
			
		||||
		log_push();
 | 
			
		||||
 | 
			
		||||
		clear_flags();
 | 
			
		||||
| 
						 | 
				
			
			@ -233,15 +233,16 @@ struct ClkPartPass : public Pass {
 | 
			
		|||
						std::get<0>(it.first) ? "" : "!", log_signal(std::get<1>(it.first)),
 | 
			
		||||
						std::get<2>(it.first) ? "" : "!", log_signal(std::get<3>(it.first)));
 | 
			
		||||
 | 
			
		||||
			for (auto &it : assigned_cells) {
 | 
			
		||||
				RTLIL::Selection sel(false);
 | 
			
		||||
				sel.selected_members[mod->name] = pool<IdString>(it.second.begin(), it.second.end());
 | 
			
		||||
			if (assigned_cells.size() > 1)
 | 
			
		||||
				for (auto &it : assigned_cells) {
 | 
			
		||||
					RTLIL::Selection sel(false);
 | 
			
		||||
					sel.selected_members[mod->name] = pool<IdString>(it.second.begin(), it.second.end());
 | 
			
		||||
 | 
			
		||||
				RTLIL::IdString submod = stringf("%s.%s", mod->name.c_str(), NEW_ID.c_str());
 | 
			
		||||
				Pass::call_on_selection(design, sel, stringf("submod -name %s", submod.c_str()));
 | 
			
		||||
					RTLIL::IdString submod = stringf("%s.%s", mod->name.c_str(), NEW_ID.c_str());
 | 
			
		||||
					Pass::call_on_selection(design, sel, stringf("submod -name %s", submod.c_str()));
 | 
			
		||||
 | 
			
		||||
				design->module(submod)->set_bool_attribute(ID(clkpart));
 | 
			
		||||
			}
 | 
			
		||||
					design->module(submod)->set_bool_attribute(ID(clkpart));
 | 
			
		||||
				}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue