mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Added wire start_offset and upto handling to splitnets cmd
This commit is contained in:
		
							parent
							
								
									73653de5ff
								
							
						
					
					
						commit
						e444e59963
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
					@ -37,14 +37,20 @@ struct SplitnetsWorker
 | 
				
			||||||
			new_wire_name += format.substr(0, 1);
 | 
								new_wire_name += format.substr(0, 1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (width > 1) {
 | 
							if (width > 1) {
 | 
				
			||||||
			new_wire_name += stringf("%d", offset+width-1);
 | 
								if (wire->upto)
 | 
				
			||||||
 | 
									new_wire_name += stringf("%d", wire->start_offset+wire->width-(offset+width)-1);
 | 
				
			||||||
 | 
								else
 | 
				
			||||||
 | 
									new_wire_name += stringf("%d", wire->start_offset+offset+width-1);
 | 
				
			||||||
			if (format.size() > 2)
 | 
								if (format.size() > 2)
 | 
				
			||||||
				new_wire_name += format.substr(2, 1);
 | 
									new_wire_name += format.substr(2, 1);
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
				new_wire_name += ":";
 | 
									new_wire_name += ":";
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		new_wire_name += stringf("%d", offset);
 | 
							if (wire->upto)
 | 
				
			||||||
 | 
								new_wire_name += stringf("%d", wire->start_offset+wire->width-offset-1);
 | 
				
			||||||
 | 
							else
 | 
				
			||||||
 | 
								new_wire_name += stringf("%d", wire->start_offset+offset);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (format.size() > 1)
 | 
							if (format.size() > 1)
 | 
				
			||||||
			new_wire_name += format.substr(1, 1);
 | 
								new_wire_name += format.substr(1, 1);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue