ip_xact/h_addr_generator.py
def create_addrMap_package(self, name):
		"""
		Create C header file package for "memMap" IP-XACT memory block.
		Package contains:
			1. Enum with addresses of each register
			2. Unions for each memory word with registers.
			3. Enums for each enumerated values of Register fields.
		"""
		self.headerGen.wr_nl()
		self.headerGen.write_comment("This file is autogenerated, DO NOT EDIT!",
										0, small=True)
		self.headerGen.wr_nl()
		self.headerGen.create_package((self.prefix + "_" + name).upper())
		self.headerGen.wr_nl()

		# Write memory map address enum
		if (self.memMap):
			print ("Writing addresses of '%s' register map" % self.memMap.name)
			self.write_mem_map_addr_enum()

		self.headerGen.wr_nl()
		self.headerGen.wr_nl()

		self.headerGen.write_comment("Register descriptions:",
										0, small=False)

		# Write memory map register unions and register field enums
		if (self.memMap):
			print ("Writing bit fields of '%s' register map" % self.memMap.name)
			self.write_mem_map_fields()
	
		self.headerGen.commit_append_line(1)

		Create C header file package for "memMap" IP-XACT memory block.
		Package contains:
			1. Enum with addresses of each register
			2. Unions for each memory word with registers.
			3. Enums for each enumerated values of Register fields.
		
Create C header file package for "memMap" IP-XACT memory block.
Package contains:
1. Enum with addresses of each register
2. Unions for each memory word with registers.
3. Enums for each enumerated values of Register fields.
Create C header file package for " memMap " IP - XACT memory block . Package contains : 1 . Enum with addresses of each register 2 . Unions for each memory word with registers . 3 . Enums for each enumerated values of Register fields .
def create_addrMap_package(self, name):
		self.headerGen.wr_nl()
		self.headerGen.write_comment("This file is autogenerated, DO NOT EDIT!",
										0, small=True)
		self.headerGen.wr_nl()
		self.headerGen.create_package((self.prefix + "_" + name).upper())
		self.headerGen.wr_nl()
		if (self.memMap):
			print ("Writing addresses of '%s' register map" % self.memMap.name)
			self.write_mem_map_addr_enum()
		self.headerGen.wr_nl()
		self.headerGen.wr_nl()
		self.headerGen.write_comment("Register descriptions:",
										0, small=False)
		if (self.memMap):
			print ("Writing bit fields of '%s' register map" % self.memMap.name)
			self.write_mem_map_fields()
		self.headerGen.commit_append_line(1)
def create_addrMap_package ( self , name ) : self . headerGen . wr_nl ( ) self . headerGen . write_comment ( "This file is autogenerated, DO NOT EDIT!" , 0 , small = True ) self . headerGen . wr_nl ( ) self . headerGen . create_package ( ( self . prefix + "_" + name ) . upper ( ) ) self . headerGen . wr_nl ( ) if ( self . memMap ) : print ( "Writing addresses of '%s' register map" % self . memMap . name ) self . write_mem_map_addr_enum ( ) self . headerGen . wr_nl ( ) self . headerGen . wr_nl ( ) self . headerGen . write_comment ( "Register descriptions:" , 0 , small = False ) if ( self . memMap ) : print ( "Writing bit fields of '%s' register map" % self . memMap . name ) self . write_mem_map_fields ( ) self . headerGen . commit_append_line ( 1 )
Create C header file package for "memMap" IP-XACT memory block.
Create C header file package for " memMap " IP - XACT memory block .
"""
		Create C header file package for "memMap" IP-XACT memory block.
		Package contains:
			1. Enum with addresses of each register
			2. Unions for each memory word with registers.
			3. Enums for each enumerated values of Register fields.
		""" # Write memory map address enum # Write memory map register unions and register field enums
self
name