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

Memory access method and device

A memory access and unification technology, applied in the computer field, can solve the problems of non-reusable use, RAM space occupation, high cost, etc., and achieve the effect of reducing the difficulty of writing design and debugging complexity, reducing the requirements of RAM size, and reducing the size

Active Publication Date: 2013-10-02
ACTIONS ZHUHAI TECH CO
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Usually, the size of each page switching code used for page switching is about 32 to 48 bytes, and the number of page switching codes required by a normal-sized software is at least hundreds, which will make the RAM root space The stored page switching code is increased to more than 4KB, and for the RAM in the current integrated circuit, it is obviously unacceptable to use a space of 4KB or more to complete the page switching function, because the amount of RAM space is limited and The cost is high, and this method will cause a lot of RAM space to be occupied and cannot be reused

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
  • Memory access method and device
  • Memory access method and device
  • Memory access method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the object, technical solution, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

[0042] For the sake of illustration, the following takes a CPU that supports 8M bytes of program space and 8M bytes of data space as an example, where the address range of the data space is 00:0000h~7f:ffffh, and the address range of the program space is 80:0000h ~FF:FFFFH, the address range from 00:0000h to FF:FFFFH is divided into 256 pages with a size of 64KB. Among them, the page number is 0ffh, and its corresponding address range is 0ff0000h~0ffffffh. It can be seen that, This page happens to be the last page in the program space.

[0043] For the program space, the page currently used by the CPU is called program RAM. In order to identify the position of the program RAM in the program space, it can be realized by defining the page number of the p...

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 memory access method, comprising the steps of: judging whether data / instruction to be accessed by a CPU (Central Processing Unit) is in a same page with that which is currently accessed by the CPU, if not, triggering a page swapping mechanism; while swapping the page, storing the number of the page where the data / instruction to be accessed is located, and executing a page swap processing program; updating the data / instruction to be accessed to a program RAM (Random Access Memory) from the external storage; and ending the page swap processing program and resuming after modifying the value of the program counter to be the recorded value of the program counter when the page is determined to be invalid. The embodiment of the invention further provides a memory accessdevice. According to the memory access method and device provided by the invention, the problem that code swapping is required in each page swapping can be avoided, the page swapping code amount is reduced, a uniform interface is provided for each page swapping, so that designers are not needed to regard specific implementation details of the page swapping, and programming difficulty and debugging complexity of the program are obviously reduced.

Description

technical field [0001] The invention relates to computer technology, in particular to a memory access method and device. Background technique [0002] In current computer systems, especially embedded systems, the increasing computing power of hardware enables more and more system functions to be realized, and the scale of software that realizes these functions is also increasing accordingly, so that the executable code of the software The length is getting longer and longer. [0003] For legacy addressing ranges of 2 M The central processing unit (CPU) of the byte, M is a positive integer, and the once addressing range of the CPU in the memory (RAM) space is 2 M bytes, so that the maximum length of the executable code that can be executed each time is also 2 M byte. Obviously, if the length of the executable code exceeds the addressing range, even if all the executable code can be stored in the RAM space, the CPU cannot execute it all at once. At this time, the traditio...

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/10G06F12/0882
Inventor 江小炜彭洪
Owner ACTIONS ZHUHAI TECH CO
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More