microprobe.code.wrapper.Wrapper¶
- class Wrapper[source]¶
Bases:
object
Abstract class to represent a language wrapper.
Methods
__init__
()Initialization abstract method.
context
()declare_global_var
(var)- param var
end_loop
(instr)- param instr
end_main
()footer
()get_direct_init
(key, defaultvalue)Get the value for key
headers
()infinite
()Returns a
bool
indicating if the loop is infinite.init_global_var
(var, value)- param var
outputname
(name)- param name
post_var
()register_direct_init
(dummy_key, dummy_value)Initialize key with the value value
reserved_registers
(registers, target)- param registers
set_benchmark
(bench)- param bench
set_target
(target)- param target
start_loop
(instr, instr_reset[, aligned])- param instr
wrap_ins
(instr)- param instr
Attributes
Boolean indicating if the wrapper supports direct initialization.
- abstract start_loop(instr, instr_reset, aligned=True)[source]¶
- Parameters
instr –
instr_reset –
aligned – (Default value = True)
- property benchmark¶
- property reset¶
- property target¶
- property direct_initialization_support¶
Boolean indicating if the wrapper supports direct initialization.
Direct initialization refers to the capability of initializing values without requiring the execution of instructions. For instance, simulation-based format usually allow the specification of the initial values of the memory and the registers.