languages/gen_h.py
def __insert_rsvd_bitfield(self, decls, neighbour, index):
		""" 
		Fill the declarations list with reserved bitfields on missing indices.
		Arguments:
			decls		List of declarations to extend
			neighbour   Neighbour to copy the element declaration into the
						reserved field declaration
			index		Last filled bit by previous declaration
		Returns:
			Index of last filled bit with the new reserved bit field generated.
		"""
		decl = copy.copy(neighbour)
		high = ""
		if (neighbour.bitIndex - index > 1):
			high = "_{}".format(neighbour.bitIndex - 1)
		decl.name = "reserved{}_{}".format(high, index)
		decl.bitIndex = index
		decl.comment = None
		decl.bitWidth = neighbour.bitIndex - index
		decls.insert(decls.index(neighbour), decl)
		return index + decl.bitWidth
 
		Fill the declarations list with reserved bitfields on missing indices.
		Arguments:
			decls		List of declarations to extend
			neighbour   Neighbour to copy the element declaration into the
						reserved field declaration
			index		Last filled bit by previous declaration
		Returns:
			Index of last filled bit with the new reserved bit field generated.
		
Fill the declarations list with reserved bitfields on missing indices.
Arguments:
decls           List of declarations to extend
neighbour   Neighbour to copy the element declaration into the
reserved field declaration
index           Last filled bit by previous declaration
Returns:
Index of last filled bit with the new reserved bit field generated.
Fill the declarations list with reserved bitfields on missing indices . Arguments : decls List of declarations to extend neighbour Neighbour to copy the element declaration into the reserved field declaration index Last filled bit by previous declaration Returns : Index of last filled bit with the new reserved bit field generated .
def __insert_rsvd_bitfield(self, decls, neighbour, index):
		decl = copy.copy(neighbour)
		high = ""
		if (neighbour.bitIndex - index > 1):
			high = "_{}".format(neighbour.bitIndex - 1)
		decl.name = "reserved{}_{}".format(high, index)
		decl.bitIndex = index
		decl.comment = None
		decl.bitWidth = neighbour.bitIndex - index
		decls.insert(decls.index(neighbour), decl)
		return index + decl.bitWidth
def __insert_rsvd_bitfield ( self , decls , neighbour , index ) : decl = copy . copy ( neighbour ) high = "" if ( neighbour . bitIndex - index > 1 ) : high = "_{}" . format ( neighbour . bitIndex - 1 ) decl . name = "reserved{}_{}" . format ( high , index ) decl . bitIndex = index decl . comment = None decl . bitWidth = neighbour . bitIndex - index decls . insert ( decls . index ( neighbour ) , decl ) return index + decl . bitWidth
Fill the declarations list with reserved bitfields on missing indices.
Fill the declarations list with reserved bitfields on missing indices .
""" 
		Fill the declarations list with reserved bitfields on missing indices.
		Arguments:
			decls		List of declarations to extend
			neighbour   Neighbour to copy the element declaration into the
						reserved field declaration
			index		Last filled bit by previous declaration
		Returns:
			Index of last filled bit with the new reserved bit field generated.
		"""
self
decls
neighbour
index