mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Added buffer detection to "abc -lut"
This commit is contained in:
		
							parent
							
								
									745d56149d
								
							
						
					
					
						commit
						db548800b6
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -1075,6 +1075,12 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin | ||||||
| 					design->select(module, cell); | 					design->select(module, cell); | ||||||
| 					continue; | 					continue; | ||||||
| 				} | 				} | ||||||
|  | 				if (c->type == "$lut" && GetSize(c->getPort("\\A")) == 1 && c->getParam("\\LUT").as_int() == 2) { | ||||||
|  | 					SigSpec my_a = module->wires_[remap_name(c->getPort("\\A").as_wire()->name)]; | ||||||
|  | 					SigSpec my_y = module->wires_[remap_name(c->getPort("\\Y").as_wire()->name)]; | ||||||
|  | 					module->connect(my_y, my_a); | ||||||
|  | 					continue; | ||||||
|  | 				} | ||||||
| 				RTLIL::Cell *cell = module->addCell(remap_name(c->name), c->type); | 				RTLIL::Cell *cell = module->addCell(remap_name(c->name), c->type); | ||||||
| 				if (markgroups) cell->attributes["\\abcgroup"] = map_autoidx; | 				if (markgroups) cell->attributes["\\abcgroup"] = map_autoidx; | ||||||
| 				cell->parameters = c->parameters; | 				cell->parameters = c->parameters; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue