ScEpTIC.AST.transformations.base.instructions package

Submodules

ScEpTIC.AST.transformations.base.instructions.custom_log module

class ScEpTIC.AST.transformations.base.instructions.custom_log.CustomLog(call_operation)

Bases: CustomInstruction

CustomLog() logs data

handler = None
run(update_program_counter=True)

Executes the operation and the target assignment.

tick_count = 1

ScEpTIC.AST.transformations.base.instructions.enter_mcu_lpm module

class ScEpTIC.AST.transformations.base.instructions.enter_mcu_lpm.EnterMCULPM(call_operation)

Bases: CustomInstruction

EnterMCULPM() sets the MCU into LPM params for the equivalent function call: - wakeup_time

get_lpm_time()
tick_count = 1

ScEpTIC.AST.transformations.base.instructions.increment_custom_metric module

class ScEpTIC.AST.transformations.base.instructions.increment_custom_metric.IncrementCustomMetric(call_operation)

Bases: CustomInstruction

IncrementCustomMetric() increments a custom metric params for the equivalent function call: - custom metric id

run(update_program_counter=True)

Executes the operation and the target assignment.

ScEpTIC.AST.transformations.base.instructions.interrupts module

class ScEpTIC.AST.transformations.base.instructions.interrupts.InterruptsDisable(call_operation)

Bases: CustomInstruction

InterruptsDisable() disable interrupts

run(update_program_counter=True)

Executes the operation and the target assignment.

class ScEpTIC.AST.transformations.base.instructions.interrupts.InterruptsDisableFiring(call_operation)

Bases: CustomInstruction

InterruptsDisableFiring() disable interrupts firing

run(update_program_counter=True)

Executes the operation and the target assignment.

class ScEpTIC.AST.transformations.base.instructions.interrupts.InterruptsEnable(call_operation)

Bases: CustomInstruction

InterruptsEnable() enable interrupts

run(update_program_counter=True)

Executes the operation and the target assignment.

class ScEpTIC.AST.transformations.base.instructions.interrupts.InterruptsEnableFiring(call_operation)

Bases: CustomInstruction

InterruptsEnableFiring() enable interrupts firing

run(update_program_counter=True)

Executes the operation and the target assignment.

ScEpTIC.AST.transformations.base.instructions.print_vm_dump module

class ScEpTIC.AST.transformations.base.instructions.print_vm_dump.PrintVMDump(call_operation)

Bases: CustomInstruction

PrintVMDump() prints ScEpTIC memory dump

run(update_program_counter=True)

Executes the operation and the target assignment.

ScEpTIC.AST.transformations.base.instructions.printf module

class ScEpTIC.AST.transformations.base.instructions.printf.Printf(call_operation)

Bases: CustomInstruction

printf() function

run(update_program_counter=True)

Executes the operation and the target assignment.

stdout_enabled = True
tick_count = 0

ScEpTIC.AST.transformations.base.instructions.simulate_clock_cycles module

class ScEpTIC.AST.transformations.base.instructions.simulate_clock_cycles.SimulateClockCycles(call_operation)

Bases: CustomInstruction

SimulateClockCycles() simulates the execution of a given number of clock cycles params for the equivalent function call: - number of clock cycles to simulate - ratio of register operations - ratio of volatile memory accesses - ratio of non-volatile memory accesses

entities = []
get_instruction_type()

Returns the instruction to execute

get_simulation_data()
classmethod reset()
run(update_program_counter=True)

Executes the operation and the target assignment.

ScEpTIC.AST.transformations.base.instructions.timers module

class ScEpTIC.AST.transformations.base.instructions.timers.TimerCustomInstruction(call_operation)

Bases: CustomInstruction

Timer custom instruction

property timer_name
class ScEpTIC.AST.transformations.base.instructions.timers.TimerSetPeriod(call_operation)

Bases: TimerCustomInstruction

TimerSetPeriod() stops a given timer

run(update_program_counter=True)

Executes the operation and the target assignment.

class ScEpTIC.AST.transformations.base.instructions.timers.TimerStart(call_operation)

Bases: TimerCustomInstruction

TimerStart() starts a given timer

run(update_program_counter=True)

Executes the operation and the target assignment.

class ScEpTIC.AST.transformations.base.instructions.timers.TimerStop(call_operation)

Bases: TimerCustomInstruction

TimerStop() stops a given timer

run(update_program_counter=True)

Executes the operation and the target assignment.

Module contents

class ScEpTIC.AST.transformations.base.instructions.CustomInstruction(call_operation)

Bases: Instruction

CustomInstruction() base class

argc()
get_arg(id)
get_val()
tick_count = 0