TOS RAM test routine ?

News,announcements,programming,fixes,game patches & discussions.
User avatar
Darklord
Site sponsor
Site sponsor
Posts: 1619
Joined: Wed Sep 20, 2017 1:41 pm
Location: Prestonsburg
Contact:

Re: TOS RAM test routine ?

Post by Darklord »

exxos wrote: Tue Dec 13, 2022 10:06 am
Doesn't pak have 32bit ROM ?? What speed chips is it using ?
I'm not sure about what speed the chips are. Here's the only
thing I could find from the manual that (might) apply:

Screenshot_20221213_192045.png
Screenshot_20221213_192045.png (121 KiB) Viewed 2679 times
Screenshot_20221213_190815.png
Screenshot_20221213_190815.png (96.72 KiB) Viewed 2679 times
Screenshot_20221213_190553.png
Screenshot_20221213_190553.png (99.37 KiB) Viewed 2679 times

Sorry I couldn't be more helpful...
Welcome To DarkForce! www.darkforce.org "The Fuji Lives.!"
Atari SW/HW based BBS-Telnet:darkforce-bbs.dyndns.org 1040
User avatar
exxos
Site Admin
Site Admin
Posts: 28614
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TOS RAM test routine ?

Post by exxos »

Darklord wrote: Wed Dec 14, 2022 12:23 am Sorry I couldn't be more helpful...
It actually says 120ns in the first image :) But yeah 32bit ROM . Bet it would be even faster if it had 50ns ROMs and a firmware tweak.
User avatar
Darklord
Site sponsor
Site sponsor
Posts: 1619
Joined: Wed Sep 20, 2017 1:41 pm
Location: Prestonsburg
Contact:

Re: TOS RAM test routine ?

Post by Darklord »

exxos wrote: Wed Dec 14, 2022 12:54 am It actually says 120ns in the first image :) But yeah 32bit ROM . Bet it would be even faster if it had 50ns ROMs and a firmware tweak.
I'd be perfectly willing to try that out! :lol:
Welcome To DarkForce! www.darkforce.org "The Fuji Lives.!"
Atari SW/HW based BBS-Telnet:darkforce-bbs.dyndns.org 1040
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3058
Joined: Tue Nov 19, 2019 12:09 pm

Re: TOS RAM test routine ?

Post by Badwolf »

exxos wrote: Tue Dec 13, 2022 10:46 pm @Badwolf A bit of light reading https://mikro.naprvyraz.sk/docs/Coding/ ... ie/MMU.TXT :lol:
Have read it. More than once. Feels like when I got to the third general relativity lecture by about half way down! :lol:

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: 28614
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TOS RAM test routine ?

Post by exxos »

Badwolf wrote: Wed Dec 14, 2022 9:51 am Have read it. More than once. Feels like when I got to the third general relativity lecture by about half way down! :lol:
Yeah seems to give lots of examples of things what not to do :lol: :roll:
User avatar
sporniket
Site sponsor
Site sponsor
Posts: 1169
Joined: Sat Sep 26, 2020 9:12 pm
Location: France
Contact:

Re: TOS RAM test routine ?

Post by sporniket »

As a first read about MMU, it is a bit dry indeed (and no pictures !).

http://marc.retronik.fr/motorola/68K/68 ... 86_9p].pdf "MEMORY MANAGEMENT UNITS FOR 68000 ARCHITECTURES" is a good primer (link because it's a 8 MB pdf). Then the datasheets of MMU MC68451, and especially the PMMU MC68851 make the text more palatable.

(edit : fixed link with square bracket that wreak havoc on bbcode :x )
User avatar
dml
Posts: 853
Joined: Wed Nov 15, 2017 10:11 pm

Re: TOS RAM test routine ?

Post by dml »

So I do basically the same sort of thing in BadMooD - I can provide source for the MMU module in that. However I didn't create that module for relocating stuff into ROM it was mainly used to shadow/mirror bits of memory elsewhere and change the caching attributes.

Looks like MAPROM has something similar to that module, although simpler looking, using some macros. By 'simpler' I mean it looks like a table. My own module consists of a set of functions used to create tables.


The MMU is a 'tree' structure built from page tables (arrays of page info entries). Each entry in the table has info & flags for the target address for a given page (being e.g. 8kb per page). The location of the entry in the tree itself infers the source location of memory being mapped. e.g. a page entry says 'this logical memory region should use that physical ram address'

So its a bit of a PITA to understand the details from the reference info and make a tree like this but with some decent macros/functions and a basic understanding of whats going on, it is not so hard.

The part which needs a lot of care is the fact the MMU tree must serve the whole system not just the changes you want to make. There is a single hardware pointer to the MMU tree and that tree must describe everything at once. If you get some of it wrong or leave some area of memory untreated in the tree, TOS will misbehave in exciting ways.

This means you also need some understanding of the existing tree and what it has set up for TOS, before you make a new one which does mostly the same thing.
User avatar
frank.lukas
Posts: 812
Joined: Fri Jan 19, 2018 11:52 am

Re: TOS RAM test routine ?

Post by frank.lukas »

frank.lukas wrote: Mon Dec 05, 2022 6:40 pm Fastram bar only ...

PAK030/50Mhz 64MB = 24s
PAK020/40Mhz 64MB = 35s
TF536 /50Mhz 64MB = 4m40s

... the ST Ram test bar is faster on the PAK Atari ST than on the TF536 Atari ST.


Atari TT 32Mhz 256MB = 2m20s

... the PAK machines are already faster than the Atari TT.
64MB Fastram DFB1 = 30s
Rustynutt
Posts: 230
Joined: Fri Sep 29, 2017 8:24 am
Location: USA

Re: TOS RAM test routine ?

Post by Rustynutt »

stephen_usher wrote: Mon Dec 05, 2022 10:00 pm Use my fixcrc program to fix that. :-)
Stephen, will your fixcrc work on a TOS 4.04 image?
Link?
Thanks :)
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: TOS RAM test routine ?

Post by stephen_usher »

I don't see why not. I would imagine that Atari didn't change the CRC test merely for TOS 4.x when they'd used it for all previous versions.
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.
Post Reply

Return to “SOFTWARE PROGRAMMING & DISCUSSION”