mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	$_XILINX_SHREG_ to preserve src attribute
This commit is contained in:
		
							parent
							
								
									f6c354c55b
								
							
						
					
					
						commit
						6797f6b6c4
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -232,6 +232,7 @@ struct ShregmapTechXilinx7 : ShregmapTech | ||||||
| 		log_assert(it != sigbit_to_shiftx_offset.end()); | 		log_assert(it != sigbit_to_shiftx_offset.end()); | ||||||
| 
 | 
 | ||||||
| 		auto newcell = cell->module->addCell(NEW_ID, "$__XILINX_SHREG_"); | 		auto newcell = cell->module->addCell(NEW_ID, "$__XILINX_SHREG_"); | ||||||
|  | 		newcell->set_src_attribute(cell->get_src_attribute()); | ||||||
| 		newcell->setParam("\\DEPTH", cell->getParam("\\DEPTH")); | 		newcell->setParam("\\DEPTH", cell->getParam("\\DEPTH")); | ||||||
| 		newcell->setParam("\\INIT", cell->getParam("\\INIT")); | 		newcell->setParam("\\INIT", cell->getParam("\\INIT")); | ||||||
| 		newcell->setParam("\\CLKPOL", cell->getParam("\\CLKPOL")); | 		newcell->setParam("\\CLKPOL", cell->getParam("\\CLKPOL")); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue