ip_xact/vhdl_reg_map_generator.py
def calc_reg_data_mask(self, reg):
		"""
		Calculates data mask of given register. Data mask contains "1" for each bit
		which is implemented in the register, "0" for each bit which is not
		implemented in a register.
		"""

        # Suppose there is no implemented register
		data_mask = ["0" for x in range(reg.size)]

        # Go through fields and mark each field which is present
		for field in sorted(reg.field, key=lambda a: a.bitOffset):
			if (field.bitWidth > 1):
				for j in range(field.bitOffset, field.bitOffset + field.bitWidth):
					data_mask[j] = "1"
			else:
				data_mask[field.bitOffset] = "1"

		# TODO: This needs to be updated for SV!

		# Reverse the list, since std_logic_vector has opposite order than list.
        # Concat values and surround by ""
		return '"' + ''.join(data_mask[::-1]) + '"'

		Calculates data mask of given register. Data mask contains "1" for each bit
		which is implemented in the register, "0" for each bit which is not
		implemented in a register.
		
Calculates data mask of given register. Data mask contains "1" for each bit
which is implemented in the register, "0" for each bit which is not
implemented in a register.
Calculates data mask of given register . Data mask contains " 1 " for each bit which is implemented in the register " 0 " for each bit which is not implemented in a register .
def calc_reg_data_mask(self, reg):
		data_mask = ["0" for x in range(reg.size)]
		for field in sorted(reg.field, key=lambda a: a.bitOffset):
			if (field.bitWidth > 1):
				for j in range(field.bitOffset, field.bitOffset + field.bitWidth):
					data_mask[j] = "1"
			else:
				data_mask[field.bitOffset] = "1"
		return '"' + ''.join(data_mask[::-1]) + '"'
def calc_reg_data_mask ( self , reg ) : data_mask = [ "0" for x in range ( reg . size ) ] for field in sorted ( reg . field , key = lambda a : a . bitOffset ) : if ( field . bitWidth > 1 ) : for j in range ( field . bitOffset , field . bitOffset + field . bitWidth ) : data_mask [ j ] = "1" else : data_mask [ field . bitOffset ] = "1" return '"' + '' . join ( data_mask [ : : - 1 ] ) + '"'
Calculates data mask of given register.
Calculates data mask of given register .
"""
		Calculates data mask of given register. Data mask contains "1" for each bit
		which is implemented in the register, "0" for each bit which is not
		implemented in a register.
		""" # Suppose there is no implemented register # Go through fields and mark each field which is present # TODO: This needs to be updated for SV! # Reverse the list, since std_logic_vector has opposite order than list. # Concat values and surround by ""
self
reg