Questions on section 11


Subject: Questions on section 11
From: Stuart Sutherland (stuart@sutherland-hdl.com)
Date: Mon Dec 10 2001 - 08:14:07 PST


All,

Section 11 does not specify some corner cases for functions.

1) If there are multiple statements without a begin-end or fork-join, are
the statements executed sequentially or in parallel?

2) Does a return with an expression get stored in the implicit storage of
the function name? This affects static functions, which would have that
value available on the next call (bad style, but allowed).

3) Can a non-void function use a return without an expression? Does it
then return the last value assigned to the function name, as in Verilog?

Stu

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart Sutherland Sutherland HDL Inc.
stuart@sutherland-hdl.com 22805 SW 92nd Place
phone: 503-692-0898 Tualatin, OR 97062
www.sutherland-hdl.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



This archive was generated by hypermail 2b28 : Mon Dec 10 2001 - 08:12:10 PST