languages/gen_vhdl.py
def create_enum(self, name, decls, gap=0):
		""" 
		Create VHDL enum.
		Arguments:
			decls		Declaration structures
		"""
		if (not decls):
			return False
		self.__wr_line(" " * gap + "type {} is (\n".format(name))
		for (i,item) in enumerate(decls):
			self.__wr_line(" " * item.gap + item.name)
			if (i == len(decls) - 1):
				self.__wr_line('\n')
			else:
				self.__wr_line(',\n')
		self.__wr_line(" " * gap + ");")
		return True
 
		Create VHDL enum.
		Arguments:
			decls		Declaration structures
		
Create VHDL enum.
Arguments:
decls           Declaration structures
Create VHDL enum . Arguments : decls Declaration structures
def create_enum(self, name, decls, gap=0):
		if (not decls):
			return False
		self.__wr_line(" " * gap + "type {} is (\n".format(name))
		for (i,item) in enumerate(decls):
			self.__wr_line(" " * item.gap + item.name)
			if (i == len(decls) - 1):
				self.__wr_line('\n')
			else:
				self.__wr_line(',\n')
		self.__wr_line(" " * gap + ");")
		return True
def create_enum ( self , name , decls , gap = 0 ) : if ( not decls ) : return False self . __wr_line ( " " * gap + "type {} is (\n" . format ( name ) ) for ( i , item ) in enumerate ( decls ) : self . __wr_line ( " " * item . gap + item . name ) if ( i == len ( decls ) - 1 ) : self . __wr_line ( '\n' ) else : self . __wr_line ( ',\n' ) self . __wr_line ( " " * gap + ");" ) return True
Create VHDL enum.
Create VHDL enum .
""" 
		Create VHDL enum.
		Arguments:
			decls		Declaration structures
		"""
self
name
decls
gap