6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 9:07 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: RAM test
PostPosted: Sun May 24, 2020 9:48 pm 
Offline

Joined: Sat Mar 11, 2017 1:56 am
Posts: 276
Location: Lynden, WA
This is probably a feature of dubious utility but I'll ask anyway.

How would one implement a power on RAM test, that is capable of determining how much actual RAM is available?

My first idea was to go through every address, first writing all 1's, and verifying, and then doing the same with zeroes. This would test the RAM for functionality but...

I have I/O directly after the SRAM If I try to write to that, currently my UART will get some sort of garbage activity!

My likely compromise will be to have the test stop before I/O space.

I know that this is a silly idea. More of a "satisfy curiosity" kinda thing.


Top
 Profile  
Reply with quote  
 Post subject: Re: RAM test
PostPosted: Sun May 24, 2020 10:02 pm 
Online
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8545
Location: Southern California
Make sure mirrored areas of the memory map can't give deceptive results, making it look like there's more RAM there when really you're just testing the same RAM again.

I've had this in the back of my mind for decades and never done anything about it; but since once the RAM is in there and working, it's not likely to ever go bad, especially without taking the whole system down such that software to test RAM won't run anyway; so if a system can have different amounts of RAM installed, I kind of like the idea of either having jumpers to read, or a value you put in flash or EEPROM to tell the system how much RAM is installed.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: RAM test
PostPosted: Sun May 24, 2020 11:36 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Dan Moos wrote:
I have I/O directly after the SRAM If I try to write to that, currently my UART will get some sort of garbage activity!
Instead of having the initial memory test work upward, can't you just start immediately below the I/O and work downward?

As for mirrored (aliased) regions, maybe you can detect those by writing the address which you intend to test to that address. Move down by 8K (or whatever granularity seems suitable) and repeat until there's no more space (actual or aliased). When you read the values back any aliased locations will be apparent.

Finally, if desired, you can move on to exhaustive functional testing.

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
 Post subject: Re: RAM test
PostPosted: Mon May 25, 2020 3:00 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
viewtopic.php?p=72165#p72165

_________________
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)


Top
 Profile  
Reply with quote  
 Post subject: Re: RAM test
PostPosted: Mon May 25, 2020 10:32 am 
Offline

Joined: Fri Nov 26, 2010 6:03 pm
Posts: 46
Location: NSW, Australia
Something I've done was to calculate checksums of each page of memory, twice, and see if they were equal. This was viable on the particular hardware (a VIC-20 with a homebrew RAM, EPROM, and two-VIA expansion), where unconnected addresses returned semi-random values on a read, and the VIAs didn't get confused from when just reading their registers, but had timer regs that changed.)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: