Following on from a conversation here viewtopic.php?p=117591#p117591 which I don't want to hijack any longer, Exxos mentioned the STE is very finicky about CPU clock skew when it comes to booster clock shenanigans and specifically with an eye to DMA.
So I ran some tests.
DSTB1 uses a 'related clock' switching technique, which isn't technically the right thing to do (as they're not related -- a 16.5MHz local oscillator and a system 8MHz one). There are a lot of stages of logic from the input clock, which I call CLK8, to the output clock so a fair delay is inevitable.
But how sensitive is the STE?
Locking the CPU to 8MHz, I used a similar technique to Terriblefire in his earlier TF boards to sample the local clock and apply various offsets to how far back in time you go to allow me to vary things...
Over to old me:
Well, I couldn't have calculated that much worse!Badwolf wrote: 23 Jul 2024 19:08 No harm in trying it. But you're right: don't think it's clock skew.
And, remarkably. That runs and passes RAM tests.
ACSI works, but Tentacle isn't stable. I'll tweak the skew a bit.
BW
PS: A delay of 15-20ns seems OK at 8MHz.
PS2: This seems a pretty good compensation -- Tentacle runs ok, but we're still at 8MHz. Keeping a note of this one for later, though.
(averaging turned on for the blue (CLKOUT) line as there's a bit of jitter)
PS3: With a lead of 15ns, the computer was stable for a few minutes but then had an interesting crash (not sure if it were DMA-related)
PS4: Actually since that 'interesting' crash (I couldn't reboot with the button), it's been running stably in that configuration.
Anyway, I'm going out on a limb and saying I don't think the STE is *super* sensitive to clock skew on the CPU, but all this is at 8MHz. If it really were critical I'd have thought taking it from +62.5 to -15ns would have picked up something a bit more dramatic than the crashes I have to foment with Tentacle.

