ip_xact/h_addr_generator.py
def sort_regs_to_wrd_groups(self, regs):
		"""
		Sort list of IP-XACT register objects into groups. Each group is
		represented by a list. Each list contains registers located within
		a single memory word.
		"""
		regGroups = [[]]
		lowInd = 0

		# Sort the registers from field map into sub-lists	
		for reg in sorted(regs, key=lambda a: a.addressOffset):

			# We hit the register aligned create new group
			if (reg.addressOffset >= lowInd + self.wrdWidthByte):
				lowInd = reg.addressOffset - reg.addressOffset % 4
				regGroups.append([])

			regGroups[-1].append(reg)

		return regGroups

		Sort list of IP-XACT register objects into groups. Each group is
		represented by a list. Each list contains registers located within
		a single memory word.
		
Sort list of IP-XACT register objects into groups. Each group is
represented by a list. Each list contains registers located within
a single memory word.
Sort list of IP - XACT register objects into groups . Each group is represented by a list . Each list contains registers located within a single memory word .
def sort_regs_to_wrd_groups(self, regs):
		regGroups = [[]]
		lowInd = 0
		for reg in sorted(regs, key=lambda a: a.addressOffset):
			if (reg.addressOffset >= lowInd + self.wrdWidthByte):
				lowInd = reg.addressOffset - reg.addressOffset % 4
				regGroups.append([])
			regGroups[-1].append(reg)
		return regGroups
def sort_regs_to_wrd_groups ( self , regs ) : regGroups = [ [ ] ] lowInd = 0 for reg in sorted ( regs , key = lambda a : a . addressOffset ) : if ( reg . addressOffset >= lowInd + self . wrdWidthByte ) : lowInd = reg . addressOffset - reg . addressOffset % 4 regGroups . append ( [ ] ) regGroups [ - 1 ] . append ( reg ) return regGroups
Sort list of IP-XACT register objects into groups.
Sort list of IP - XACT register objects into groups .
"""
		Sort list of IP-XACT register objects into groups. Each group is
		represented by a list. Each list contains registers located within
		a single memory word.
		""" # Sort the registers from field map into sub-lists	 # We hit the register aligned create new group
self
regs