It's apparent from the code:
Case 1 says "wait for clock, THEN test B and act accordingly"
Case 2 says "Test B, decide how to act, THEN wait for clock"
Also, Case A is synthesisable (being a register with a 2-input mux in
front), case B is probably not synthesisable (ie there is no hardware
equivalent).
"toomuch" <
[email protected]> wrote:
:Hi
:
:Can someone tell me if there is a defference between the following two VHDL
:sources working:
:1.

rocess
:begin
: wait until C'event and C='1';
: if B='0' then
: Q<=B;
: else
: Q<= A;
: end if;
:end process;
:
:2.

rocess
:begin
: if B='0' then
: wait until C'event and C='1';
: Q<=B;
: else
: wait until C'event and C='1';
: Q<=A;
: end if;
:end process;
:
:
:Simulation of this two processes gives different results. Does anybody know
:why? Is there a specification discussing those cases?
:
:Thanks for any help
:
: