ScEpTIC.emulator.energy.mcu.lookup_tables package

Submodules

ScEpTIC.emulator.energy.mcu.lookup_tables.msp430g2553 module

ScEpTIC.emulator.energy.mcu.lookup_tables.msp430g2553_fbtc module

Module contents

class ScEpTIC.emulator.energy.mcu.lookup_tables.LookupTable(system_name)

Bases: object

Lookup table for different operating frequencies {frequency: {voltage: value}}

get_value(frequency_name, mcu_clock_action, current_voltage)

Returns the equivalent resistance :param frequency_name: nominal MCU operating frequency :param mcu_clock_action: MCU clock action :param current_voltage: current operating voltage :return: equivalent resistance

static voltage_hash(voltage)

The hash of a voltage V corresponds to the highest voltage that is (i) multiple of 5 and (ii) lower than V Each voltage is multiplied by voltage_hash_mul (1000) e.g. 3.49V has a hash of 3450 :param voltage: voltage :return: hash (dictionary key) associated to voltage

voltage_hash_mul = 1000
voltage_hash_range = 10