ip_xact/vhdl_addr_generator.py
def write_reg(self, reg, writeFields, writeEnums, writeReset):
		""" 
		Write IP-XACT register as set of VHDL constants to the generator output.
        Following constants are written:
            - Register field indices
            - Enums for each field of a register
            - Reset values for each field of a register
		Arguments:
			reg			Register field object (parsed from pyXact) to write
			writeFields	IF bit field indices should be written.
			writeEnums	If Enums for each bit field should be written.
			writeReset	If reset values for each field should be written.
		"""
		# Write the register title
		capt = '{} register'.format(reg.name.upper())
		self.vhdlGen.write_comment(reg.description, 2, caption=capt)
								
		#Write the individual elements
		if (writeFields == True):
			for field in sorted(reg.field, key=lambda a: a.bitOffset):
				self.write_reg_field(field, reg)
		
		#Write the enums (iterate separately not to mix up fields and enums)
		if (writeEnums == True):
			for field in reg.field:
				self.write_reg_enums(field)
			self.vhdlGen.wr_nl()
		
		#Write reset values for each field
		if (writeReset == True):
			self.vhdlGen.write_comment("{} register reset values".format(
									reg.name.upper()), 2, small=True)
			for field in reg.field:
				self.write_res_vals(field)

		self.vhdlGen.wr_nl()
 
		Write IP-XACT register as set of VHDL constants to the generator output.
        Following constants are written:
            - Register field indices
            - Enums for each field of a register
            - Reset values for each field of a register
		Arguments:
			reg			Register field object (parsed from pyXact) to write
			writeFields	IF bit field indices should be written.
			writeEnums	If Enums for each bit field should be written.
			writeReset	If reset values for each field should be written.
		
Write IP-XACT register as set of VHDL constants to the generator output.
Following constants are written:
Register field indices
Enums for each field of a register
Reset values for each field of a register
Arguments:
reg                     Register field object (parsed from pyXact) to write
writeFields     IF bit field indices should be written.
writeEnums      If Enums for each bit field should be written.
writeReset      If reset values for each field should be written.
Write IP - XACT register as set of VHDL constants to the generator output . Following constants are written : Register field indices Enums for each field of a register Reset values for each field of a register Arguments : reg Register field object ( parsed from pyXact ) to write writeFields IF bit field indices should be written . writeEnums If Enums for each bit field should be written . writeReset If reset values for each field should be written .
def write_reg(self, reg, writeFields, writeEnums, writeReset):
		capt = '{} register'.format(reg.name.upper())
		self.vhdlGen.write_comment(reg.description, 2, caption=capt)
		if (writeFields == True):
			for field in sorted(reg.field, key=lambda a: a.bitOffset):
				self.write_reg_field(field, reg)
		if (writeEnums == True):
			for field in reg.field:
				self.write_reg_enums(field)
			self.vhdlGen.wr_nl()
		if (writeReset == True):
			self.vhdlGen.write_comment("{} register reset values".format(
									reg.name.upper()), 2, small=True)
			for field in reg.field:
				self.write_res_vals(field)
		self.vhdlGen.wr_nl()
def write_reg ( self , reg , writeFields , writeEnums , writeReset ) : capt = '{} register' . format ( reg . name . upper ( ) ) self . vhdlGen . write_comment ( reg . description , 2 , caption = capt ) if ( writeFields == True ) : for field in sorted ( reg . field , key = lambda a : a . bitOffset ) : self . write_reg_field ( field , reg ) if ( writeEnums == True ) : for field in reg . field : self . write_reg_enums ( field ) self . vhdlGen . wr_nl ( ) if ( writeReset == True ) : self . vhdlGen . write_comment ( "{} register reset values" . format ( reg . name . upper ( ) ) , 2 , small = True ) for field in reg . field : self . write_res_vals ( field ) self . vhdlGen . wr_nl ( )
Write IP-XACT register as set of VHDL constants to the generator output.
Write IP - XACT register as set of VHDL constants to the generator output .
""" 
		Write IP-XACT register as set of VHDL constants to the generator output.
        Following constants are written:
            - Register field indices
            - Enums for each field of a register
            - Reset values for each field of a register
		Arguments:
			reg			Register field object (parsed from pyXact) to write
			writeFields	IF bit field indices should be written.
			writeEnums	If Enums for each bit field should be written.
			writeReset	If reset values for each field should be written.
		""" # Write the register title #Write the individual elements #Write the enums (iterate separately not to mix up fields and enums) #Write reset values for each field
self
reg
writeFields
writeEnums
writeReset