mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Improve handling of verific primitives in "verific -import -V" mode
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									6af0d03fae
								
							
						
					
					
						commit
						e93e4a7a2c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -789,7 +789,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::se
 | 
			
		|||
	std::string netlist_name = nl->GetAtt(" \\top") ? nl->CellBaseName() : nl->Owner()->Name();
 | 
			
		||||
	std::string module_name = netlist_name;
 | 
			
		||||
 | 
			
		||||
	if (nl->IsOperator()) {
 | 
			
		||||
	if (nl->IsOperator() || nl->IsPrimitive()) {
 | 
			
		||||
		module_name = "$verific$" + module_name;
 | 
			
		||||
	} else {
 | 
			
		||||
		if (!norename && *nl->Name()) {
 | 
			
		||||
| 
						 | 
				
			
			@ -1409,7 +1409,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::se
 | 
			
		|||
 | 
			
		||||
		std::string inst_type = inst->View()->Owner()->Name();
 | 
			
		||||
 | 
			
		||||
		if (inst->View()->IsOperator()) {
 | 
			
		||||
		if (inst->View()->IsOperator() || inst->View()->IsPrimitive()) {
 | 
			
		||||
			inst_type = "$verific$" + inst_type;
 | 
			
		||||
		} else {
 | 
			
		||||
			if (*inst->View()->Name()) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue