Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
bb84e3173This file is pinned to the selected release. Download the original to open it in your design tool.
QNICE-FPGA Performance Characteristics
======================================
* The system runs with 50 MHz on all currently supported hardware targets.
* The CPU is built around a variable-length state machine. This means that
there are instructions that are as short as two clock cycles and others that
are in general as long as six clock cycles.
* Slow RAM, ROM and peripheral devices can make the execution even longer, as
they are able to add wait-states to the CPU's execution.
* It is therefore difficult, to measure "The" CPU performance in MIPS
(Million Instructions Per Second). In contrast, it always depends on the
workload that is being executed.
* For the sake of the VGA and WASM emulator, the average QNICE performance
is defined as **13.0 MIPS**.
MIPS measurements on August 18, 2020 using CPU version 1.6
----------------------------------------------------------
There are two instrumented versions of QNICE demo programs located in
`test_programs`: `mandel_perf_test.asm` (Mandelbrot demo) and
`q-tris_perf_test.asm`. The MIPS tests are performed by using
STDIN=STDOUT=VGA. UART would lead to different results. Mandelbrot has been
run three times, because the scrolling behaviour in VGA leads to different
performance (scrolling does cost performance). Q-TRIS was played for about
7:27 minutes to get a realistic value.
### Mandelbrot: 13.62 MIPS
```
0000 008C 7A95 = 9,206,421 cycles => 0.1841 sec
0000 0026 4514 = 2,508,052 instructions => 3.67 cycles / instruction
=> 13.62 MIPS
```
### Q-TRIS: 12.97 MIPS
```
0005 33BE B478 = 22,342,972,536 cycles => 446.86 sec => 7:27 min
0001 5996 6BCC = 5,797,997,516 instructions => 3.85 cycles / instruction
=> 12.97 MIPS
```
Compared with measurements made with the V1.5 ISA, this is a 7% speed-up.