REV 3 - REV 5 - The beginning (ST536)

All about the ST536 030 ST booster.
User avatar
exxos
Site Admin
Site Admin
Posts: 29830
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

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

Post by exxos »

Claude been busy designing a breakout fpga board.
Can't get them made at JLC :roll: Will have to use my other fab house. Probably get 5 boards made. Won't be cheap but I need to find a cheap fpga. It's 3.3v with 1.2v core. Its got 8MB of sdram built in which is pretty cool. Plus a proper PLL clock input. Etc.

ST536_AG10K_TEST_r1.0_top.png
ST536_AG10K_TEST_r1.0_top.png (764.41 KiB) Viewed 91 times
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3192
Joined: Tue Nov 19, 2019 12:09 pm

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

Post by Badwolf »

Once you've built in area mode, did the basic functionality work (ie. no TT-RAM, no IDE)? If not, then yeah, you've got bigger fish to fry, but if it *does*, then you end up with a more stable platform to work with at the expense of now needing to rework the SDRAM controller.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 29830
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

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

Post by exxos »

That basic test without TT-RAM ran fine, but it doesn't tell me much I didn't already know. The trouble is it isn't one problem. I can have a board running all day here, the current build has just done 297 passes of GB6 overnight, then someone else plugs one in and it will hardly boot.

There are clearly other things going on as well. Even without TT-RAM there has been odd spiking on the reset line, which follows the ST bus buffers switching. I filtered it inside the CPLD so it doesn't reset the board, but I never got to the bottom of what causes it.

20261117_135233.jpg
20261117_135233.jpg (178.15 KiB) Viewed 69 times
20261117_135220.jpg
20261117_135220.jpg (208.01 KiB) Viewed 69 times
User avatar
exxos
Site Admin
Site Admin
Posts: 29830
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

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

Post by exxos »

A quick update on the area / density tests and a new SDRAM test.

First, the current working build with the fitter set to density, no code changes. It booted, but the IDE drive test screen didn't scroll properly and it reset a few tests into GB6. The SDRAM address logic actually stayed in one block this time, but the SDRAM state machine itself got slower instead.

Then the same density build with TT-RAM disabled, so the ROM copy fails and it runs from the ROM chips. That booted and the IDE screen was fine, so the basic machine works, it is the SDRAM side that tips it over.

Next I tried running the SDRAM state machine at half rate. The SDRAM clock and all the pin timings stay the same, but the state machine only moves every other 100MHz clock, always in step with the CPU clock. That gives all the internal SDRAM logic twice as long to settle, so in theory it shouldn't care so much when the fitter moves things around.

With the fitter set to density, that build wouldn't boot at all, even with TT-RAM disabled. With the fitter set back to speed it boots, TT-RAM tests fine, and GB6 is running now. The cost is about 10% on TT-RAM speed, 942% in GB6 against about 1050% before.

In the simulation, the half-rate version also gives the same data timing on every read, every time. The old controller's cache burst reads could occasionally land in the wrong place straight after a refresh in the simulation. That isn't proven on real hardware, but it is the sort of thing that would give a random crash every few hours.

So density hasn't helped on its own. Both density builds also had the same slow path on the ST bus side, which I suspect is what upset the IDE screen, so it just moves the problem somewhere else. I will keep testing the half-rate build and see how it holds up.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3192
Joined: Tue Nov 19, 2019 12:09 pm

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

Post by Badwolf »

exxos wrote: Tue Nov 17, 2026 3:09 pm Next I tried running the SDRAM state machine at half rate. The SDRAM clock and all the pin timings stay the same, but the state machine only moves every other 100MHz clock, always in step with the CPU clock. That gives all the internal SDRAM logic twice as long to settle, so in theory it shouldn't care so much when the fitter moves things around.
Is probably implicit in the above, but I'll mention it just in case you've missed it, but obviously the assertion of STERM can't run at half pace too, else it'll be 20ns late.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 29830
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

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

Post by exxos »

This is the half-rate build. TT-RAM is about 10% slower than before because the SDRAM state machine now only moves every other 100MHz clock. STERM itself isn't slowed down, it still comes from the CPU clocked registers, so single reads take the same time, but writes end about one CPU clock later and cache burst reads lose a bit more, which is where most of the 10% goes.

IMG_5489.JPG
IMG_5489.JPG (94.19 KiB) Viewed 51 times

I've given 2 more firmwares to @coonsgm to try out. One with no TTram to make sure his build is stable to start with and the slightly slower TTram build.

I'm still plotting a FPGA version. Need to build a test board as timings are not exactly given. But the china FPGA are dirt cheap, problem is they are 3.3V max input. But 3x 16bit IO buffers should solve that.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7721
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

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

Post by stephen_usher »

With regards to spikes and noise on the ST derived signals, may I suggest in-line resistors with pull-ups on the accelerator side and a high frequency filter on the clock?

Discrete components as close to the pins connecting to the motherboard as possible.
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: 29830
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 17, 2026 7:39 pm With regards to spikes and noise on the ST derived signals, may I suggest in-line resistors with pull-ups on the accelerator side and a high frequency filter on the clock?
Inline resistors and a buffer on the clock is already on the current boards. The clock has a schmitt buffer on it. The main problem was the reset signal. Even with 1 K pullup on it, it was doing this..

IMG_4947.JPG
IMG_4947.JPG (275.81 KiB) Viewed 38 times
IMG_4948.JPG
IMG_4948.JPG (273.54 KiB) Viewed 38 times
IMG_4951.JPG
IMG_4951.JPG (286.36 KiB) Viewed 38 times

It was documented some months back. I couldn't work out why it was doing that. In the end I did a workaround in the PLD for glitch detection.. which added more logic, which screwed up other timings again :lol: :roll:

The latest boards I added 33R on every signal to try and help with GND bounce as that was pretty bad just over the headers from the ST536 to the H4.. like 1cm of connection and huge bounce. I need to measure the signals again .. but I need to build up a new board really yet.. This could be part why boards fail to work on all machines. It always seems to be more a ST side issue but i've not managed to exactly figure out why yet. Again its why I added the inline resistors to rule out GND bounce causing a lot of these random odd issues I keep having.

There's still many more questions than answers at the moment unfortunately. Bad PCBs from JLC has likely been a thorn in my side for probably the past couple of years without me even realising until more recently. Plus the constant PLD headaches. So i'm not sure if to just skip the PLD series all together now and just move to the FPGA boards.. But I need to get a FPGA test board made yet..
User avatar
exxos
Site Admin
Site Admin
Posts: 29830
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

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

Post by exxos »

Looks like Claude is having fun...

Capture.PNG
Capture.PNG (138.99 KiB) Viewed 31 times
User avatar
exxos
Site Admin
Site Admin
Posts: 29830
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

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

Post by exxos »

Looks like the breakout board has completed. I need to check it tomorrow and try and get a couple made before xmas if I can.

Capture.PNG
Capture.PNG (49.75 KiB) Viewed 25 times
Post Reply

Return to “ST536 030 ST ACCELERATOR”