mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Merge pull request #3486 from daglem/fix-flowmap-crash
Fix crash in flowmap
This commit is contained in:
		
						commit
						fcd1be1422
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1406,7 +1406,8 @@ struct FlowmapWorker
 | 
			
		|||
			RTLIL::SigSpec lut_a, lut_y = node;
 | 
			
		||||
			for (auto input_node : input_nodes)
 | 
			
		||||
				lut_a.append(input_node);
 | 
			
		||||
			lut_a.append(RTLIL::Const(State::Sx, minlut - input_nodes.size()));
 | 
			
		||||
			if ((int)input_nodes.size() < minlut)
 | 
			
		||||
				lut_a.append(RTLIL::Const(State::Sx, minlut - input_nodes.size()));
 | 
			
		||||
 | 
			
		||||
			RTLIL::Cell *lut = module->addLut(NEW_ID, lut_a, lut_y, lut_table);
 | 
			
		||||
			mapped_nodes.insert(node);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue