mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fix ordering of when to insert zero index
This commit is contained in:
		
							parent
							
								
									f587950bde
								
							
						
					
					
						commit
						3c1f1a6605
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -65,8 +65,7 @@ struct Pmux2ShiftxPass : public Pass {
 | 
				
			||||||
			const int clog2width = ceil(log2(s_width));
 | 
								const int clog2width = ceil(log2(s_width));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			RTLIL::SigSpec pmux_b;
 | 
								RTLIL::SigSpec pmux_b;
 | 
				
			||||||
			pmux_b.append(RTLIL::Const(0, clog2width));
 | 
								for (int i = s_width-1; i >= 0; i--)
 | 
				
			||||||
			for (int i = s_width-1; i > 0; i--)
 | 
					 | 
				
			||||||
				pmux_b.append(RTLIL::Const(i, clog2width));
 | 
									pmux_b.append(RTLIL::Const(i, clog2width));
 | 
				
			||||||
			shiftx_a.append(cell->getPort("\\B"));
 | 
								shiftx_a.append(cell->getPort("\\B"));
 | 
				
			||||||
			pmux_s.append(cell->getPort("\\S"));
 | 
								pmux_s.append(cell->getPort("\\S"));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue