ip_xact/lyx_addr_generator.py
def write_reg_header(self, block, reg):
		"""
		Write register header with:
			- Register name (Subsection)
			- Register type
			- Register address
			- Register size
			- Conditional presence note (optional)
			- Description
		"""
		# Add the Section title
		self.lyxGen.write_layout_text("Subsection", "{}\n".format(reg.name),
											label="label")
		
		# Register type, address, size and description
		self.lyxGen.write_layout_text("Description", "Type: {}\n".format(
											reg.access))

		# Address
		self.lyxGen.write_layout_text("Description", "Offset: {}\n".format(
									"0x{:X}".format(reg.addressOffset +
										block.baseAddress)))

		# Size
		pluralAp = "s" if (reg.size > 8) else ""
		self.lyxGen.write_layout_text("Description", "Size: {} byte{}\n".format(
									int(reg.size / 8), pluralAp))

		# Conditional presence:
		if (reg.isPresent != "" and self.config["skip_conditional"] == False):
			paramName = self.parameter_lookup(reg.isPresent)
			self.lyxGen.write_layout_text("Description", \
				"Note: Register is present only when {} = true. Otherwise " \
				"this address is reserved.\n".format(paramName))

		# Lock access
		lockProps = self.get_reg_lock(reg)
		if (lockProps[0] == "true"):
			self.lyxGen.write_layout_text("Description", \
				"Note: {}".format(lockProps[1]))

		# Description
		self.lyxGen.write_layout_text("Standard", "{}\n".format(
										reg.description))

		Write register header with:
			- Register name (Subsection)
			- Register type
			- Register address
			- Register size
			- Conditional presence note (optional)
			- Description
		
Write register header with:
Register name (Subsection)
Register type
Register address
Register size
Conditional presence note (optional)
Description
Write register header with : Register name ( Subsection ) Register type Register address Register size Conditional presence note ( optional ) Description
def write_reg_header(self, block, reg):
		self.lyxGen.write_layout_text("Subsection", "{}\n".format(reg.name),
											label="label")
		self.lyxGen.write_layout_text("Description", "Type: {}\n".format(
											reg.access))
		self.lyxGen.write_layout_text("Description", "Offset: {}\n".format(
									"0x{:X}".format(reg.addressOffset +
										block.baseAddress)))
		pluralAp = "s" if (reg.size > 8) else ""
		self.lyxGen.write_layout_text("Description", "Size: {} byte{}\n".format(
									int(reg.size / 8), pluralAp))
		if (reg.isPresent != "" and self.config["skip_conditional"] == False):
			paramName = self.parameter_lookup(reg.isPresent)
			self.lyxGen.write_layout_text("Description", \
				"Note: Register is present only when {} = true. Otherwise " \
				"this address is reserved.\n".format(paramName))
		lockProps = self.get_reg_lock(reg)
		if (lockProps[0] == "true"):
			self.lyxGen.write_layout_text("Description", \
				"Note: {}".format(lockProps[1]))
		self.lyxGen.write_layout_text("Standard", "{}\n".format(
										reg.description))
def write_reg_header ( self , block , reg ) : self . lyxGen . write_layout_text ( "Subsection" , "{}\n" . format ( reg . name ) , label = "label" ) self . lyxGen . write_layout_text ( "Description" , "Type: {}\n" . format ( reg . access ) ) self . lyxGen . write_layout_text ( "Description" , "Offset: {}\n" . format ( "0x{:X}" . format ( reg . addressOffset + block . baseAddress ) ) ) pluralAp = "s" if ( reg . size > 8 ) else "" self . lyxGen . write_layout_text ( "Description" , "Size: {} byte{}\n" . format ( int ( reg . size / 8 ) , pluralAp ) ) if ( reg . isPresent != "" and self . config [ "skip_conditional" ] == False ) : paramName = self . parameter_lookup ( reg . isPresent ) self . lyxGen . write_layout_text ( "Description" , "Note: Register is present only when {} = true. Otherwise " "this address is reserved.\n" . format ( paramName ) ) lockProps = self . get_reg_lock ( reg ) if ( lockProps [ 0 ] == "true" ) : self . lyxGen . write_layout_text ( "Description" , "Note: {}" . format ( lockProps [ 1 ] ) ) self . lyxGen . write_layout_text ( "Standard" , "{}\n" . format ( reg . description ) )
Write register header with:
 Register name (Subsection)
 Register type
 Register address
 Register size
 Conditional presence note (optional)
 Description
Write register header with : Register name ( Subsection ) Register type Register address Register size Conditional presence note ( optional ) Description
"""
		Write register header with:
			- Register name (Subsection)
			- Register type
			- Register address
			- Register size
			- Conditional presence note (optional)
			- Description
		""" # Add the Section title # Register type, address, size and description # Address # Size # Conditional presence: # Lock access # Description
self
block
reg