Cpu speed test rom (md+scd)

Announce (tech) demos or games releases

Moderator: Mask of Destiny

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Re: Cpu speed test rom (md+scd)

Post by Chilly Willy » Tue Mar 19, 2019 3:05 pm

Very interesting. You might add more speed tests for the sub cpu showing the speed in program ram vs word ram vs communication regs.

Ti_
Very interested
Posts: 97
Joined: Tue Aug 30, 2011 7:50 am
Contact:

Re: Cpu speed test rom (md+scd)

Post by Ti_ » Tue Mar 19, 2019 9:11 pm

I made it from VRAM...
(filled all vram with code:
add_tacts
add.l d2,d0
bra.s add_tacts).
also 'rte' after v-int, was replaced with manual returing (in 50% happens returning to $c00002 but with first opcode?)
test non-repeatable , goes only 2 seconds: , after I load numbers to vram to show result.

5,414
also 2,435 if display is on:
Last edited by Ti_ on Sat Feb 05, 2022 11:52 am, edited 1 time in total.

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Re: Cpu speed test rom (md+scd)

Post by Chilly Willy » Tue Mar 19, 2019 11:32 pm

Funny. Yeah, I've seen web pages discussing using vram for code - mainly for trying to break emulators on their games. Most emulators won't handle setting the VDP to allow reading code from the vram with the emulated cpu. Not sure how some of the newer ones like exodus handle that.

Ti_
Very interested
Posts: 97
Joined: Tue Aug 30, 2011 7:50 am
Contact:

Re: Cpu speed test rom (md+scd)

Post by Ti_ » Sun Mar 24, 2019 7:32 am

Stef wrote:
Tue Mar 19, 2019 8:35 am
Would be nice to have a version showing speed from different area :
ROM / RAM / comm registers... :)
Chilly Willy wrote:
Tue Mar 19, 2019 3:05 pm
You might add more speed tests for the sub cpu showing the speed in program ram vs word ram vs communication regs.
Here's a new version, now can select different areas:
Also sub-cpu now shows correct value.

I don't see difference for sub-cpu between prg/ram/com. But it's a bit slower in word-ram 'm1 mode'.

When select prg-ram for main-cpu, any sub-cpu test is disabled. When select word-ram for main-cpu, or non-prg-ram for sub-cpu - asic test is disabled.
Combination word_ram + word_ram1 currently doesn't work, you will get an error screen.
Attachments
2_(com+com).jpg
2_(com+com).jpg (40.5 KiB) Viewed 11757 times
test_cpu_screenshots.7z
(126.92 KiB) Downloaded 341 times

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Cpu speed test rom (md+scd)

Post by Stef » Sun Mar 24, 2019 10:08 pm

Awesome, thanks ! What would be even more awesome is to have a final summary results table displaying speed from different areas s we could easily compare :D

Ti_
Very interested
Posts: 97
Joined: Tue Aug 30, 2011 7:50 am
Contact:

Re: Cpu speed test rom (md+scd)

Post by Ti_ » Sat Feb 05, 2022 12:06 pm

Here's an updated version - v7.

Added two new modes: (rom+ram) and (ram+ram) for main-cpu.
In this modes code executed from ram or rom, but also reads ram, instead of register while counting cycles.
This causes yet more slowdowns.

We've got some strange results (md1 pcb2 NTSC j rev.va6? + flash china noname everdrive clone):
1) rom: 7,559,782 Hz
2) ram: 7,488,034 Hz
3) rom+ram: 7,411,894 Hz
4) ram+ram: 7,492,726 Hz


[18 Jun 2022] Added all screenshots from both ntsc + pal on everdrive 'mega drive game hit collection' clone (flash):
Attachments
cpu_test7_screenshots_PAL.7z
(175.18 KiB) Downloaded 117 times
cpu_test7_screenshots_NTSC.7z
(184.84 KiB) Downloaded 114 times
test_cpu_7.7z
(4.61 KiB) Downloaded 178 times

Ti_
Very interested
Posts: 97
Joined: Tue Aug 30, 2011 7:50 am
Contact:

Re: Cpu speed test rom (md+scd)

Post by Ti_ » Sat Jun 25, 2022 6:47 pm

Added all modes screenshots for both Pal and Ntsc consoles with sega-cd attached (for v7 version, in previous message).
New note, in this screenshots value in mode 'ram+ram', same as in 'ram' (7,488). The value 7,492 from previous message will be if sega-cd is not attached. And it does not affect other modes. Also results are not affected by model1/model2/flashcart type (at least for various everdrives and clones).

New version update - v8, various fixes:
+ fixed, (prg-ram) and (word-ram) modes for main-cpu were lost in version 7.
+ added detection for main cpu type.
+ no longer can set combination: (word-ram) + (word-ram) for both cpu's, prevents freezing.
+ if set (wrd-ram1) for sub-cpu, this now may work with (word-ram) for main cpu simultaneously.
+ for (sram) - if no 16-bit sram present, you will get message, instead of error screen.
+ modes are no longer reseted to default after pressing 'C'.
+ modes names and sega-cd text are no longer lost after (vram) mode.
+ added screen clearing after reset (fix for reset after error screen).
+ fixed - after error screen, (vram) modes didn't work properly.
+ fixed corrupted screen if (vram) mode was interrupted with 'C' button.
* v8 gives same values as v7, so only 1 new screenshot attached, plus 1 more from 10 mhz modded console (not my).
Attachments
overclocked.7z
(62.92 KiB) Downloaded 126 times
screenshot_v8.7z
(28.85 KiB) Downloaded 121 times
test_cpu_8.7z
(4.92 KiB) Downloaded 155 times

Ti_
Very interested
Posts: 97
Joined: Tue Aug 30, 2011 7:50 am
Contact:

Re: Cpu speed test rom (md+scd)

Post by Ti_ » Mon Aug 01, 2022 7:55 pm

Here's a *.XLS table with all values:

Also a little update - added variation: "ram+rom" (execute from ram + reading from rom). This gives bigger value than "rom+ram", but lower than "ram" ( 7,440,118 for ntsc, and 7,406,970 for pal).
Attachments
CPU_TEST_RESULTS1.7z
(1.55 KiB) Downloaded 114 times
test_cpu_speed_v9.7z
(4.95 KiB) Downloaded 136 times

Ti_
Very interested
Posts: 97
Joined: Tue Aug 30, 2011 7:50 am
Contact:

Re: Cpu speed test rom (md+scd)

Post by Ti_ » Mon Sep 12, 2022 5:59 pm

Update:
+ added new mode for Z80: "RAM+ROM" (executing from ram + reading from rom).

This results of both M68K and Z80 slowdown. This emulated only in blastem and on fpga's. Other emulators (but not all), does only slowdown for Z80 on accessing rom. The slowdown even happens if M68K executes code from the segacd com-regs area.
Also if set "VRAM" for main-cpu in this mode, I'm getting locking of something. There's also 'ROM' mode for Z80, it was added in previous versions (it's not works in some emulators), and somehow it doesn't has any slowdowns on hardware.

+ Updated table, with values for all working combinations, taken from md2 pal and md2 ntsc. For new mode I recorded only averaged values, but they are very floating in about 2Khz range:

Values for NTSC (m68k:rom, z80:ram+rom)
M68K 6,482,014
Z80 3,227,660
Attachments
test_cpu_speed_v10.7z
(4.98 KiB) Downloaded 133 times
CPU_TEST_RESULTS_v10.7z
(1.91 KiB) Downloaded 128 times
220910-232640-007-.jpg
220910-232640-007-.jpg (26.22 KiB) Viewed 5150 times

Post Reply