mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Bugfix in Verific front-end
This commit is contained in:
		
							parent
							
								
									4a3e1ded1e
								
							
						
					
					
						commit
						6a27cbe5b1
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -773,8 +773,11 @@ static void import_netlist(RTLIL::Design *design, Netlist *nl, std::set<Netlist*
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			IdString port_name_id = RTLIL::escape_id(port_name);
 | 
								IdString port_name_id = RTLIL::escape_id(port_name);
 | 
				
			||||||
			auto &sigvec = cell_port_conns[port_name_id];
 | 
								auto &sigvec = cell_port_conns[port_name_id];
 | 
				
			||||||
			if (GetSize(sigvec) <= port_offset)
 | 
								if (GetSize(sigvec) <= port_offset) {
 | 
				
			||||||
				sigvec.resize(port_offset+1, State::Sz);
 | 
									SigSpec zwires = module->addWire(NEW_ID, port_offset+1-GetSize(sigvec));
 | 
				
			||||||
 | 
									for (auto bit : zwires)
 | 
				
			||||||
 | 
										sigvec.push_back(bit);
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
			sigvec[port_offset] = net_map.at(pr->GetNet());
 | 
								sigvec[port_offset] = net_map.at(pr->GetNet());
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue