M
Marco
Hi all,
after some time spent in many other jobs, now it seems I have the
opportunity to work on my vhdl project, so here's a question for you...
in an older post
(http://groups.google.com/group/comp.lang.vhdl/browse_thread/thread/
ce626188d09ba630/8e89407cff5ed51a?lnk=gst&q=&rnum=9&hl=en#8e89407cff5ed51a)
I asked you about variables scope in order to understand a good way to
pass some bits of a status register located in the top most entity down
to each lower level entity that may need those signals. I've been told
that there's no way to declare something as "global", as each
synthetizer has it own way to handle it. Mike and others suggested to
use a single process or to pass those signals as ports on each
sub-entity. I was considering as first option, fitting it better within
my design, the latter one, but here's my doubt. If I need a sub-entity
to both read and write some of those bits of the register I need to
declare them as "INOUT" ports, but this way if I want to read them I
can't as I can't read outputs, so I have to use also a "local" signal
to which I assign the value of the INOUT signal asynchronously, then I
read it. This should work, but it seems not an nice approach to me,
what do you think, is it common to do so?
Thanks,
Marco
after some time spent in many other jobs, now it seems I have the
opportunity to work on my vhdl project, so here's a question for you...
in an older post
(http://groups.google.com/group/comp.lang.vhdl/browse_thread/thread/
ce626188d09ba630/8e89407cff5ed51a?lnk=gst&q=&rnum=9&hl=en#8e89407cff5ed51a)
I asked you about variables scope in order to understand a good way to
pass some bits of a status register located in the top most entity down
to each lower level entity that may need those signals. I've been told
that there's no way to declare something as "global", as each
synthetizer has it own way to handle it. Mike and others suggested to
use a single process or to pass those signals as ports on each
sub-entity. I was considering as first option, fitting it better within
my design, the latter one, but here's my doubt. If I need a sub-entity
to both read and write some of those bits of the register I need to
declare them as "INOUT" ports, but this way if I want to read them I
can't as I can't read outputs, so I have to use also a "local" signal
to which I assign the value of the INOUT signal asynchronously, then I
read it. This should work, but it seems not an nice approach to me,
what do you think, is it common to do so?
Thanks,
Marco