languages/gen_vhdl.py
def write_comment(self, input, gap=0, caption=None, small=False, wrapLine=True):
		""" 
		Write VHDL comment in format:
			--------------------------------------------------------------------
			-- caption
			--
			-- Comment text
			--------------------------------------------------------------------
		Arguments:
			input	 Text of the comment
			gap		 Number of tabs before the comment line
			caption	 Text of the caption
			small    If set to True the first and last line of above described
					 format are ommitted
		"""
		if (small == False):
			self.write_comm_line(gap)
		
		if (caption != None):
			self.__wr_line(" " * gap + self.commentSign + self.commentSign + 
								" {}\n{}\n".format(caption," " *gap+"--"))
		
		if (wrapLine):
			lines = split_string(input, 75)
			for line in lines:
				self.__wr_line('{}{} {}\n'.format(" " * gap, self.commentSign * 2 ,
								line))
		else:
			self.__wr_line('{}{} {}'.format(" " * gap, self.commentSign * 2, input))
		
		if (small == False):
			self.write_comm_line(gap)
 
		Write VHDL comment in format:
			--------------------------------------------------------------------
			-- caption
			--
			-- Comment text
			--------------------------------------------------------------------
		Arguments:
			input	 Text of the comment
			gap		 Number of tabs before the comment line
			caption	 Text of the caption
			small    If set to True the first and last line of above described
					 format are ommitted
		
Write VHDL comment in format:
caption

Comment text

input    Text of the comment
gap              Number of tabs before the comment line
caption  Text of the caption
small    If set to True the first and last line of above described
format are ommitted
Write VHDL comment in format : caption Comment text input Text of the comment gap Number of tabs before the comment line caption Text of the caption small If set to True the first and last line of above described format are ommitted
def write_comment(self, input, gap=0, caption=None, small=False, wrapLine=True):
		if (small == False):
			self.write_comm_line(gap)
		if (caption != None):
			self.__wr_line(" " * gap + self.commentSign + self.commentSign + 
								" {}\n{}\n".format(caption," " *gap+"--"))
		if (wrapLine):
			lines = split_string(input, 75)
			for line in lines:
				self.__wr_line('{}{} {}\n'.format(" " * gap, self.commentSign * 2 ,
								line))
		else:
			self.__wr_line('{}{} {}'.format(" " * gap, self.commentSign * 2, input))
		if (small == False):
			self.write_comm_line(gap)
def write_comment ( self , input , gap = 0 , caption = None , small = False , wrapLine = True ) : if ( small == False ) : self . write_comm_line ( gap ) if ( caption != None ) : self . __wr_line ( " " * gap + self . commentSign + self . commentSign + " {}\n{}\n" . format ( caption , " " * gap + "--" ) ) if ( wrapLine ) : lines = split_string ( input , 75 ) for line in lines : self . __wr_line ( '{}{} {}\n' . format ( " " * gap , self . commentSign * 2 , line ) ) else : self . __wr_line ( '{}{} {}' . format ( " " * gap , self . commentSign * 2 , input ) ) if ( small == False ) : self . write_comm_line ( gap )
Write VHDL comment in format:
 caption
Write VHDL comment in format : caption
""" 
		Write VHDL comment in format:
			--------------------------------------------------------------------
			-- caption
			--
			-- Comment text
			--------------------------------------------------------------------
		Arguments:
			input	 Text of the comment
			gap		 Number of tabs before the comment line
			caption	 Text of the caption
			small    If set to True the first and last line of above described
					 format are ommitted
		"""
self
input
gap
caption
small
wrapLine