discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] strange consume behaviours on blocks with mulitp


From: Matteo Campanella
Subject: Re: [Discuss-gnuradio] strange consume behaviours on blocks with mulitple input channels
Date: Wed, 3 Jan 2007 12:15:20 +0100 (CET)
User-agent: SquirrelMail/1.4.8-1.fc5

>               // From this point sync clk
>               //
>               d_sign_last = (clk[0] > 0 ? 1: -1);
>               for (i = 0; i < n_clk_in ; i++) {
>                       sign_current = (clk[i] > 0 ? 1: -1);
>                       if(sign_current != d_sign_last) {
>                               // zc in clock
>                               consume(1, i);
>                               break;
>                       }
>                       d_sign_last = sign_current;
>               }
>
>               enter_locked();
>               return 0;       // No output produced, but now sync...
>
>
> The break after consume may be incorrect.  If it's executed you do not
> set d_sign_last to the new sign (sign_current).
>
> Eric
>
>

If the break is executed, we have clock and signal aligned; enter_locked()
and return are executed after break and on next work invocation we will be
in the sync state, that is the other case of the switch.

Matteo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]