mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Merge pull request #1264 from YosysHQ/eddie/fix_1254
opt_lut to ignore LUT cells, or those that drive bits, with (* keep *)
This commit is contained in:
		
						commit
						ac2fc3a144
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -101,6 +101,12 @@ struct OptLutWorker
 | 
			
		|||
		{
 | 
			
		||||
			if (cell->type == "$lut")
 | 
			
		||||
			{
 | 
			
		||||
				if (cell->has_keep_attr())
 | 
			
		||||
					continue;
 | 
			
		||||
				SigBit lut_output = cell->getPort("\\Y");
 | 
			
		||||
				if (lut_output.wire->get_bool_attribute("\\keep"))
 | 
			
		||||
					continue;
 | 
			
		||||
 | 
			
		||||
				int lut_width = cell->getParam("\\WIDTH").as_int();
 | 
			
		||||
				SigSpec lut_input = cell->getPort("\\A");
 | 
			
		||||
				int lut_arity = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue