Page 2 of 2

Re: How long should Klaus functional test take?

Posted: Mon Mar 14, 2022 12:26 pm
by BigEd
Welcome! From up-thread
> Total Instructions: 30646866

Re: How long should Klaus functional test take?

Posted: Mon Mar 14, 2022 1:08 pm
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.

Re: How long should Klaus functional test take?

Posted: Mon Mar 14, 2022 1:10 pm
by BigEd
That is puzzling... just possibly two different builds of the test suite?

Re: How long should Klaus functional test take?

Posted: Tue Mar 15, 2022 6:46 pm
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).

Re: How long should Klaus functional test take?

Posted: Tue Jun 21, 2022 10:24 pm
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