18

Are there any automated test suites for MOS 6520, 6522 and 6526 chips? I am looking for test suites aimed at making sure datasheet-based independent reimplementations of the above chips (e.g. FPGAs or emulators) work exactly as the real chips.

Cactus
  • 2,700
  • 14
  • 43
  • Ideally, the test suites would work with just connections from something like a 6502 to the IO chips' pins, instead of a full computer (e.g. a Commodore 64) – Cactus Apr 23 '16 at 13:51
  • 1
    Your question seems more related to IC implementation than to a specific retro usage. Could you add how your question relates to retro systems? Substitute repair parts? – user3169 Apr 23 '16 at 19:50
  • 1
    @user3169: the reason I'm looking for test suites like that is reimplementation/modeling of retro systems. My vote is for this topic, in general, to be considered on-topic here. – Cactus Apr 24 '16 at 06:58
  • The topic of using FPGA reimplementations on older systems is (should be) on-topic, but you are asking for test benches for testing IC reimplementations, which is hardly on-topic, as this belongs more to Electronic Engineer StackExchange community. It should be on-topic if you ask how to use a classic system to test a modern replacement for a custom chip (e.g. asking what program/tests/BASIC commands/whatever should I perform to test a reimplementation of a SID chip plugged in a C64?). I have to clarify that I'm not a moderator. This is just my opinion :) – mcleod_ideafix Apr 25 '16 at 09:09
  • 3
    These could also be great for validating emulators. I would love a solid automatic test suite for the 65816, for instance. :) – Eric Shepherd Apr 26 '16 at 02:00
  • 1

2 Answers2

7

Klaus Dorman's functional tests for the 6502 are fantastic: https://github.com/Klaus2m5/6502_65C02_functional_tests

zellyn
  • 1,005
  • 6
  • 15
3

I am unaware of any formalised test suite for either the 6520 or 6522.

The 6526 is at least partially covered by Wolfgang Lorenz's C64 test suite. Because of the applicability to other machines, you usually see it documented for its 6502 tests (and the outward link to the suite itself there is broken; instead try that listed here) but it includes a scattering of CIA (i.e. 6526) tests:

Programs CIA1TB123 and CIA2TB123 - CIA timer B 1-3 cycles after writing CRB

Programs CIA1TA to CIA2TB - CIA timers in sysclock mode

Tommy
  • 36,843
  • 2
  • 124
  • 171