mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	booth: Remove now-unused helpers
This commit is contained in:
		
							parent
							
								
									fedd12261f
								
							
						
					
					
						commit
						cb05262fc4
					
				
					 1 changed files with 0 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -66,33 +66,6 @@ struct BoothPassWorker {
 | 
			
		|||
 | 
			
		||||
	BoothPassWorker(RTLIL::Module *module) : module(module), sigmap(module) { booth_counter = 0; }
 | 
			
		||||
 | 
			
		||||
	// Helper routines for building architecture subcomponents
 | 
			
		||||
 | 
			
		||||
	RTLIL::Wire *mk_wireFromSigSpec(const SigSpec &v)
 | 
			
		||||
	{
 | 
			
		||||
 | 
			
		||||
		auto g = module->addCell(NEW_ID, ID($pos));
 | 
			
		||||
		Wire *ret = module->addWire(NEW_ID, 1);
 | 
			
		||||
		g->setPort(ID::A, v);
 | 
			
		||||
		g->setPort(ID::Y, ret);
 | 
			
		||||
		g->setParam(ID::A_WIDTH, 1);
 | 
			
		||||
		g->setParam(ID::Y_WIDTH, 1);
 | 
			
		||||
		g->setParam(ID::A_SIGNED, false);
 | 
			
		||||
		return ret;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// fuse wires.
 | 
			
		||||
	void join_wires_with_buffer(RTLIL::Wire *ip, RTLIL::Wire *op)
 | 
			
		||||
	{
 | 
			
		||||
		std::string wire_name = "join_";
 | 
			
		||||
		auto g = module->addCell(new_id(wire_name, __LINE__, ""), ID($pos));
 | 
			
		||||
		g->setParam(ID::A_WIDTH, 1);
 | 
			
		||||
		g->setParam(ID::Y_WIDTH, 1);
 | 
			
		||||
		g->setParam(ID::A_SIGNED, false);
 | 
			
		||||
		g->setPort(ID::A, ip);
 | 
			
		||||
		g->setPort(ID::Y, op);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Unary gate
 | 
			
		||||
	RTLIL::Wire *mk_ugate1(const RTLIL::IdString &red_typ, std::string &name, SigBit ip1, std::string &op_name)
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue