A simulation of a T65 6502 compatible core running Klaus Dormann’s 6502 functional test. The execution of the CPU is compared with an execution trace from the mos6502-trace utility which is based on Gianluca Ghettini’s mos6502 emulator.
Run make
in the build directory corresponding to your chosen simulator.
The CPU executes 30648050 instructions, taking 96247426 clocks cycles - giving an IPC of just under 0.32.
Simulation run times on a Windows 11 PC with a 3.5GHz AMD Ryzen 2950X CPU and 32GB RAM are as follows:
Simulator | Time (s) | Relative Time |
---|---|---|
Vivado 2022.1 |
930 |
1.0 |
NVC 1.7.0 |
1038 |
1.12 |
GHDL 2.0.0-dev (1.0.0.r964.g70f3c162b) [Dunoon edition] (llvm code generator) |
2354 |
2.53 |
Questa Intel Starter FPGA Edition-64 2021.2 Rev 2021.04 |
9646 |
10.37 |