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

Memory management method and device therefor

A memory management and pointer technology, applied in the direction of memory address/allocation/relocation, memory system, electrical digital data processing, etc., can solve the problems of wasting data space, wasting available resources, increasing a copy, etc., to achieve optimized running speed, The effect of saving space and resources

Active Publication Date: 2017-10-03
ALLWINNER TECH CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The general method of decoding compressed data into PCM data is to open up a space on the memory alone, decode a frame of PCM data through a decoder, and write the frame of data into the space, and decode once each time. For one frame of data, copy this separately opened space to the circular buffer, which leads to an additional copy
The above-mentioned decoding process wastes the available memory resources and will greatly affect the running speed of the machine
Another method is to open up a space for each frame. When the size of a frame is uncertain, only the largest data space can be opened, which wastes data space. When the memory space is limited, it cannot meet the requirements.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Example of memory management method:

[0024] refer to figure 1 , figure 1 It is a flow chart of writing data in the embodiment of the memory management method. When internal memory is managed, at first execute step S11, promptly at first initialize the space of circular buffer, circular buffer is the circular buffer (buffer) that is opened on internal memory, set remaining space capacity simultaneously as the whole space capacity of circular buffer, Point the write pointer and read pointer to the first address of the circular buffer. Then execute step S12, that is, set the data end pointer (pEnd) as the end position of the circular buffer, that is, point the data end pointer to the position where the end address of the circular buffer is increased by 1. Then step S13 is executed to obtain the remaining capacity of the remaining space of the circular buffer, and then step S14 is executed to obtain the length of the target data. The target data refers to the data to b...

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 present invention provides a memory management method and its device. The steps of the management method include: initializing the space of the circular buffer; setting the data end pointer to point to the position where the last address of the circular buffer is plus 1; acquiring the remaining space of the remaining space of the circular buffer Capacity; determine whether the remaining capacity is greater than or equal to the length of the target data; if it is determined that the remaining capacity is greater than or equal to the length of the target data, the target data will write data according to the first address of the remaining space; if it is determined that the remaining capacity is less than the length of the target data, set the end of data The pointer points to the first address of the remaining space. And a management device applying the above method. By changing the pointing position of the data end pointer, it is beneficial to save the resources of CPU operation. At the same time, by using the judgment of the length of the target data and the capacity of the remaining space, the problem of insufficient data length during the use of the circular buffer is solved, which is beneficial Save memory space and optimize running speed.

Description

technical field [0001] The invention relates to the field of memory quantity processing, in particular to a memory management method and device. Background technique [0002] Pulse Code Modulation (Pulse Code Modulation), referred to as PCM, is a digital signal generated by sampling, quantizing and encoding a continuously changing analog signal. The advantage of PCM is good sound quality, but the disadvantage is that it is bulky. PCM can provide users with digital data dedicated line services at a rate from 2M to 155M, and can also provide other services such as voice, image transmission, and distance learning. The general method of decoding compressed data into PCM data is to open up a space on the memory alone, decode a frame of PCM data through a decoder, and write the frame of data into the space, and decode once each time. For one frame of data, this separately opened space is copied to the circular buffer, which leads to an additional copy. The above-mentioned decodi...

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/02G06F12/0875
Inventor 张林山
Owner ALLWINNER TECH CO LTD