VHDL Question: case statements

Status
Not open for further replies.

Smuggl0r

Newbie level 1
Joined
Jul 15, 2004
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
9
Hi,
I was just wondering something. If i have a some code like this:

process(CLK)
begin

case Signal is

when SignalCase1 =>
Signal <= SignalCase2;

when SignalCase2 =>
Signal <= SignalCase3;

when SignalCase3 =>
null;

end case;

end process;

Now what this code should do is, on every change of the clock (CLK), if Signal is equal to SignalCase1 then, Signal = SignalCase2, and same for next statement also. Now, say the code got to SignalCase1, and it then set Signal to SignalCase2, would it go straight to the SignalCase2 statement, as that condition is now met? Or would it end the case statement, and wait until the next clock change?
Any help appreciated.
Thanks.

Smuggl0r
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…