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

A method and system for fast mapping from io address to io object

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

Active Publication Date: 2018-02-16
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
  • A method and system for fast mapping from io address to io object
  • A method and system for fast mapping from io address to io object
  • A method and system for fast mapping from 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

A method and system for fast mapping of IO addresses to IO objects, the method comprising the steps of: 1) collecting base addresses, sizes and intervals of all IO blocks, and arranging them in order of addresses; 2) selecting the minimum interval value, thereby obtaining the gap value, Wherein the gap value is less than or equal to the minimum interval value; 3) take the initial address of the IO address space as the starting position t, and use the gap value to re-segment the IO address space; 4) construct gaps and arrays to record each The gap corresponding to the IO address in the gap value space and; 5) construct an array of IO objects, and each IO address maps an IO object located at the corresponding array index in the array of IO objects; 6) according to the constructed gap and array and The IO object array completes the calculation of the IO address to the corresponding array index, thereby completing the fast mapping of the IO address to the IO object. The invention transforms the search into a look-up table by re-dividing the IO address space, and realizes 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 Patents(China)
IPC IPC(8): G06F12/06
Inventor 刘虎胡步青王永常亮
Owner SHANGHAI ENG CENT FOR MICROSATELLITES