ip_xact/addr_generator.py
def calc_blk_wrd_count(self, block, accesses=[""]):
		"""
		Calculate number of memory words in a block occupied by a registers
		of this block.
		Arguments:
			block       Block object
			accesses    List of register access types that should be considered.
						If not specified, every register is considered.
		"""
		cnt = 0
		highestWrd = -1
		for reg in sorted(block.register, key=lambda a: a.addressOffset):

			# Check if register is of given Access type
			if (not (self.reg_has_access_type(reg, accesses))):
				continue

			act_wrd = self.align_addr_to_wrd(reg.addressOffset)

			if (highestWrd < act_wrd):
				highestWrd = act_wrd
				cnt = cnt + 1

		return cnt

		Calculate number of memory words in a block occupied by a registers
		of this block.
		Arguments:
			block       Block object
			accesses    List of register access types that should be considered.
						If not specified, every register is considered.
		
Calculate number of memory words in a block occupied by a registers
of this block.
Arguments:
block       Block object
accesses    List of register access types that should be considered.
If not specified, every register is considered.
Calculate number of memory words in a block occupied by a registers of this block . Arguments : block Block object accesses List of register access types that should be considered . If not specified every register is considered .
def calc_blk_wrd_count(self, block, accesses=[""]):
		cnt = 0
		highestWrd = -1
		for reg in sorted(block.register, key=lambda a: a.addressOffset):
			if (not (self.reg_has_access_type(reg, accesses))):
				continue
			act_wrd = self.align_addr_to_wrd(reg.addressOffset)
			if (highestWrd < act_wrd):
				highestWrd = act_wrd
				cnt = cnt + 1
		return cnt
def calc_blk_wrd_count ( self , block , accesses = [ "" ] ) : cnt = 0 highestWrd = - 1 for reg in sorted ( block . register , key = lambda a : a . addressOffset ) : if ( not ( self . reg_has_access_type ( reg , accesses ) ) ) : continue act_wrd = self . align_addr_to_wrd ( reg . addressOffset ) if ( highestWrd < act_wrd ) : highestWrd = act_wrd cnt = cnt + 1 return cnt
Calculate number of memory words in a block occupied by a registers
of this block.
Calculate number of memory words in a block occupied by a registers of this block .
"""
		Calculate number of memory words in a block occupied by a registers
		of this block.
		Arguments:
			block       Block object
			accesses    List of register access types that should be considered.
						If not specified, every register is considered.
		""" # Check if register is of given Access type
self
block
accesses