HOME       UP       PREV       NEXT (Higher-Level Simulation - Virtual Platforms)  

sPEEDO Energy Interface

The sPEEDO project was a strawman API for application code to read off its own energy use.

If you invoke the Prazor ./configure --with-speedo and with TLM_POWER3 included, you can read off the energy used by some backdoor registers.

 // Write a simple unit value to do a basic checkpoint checkpoint, copying live CTX0 to CTX1.
 SPEEDO_CHKPT(0); 
 energy_t e = READ_SPEEDO_CTX1(SPEEDO_CTX_REG_GLOBAL_ENERGY);

The energyshim.c file can either read backdoor registers on the virtual platform or else read from the real probe on the real board.


48: (C) 2008-17, DJ Greaves, University of Cambridge, Computer Laboratory.