vhdl_reference_93:return

RETURN

[ label ] return [ expression ] ;
  • function_statement_part
  • procedure_statement_part
  • relation { and relation }
  • relation { or relation }
  • relation { xor relation }
  • relation [ nand relation ]
  • relation [ nor relation ]
  • relation { xnor relation }

A function body must contain a RETURN -statement.

No value is returned.

RETURN ;

The return value is that of value .

RETURN value ;

The return value is the result of the function my_function .

RETURN my_function( data, 5 pF ) ;

The return value is the sum a + b + 5 ns .

RETURN a + b + 5 ns ;

The return value is a chained string.

RETURN "author name : " & name ;