DSPRelated.com
Forums

PN SEQUENCE (zero values)

Started by Avier February 4, 2010
just for check 


IS there any way to produce a PN sequence from all zero  intial state.

that is all zeros in shift regiters

On Feb 4, 3:19&#4294967295;pm, "Avier" <shahanwark...@hotmail.com> wrote:
> just for check > > IS there any way to produce a PN sequence from all zero &#4294967295;intial state. > > that is all zeros in shift regiters
I believe the all-zeros state is never legal because it would cause all subsequent outputs to be zero.
>On Feb 4, 3:19=A0pm, "Avier" <shahanwark...@hotmail.com> wrote: >> just for check >> >> IS there any way to produce a PN sequence from all zero =A0intial
state.
>> >> that is all zeros in shift regiters > >I believe the all-zeros state is never legal because it would cause >all subsequent outputs to be zero. >
thats the question can we come out of all zeros state
On Thu, 04 Feb 2010 14:52:27 -0600
"Avier" <shahanwarkhan@hotmail.com> wrote:

> >On Feb 4, 3:19=A0pm, "Avier" <shahanwark...@hotmail.com> wrote: > >> just for check > >> > >> IS there any way to produce a PN sequence from all zero =A0intial > state. > >> > >> that is all zeros in shift regiters > > > >I believe the all-zeros state is never legal because it would cause > >all subsequent outputs to be zero. > > > > thats the question can we come out of all zeros state
A LFSR based PN sequence can be implemented using XOR or XNOR feedback. One generates a system in which all-zeros is the hang state. For the other, all-ones is the hang state instead. -- Rob Gaddi, Highland Technology Email address is currently out of order

John wrote:

> On Feb 4, 3:19 pm, "Avier" <shahanwark...@hotmail.com> wrote: > >>just for check >> >>IS there any way to produce a PN sequence from all zero intial state. >> >>that is all zeros in shift regiters > > > I believe the all-zeros state is never legal because it would cause > all subsequent outputs to be zero.
You can modify LSFR by sticking an additional invertor into it. This will take care of all zero state however the sequence will stil have 2^N - 1 "normal" states. VLV
Avier wrote:
>> On Feb 4, 3:19=A0pm, "Avier" <shahanwark...@hotmail.com> wrote: >>> just for check >>> >>> IS there any way to produce a PN sequence from all zero =A0intial > state. >>> that is all zeros in shift regiters >> I believe the all-zeros state is never legal because it would cause >> all subsequent outputs to be zero. >> > > thats the question can we come out of all zeros state
Suppose you use an XNOR instead of an XOR? (Don't get too excited. Although all zeros is no longer pathologic, there's another state that is.) Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
"Avier" <shahanwarkhan@hotmail.com> wrote in news:1-
KdnQfbRfxWtvbWnZ2dnUVZ_vOdnZ2d@giganews.com:

> just for check > > > IS there any way to produce a PN sequence from all zero intial state. > > that is all zeros in shift regiters >
The all zero state is a the 2n - (2n-1) state. Its next state is itself. You could use an N input NOR connected to each output state. The output of the NOR would be 0 for all situations except the all 0 state. You could take this value and OR with any one of the output states. This would cause an all 0 condition to be changed to one with a single 1 state. At this point the states would change to the 2n-1 sequence. Once in a 2n-1 sequence, the OR function would never cause a change in the next state since you would always be ORing a 0. This is clearly a very bad solution. In software, you just initialize a seed to be non zero. In hardware, the VLV solution adds an inverter to the output of a flip flop. If you then perform a RESET, you have a seed with a single 1, which will avoid the all zero state. Al Clark www.danvillesignal.com
Al Clark <aclark@danvillesignal.com> wrote:
(snip)
 
> You could use an N input NOR connected to each output state. The output of > the NOR would be 0 for all situations except the all 0 state. You could take > this value and OR with any one of the output states. This would cause an all > 0 condition to be changed to one with a single 1 state. At this point the > states would change to the 2n-1 sequence. Once in a 2n-1 sequence, the OR > function would never cause a change in the next state since you would always > be ORing a 0.
> This is clearly a very bad solution.
Why is it so bad? If you compare the cost of being in the wrong state to the cost of the OR gate, is it all that bad?
> In software, you just initialize a seed to be non zero.
> In hardware, the VLV solution adds an inverter to the output > of a flip flop. If you then perform a RESET, you have a > seed with a single 1, which will avoid the all zero state.
And if an alpha particle comes through and it does get into the wrong state then you are stuck. -- glen
On Feb 4, 3:19&#4294967295;pm, "Avier" <shahanwark...@hotmail.com> wrote:
> just for check > > IS there any way to produce a PN sequence from all zero &#4294967295;intial state. > > that is all zeros in shift regiters
long ago (in the eighties, and it was on a 68K, like my first Mac) i did a sorta MLS in which i inverted the logic whether to XOR the accumulator or not. i think i XORed if the bit shifted out was a 0, not a 1. and i ran experiments to see that it did 2^N - 1 states before getting back to all zeros. that meant that there was some non-zero state that it never did, and i think i found it, but i don't remember if the word representing the skipped state was something i could derive. r b-j
glen herrmannsfeldt wrote:
> Al Clark <aclark@danvillesignal.com> wrote: > (snip) > >> You could use an N input NOR connected to each output state. The output of >> the NOR would be 0 for all situations except the all 0 state. You could take >> this value and OR with any one of the output states. This would cause an all >> 0 condition to be changed to one with a single 1 state. At this point the >> states would change to the 2n-1 sequence. Once in a 2n-1 sequence, the OR >> function would never cause a change in the next state since you would always >> be ORing a 0. > >> This is clearly a very bad solution. > > Why is it so bad? If you compare the cost of being in the wrong > state to the cost of the OR gate, is it all that bad?
It makes the shift register the equivalent of a permanent logic 0. How bad that is depends on the application.
>> In software, you just initialize a seed to be non zero. > >> In hardware, the VLV solution adds an inverter to the output >> of a flip flop. If you then perform a RESET, you have a >> seed with a single 1, which will avoid the all zero state. > > And if an alpha particle comes through and it does get into > the wrong state then you are stuck.
Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;