(Atari) ST-RAM boost WIP

68030 + SDRAM + IDE

Moderators: terriblefire, Terriblefire Moderator

User avatar
agranlund
Posts: 777
Joined: Sun Aug 18, 2019 10:43 pm
Location: Sweden
Contact:

Re: (Atari) ST-RAM boost WIP

Post by agranlund »

Some games really benefit from the speedup:


And some become instant "hard mode" :lol:



I tried a bunch of games and contrary to what I would have guessed the majority didn't actually suffer from becoming unplayably fast so I think it's worth it to tidy this up into a proper feature.

It needs a bit of cleanup in the firmware, the ability to enable/disable from software, and as a first pass have a look at making the software side update cache after file i/o for those that are using floppy or acsi drives.
It's all in a rather quick and dirty proof-of-concept stage at the moment :D
User avatar
exxos
Site Admin
Site Admin
Posts: 23499
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: (Atari) ST-RAM boost WIP

Post by exxos »

Castle master ;)
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
agranlund
Posts: 777
Joined: Sun Aug 18, 2019 10:43 pm
Location: Sweden
Contact:

Re: (Atari) ST-RAM boost WIP

Post by agranlund »

Steve wrote: Tue Dec 08, 2020 2:40 pm More work of genius from the great @agranlund :D Whatever will he do next? World peace? Free energy?
Hahaha :lol:
Thank you :) Maybe if more people played Atari we would one day achieve world peace!
User avatar
mrbombermillzy
Posts: 1441
Joined: Sun Jun 03, 2018 7:37 pm

Re: (Atari) ST-RAM boost WIP

Post by mrbombermillzy »

I must admit, I did have a quick look into a similar performance speedup (for TT rather than TF though).

Basically, I concluded that the Shifter RAM needed relocating before anything really useful speed-wise could be done. :lol:

Im currently using a Shadow TT RAM system for copy/transform operations of screen data.

However, you are taking a different direction here with OS call (+ possibly MMU) relocations for speedups and I will be very interested in what you come up with.

Keep up the good work! :dualthumbup:
User avatar
exxos
Site Admin
Site Admin
Posts: 23499
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: (Atari) ST-RAM boost WIP

Post by exxos »

@agranlund Frontbench time ? ;)
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Steve
Posts: 2570
Joined: Fri Sep 15, 2017 11:49 am

Re: (Atari) ST-RAM boost WIP

Post by Steve »

So this is a custom firmware for the tf536 (regular edition) ? I wouldn't mind having this enabled for my H5 tf536 because it runs from IDE & doesn't need blitter.
User avatar
agranlund
Posts: 777
Joined: Sun Aug 18, 2019 10:43 pm
Location: Sweden
Contact:

Re: (Atari) ST-RAM boost WIP

Post by agranlund »

Steve wrote: Wed Apr 13, 2022 4:27 pm So this is a custom firmware for the tf536 (regular edition) ? I wouldn't mind having this enabled for my H5 tf536 because it runs from IDE & doesn't need blitter.
Yep. It's for the regular edition.
I eventually abandoned that particular path I wrote about before in the thread, but there is a firmware (and new maprom) which enables the L1 cache for ST-RAM - this attempts to solve the same thing but in a different way.
It isn't as big of a speed boost for ST-RAM programs as some of the earlier and more complicated experiments, but for the simplicity I think it works surprisingly well and it can make quite a difference for games running from ST-RAM.

There is before and after videos here:
https://www.exxosforum.co.uk/forum/viewt ... 318#p83155

And the firmware + new maprom program can be found here:
https://www.exxosforum.co.uk/forum/viewt ... =30#p83177

You may or may not have issues in TOS206, especially with Floppy and maybe other DMA devices. Turning cache off may help in that case.
Some programs may not work at all with cache enabled, some may run to fast etc..
Disabling the cache option in the Tos menu should help in that case.
I've ran a bunch of games but I don't want to say it's very well tested and I can't tell for sure how it effects overall compatibility.
User avatar
exxos
Site Admin
Site Admin
Posts: 23499
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: (Atari) ST-RAM boost WIP

Post by exxos »

Its a shame SRAM doesn't have a clear pin :( I was thinking about this the other day . I mean writing to a shadow ram and reading from it is doable as proven. Problem is it needs a 1 extra bit per address to tell if the shadow ram as been written to so we know it has valid data. On a bus master access it would need to clear the whole bank of that extra bit. Not possible with SRAM :(

If however we could fit like 50 million flip flops into a PLD I think it would actually be possible to cache the whole ST RAM area.. Within alt-ram. Simple idea, but doable not so much :roll:
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
ijor
Posts: 428
Joined: Fri Nov 30, 2018 8:45 pm

Re: (Atari) ST-RAM boost WIP

Post by ijor »

agranlund wrote: Tue Dec 08, 2020 12:38 am I'm planning on investigating if I got all relevant signals available for snooping those DMA writes.
You need the DMA signal that goes from GLUE to MMU. You also need the databus, of course. And you also need to snoop writes to the DMA address registers.
exxos wrote: Wed Apr 13, 2022 6:14 pm Its a shame SRAM doesn't have a clear pin :( I was thinking about this the other day . I mean writing to a shadow ram and reading from it is doable as proven. Problem is it needs a 1 extra bit per address to tell if the shadow ram as been written to so we know it has valid data. On a bus master access it would need to clear the whole bank of that extra bit. Not possible with SRAM :(
If you snoop bus maters access you never need to invalidate the shadow ram. It is always valid.
http://github.com/ijor/fx68k 68000 cycle exact FPGA core
FX CAST Cycle Accurate Atari ST core
http://pasti.fxatari.com
User avatar
exxos
Site Admin
Site Admin
Posts: 23499
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: (Atari) ST-RAM boost WIP

Post by exxos »

ijor wrote: Tue Apr 19, 2022 10:51 pm If you snoop bus maters access you never need to invalidate the shadow ram. It is always valid.
Yep, Was talking to @Badwolf about just that a few weeks back. Time is never on anyone's side, unfortunately.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “TF536”