Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Electronic Equipment > VHDL > Two processes w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 6056 of 6417
Post > Topic >>

Two processes with communication through a signal.

by jumpz <l33tsp34kr@[EMAIL PROTECTED] > May 30, 2008 at 03:46 PM

signal trigger;

proc1 : process(clk)
begin
trigger <= '0';
case state_proc1 is
  when ... (other states)
  when STATE1 =>
    trigger <= '1';
    state_proc1 <= STATE2;
  when STATE2 =>
    -- do something, but don't set trigger to anything
  when ... (other states)
end case;
end process proc1;

proc2 : process(clk)
begin
case state_proc2 is
  when STATE1 =>
    if trigger = '1' then
      state_proc2 <= STATE2;
    end if;
  when STATE2 =>
    -- do something
    state_proc2 <= STATE1;
end case;
end process proc2;

Can proc1 transition from (some state)->STATE1->STATE2->(some other
state) without causing proc2 to transition from STATE1 to STATE2?
(assuming state_proc2 is STATE1 to start)

I have similar code which is implemented on a FPGA where proc2 somehow
misses the trigger signal going high unless I keep it high for a few
clock cycles and I really don't understand how this can happen.  I
thought in the above case both processes would run and then pending
signal assignments (such as trigger going to 1) would be made
simultaneously after a delta delay.

If this is indeed not possible, any ideas on trying to identify what
is causing this?

Thanks!
 




 6 Posts in Topic:
Two processes with communication through a signal.
jumpz <l33tsp34kr@[EMA  2008-05-30 15:46:53 
Re: Two processes with communication through a signal.
kennheinrich@[EMAIL PROTE  2008-05-30 19:09:49 
Re: Two processes with communication through a signal.
"KJ" <kkjenn  2008-05-31 09:46:01 
Re: Two processes with communication through a signal.
Mike Treseler <mtresel  2008-05-31 09:09:06 
Re: Two processes with communication through a signal.
Ralf Hildebrandt <Ralf  2008-06-02 21:45:49 
Re: Two processes with communication through a signal.
kennheinrich@[EMAIL PROTE  2008-06-02 19:53:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 8:18:08 CST 2008.