How long should Klaus functional test take?

Topics pertaining to the emulation or simulation of the 65xx microprocessors and their peripheral chips.
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: How long should Klaus functional test take?

Post by BigEd »

Welcome! From up-thread
> Total Instructions: 30646866
sclucas
Posts: 2
Joined: 14 Mar 2022

Re: How long should Klaus functional test take?

Post by sclucas »

Thanks!, sorry missed that. I don't mind being out with the cycles (as I can fix that) but being out by instructions puzzles me. But I am running the test to completion with 1,183 extra instructions. Weird.
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: How long should Klaus functional test take?

Post by BigEd »

That is puzzling... just possibly two different builds of the test suite?
User avatar
tafens
Posts: 4
Joined: 20 Jul 2021

Re: How long should Klaus functional test take?

Post by tafens »

With the current test suite, 6502_functional_test.bin, at https://github.com/Klaus2m5/6502_65C02_functional_tests,
I get 96241364 total cycles and 30646175 total instructions executed (not including the final JMP).
tsky
Posts: 10
Joined: 03 Nov 2011
Location: San Francisco, CA, USA
Contact:

Re: How long should Klaus functional test take?

Post by tsky »

I thought I'd add this to this thread: I ran Klaus' functional test (commit 7954e2d on Jan 5, 2020)
on Andrew Holme's Verilog 6502 Model (see http://www.aholme.co.uk/6502/Main.htm).
I used Xilinx Vivado to run the simulation. Results:

96,241,376 cycles
30,646,178 instructions

It took 16 hours 35 minutes to run.

The cycle count includes 8 cycles during the reset sequence before the first instruction at 0x400 is
executed. The instruction count includes two "JMP $3469" instructions, the infinite loop upon
passing the test.

--Thomas
Post Reply