suppose if am having a clock frequency of 60 Mhz and i want to invert every third bit that is inverting signal at 20Mhz . what could be the best solution in terms of least number of storage bits . i think a counter can be used but how many storage bits we will count it? any other solutions
Inverting bits
Started by ●January 2, 2010
Reply by ●January 2, 20102010-01-02
Avier wrote:> suppose if am having a clock frequency of 60 Mhz and i want to invert > every third bit that is inverting signal at 20Mhz . what could be the > best solution in terms of least number of storage bits . > > i think a counter can be used but how many storage bits we will count > it? > > any other solutionsHow many "storage bits" do you need to count to three? What other hardware? What help does knowing the clock frequency provide? Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by ●January 2, 20102010-01-02
On Jan 2, 1:00=A0pm, "Avier" <shahanwark...@hotmail.com> wrote:> suppose if =A0am having a clock frequency of 60 Mhz and i want to invert > every third bit that is inverting signal at 20Mhz . =A0 what could be the > best solution in terms of least number of storage bits . > > i think a counter can be used =A0but how many storage bits we will count > it? > > any other solutionsuhm, one thing about Digital Signal Processing that's a sorta misnomer. we ain't processing digital signals here. it's more like we're processing analog signals by digital means. that being said, it sounds like you need a counter. i'm sure someone has a nice compact divide-by-3 counter circuit laying around. it would need at least 2 flip-flops in it. r b-j
Reply by ●January 2, 20102010-01-02
robert bristow-johnson wrote:> that being said, it sounds like you need a counter. i'm sure someone > has a nice compact divide-by-3 counter circuit laying around. it > would need at least 2 flip-flops in it.^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Nope. There is about a zillion of ways for making N-state flip-flop, i.e. flip-flap-flop for 3 states, flip-flap-flup-flop for 4 states, etc. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
Reply by ●January 2, 20102010-01-02
> >How many "storage bits" do you need to count to three? What other >hardware? What help does knowing the clock frequency provide? > >Jerry >i rephrase the question , i need to innvert the every third bit of the btstream what would be the solution
Reply by ●January 2, 20102010-01-02
On Sat, 02 Jan 2010 12:27:47 -0600, Avier wrote:>>How many "storage bits" do you need to count to three? What other >>hardware? What help does knowing the clock frequency provide? >> >>Jerry >> >> > > > i rephrase the question , i need to innvert the every third bit of the > btstream > > what would be the solutionAsk your prof for help? (hint: you can do it with a 7473 and a 7486) -- www.wescottdesign.com
Reply by ●January 2, 20102010-01-02
Avier wrote:>> How many "storage bits" do you need to count to three? What other >> hardware? What help does knowing the clock frequency provide? >> >> Jerry >> > > > > i rephrase the question , i need to innvert the every third bit of the > btstream > > what would be the solutionHardware or software? Either way, count bits modulo three and invert the bit whenever the count is, say, zero. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by ●January 2, 20102010-01-02
Vladimir Vassilevsky wrote:> > > robert bristow-johnson wrote: > >> that being said, it sounds like you need a counter. i'm sure someone >> has a nice compact divide-by-3 counter circuit laying around. it >> would need at least 2 flip-flops in it. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Nope. > > There is about a zillion of ways for making N-state flip-flop, i.e. > flip-flap-flop for 3 states, flip-flap-flup-flop for 4 states, etc.Deja vu! In first grade, students were allowed to go home for lunch. The rule changed when I began second grade. Everybody had to bring lunch and eat it in the gymnasium. On the second day of school, one of my classmates began to whimper. Ever solicitous, I asked him what was wrong. He answered, "I have to go to the bathroom." I said, "It's right over there. Lunchtime, you don't need to ask." He answered, "Somebody has to wipe me." Ever solicitous, I showed him how to do it himself. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by ●January 2, 20102010-01-02
On Sat, 02 Jan 2010 14:23:01 -0500, Jerry Avins wrote:> Vladimir Vassilevsky wrote: >> >> >> robert bristow-johnson wrote: >> >>> that being said, it sounds like you need a counter. i'm sure someone >>> has a nice compact divide-by-3 counter circuit laying around. it >>> would need at least 2 flip-flops in it. >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Nope. >> >> There is about a zillion of ways for making N-state flip-flop, i.e. >> flip-flap-flop for 3 states, flip-flap-flup-flop for 4 states, etc. > > Deja vu! In first grade, students were allowed to go home for lunch. The > rule changed when I began second grade. Everybody had to bring lunch and > eat it in the gymnasium. On the second day of school, one of my > classmates began to whimper. Ever solicitous, I asked him what was > wrong. He answered, "I have to go to the bathroom." I said, "It's right > over there. Lunchtime, you don't need to ask." He answered, "Somebody > has to wipe me." Ever solicitous, I showed him how to do it himself. > > JerryWhich just goes to show that school is for showing us those bits of life that our parents never thought to let us in on. The next comment will be cynical, and will make this degenerate into politics or social commentary, so I'll try to resist. -- www.wescottdesign.com
Reply by ●January 2, 20102010-01-02
On 1/2/2010 11:00 AM, Avier wrote:> suppose if am having a clock frequency of 60 Mhz and i want to invert > every third bit that is inverting signal at 20Mhz . what could be the > best solution in terms of least number of storage bits . > > i think a counter can be used but how many storage bits we will count > it? > > any other solutionsThe answer depends on what you're trying to optimize. Do you just want a solution that works? Or a solution with the minimum number of states? Or a solution with the minimum hardware complexity? Or a solution with the least power consumption? Or a solution with the least number of software instructions? Three D-flops connected in a ring will do it. I don't know if that will satisfy your professor, though. -- Eric Jacobsen Minister of Algorithms Abineau Communications http://www.abineau.com






