CN103678153A - Electronic device and control method thereof - Google Patents

Electronic device and control method thereof Download PDF

Info

Publication number
CN103678153A
CN103678153A CN201210332152.2A CN201210332152A CN103678153A CN 103678153 A CN103678153 A CN 103678153A CN 201210332152 A CN201210332152 A CN 201210332152A CN 103678153 A CN103678153 A CN 103678153A
Authority
CN
China
Prior art keywords
data
compressions
memory
module
decompression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210332152.2A
Other languages
Chinese (zh)
Inventor
周书正
吴育葵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MStar Software R&D Shenzhen Ltd
MStar Semiconductor Inc Taiwan
Original Assignee
MStar Software R&D Shenzhen Ltd
MStar Semiconductor Inc Taiwan
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MStar Software R&D Shenzhen Ltd, MStar Semiconductor Inc Taiwan filed Critical MStar Software R&D Shenzhen Ltd
Priority to CN201210332152.2A priority Critical patent/CN103678153A/en
Publication of CN103678153A publication Critical patent/CN103678153A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an electronic device which comprises a read-only memory, a random access memory, a processing module, an on-demand paging module and an uncompressing module, wherein multiple compressed data are stored in the read-only memory, each compressed datum corresponds to a datum which has not been compressed, all the data which have not been compressed are obtained from partitioning of the same original datum, the on-demand paging module is used for selecting one or more compressed data from the multiple compressed data according to a demand which is relevant to the original datum and from the processing module, and the uncompressing module is used for uncompressing the one or more compressed data selected by the on-demand paging module and then storing the uncompressed data in the random access memory for the processing module to use.

Description

Electronic installation and control method thereof
Technical field
The present invention is relevant to sharp memory-aided technology, and especially relevant to the technology of saving storer.
Background technology
Procedure code and the data of generally speaking, after electronic product dispatches from the factory, just no longer changing can be by burning in ROM (read-only memory).In recent years, one of development trend of consumption electronic products is that several functions is integrated in single product, for example makes mobile phone except call function, also be taken pictures, surf the Net.Diversified function means the procedure code compared with bulky complex conventionally.If wish stores more procedure code and data, the capacity of the ROM (read-only memory) in electronic product just must increase accordingly thereupon, thereby causes hardware cost to rise.
For the problems referred to above, existing solution is by burned ROM (read-only memory) after data and procedure code compression.Compressed and the situation of burning in ROM (read-only memory) of the procedure code of an application program of take is example, in the time of need to this application program, electronic installation is procedure code after ROM (read-only memory) reads this compression first, the random access memory that recycling decompressor decompresses this procedure code to electronic installation, carries out for its processor.
Current practice is to take the unit that application program is compression/de-compression.In other words, when certain application program of needs, electronic installation must decompress all procedure codes of this application program to random access memory, can use this application program.The shortcoming of this way is, what the capacity of random access memory must be suitable is large, is just enough to hold various procedure codes after decompressed.Yet the price of random access memory is high, cause again undoubtedly the hardware cost of electronic product to rise.
Summary of the invention
For addressing the above problem, the present invention proposes a kind of new electronic installation and control method thereof.By changing the unit that the procedure code of take after suitably cutting apart or data are compression/de-compression, and coordinate with selecting paging (demand paging) technology, according to electronic installation of the present invention and control method thereof, can effectively reduce the random access memory space needing, and then reduce the hardware cost of electronic installation.
A specific embodiment according to the present invention is a kind of electronic installation, wherein comprises a ROM (read-only memory), a random access memory, a processing module, with selecting paging module and a decompression module.In this ROM (read-only memory), store data after many compressions.After each pen compression, data are separately corresponding to data before a compression.Before these compressions, Data Segmentation is from same raw data.Should be with selecting paging module in order to according to relevant to this raw data and from a demand of this processing module, certainly after these many compressions, in data, select data after or many compressions.Decompression module is in order to depositing this random access memory in after data decompression with selecting after paging module selected this or many compressions, for this processing module.
Another specific embodiment according to the present invention is a kind of control method that is applied to an electronic installation.This electronic installation comprises a ROM (read-only memory) and a random access memory.In this ROM (read-only memory), store data after many compressions.After each pen compression, data are separately corresponding to data before a compression.Before these compressions, Data Segmentation is from same raw data.In response to a demand relevant to this raw data, first this control method carries out a selection step, certainly after these many compressions, in data, selects data after or many compressions.Then, this control method is carried out a decompression step, will after selecteed this or many compressions, after data decompression, deposit this random access memory in.Subsequently, this control method is carried out an operation steps, according to by after data decompression after this or many compressions, produce one decompress after data, carry out an operation relevant to this raw data.
Another specific embodiment according to the present invention is a kind of computer-readable storage medium, wherein stores a procedure code that can be read and be carried out by a controller.This procedure code is in order to control an electronic installation.This electronic installation comprises a ROM (read-only memory) and a random access memory.In this ROM (read-only memory), store data after many compressions.After each pen compression, data are separately corresponding to data before a compression.Before these compressions, Data Segmentation is from same raw data.In response to a demand relevant to this raw data, one first procedure code that this procedure code comprises is selected data after or many compressions after these many compressions in data.One second procedure code is in order to depositing this random access memory in after data decompression after selecteed this or many compressions.One the 3rd procedure code in order to according to by after data decompression after this or many compressions, produce one decompress after data, carry out an operation relevant to this raw data.
About the advantages and spirit of the present invention, can be further understood by following detailed description and accompanying drawings.
Accompanying drawing explanation
Fig. 1 is according to the electronic installation calcspar in a specific embodiment of the present invention.
Fig. 2 A has illustrated the stored contents example according to ROM (read-only memory) of the present invention; Fig. 2 B is in order to represent the corresponding relation of the rear data of compression and its raw data.
Fig. 3 is according to the control method figure in a specific embodiment of the present invention.
Main element symbol description
100: electronic installation 11: ROM (read-only memory)
12: random access memory 13: processing module
14: with selecting paging module 15: decompression module
A: application program B: software data
A1 ' ~ An ', B1 ', B2 ': data after compression
A1 ~ An: data C before compression: user's data of uncompressed
S32 ~ S36: process step
Embodiment
A specific embodiment according to the present invention is the electronic installation 100 shown in Fig. 1, wherein comprises ROM (read-only memory) 11, random access memory 12, processing module 13, with selecting paging (demand paging) module 14 and decompression module 15.In actual applications, electronic installation 100 can be the various devices that utilize ROM (read-only memory) to store its data/procedure code, for example Smartphone, personal digital assistant, notebook computer, table of game player or panel computer, but not as limit.
In ROM (read-only memory) 11, store data after many compressions.In practice, after these compressions, data can correspond respectively to various procedure codes, software data or user's data.Fig. 2 A has illustrated a stored contents example of ROM (read-only memory) 11.After compression, data A1 ' ~ An ' is corresponding to an application A, and the some of procedure code after the compression of each self-contained application A; After compression, data B1 ', B2 ' be corresponding to a software data B, and the some of software data B after each self-contained compression.In addition, the ROM (read-only memory) in this example 11 also stores user's data C of a uncompressed.
Fig. 2 B is in order to represent the corresponding relation of rear data the A1 ' ~ An ' of compression and application A.Application A is before split into the n such as A1 ~ An part by compression.This n part compressed subsequently separately, becomes rear data the A1 ' ~ An ' of compression.In other words, after compression, before each self-corresponding compression of data A1 ' ~ An ', data A1 ~ An is cut apart from same raw data (that is procedure code of application A).In practice, cut apart application A procedure code according to can be data volume size, for example the procedure code of application A is divided into the identical n decile of size.Or, cut apart application A procedure code according to also can be module type.For example, data A1 ~ An may be associated with the difference in functionality module in application A separately.Should be noted that, the data stroke count producing after a raw data is divided is not limited with special value.
When processing module 13 proposes user demand for application A, with selecting paging module 14 can judge that (for example, according to a corresponding relation look-up table) needed procedure code of processing module 13 be to be contained in wherein which pen of the rear data of compression, supposes that the needed procedure code of processing module 13 is contained in rear data the A1 ' ~ A3 ' of compression.In one example, processing module 13 orders are with selecting i.e. data the A1 ' ~ A3 ' after ROM (read-only memory) 11 captures compression of paging module 14, and after compressing, data A1 ' ~ A3 ' offers decompression module 15 processing in the lump.Subsequently, decompression module 15 can be deposited in random access memory 12 by the data that produce after decompressing (data A1 before the compression after being reduced), for processing module 15.In another example, processing module 13 order with selecting data after compression of paging module 14 single treatment, for example, is first processed A1 '.After the rear data A1 ' of compression is first decompressed, the data that produce after decompressing (data A1 before the compression after being reduced) are deposited to a certain block 12a to random access memory 12, and the data A1 of generation after this decompression can be performed.Then, with data A2 ' after selecting 14 pairs of compressions of paging module, carry out identical action, and the data A2 producing after decompressing is stored in to another block 12b of random access memory 12 and carries out.Finally, if data have been performed complete after corresponding to the decompression of A1 ', after the 3rd compression after the decompression of data A3 ' data A3 can be stored in be same as the decompression that corresponds to A1 ' after data storing in the same block of random access memory 12, namely override the data A1 being finished in block 12a.
In above-mentioned example, the size of random access memory 12 only need be enough to deposit the front data A1 ~ A3 of compression or A1 ~ A2.That is to say, the capacity of random access memory 12 does not need to be designed to be enough to hold all procedure codes (comprising the front data A1 ~ An of compression) of application A.In like manner, if the packet needing in the user demand that processing module 13 proposes for software data B is contained in the rear data B2 ' of compression, with selecting paging module 14 also will only choose the rear data B2 ' of compression from ROM (read-only memory) 11, but not choose compression rear data B1 ', B2 ' simultaneously.Except possessing, utilize compress technique to save the advantage in ROM (read-only memory) space, this way obviously can reduce the capacity requirement to random access memory 12.
On the other hand, if processing module 13 proposes user demand for user's data C, processing module 13 can directly capture and use user's data C from ROM (read-only memory) 11.Should be noted that, in the situation that the remaining space deficiency of random access memory 12, unwanted data at present can be ordered to delete or override wherein to processing module 13, to transcribe out the space of the up-to-date output of holding decompression module 15.
In one embodiment, random access memory 12 is split into two regions: first area in order to the decompression of depositing decompression module 15 and producing after data, second area is other data of depositing beyond the output of decompression module 15.The size of this first area can be fixing, also can be designed to be subject to processing the control of module 13 and dynamically adjusts.For example, when hope promotes the usefulness of processing module 13 executive utility A, processing module 13 can expand this first area, second area is dwindled, and order all decompresses to random access memory 12 with data A1 ' ~ A3 ' after selecting paging module 14 and decompression module 15 to compress, and makes processing module 13 can use fast all procedure codes of application A.Relatively, if application A is judged as the application program that importance is lower, processing module 13 can be restricted to the size of this first area only can hold the rear data of single pen decompression.
Another specific embodiment according to the present invention is a kind of control method that is applied to an electronic installation, and its process flow diagram as shown in Figure 3.This electronic installation comprises a ROM (read-only memory) and a random access memory.In this ROM (read-only memory), store data after many compressions.After each pen compression, data are separately corresponding to data before a compression.Before these compressions, Data Segmentation is from same raw data.In response to a demand relevant to this raw data, first this control method performs step S32, certainly after these many compressions, in data, selects data after or many compressions.Then, this control method execution step S34, will deposit this random access memory in after data decompression after selecteed this or many compressions.Subsequently, this control method execution step S36, according to by after data decompression after this or many compressions, produce one decompress after data, carry out an operation relevant to this raw data.
The various variations of previously having described when introducing electronic installation 100 (for example partitioning scheme of data before compression) all can be applied in the control method that Fig. 3 illustrates, and its details repeats no more.
Another specific embodiment according to the present invention is a kind of computer-readable storage medium, wherein stores a procedure code that can be read and be carried out by a controller.This procedure code is in order to control an electronic installation.This electronic installation comprises a ROM (read-only memory) and a random access memory.In this ROM (read-only memory), store data after many compressions.After each pen compression, data are separately corresponding to data before a compression.Before these compressions, Data Segmentation is from same raw data.In response to a user demand relevant to this raw data, one first procedure code that this procedure code comprises is selected data after or many compressions after these many compressions in data.One second procedure code is in order to depositing this random access memory in after data decompression after selecteed this or many compressions.One the 3rd procedure code in order to according to by after data decompression after this or many compressions, produce one decompress after data, carry out an operation relevant to this raw data.
As mentioned above, the present invention proposes a kind of new electronic installation and control method thereof.By changing the unit that the procedure code of take after suitably cutting apart or data are compression/de-compression, and coordinate with selecting paging technique, according to electronic installation of the present invention and control method thereof, can effectively reduce the random access memory space needing, and then reduce the hardware cost of electronic installation.
By the above detailed description of preferred embodiments, hope can be known description feature of the present invention and spirit more, and not with the above-mentioned preferred embodiment being disclosed, category of the present invention is limited.On the contrary, its objective is that hope can contain in the category of the scope of the claims of being arranged in of various changes and tool equality institute of the present invention wish application.

Claims (12)

1. an electronic installation, comprises:
One ROM (read-only memory), wherein stores data after many compressions, and separately corresponding to data before a compression, before these compressions, Data Segmentation is from same raw data;
One random access memory;
One processing module, is coupled to this ROM (read-only memory) and this random access memory;
One with selecting paging module, is coupled to this ROM (read-only memory) and this processing module, in order to according to relevant to this raw data and from a demand of this processing module, certainly after these many compressions, in data, selects data after or many compressions; And
One decompression module, is coupled to this with selecting paging module, should after data decompression, deposit this random access memory in selecting after paging module selected this or many compressions, for this processing module.
2. electronic installation as claimed in claim 1, is characterized in that, this raw data is a procedure code, a software data or user's data.
3. described electronic installation as claimed in claim 1, is characterized in that, before these compressions, a data based data volume size or a module type are divided from this raw data.
4. electronic installation as claimed in claim 1, is characterized in that, this random access memory comprises a memory area, in order to deposit this decompression module by after data decompression after this or many compressions, produce one decompress after data; And this processing module is dynamically adjusted the size of this memory area.
5. a control method that is applied to an electronic installation, this electronic installation comprises a ROM (read-only memory) and a random access memory, in this ROM (read-only memory), store data after many compressions, after each pen compression, data are separately corresponding to data before a compression, before these compressions, Data Segmentation is from same raw data, and this control method comprises the following step:
In response to a demand relevant to this raw data, certainly after these many compressions, in data, select data after or many compressions;
To after selecteed this or many compressions, after data decompression, deposit this random access memory in; And
According to by after data decompression after this or many compressions, produce one decompress after data, carry out an operation relevant to this raw data.
6. control method as claimed in claim 5, is characterized in that, this raw data is a procedure code, a software data or user's data.
7. control method as claimed in claim 5, is characterized in that, before these compressions, a data based data volume size or a module type are divided from this raw data.
8. control method as claimed in claim 5, is characterized in that, this random access memory comprises a memory area, in order to deposit this decompression module by after data decompression after this or many compressions, produce one decompress after data; This control method further comprises:
Dynamically adjust the size of this memory area.
9. a computer-readable storage medium, wherein store a procedure code that can read and carry out by a controller, this procedure code is in order to control an electronic installation, this electronic installation comprises a ROM (read-only memory) and a random access memory, in this ROM (read-only memory), store data after many compressions, after each pen compression, data are separately corresponding to data before a compression, and before these compressions, Data Segmentation is from same raw data, and this procedure code comprises:
One first procedure code, in response to a demand relevant to this raw data, this first procedure code is selected data after or many compressions after these many compressions in data;
One second procedure code, in order to depositing this random access memory in after data decompression after selecteed this or many compressions; And
One the 3rd procedure code, in order to according to by after data decompression after this or many compressions, produce one decompress after data, carry out an operation relevant to this raw data.
10. computer-readable storage medium as claimed in claim 9, is characterized in that, this raw data is a procedure code, a software data or user's data.
11. computer-readable storage mediums as claimed in claim 9, is characterized in that, before these compressions, a data based data volume size or a module type are divided from this raw data.
12. computer-readable storage mediums as claimed in claim 9, is characterized in that, this random access memory comprises a memory area, in order to deposit this decompression module by after data decompression after this or many compressions, produce one decompress after data; This control method further comprises:
One the 4th procedure code, in order to the size of dynamic this memory area of adjustment.
CN201210332152.2A 2012-09-10 2012-09-10 Electronic device and control method thereof Pending CN103678153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210332152.2A CN103678153A (en) 2012-09-10 2012-09-10 Electronic device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210332152.2A CN103678153A (en) 2012-09-10 2012-09-10 Electronic device and control method thereof

Publications (1)

Publication Number Publication Date
CN103678153A true CN103678153A (en) 2014-03-26

Family

ID=50315784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210332152.2A Pending CN103678153A (en) 2012-09-10 2012-09-10 Electronic device and control method thereof

Country Status (1)

Country Link
CN (1) CN103678153A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6349375B1 (en) * 1994-02-02 2002-02-19 Compaq Computer Corporation Compression of data in read only storage and embedded systems
CN1188784C (en) * 2000-05-30 2005-02-09 国际商业机器公司 Method for supporting operation system of storage compression
CN102044174A (en) * 2010-12-29 2011-05-04 北京汇信合科技有限公司 Electronic book reader and method for compressing and decompressing electronic textile thereof
CN101188833B (en) * 2006-11-22 2011-05-18 三星电子株式会社 Apparatus and method for efficient memory use in portable terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6349375B1 (en) * 1994-02-02 2002-02-19 Compaq Computer Corporation Compression of data in read only storage and embedded systems
CN1188784C (en) * 2000-05-30 2005-02-09 国际商业机器公司 Method for supporting operation system of storage compression
CN101188833B (en) * 2006-11-22 2011-05-18 三星电子株式会社 Apparatus and method for efficient memory use in portable terminal
CN102044174A (en) * 2010-12-29 2011-05-04 北京汇信合科技有限公司 Electronic book reader and method for compressing and decompressing electronic textile thereof

Similar Documents

Publication Publication Date Title
CN105404521B (en) A kind of method for updating increment and relevant apparatus
CN102841901A (en) Web page display method and device
CN102761339B (en) Data compression method and device
CN113010063B (en) File previewing method and device, electronic equipment and storage medium
CN102054038A (en) File decompression method and device as well as mobile terminal
CN105022642A (en) Mobile terminal and processing method of loaded content
CN109993817B (en) Animation realization method and terminal
CN101350993A (en) Apparatus and method for selective loading in mobile communication terminal
CN109416662A (en) Use the selective flash memory compression/de-compression of storage utilization rate ring
CN106651971A (en) Graphic data compression device and graphic data compression method
CN114495863A (en) Screen brightness control method, device, equipment, storage medium and program product
CN107577474B (en) Processing method and device for upgrading file and electronic equipment
CN105095259A (en) Waterfall flow object display method and device
CN103345362B (en) Batch preserves the method and system of webpage
CN103678153A (en) Electronic device and control method thereof
CN115053516A (en) Electronic device and method for storing image
TWI588746B (en) Electronic apparatus and control method thereof
CN113821484A (en) File processing method and device, electronic equipment and readable storage medium
CN113987389A (en) Optimization method of three-dimensional scene model loading system
CN110072108B (en) Image compression method and device
CN112732394A (en) Intelligent control method and device for interface display, electronic equipment and storage medium
CN103268619B (en) The method of image data batch compression in swf file and device
CN110688344A (en) File scanning method and device, computer readable storage medium and terminal
CN105608177A (en) Picture processing method and apparatus
CN106294553B (en) Data information is sent and big envelope information display method, device, speaker and terminal speaker

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140326