D
Don Otknow
Hello,
I've never really understood the difference between a function and a
procedure in VHDL. I've read that a function returns 1 value whereas a
procedure can return multiple values? Could someone elucidate this for
me?
Also, I am confused about the scope of signals. If I declare a signal
within an architecture, does the scope of this signal extend to
functions declared within processes in the architecture? If not, is
there a way to do this without passing the signals? I would like to
call functions in a way resembling scripts that allowed for greater
code readability.
Thanks,
Don
I've never really understood the difference between a function and a
procedure in VHDL. I've read that a function returns 1 value whereas a
procedure can return multiple values? Could someone elucidate this for
me?
Also, I am confused about the scope of signals. If I declare a signal
within an architecture, does the scope of this signal extend to
functions declared within processes in the architecture? If not, is
there a way to do this without passing the signals? I would like to
call functions in a way resembling scripts that allowed for greater
code readability.
Thanks,
Don