Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Timing method for dynamic binary translation instruction set simulator

A dynamic binary and simulator technology, applied in the direction of program control design, instrumentation, calculation, etc., can solve the problems that event E cannot be processed in time, judge the timing of real-time event response, etc., and achieve the effect of meeting strong real-time requirements

Active Publication Date: 2014-07-30
BEIJING INST OF CONTROL ENG
View PDF6 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This requires the simulator to judge before running to a basic block. Assuming that the current simulator has simulated running time S, before executing the basic block, it needs to judge whether (S+T) is less than or equal to D. Only the condition The translation code of the basic block can only be executed when it is satisfied, otherwise the event E cannot be processed in time
[0027] However, since this basic block contains ld and st instructions, and the accessed memory area may change during runtime, the value of T is an unknown number, which will make it difficult for the simulator to judge the real-time value before executing the basic block translation code. Event response time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Timing method for dynamic binary translation instruction set simulator
  • Timing method for dynamic binary translation instruction set simulator
  • Timing method for dynamic binary translation instruction set simulator

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] Specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0058] Such as figure 1 , 2 Shown, a kind of dynamic binary translation instruction set simulator timing method of the present invention, comprises steps as follows:

[0059] (1) Initialization is used to record the amount of time SimTim of simulator simulation execution time to be 0, define the number of counts X used to represent the sum of the number of cycles of all instructions in the basic block, define the real-time event occurrence Counter, and the Counter represents from Starting from the current moment, after executing Counter for clock cycles, the simulator starts to execute the real-time event E that needs to be processed. The initial value of Counter is set according to the specific application environment, and its value may change during the running of the simulator;

[0060] (2) Define the translation code cache area T...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a timing method for a dynamic binary translation instruction set simulator. According to the method, through effectively dividing basic blocks, the occupied instruction cycles when the basic blocks execute every time can be confirmed in the stage of dynamic translation, so that the simulator can be accurately timed. The timing process comprises the following steps: (1) a jump instruction, a branch instruction and a memory access instruction are used as the dividing basis of the basic blocks; (2) the cycles of translated instructions and the size of memory latency of a memory area in which the translated instructions are located are calculated in the process of the dynamic translation, so that the occupied instruction cycles when the basic blocks execute every time can be confirmed in the stage of dynamic translation; (3) when the simulator executes code translation, the basic blocks are used as a unit to judge the response time of real-time events. Through the adoption of the method, the real-time events can be responded in time, the strong real-time requirement of aerospace embedded software can be satisfied, and at the same time, since the response time of the real-time events does not need to be judged by instructions, the timing overhead is smaller.

Description

technical field [0001] The invention relates to a timing method for a dynamic binary translation instruction set simulator, which belongs to the field of embedded software. Background technique [0002] The instruction set simulator is used to simulate the whole system of the target computer's CPU instruction set, interrupt controller, peripherals, etc. at the software level, so that the software can run on computers with different architectures without any modification. [0003] For the instruction set simulator running aerospace embedded software, because the software has high requirements for real-time performance, it is not only required that the simulator can correctly simulate the execution results of instructions, but also provide instruction timing functions, and the timing accuracy can meet Software requirements for real-time performance. [0004] The timing function of the instruction set simulator is realized by counting the number of clock cycles required for th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/40
Inventor 郭向英张西超赵雷陈睿
Owner BEIJING INST OF CONTROL ENG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products