ip_xact/lyx_addr_generator.py
def reg_append_short_enums(self, field):
		"""
        Create line with enums for given register field. Enum name and description 
        are addedd to each line.
		"""
		appendText = ""
		if (field.enumeratedValues == []):
			return appendText

		if (len(field.enumeratedValues[0].enumeratedValue) > 0):
			for es in field.enumeratedValues:
				for (i,e) in enumerate(sorted(es.enumeratedValue, key=lambda x: x.value)):
					appendText += "\\begin_inset Newline newline\\end_inset\n"
					binSize = "{:0" + "{}".format(field.bitWidth) + "b}"
					binFmt = binSize.format(e.value)
					appendText += "		0b{}  - {} - {}".format(binFmt, e.name, 
						e.description)

		return appendText

        Create line with enums for given register field. Enum name and description 
        are addedd to each line.
		
Create line with enums for given register field. Enum name and description
are addedd to each line.
Create line with enums for given register field . Enum name and description are addedd to each line .
def reg_append_short_enums(self, field):
		appendText = ""
		if (field.enumeratedValues == []):
			return appendText
		if (len(field.enumeratedValues[0].enumeratedValue) > 0):
			for es in field.enumeratedValues:
				for (i,e) in enumerate(sorted(es.enumeratedValue, key=lambda x: x.value)):
					appendText += "\\begin_inset Newline newline\\end_inset\n"
					binSize = "{:0" + "{}".format(field.bitWidth) + "b}"
					binFmt = binSize.format(e.value)
					appendText += "		0b{}  - {} - {}".format(binFmt, e.name, 
						e.description)
		return appendText
def reg_append_short_enums ( self , field ) : appendText = "" if ( field . enumeratedValues == [ ] ) : return appendText if ( len ( field . enumeratedValues [ 0 ] . enumeratedValue ) > 0 ) : for es in field . enumeratedValues : for ( i , e ) in enumerate ( sorted ( es . enumeratedValue , key = lambda x : x . value ) ) : appendText += "\\begin_inset Newline newline\\end_inset\n" binSize = "{:0" + "{}" . format ( field . bitWidth ) + "b}" binFmt = binSize . format ( e . value ) appendText += "		0b{}  - {} - {}" . format ( binFmt , e . name , e . description ) return appendText
Create line with enums for given register field.
Create line with enums for given register field .
"""
        Create line with enums for given register field. Enum name and description 
        are addedd to each line.
		"""
self
field