Title :
Control-Flow-Driven Source Level Timing Annotation for Embedded Software Models on Transaction Level
Author :
Mueller-Gritschneder, Daniel ; Lu, Kun ; Schlichtmann, XUlf
Author_Institution :
Inst. for Electron. Design Autom., Tech. Univ. Muenchen, Munich, Germany
Abstract :
Instrumented software models feature a combination of software functionality as well as timing information to model execution times on embedded processors. They aim to replace instruction set simulators in virtual prototypes (VP) of embedded systems to improve simulation efficiency. In this work, a novel control flow mapping algorithm is presented to automatically generate timing annotations for instrumented software models. The method is based on the analysis of loop and control dependency properties of basic code blocks in the binary and source code control flow. With these properties, the method can find suitable positions to annotate the timing delay statements of binary code basic blocks into the source code. It shows high accuracy even in the case that the binary code is optimized during compilation. The paper also presents the novel idea of adding timing control statements into the source code to improve timing accuracy. The error in runtime estimation was found to be below 6% for standard test programs. A case study for a VP shows a gain in simulation efficiency of three orders of magnitude compared to an ISS based model.
Keywords :
binary codes; embedded systems; instruction sets; program compilers; program control structures; program testing; source coding; virtual prototyping; ISS based model; VP; adding timing control statements; binary code basic blocks; binary code control flow; code blocks; compilation; control dependency property; control-flow-driven source level timing annotation; embedded processors; embedded software models; embedded systems; execution times; instruction set simulators; instrumented software models; loop dependency property; novel control flow mapping algorithm; runtime estimation; simulation efficiency; software functionality; source code control flow; standard test programs; timing accuracy; timing annotations; timing delay statements; timing information; transaction level; virtual prototypes; Binary codes; Delay; Instruments; Optimization; Program processors; Embedded software; TLM; source code instrumentation;
Conference_Titel :
Digital System Design (DSD), 2011 14th Euromicro Conference on
Conference_Location :
Oulu
Print_ISBN :
978-1-4577-1048-3
DOI :
10.1109/DSD.2011.82