ip_xact/vhdl_addr_generator.py
def write_reg_enums(self, field):
		""" 
		Write IP-XACT register object enums as VHDL constants (std_logic) to the
		generator output.
		Arguments:
			field		Register field object (parsed from pyXact) whose 
						enums to write.
		"""
		if (field.enumeratedValues == []):
			return False
		
		self.vhdlGen.wr_nl()
		self.vhdlGen.write_comment('"{}" field enumerated values'.format(
								field.name), 2, small=True)
		for es in field.enumeratedValues:
			for e in sorted(es.enumeratedValue, key=lambda x: x.value):
				decl = LanDeclaration(e.name, e.value)
				decl.type = "std_logic"
				decl.bitWidth = field.bitWidth
				decl.specifier = "constant"
				decl.alignLen = 50
				self.vhdlGen.write_decl(decl)
 
		Write IP-XACT register object enums as VHDL constants (std_logic) to the
		generator output.
		Arguments:
			field		Register field object (parsed from pyXact) whose 
						enums to write.
		
Write IP-XACT register object enums as VHDL constants (std_logic) to the
generator output.
Arguments:
field           Register field object (parsed from pyXact) whose
enums to write.
Write IP - XACT register object enums as VHDL constants ( std_logic ) to the generator output . Arguments : field Register field object ( parsed from pyXact ) whose enums to write .
def write_reg_enums(self, field):
		if (field.enumeratedValues == []):
			return False
		self.vhdlGen.wr_nl()
		self.vhdlGen.write_comment('"{}" field enumerated values'.format(
								field.name), 2, small=True)
		for es in field.enumeratedValues:
			for e in sorted(es.enumeratedValue, key=lambda x: x.value):
				decl = LanDeclaration(e.name, e.value)
				decl.type = "std_logic"
				decl.bitWidth = field.bitWidth
				decl.specifier = "constant"
				decl.alignLen = 50
				self.vhdlGen.write_decl(decl)
def write_reg_enums ( self , field ) : if ( field . enumeratedValues == [ ] ) : return False self . vhdlGen . wr_nl ( ) self . vhdlGen . write_comment ( '"{}" field enumerated values' . format ( field . name ) , 2 , small = True ) for es in field . enumeratedValues : for e in sorted ( es . enumeratedValue , key = lambda x : x . value ) : decl = LanDeclaration ( e . name , e . value ) decl . type = "std_logic" decl . bitWidth = field . bitWidth decl . specifier = "constant" decl . alignLen = 50 self . vhdlGen . write_decl ( decl )
Write IP-XACT register object enums as VHDL constants (std_logic) to the
generator output.
Write IP - XACT register object enums as VHDL constants ( std_logic ) to the generator output .
""" 
		Write IP-XACT register object enums as VHDL constants (std_logic) to the
		generator output.
		Arguments:
			field		Register field object (parsed from pyXact) whose 
						enums to write.
		"""
self
field