SDRAM new tests

For topics which do not fit in other specific forums.
User avatar
jotego
Core Developer
Posts: 61
Joined: Sun May 24, 2020 7:07 pm
Has thanked: 24 times
Been thanked: 205 times

SDRAM new tests

Unread post by jotego »

I want to share a test for signal integrity that doesn't require special equipment. This test gives some information about signal integrity in the SDRAM. This is a relative test: more is better.

The idea is to have a single core compiled with different SDRAM clock shift settings. Although indeed, the exact delay up to the pin is not well controlled (right now), as a relative measurement, this is reliable. I have made a collection of MRA and RBF files. Each one delays the SDRAM clock by 250ps with respect to the previous one. If you start at a middle value, like 5ns (=5000ps), it should work. As you approach lower and lower delays, it will eventually fail. So will it fail too if you move towards larger delays. The wider the range you get, the better.

These are the values I get for the modules I have.

Code: Select all

Module | Min  |  Max  | Remarks
-------|------|-------|---------
1      | 3.5  | 8.25  |
2      | 2.5  | 8.5   | 32MB
3      | 2.5  | 8.75  | 32MB
4      | 3.0  | 8.0   | 10uF added
7      | 4.0  | 8.25  | min improved to 3.5ns by adding 33uF
8      | 3.5  | 8.0   |
9      | 3.25 | 8.25  |

Module description

ID  | Part No          | Units | Size
----|------------------|-------|-----
  1 | AS4C32M16SB-6T1N |    2  | 128
  2 | W9825G6KH-6      |    1  |  32
  3 | AS4C16M16SA-6TCN |    1  |  32
  4 | AS4C32M16SB-7TCN |    2  | 128
  5 | W9825G6KH-6      |    1  |  32
  6 | AS4C32M8SA -7TCN |    2  |  64
  7 | AS4C32M8SA -7TCN |    4  | 128
8,9 | AS4C32M16SB-6T1N |    2  | 128
Note how module #4 with an extra 10uF electrolytic works better than comparable 128MB modules. #7 also improved when I added extra capacitance.

Please find the files attached. Just unzip them to your MiSTer root folder. This is mainly intended for module builders, but anyone can test their modules at home and check how they do against the ones listed here.

Note that these RBF files only produce analogue video. No HDMI output at all.
Attachments
Contra test.7z
(763.69 KiB) Downloaded 332 times
Open IP for many chips in my github account
RBF files for my MiSTer cores in jtbin
Support new IP and core development here
User avatar
terminator2k2
Posts: 36
Joined: Sun May 24, 2020 6:46 pm
Has thanked: 27 times
Been thanked: 22 times

Re: SDRAM new tests

Unread post by terminator2k2 »

really needed to include HDMI output if you wanted the majority of the community to test this core
Duffygag
Posts: 95
Joined: Tue Nov 03, 2020 10:57 am
Has thanked: 12 times
Been thanked: 25 times

Re: SDRAM new tests

Unread post by Duffygag »

terminator2k2 wrote: Sun Dec 27, 2020 11:48 am really needed to include HDMI output if you wanted the majority of the community to test this core
Hence why this is mainly intended for module builders

Fan fact Mister community is 50/60% on crt (from polls have that probably won't reflect real life scenarios :D )

Thanks as always Jotego, amazing, not a builder per se but I have a couple of modules a solder and parts here, will give it a go as soon as I have some time :)

Sdram modules is the only thing I didn't make myself as I know even flux can change the way a module respond especially with that pin connector.
deepthaw
Posts: 55
Joined: Wed May 27, 2020 3:45 am
Has thanked: 1 time
Been thanked: 10 times

Re: SDRAM new tests

Unread post by deepthaw »

When should I expect to see some type of failure when running these tests?
Kjeldsen
Posts: 9
Joined: Thu Dec 17, 2020 11:09 pm
Has thanked: 5 times

Re: SDRAM new tests

Unread post by Kjeldsen »

I ran the tests with the lowest ps and highest ps, it seems that the games, in my case at least, runs just fine no matter what core I choose?
User avatar
jotego
Core Developer
Posts: 61
Joined: Sun May 24, 2020 7:07 pm
Has thanked: 24 times
Been thanked: 205 times

Re: SDRAM new tests

Unread post by jotego »

Just passing the RAM/ROM test at the game boot-up screen is enough. It's surprising that for some people all the files are good. By the way, two people with no-failures for any of these MRA files told me they lived in areas with low population density (and hence less RF noise).
Open IP for many chips in my github account
RBF files for my MiSTer cores in jtbin
Support new IP and core development here
User avatar
spark2k06
Core Developer
Posts: 868
Joined: Sat Jun 06, 2020 9:05 am
Has thanked: 409 times
Been thanked: 961 times

Re: SDRAM new tests

Unread post by spark2k06 »

jotego wrote: Wed Dec 30, 2020 10:26 am By the way, two people with no-failures for any of these MRA files told me they lived in areas with low population density (and hence less RF noise).
How curious, we will have to put the MiSTer in a faraday cage :lol: .
Kjeldsen
Posts: 9
Joined: Thu Dec 17, 2020 11:09 pm
Has thanked: 5 times

Re: SDRAM new tests

Unread post by Kjeldsen »

jotego wrote: Wed Dec 30, 2020 10:26 am Just passing the RAM/ROM test at the game boot-up screen is enough. It's surprising that for some people all the files are good. By the way, two people with no-failures for any of these MRA files told me they lived in areas with low population density (and hence less RF noise).
Thank you. I'm gonna test every one of the files just to be sure.

My home is filled with Philips Hue, Ikea trådløs and plenty of computers. If I could see the radio waves it would be the biggest light show ever 🤠
User avatar
macro
Core Developer
Posts: 138
Joined: Sun May 24, 2020 4:12 pm
Been thanked: 171 times

Re: SDRAM new tests

Unread post by macro »

Lowest and highest also work for me - however, I also get HDMI output from them, which I thought was not present in these cores - so what is happening here ?
Did I do something useful?

buy me a coffee
deepthaw
Posts: 55
Joined: Wed May 27, 2020 3:45 am
Has thanked: 1 time
Been thanked: 10 times

Re: SDRAM new tests

Unread post by deepthaw »

My SDRAM passes all of these tests, and my house is a nightmare of EM interference (smart devices, multiple wifi routers, etc.)

I've never gotten crashes in CPS 1.5 either (other than the unrelated Saturday Night Slammamsters crash) so maybe I have some legitimately good SDRAM?
Kjeldsen
Posts: 9
Joined: Thu Dec 17, 2020 11:09 pm
Has thanked: 5 times

Re: SDRAM new tests

Unread post by Kjeldsen »

jotego wrote: Sat Dec 26, 2020 6:11 pm I want to share a test for signal integrity that doesn't require special equipment. This test gives some information about signal integrity in the SDRAM. This is a relative test: more is better.

The idea is to have a single core compiled with different SDRAM clock shift settings. Although indeed, the exact delay up to the pin is not well controlled (right now), as a relative measurement, this is reliable. I have made a collection of MRA and RBF files. Each one delays the SDRAM clock by 250ps with respect to the previous one. If you start at a middle value, like 5ns (=5000ps), it should work. As you approach lower and lower delays, it will eventually fail. So will it fail too if you move towards larger delays. The wider the range you get, the better.

These are the values I get for the modules I have.

Code: Select all

Module | Min  |  Max  | Remarks
-------|------|-------|---------
1      | 3.5  | 8.25  |
2      | 2.5  | 8.5   | 32MB
3      | 2.5  | 8.75  | 32MB
4      | 3.0  | 8.0   | 10uF added
7      | 4.0  | 8.25  | min improved to 3.5ns by adding 33uF
8      | 3.5  | 8.0   |
9      | 3.25 | 8.25  |

Module description

ID  | Part No          | Units | Size
----|------------------|-------|-----
  1 | AS4C32M16SB-6T1N |    2  | 128
  2 | W9825G6KH-6      |    1  |  32
  3 | AS4C16M16SA-6TCN |    1  |  32
  4 | AS4C32M16SB-7TCN |    2  | 128
  5 | W9825G6KH-6      |    1  |  32
  6 | AS4C32M8SA -7TCN |    2  |  64
  7 | AS4C32M8SA -7TCN |    4  | 128
8,9 | AS4C32M16SB-6T1N |    2  | 128
Note how module #4 with an extra 10uF electrolytic works better than comparable 128MB modules. #7 also improved when I added extra capacitance.

Please find the files attached. Just unzip them to your MiSTer root folder. This is mainly intended for module builders, but anyone can test their modules at home and check how they do against the ones listed here.

Note that these RBF files only produce analogue video. No HDMI output at all.
I did a retest just to be sure.

I loaded every core in the test package and the game loaded to the title screen with them all.

If you want me to test anything else just let me know.
User avatar
Overkill
Posts: 3
Joined: Sun May 24, 2020 10:56 pm
Has thanked: 3 times

Re: SDRAM new tests

Unread post by Overkill »

Lowest and highest also work for me - however, I also get HDMI output from them, which I thought was not present in these cores - so what is happening here ?
HDMI output works, but in direct video mode (low res in Contra), so people using lcd monitor which don't accept 240p on hdmi will give black screen.

I was able to run all the cores perfectly on two MiSTer units, both with Ricardo's UltimateMiSTer shop "XS-D 128MB SDRAM Memory". One from the first batch, and the other bought recently.

But I didn't found any error before on the CPS 1.5 Cores at 96MHz also, so I'm lucky
They say he died ten years ago
But the list of victims seems to grow.
rhester72
Top Contributor
Posts: 1117
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 13 times
Been thanked: 171 times

Re: SDRAM new tests

Unread post by rhester72 »

Bought mine off eBay:

https://www.ebay.com/itm/Mister-FPGA-SD ... 2749.l2649

It passes every test.

My house has 69 (2.4GHz and 5GHz) wireless devices active, so I wouldn't exactly call it low-RF. =)

More data:

- I *don't* have the I/O or USB expansion boards, just a bare DE-10 Nano with the 128MB module as above
- My board is housed with a Noctua fan in this case: https://corei64.com/shop/index.php?rout ... rch=mister
- I have a Microsoft wireless (2.4GHz) keyboard, a USB-based 5GHz WiFi adapter, and a wired controller connected to an unpowered USB hub
d18c7db
Core Developer
Posts: 15
Joined: Sun May 31, 2020 8:00 pm
Been thanked: 35 times

Re: SDRAM new tests

Unread post by d18c7db »

jotego wrote: Wed Dec 30, 2020 10:26 am It's surprising that for some people all the files are good.
Uhmm... I think all the tests are invalid based on the fact that in the file "Contra test.7z" all the .rbf files with different time offsets are in fact identical at the binary level (same checksums) and the .mra files don't seem to pass any timing offset parameters to them, they just select one of the many identical .rbf files.

In other words, it doesn't matter what time delay you choose, you're running the same test. :?
CHKSUMS.JPG
CHKSUMS.JPG (107.3 KiB) Viewed 5073 times
Post Reply