1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
This commit is contained in:
jand 2003-08-29 14:18:59 +00:00
parent 039ceb933b
commit 9ed315bb3b

View File

@ -110,8 +110,8 @@ of \keyword{yield} statements in in \myhdl\ generators is:
\hspace{\leftmargin}\keyword{yield} \var{clause \optional{, clause ...}} \hspace{\leftmargin}\keyword{yield} \var{clause \optional{, clause ...}}
After a simulation object executes a \keyword{yield} statement, it When a generator executes a \keyword{yield} statement, its
suspends execution of the generator. At the same time, each execution is suspended at that point. At the same time, each
\var{clause} is a \emph{trigger object} which defines the condition \var{clause} is a \emph{trigger object} which defines the condition
upon which the generator should be resumed. However, per invocation of a upon which the generator should be resumed. However, per invocation of a
\keyword{yield} statement, the generator is resumed exactly once, \keyword{yield} statement, the generator is resumed exactly once,
@ -186,12 +186,12 @@ immediately.
Returns a generator that is sensitive to all signals that Returns a generator that is sensitive to all signals that
are used as inputs in function \function{func()}. The generator are used as inputs in function \function{func()}. The generator
will run \function{func()} whenever one of the inputs changes. will run \function{func()} whenever one of the inputs changes.
\function{func} should be a locally defined function without \function{func()} should be a locally defined function without
parameters. parameters.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{bin}{num \optional{, width}} \begin{funcdesc}{bin}{num \optional{, width}}
Return a representation as a bit string. If the optional \var{width} Returns a bit string representation. If the optional \var{width}
is provided, and if it is larger than the width of the default is provided, and if it is larger than the width of the default
representation, the bit string is padded with the sign bit. representation, the bit string is padded with the sign bit.