1

I need to emulate a particular architecture namely Cortex ARM A9. I was thinking about QEMU (what do you think about it) with a distro linux.

The problem is that I would to measure the energy consumption of a mathematical operation on this architecture, for example an exponentiation, or an elliptic curve addition/multiplication. The programming language could be python or C.

Do you have an idea on what I can to do that?

Furthermore, in an emulated architecture who guarantee me that I will have the right timings about the execution of these operations?

CipherX
  • 371
  • 5
  • 18
  • 1
    I don't know a lot about such low-level hardware emulation, but IFAIK, QEMU is not designed to emulate the physical part of the hardware itself (eg. energy consumption). Thus, it does not seems to be the tool you need. You probably need a lower-level tool (which will probably be insanely slow). However, regarding the research paper "Micro-architectural Simulation of In-order and Out-of-order ARM Microprocessors with gem5", such tool seems hard to find. If you want accurate energy consumption results, I think it is better and easier to just buy a chip, test it and measure this yourself! – Jérôme Richard May 11 '20 at 17:15
  • @JérômeRichard but if I want to estimate the time required to do an operations, do you think that QEMU is enough or not? – CipherX May 12 '20 at 10:04
  • Sadly, I do not think it is enough too. See [this related question](https://stackoverflow.com/questions/33925699/how-to-benchmark-in-qemu-i386-system-using-rdtsc). – Jérôme Richard May 12 '20 at 10:49

1 Answers1

0

QEMU is neither cycle accurate or a microarchictecture simulation. You may be able to build your own energy model with the recently added plugins but I suspect you need more low level tools.

stsquad
  • 5,712
  • 3
  • 36
  • 54