ip_xact/vhdl_reg_map_generator.py
def create_reg_cond_generics(self, block, entity):
		"""
		Add conditional generic definitions into entity declaration. Parameter
		"isPresent" of each IP-XACT register is added as generic boolean input.
		Parameter look-up is performed for each found parameter.
		"""
		for reg in block.register:
			if (reg.isPresent != ""):
				paramName = self.parameter_lookup(reg.isPresent)
				entity.generics[paramName] = LanDeclaration(paramName, value = 0)
				entity.generics[paramName].value = "true"
				entity.generics[paramName].type = "boolean"
				entity.generics[paramName].specifier = "constant"

		Add conditional generic definitions into entity declaration. Parameter
		"isPresent" of each IP-XACT register is added as generic boolean input.
		Parameter look-up is performed for each found parameter.
		
Add conditional generic definitions into entity declaration. Parameter
"isPresent" of each IP-XACT register is added as generic boolean input.
Parameter look-up is performed for each found parameter.
Add conditional generic definitions into entity declaration . Parameter " isPresent " of each IP - XACT register is added as generic boolean input . Parameter look - up is performed for each found parameter .
def create_reg_cond_generics(self, block, entity):
		for reg in block.register:
			if (reg.isPresent != ""):
				paramName = self.parameter_lookup(reg.isPresent)
				entity.generics[paramName] = LanDeclaration(paramName, value = 0)
				entity.generics[paramName].value = "true"
				entity.generics[paramName].type = "boolean"
				entity.generics[paramName].specifier = "constant"
def create_reg_cond_generics ( self , block , entity ) : for reg in block . register : if ( reg . isPresent != "" ) : paramName = self . parameter_lookup ( reg . isPresent ) entity . generics [ paramName ] = LanDeclaration ( paramName , value = 0 ) entity . generics [ paramName ] . value = "true" entity . generics [ paramName ] . type = "boolean" entity . generics [ paramName ] . specifier = "constant"
Add conditional generic definitions into entity declaration.
Add conditional generic definitions into entity declaration .
"""
		Add conditional generic definitions into entity declaration. Parameter
		"isPresent" of each IP-XACT register is added as generic boolean input.
		Parameter look-up is performed for each found parameter.
		"""
self
block
entity