K
KJ
Guest
"Mike Treseler" <mike_treseler@comcast.net> wrote in message
news:51fcr8F1jduk9U1@mid.individual.net...
out....and typing 'signal' takes 2 fewer keystrokes than 'variable'.
Kevin Jennings
news:51fcr8F1jduk9U1@mid.individual.net...
Replace 'variable' with 'signal' and the same statement regarding scope popsKJ wrote:
Why? An entity/architecture is (or should be) implementing a specific
function and everything should be pulling together to implement this and
creating a new signal as a flag to indicate when you're in a state gives
opportunities to be less than clear. For example, using your approach
the
process that needs to know when you're in a specific state would have
code
something like...
if (Were_In_The_Important_State = '1') then
....
whereas if the state variable is available throughout the
entity/architecture it would be
if (Current_State = The_Important_State) then ...
In a single process entity, all variables
including state variables *are* available everywhere.
It can't be simpler than that.
-- Mike Treseler
out....and typing 'signal' takes 2 fewer keystrokes than 'variable'.
Kevin Jennings