mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed bug in opt_reduce (see vloghammer issue_044)
This commit is contained in:
		
							parent
							
								
									f69b5800c9
								
							
						
					
					
						commit
						68c059565a
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -73,7 +73,10 @@ struct OptReduceWorker
 | 
				
			||||||
			for (auto child_cell : drivers.find(chunk)) {
 | 
								for (auto child_cell : drivers.find(chunk)) {
 | 
				
			||||||
				if (child_cell->type == cell->type) {
 | 
									if (child_cell->type == cell->type) {
 | 
				
			||||||
					opt_reduce(cells, drivers, child_cell);
 | 
										opt_reduce(cells, drivers, child_cell);
 | 
				
			||||||
 | 
										if (child_cell->connections["\\Y"].extract(0, 1) == chunk)
 | 
				
			||||||
						new_sig_a.append(child_cell->connections["\\A"]);
 | 
											new_sig_a.append(child_cell->connections["\\A"]);
 | 
				
			||||||
 | 
										else
 | 
				
			||||||
 | 
											new_sig_a.append(RTLIL::State::S0);
 | 
				
			||||||
					imported_children = true;
 | 
										imported_children = true;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue