ip_xact/h_addr_generator.py
def create_reg_field_decl(self, reg, field):
		"""
		Create declaration object from IP-XACT register and field object.
		"""
		fieldDecl = LanDeclaration(name=field.name.lower(), value=0)
		fieldDecl.type = "uint{}_t".format(self.wrdWidthBit)
		fieldDecl.bitWidth = field.bitWidth
		fieldDecl.gap = 2
		fieldDecl.alignLen = 40
		fieldDecl.bitIndex = field.bitOffset + \
			((int(reg.addressOffset)*8) % self.wrdWidthBit)
		fieldDecl.intType = "bitfield"

		return fieldDecl

		Create declaration object from IP-XACT register and field object.
		
Create declaration object from IP-XACT register and field object.
Create declaration object from IP - XACT register and field object .
def create_reg_field_decl(self, reg, field):
		fieldDecl = LanDeclaration(name=field.name.lower(), value=0)
		fieldDecl.type = "uint{}_t".format(self.wrdWidthBit)
		fieldDecl.bitWidth = field.bitWidth
		fieldDecl.gap = 2
		fieldDecl.alignLen = 40
		fieldDecl.bitIndex = field.bitOffset + \
			((int(reg.addressOffset)*8) % self.wrdWidthBit)
		fieldDecl.intType = "bitfield"
		return fieldDecl
def create_reg_field_decl ( self , reg , field ) : fieldDecl = LanDeclaration ( name = field . name . lower ( ) , value = 0 ) fieldDecl . type = "uint{}_t" . format ( self . wrdWidthBit ) fieldDecl . bitWidth = field . bitWidth fieldDecl . gap = 2 fieldDecl . alignLen = 40 fieldDecl . bitIndex = field . bitOffset + ( ( int ( reg . addressOffset ) * 8 ) % self . wrdWidthBit ) fieldDecl . intType = "bitfield" return fieldDecl
Create declaration object from IP-XACT register and field object.
Create declaration object from IP - XACT register and field object .
"""
		Create declaration object from IP-XACT register and field object.
		"""
self
reg
field