mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	Added PRIM_DLATCHRS support to verific front-end
This commit is contained in:
		
							parent
							
								
									8ff229a3ea
								
							
						
					
					
						commit
						ab2d8e5c8c
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		|  | @ -314,6 +314,16 @@ static bool import_netlist_instance_cells(RTLIL::Module *module, std::map<Net*, | |||
| 		return true; | ||||
| 	} | ||||
| 
 | ||||
| 	if (inst->Type() == PRIM_DLATCHRS) | ||||
| 	{ | ||||
| 		if (inst->GetSet()->IsGnd() && inst->GetReset()->IsGnd()) | ||||
| 			module->addDlatch(RTLIL::escape_id(inst->Name()), net_map.at(inst->GetControl()), net_map.at(inst->GetInput()), net_map.at(inst->GetOutput())); | ||||
| 		else | ||||
| 			module->addDlatchsr(RTLIL::escape_id(inst->Name()), net_map.at(inst->GetControl()), net_map.at(inst->GetSet()), net_map.at(inst->GetReset()), | ||||
| 					net_map.at(inst->GetInput()), net_map.at(inst->GetOutput())); | ||||
| 		return true; | ||||
| 	} | ||||
| 
 | ||||
| 	#define IN  operatorInput(inst, net_map) | ||||
| 	#define IN1 operatorInput1(inst, net_map) | ||||
| 	#define IN2 operatorInput2(inst, net_map) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue