Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for fast mapping IO address to IO object

A mapping method and address technology, which is applied in the gsMap-based IO address to IO object fast mapping method and system field, can solve problems such as inappropriateness and slow speed, and achieve the effects of fast mapping and high time execution efficiency

Active Publication Date: 2015-08-12
SHANGHAI ENG CENT FOR MICROSATELLITES
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, as the number of IO objects increases, the search process will increase in O(nlog(n)). In the simulation system, due to the frequent IO access and the need to give priority to ensuring the speed of the application, the speed will still be affected by the speed at this time. too slow to be appropriate

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
  • Method and system for fast mapping IO address to IO object
  • Method and system for fast mapping IO address to IO object
  • Method and system for fast mapping IO address to IO object

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The method and system for quickly mapping IO addresses to IO objects provided by the present invention will be described in detail below in conjunction with the accompanying drawings.

[0020] The present invention proposes a method of re-segmenting the IO address space on the basis of the gsMap algorithm, and realizes fast mapping from the IO address to the IO object. In order to describe the present invention clearly, a brief description of the gsMap algorithm is given first. The gsMap algorithm constructs an algorithm with O(1) time complexity, which is used to quickly index IO objects by IO addresses. The gsMap algorithm completes the query from IO addresses to IO objects with O(1) time complexity only through simple arithmetic operations and array lookup tables. The core idea of ​​the algorithm is described as follows.

[0021] 1. Realize O(1) search from IO address to IO object

[0022] Construct an array of IO objects (IO object pointers, references, etc.), and...

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 discloses a method and a system for fast mapping an IO address to an IO object, wherein the method comprises the following steps: 1) collecting base addresses, sizes and intervals of all IO blocks and arranging the base addresses, the sizes and the intervals according to an address sequence; 2) selecting a minimum interval value to obtain a gap value, wherein the gap value is not more than the minimum interval value; 3) using an initial address of an IO address space as an initial position t and re-splitting the IO address space by using the gap value; 4) structuring a gap and an array so as to record an interval sum corresponding to the IO address in each gap value space from the initial position; 5) structuring an IO object array, mapping each IO address to the IO object located at a corresponding array index in the IO object array; 6) finishing calculation from the IO address to the corresponding array index according to the structured gap and array, as well as IO object array so as to finish the fast mapping from the IO address to the IO object. Through re-splitting the IO address space, the method and the system of the invention can be used for transforming the search as lookup to finish the fast mapping from the IO address to the IO object.

Description

technical field [0001] The invention relates to the technical field of digital simulation computers, in particular to a gsMap-based fast mapping method and system for IO addresses to IO objects. Background technique [0002] In a digital simulation computer, the virtual CPU communicates with external devices by reading and writing IO addresses. Usually, the external IOs of a digital simulation computer are distributed in several continuous IO address space blocks (hereinafter referred to as IO blocks). refer to figure 1 , Schematic diagram of the IO block model. figure 1 It shows the basic attributes of the IO block (IO_BLOCK), including the base address base and size; and the IO address in the IO block can be described using the base address and offset address. Numerous IO blocks are often distributed linearly in the IO address space, and only the mapped IO addresses belong to the access range. refer to figure 2 , Schematic diagram of IO address space and IO block. C...

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): G06F12/06
Inventor 刘虎胡步青王永常亮
Owner SHANGHAI ENG CENT FOR MICROSATELLITES