2.3 Execution control

iris.debug is not a full debugger. Therefore, it does not implement higher-level functions, such as those that require loading the source files or debug symbols that correspond to an application.

The following table shows the MxScript functions that control model execution, and their iris.debug equivalent:

Table 2-2 Execution control functions

MxScript function iris.debug equivalent
run()

Either of the following:

model.run()
This function blocks until the target stops.
model.run(blocking=False)
This function is nonblocking.
runUntil(address) Not implemented
runToLine(file, line) Not implemented
stop() model.stop()
getCurrentSourceFile() Not implemented
getCurrentSourceLine() Not implemented
getCurrentSourceColumn() Not implemented
hardReset() model.reset()
reset()
model.reset()
target.load_application(filename)
pause() Not implemented
cont() Not implemented
getStopCond()

Either of the following:

  • target.get_hit_breakpoints()
  • Return value of blocking model.run()
isSimStopped() not target.is_running
restart()
model.reset()
target.load_application(filename)
goToMain() Not implemented
step() Not implemented
stepOver() Not implemented
stepOut() Not implemented
istep(count) model.step()
getInstCount() Not implemented
cycleStep(cycles) Not implemented
enableStepBack(bool) Not implemented
sleep(seconds)
import time
time.sleep(seconds)
msleep(milliseconds)
import time
time.sleep(milliseconds * 1000)
getCycleCount() Not implemented
Non-ConfidentialPDF file icon PDF version101421_0100_01_en
Copyright © 2018, 2019 Arm Limited or its affiliates. All rights reserved.