REV 3 - REV 5 - The beginning (ST536)

All about the ST536 030 ST booster.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7692
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: REV 3 - REV 5 - The beginning (ST536)

Post by stephen_usher »

exxos wrote: Tue Nov 10, 2026 9:22 pm Some progress tonight, and for once something that actually repeats.

BUSTEST copies blocks of data between ST RAM and TT-RAM in every combination and checks every byte. With the 68030 caches off, both my board and Greg's pass. With the caches on, both boards fail, and only on copies between TT-RAM and ST RAM. Copies within ST RAM or within TT-RAM pass. On Greg's board it failed badly and then hung, so we don't have the detail from his yet. On my board it fails rarely, but the two errors I have caught tell us a lot.

Both errors were exactly the same. The same byte of test data ($F7) was copied from TT-RAM to ST RAM and came back as $FF. Only one data line was wrong, D11 on the 68000 side (D27 on the 68030), and it read as 1 when it should have been 0. The two errors were at different ST RAM addresses, but it was the same piece of data both times, so this is not random noise. It depends on the data pattern.

The failing byte is always the last part of a misaligned long write to ST RAM. The CPU splits that into three ST bus cycles: a byte, a word, then a byte. It is that last byte that goes wrong. D11 is low in the cycle before it and low in the byte itself, so the line never actually changes, yet it still ends up as a 1. It only happens with the caches on, where the CPU runs those ST bus cycles back to back with no gaps.

So this looks like a timing problem at the point where the ST bus is switched between cycles, rather than a bad solder joint or faulty RAM. The fact that two boards show the same thing points the same way.

I have written a small test program that repeats that exact copy thousands of times a second, so hopefully we can make it fail on demand. That will make it much quicker to test firmware changes and hardware changes, instead of waiting 20 minutes for one error.
You know, that sounds VERY much like the PiStorm I was having... Just one data line reading wrongly.

The fix for the PiStorm was a 47pF capacitor on the clock line from the motherboard. It gained a harmonic which made a step in the voltage just where the clock passed the TTL/CMOS transition voltage.

Maybe something to look at using a high bandwidth 'scope.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
exxos
Site Admin
Site Admin
Posts: 29747
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: REV 3 - REV 5 - The beginning (ST536)

Post by exxos »

stephen_usher wrote: Tue Nov 10, 2026 11:40 pm You know, that sounds VERY much like the PiStorm I was having... Just one data line reading wrongly.

The fix for the PiStorm was a 47pF capacitor on the clock line from the motherboard. It gained a harmonic which made a step in the voltage just where the clock passed the TTL/CMOS transition voltage.

Maybe something to look at using a high bandwidth 'scope.
I used to have 47pF on the clock a while back, though I put it down to timing shift rather than harmonics.. But yes good idea to revist.

Currently I reflowed the PLD and now it doesn't boot up at all :roll:

:sigh:
coonsgm
Posts: 486
Joined: Sat Jan 30, 2021 1:30 am

Re: REV 3 - REV 5 - The beginning (ST536)

Post by coonsgm »

exxos wrote: Tue Nov 10, 2026 11:26 pm
coonsgm wrote: Tue Nov 10, 2026 11:10 pm Running rock solid with a different CPU.
Can you run this program .. Leave it on for a bit, then press ESC to get the summery and send me a screenshot..


TTHAMMER.zip
I’ll test once I’m home in a couple hours.
Post Reply

Return to “ST536 030 ST ACCELERATOR”