ip_xact/h_addr_generator.py
def write_reg_field_enums(self, reg):
		"""
		Write enumerated values of all register fields within IP-XACT register
		object as C enums. Name  of the C enum is:
			<prefix>_<register_name>_<field_name>
		"""
		for (i,field) in enumerate(sorted(reg.field, key=lambda a: a.bitOffset)):

			# Skip field if there are no enums
			if (field.enumeratedValues == []):
				continue

			# Create declaration objects for each enumerated value of field
			enum_elements = self.create_field_enum_decls(field)

			# Write enum to the output file
			enum_name = (self.prefix + "_" + reg.name + "_" + field.name).lower()
			self.headerGen.create_enum(enum_name, enum_elements)
			self.headerGen.wr_nl()

		Write enumerated values of all register fields within IP-XACT register
		object as C enums. Name  of the C enum is:
			<prefix>_<register_name>_<field_name>
		
Write enumerated values of all register fields within IP-XACT register
object as C enums. Name  of the C enum is:
__
Write enumerated values of all register fields within IP - XACT register object as C enums . Name of the C enum is : __
def write_reg_field_enums(self, reg):
		for (i,field) in enumerate(sorted(reg.field, key=lambda a: a.bitOffset)):
			if (field.enumeratedValues == []):
				continue
			enum_elements = self.create_field_enum_decls(field)
			enum_name = (self.prefix + "_" + reg.name + "_" + field.name).lower()
			self.headerGen.create_enum(enum_name, enum_elements)
			self.headerGen.wr_nl()
def write_reg_field_enums ( self , reg ) : for ( i , field ) in enumerate ( sorted ( reg . field , key = lambda a : a . bitOffset ) ) : if ( field . enumeratedValues == [ ] ) : continue enum_elements = self . create_field_enum_decls ( field ) enum_name = ( self . prefix + "_" + reg . name + "_" + field . name ) . lower ( ) self . headerGen . create_enum ( enum_name , enum_elements ) self . headerGen . wr_nl ( )
Write enumerated values of all register fields within IP-XACT register
object as C enums.
Write enumerated values of all register fields within IP - XACT register object as C enums .
"""
		Write enumerated values of all register fields within IP-XACT register
		object as C enums. Name  of the C enum is:
			<prefix>_<register_name>_<field_name>
		""" # Skip field if there are no enums # Create declaration objects for each enumerated value of field # Write enum to the output file
self
reg