Shop OBEX P1 Docs P2 Docs Learn Events
LOCK-STEP question — Parallax Forums

LOCK-STEP question

Sleazy - GSleazy - G Posts: 79
edited 2008-01-20 12:32 in Propeller 1
I remember when chip realized that you could run more than one prop in lock step.· So im thinking to myself now.

Instead of running lock-step you run lock-half step? Could you hook the 5mhz·oscillator to one propeller correctly and connect a second propeller to the same oscillator in reverse?? One prop operating on the clocks falling edge and the other on the leading?

just an idea.· I figure if it works instead of enumerating props and have them synchronize their execution in an array, you could chain props together with one clock, each consecutive prop in the chain running in link - half step with the adjacent propellers in the array.· This could give a propeller array·made of half-step pairs could allow more data speed.

If 2 propellers shared an identical·link - step clock,·and shared their INA ports,·INA samples would be·identical between the two props, but in link - half step you should be able to double the INA data rate by having both props "take turns" at writing INA samples·to their local ram.

To share the INA port, you just solder two props together, like a sandwich.· Salami.

Am I on to anything here?

It feels good....


Post Edited (Sleazy - G) : 12/30/2007 11:39:04 AM GMT

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-12-30 23:49
    What you want to do has limited applicability, first cogs as-is can align with another cog with any offset. Two cogs can be setup to be in lock-step but different offsets (for example cog 1 reads INA every clock cycle where CNT % 4 = 0 while cog 2 reads INA every clock cycle where CNT % 4 = 2, total throughput of reading INA is 40MHz. By using 4 cogs where each is aligned to a different offset, 80MHz throughput is possible, this is the technique used by Hanno's ViewPort).

    Crystals cannot be driven simulatanously by two Propellers, instead you must use an active oscillator with complmentary outputs and drive each Propeller on the opposing signal. Doing this creates a DDR-like scheme and by using 4 cogs on each Propeller, a INA sampling rate of 160MHz is possible. There is a slight wrinkle in that some step will be needed to align the data streams from each Propeller since each Propeller's inital CNT value is indeterminate (IOW random), so the two Propellers need to synchronize thier system counters.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Sleazy - GSleazy - G Posts: 79
    edited 2007-12-31 08:58
    so couldnt you just sync CNT after sampling INA with both props with a total of 160 mhz as long as the complementary oscillator is phased right, and you·make an educated guess at·where to align the CNT time later by correlating the data.

    As long as your signal isnt completely arbitrary this should work, right?
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-12-31 09:11
    Yeah it should work if done properly.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Sleazy - GSleazy - G Posts: 79
    edited 2007-12-31 10:37
    ··skull.gif··AWESOME!· skull.gif

    ···········jumpin.gif
  • Sleazy - GSleazy - G Posts: 79
    edited 2008-01-20 12:32
    You do know that Beau is already working on this?

    Astonishing.
Sign In or Register to comment.