ip_xact/vhdl_reg_map_generator.py
def calc_autoclear_mask(self, reg):
		"""
		Calculate mask for autoclear feature of memory register. Bits of memory
		register marked as "clear" in "write action" will be automatically cleared
		after write (One-shot like).
		"""
		# Suppose no bit is autoclear
		autoclearMask = ["0" for x in range(reg.size)]

		# Go through register fields and mark each bit whose field has "clear" action
		# on write
		for field in sorted(reg.field, key=lambda a: a.bitOffset):
			if (field.modifiedWriteValue == "clear"):
				if (field.bitWidth > 1):
					for j in range(field.bitOffset, field.bitOffset + field.bitWidth):
						autoclearMask[j] = "1"
				else:
					autoclearMask[field.bitOffset] = "1"

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

		Calculate mask for autoclear feature of memory register. Bits of memory
		register marked as "clear" in "write action" will be automatically cleared
		after write (One-shot like).
		
Calculate mask for autoclear feature of memory register. Bits of memory
register marked as "clear" in "write action" will be automatically cleared
after write (One-shot like).
Calculate mask for autoclear feature of memory register . Bits of memory register marked as " clear " in " write action " will be automatically cleared after write ( One - shot like ) .
def calc_autoclear_mask(self, reg):
		autoclearMask = ["0" for x in range(reg.size)]
		for field in sorted(reg.field, key=lambda a: a.bitOffset):
			if (field.modifiedWriteValue == "clear"):
				if (field.bitWidth > 1):
					for j in range(field.bitOffset, field.bitOffset + field.bitWidth):
						autoclearMask[j] = "1"
				else:
					autoclearMask[field.bitOffset] = "1"
		return '"' + ''.join(autoclearMask[::-1]) + '"'
def calc_autoclear_mask ( self , reg ) : autoclearMask = [ "0" for x in range ( reg . size ) ] for field in sorted ( reg . field , key = lambda a : a . bitOffset ) : if ( field . modifiedWriteValue == "clear" ) : if ( field . bitWidth > 1 ) : for j in range ( field . bitOffset , field . bitOffset + field . bitWidth ) : autoclearMask [ j ] = "1" else : autoclearMask [ field . bitOffset ] = "1" return '"' + '' . join ( autoclearMask [ : : - 1 ] ) + '"'
Calculate mask for autoclear feature of memory register.
Calculate mask for autoclear feature of memory register .
"""
		Calculate mask for autoclear feature of memory register. Bits of memory
		register marked as "clear" in "write action" will be automatically cleared
		after write (One-shot like).
		""" # Suppose no bit is autoclear # Go through register fields and mark each bit whose field has "clear" action # on write # Reverse the list, since std_logic_vector has opposite order than list! # Concat values and surround by ""
self
reg