mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	verific: do not assert if wire not found; warn instead
This commit is contained in:
		
							parent
							
								
									b048afc3a6
								
							
						
					
					
						commit
						d3555c667c
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
					@ -1162,8 +1162,12 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::se
 | 
				
			||||||
		if (!type_range->IsTypeEnum())
 | 
							if (!type_range->IsTypeEnum())
 | 
				
			||||||
			continue;
 | 
								continue;
 | 
				
			||||||
		auto wire = module->wire(RTLIL::escape_id(id_name));
 | 
							auto wire = module->wire(RTLIL::escape_id(id_name));
 | 
				
			||||||
		log_assert(wire);
 | 
							if (!wire) {
 | 
				
			||||||
		wire->set_string_attribute(ID(wiretype), type_range->GetTypeName());
 | 
								if (net->IsUserDeclared())
 | 
				
			||||||
 | 
									log_warning("Unable to find imported net '%s'.\n", net->Name());
 | 
				
			||||||
 | 
								continue;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							wire->set_string_attribute(ID::wiretype, type_range->GetTypeName());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		MapIter mj;
 | 
							MapIter mj;
 | 
				
			||||||
		char *k, *v;
 | 
							char *k, *v;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -199,6 +199,7 @@ X(wand)
 | 
				
			||||||
X(whitebox)
 | 
					X(whitebox)
 | 
				
			||||||
X(WIDTH)
 | 
					X(WIDTH)
 | 
				
			||||||
X(wildcard_port_conns)
 | 
					X(wildcard_port_conns)
 | 
				
			||||||
 | 
					X(wiretype)
 | 
				
			||||||
X(wor)
 | 
					X(wor)
 | 
				
			||||||
X(WORDS)
 | 
					X(WORDS)
 | 
				
			||||||
X(WR_ADDR)
 | 
					X(WR_ADDR)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue