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

Memory management method and device thereof

A memory management and pointer technology, applied in memory address/allocation/relocation, memory system, electrical digital data processing, etc., can solve the problems of wasting data space, wasting available resources, and adding one copy, so as to save space, Optimize running speed and save resources

Active Publication Date: 2015-03-25
ALLWINNER TECH CO LTD
View PDF5 Cites 7 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 thereof
  • Memory management method and device thereof
  • Memory management method and device thereof

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 invention provides a memory management method and a device thereof. The memory management method includes the steps that the space of a rotation buffer is initialized; a data end pointer is set to point to the position where the tail address of the rotation buffer is added with one; the residual capacity of the residual space of the rotation buffer is acquired; whether the residual capacity is larger than or equal to the length of target data or not is judged, and if it is judged that the residual capacity is larger than or equal to the length of the target data, the target data are written in according to the head address of the residual space; if it is judged that the residual capacity is smaller than the length of the target data, the data end pointer is set to point to the head address of the residual space. The invention further provides the memory management device using the memory management method. CUP operation resources can be better saved by changing the pointing position of the data end pointer. Meanwhile, the length of the target data and the capacity of the residual space are judged, the problems happening when the data length is insufficient in the using process of the rotation buffer are solved, the memory occupied space can be better saved, and therefore the operating speed is optimized.

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
IPC IPC(8): G06F12/08G06F12/0875
Inventor 张林山
Owner ALLWINNER TECH CO LTD