CN101419570B - Memory device addressing apparatus and method - Google Patents

Memory device addressing apparatus and method Download PDF

Info

Publication number
CN101419570B
CN101419570B CN2007101673475A CN200710167347A CN101419570B CN 101419570 B CN101419570 B CN 101419570B CN 2007101673475 A CN2007101673475 A CN 2007101673475A CN 200710167347 A CN200710167347 A CN 200710167347A CN 101419570 B CN101419570 B CN 101419570B
Authority
CN
China
Prior art keywords
address
space
access address
subaddressing
access
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.)
Expired - Fee Related
Application number
CN2007101673475A
Other languages
Chinese (zh)
Other versions
CN101419570A (en
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.)
MediaTek Inc
Original Assignee
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 Semiconductor Inc Taiwan filed Critical MStar Semiconductor Inc Taiwan
Priority to CN2007101673475A priority Critical patent/CN101419570B/en
Publication of CN101419570A publication Critical patent/CN101419570A/en
Application granted granted Critical
Publication of CN101419570B publication Critical patent/CN101419570B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention discloses an addressing device and a method thereof, which enables an electronic device with small addressing ability to address a memory device with larger storage space. The addressing device includes an address coding unit and an address transition unit. The address coding unit receives a first access address in the smaller address space and determines whether to map a first access address to the memory device. The address transition unit is coupled to the address coding unit. The address space includes first sub-address space and second sub-address space which are not overlapped. When the first access address belongs to the first or the second sub-space address space, the address transition unit respectively converts the first access address into a second access address according to adjustable first or second base addresses, wherein the first and the second base addresses are adjusted respectively according to a first and a second unit values, so that the storage space is divided into plural pages relative to the first and the second sub-address spaces, each page size is respectively the first unit value and the second unit value, and the second unit value is smaller than the first unit value.

Description

The addressing apparatus of memory storage and method
Technical field
What the present invention relates to is a kind of addressing of memory storage, refers to a kind of device for addressing and method that makes the microcontroller with less memory address ability can use big internal memory especially.
Background technology
In electronic system, use microcontroller (micro controller) (or microprocessor (micro processor)) when coming executive routine or deal with data; Internal memory need be used or buffer comes temporal data; Generally speaking; Microcontroller only has deposits addressing capability within limited, deposits addressing capability within the microcontroller and has limited the memory size that described microcontroller can use, for example; If when depositing addressing capability within the microcontroller and being the 64K size, just can't directly address greater than depositing within the 64K byte.When the function of system is increasingly sophisticated, just deposits within microcontroller can use and not apply use.
Yet, use microcontroller if change with big internal memory addressing capability, because it costs an arm and a leg, can cause the manufacturing cost of electronic system to heighten again, be unfavorable for the price competitiveness of manufacturer.
Summary of the invention
In view of this, a purpose of the present invention is to provide a kind of device for addressing and method, lets the electronic installation addressable with less addressing capability have the memory storage of storage area greatly, to reduce the manufacturing cost of electronic system.
The present invention discloses a kind of device for addressing, in order to have the memory storage of a storage area according to an address space (address space) addressing.Described device for addressing comprises address decoding unit and address conversioning unit.Address decoding unit receives first access address in the described address space, and whether decision videos first access address to described memory storage.Address conversioning unit is coupled to address decoding unit.When first access address was mapped to described memory storage, address conversioning unit converted first access address into second access address of described storage area;
Wherein, Described address space comprises non-overlapping space, one first subaddressing and space, one second subaddressing; When described first access address belonged to described space, first subaddressing or space, described second subaddressing, described address decoding unit can make described first access address reflection to described memory storage; Promptly when described first access address belonged to space, described first subaddressing, described address conversioning unit converted described first access address into described second access address according to adjustable first base address; When described first access address belonged to space, described second subaddressing, described address conversioning unit converted described first access address into described second access address according to adjustable second base address; Wherein said first base address is that foundation one first unit value is that unit adjusts, so that described storage area is distinguished into the plural number page or leaf for space, said first subaddressing, and every page size is first unit value; Described second base address is to adjust according to one second unit value, so that described storage area is distinguished into the plural number page or leaf for space, said second subaddressing, and every page size is second unit value; Described second unit value is less than described first unit value.
The present invention discloses a kind of addressing method in addition, in order to have the memory storage of a storage area according to an address space addressing.Described addressing method comprises the following step: receive first access address in the described address space; Whether decision videos first access address to described memory storage; Described address space comprises non-overlapping space, one first subaddressing and space, one second subaddressing; When described first access address belonged to described space, first subaddressing or space, described second subaddressing, described first access address was mapped to described memory storage; And when first access address is mapped to described memory storage; Convert first access address in the described storage area second access address; Promptly when described first access address belongs to space, described first subaddressing; According to adjustable first base address, convert described first access address into described second access address; When described first access address belongs to space, described second subaddressing,, convert described first access address into described second access address according to adjustable second base address; Wherein, described first base address is that foundation one first unit value is that unit adjusts, so that described storage area is distinguished into the plural number page or leaf for space, said first subaddressing, and every page size is first unit value; Described second base address is to adjust according to one second unit value, so that described storage area is distinguished into the plural number page or leaf for space, said second subaddressing, and every page size is second unit value; Described second unit value is less than described first unit value.
Description of drawings
Fig. 1 is the calcspar of an embodiment of device for addressing of the present invention;
Fig. 2 is the reflection relation of the address space and the storage area in the memory storage of displayed map 1;
Fig. 3 is the process flow diagram of an embodiment of addressing method of the present invention;
Description of reference numerals: 10-device for addressing; The 11-address decoding unit; 111,112-comparer; The 12-address conversioning unit; The 13-memory storage; The 20-address space; Space, 21-first subaddressing; Space, 22-second subaddressing; The 23-storage area; All the other spaces, subaddressing of 24-; The flow process of one embodiment of 30~33-addressing method.
Embodiment
Below in conjunction with accompanying drawing, do more detailed explanation with other technical characterictic and advantage to the present invention is above-mentioned.
Fig. 1 is the calcspar of an embodiment of device for addressing of the present invention, and wherein, device for addressing 10 can be according to addressing of address one memory storage 13 of address space.Address space can be considered the set that comprises a plurality of addresses, and the quantity of address is the size of address space.Number of addresses is many more, and address space is also big more, and anti-is also right.The size of address space is represented the power of addressing capability; Addressing capability is strong more; Expression institute can addressing the storage area big more, for example, the big or small address space of 64K has 64K address and can be used to carry out addressing; And if the storage area of the corresponding byte in each address, then the addressable storage area of the address space of described 64K is the 64K byte.In a preferred embodiment, address space can addressing the storage area be less than the storage area in the memory storage 13, also promptly, the size of the storage area in the memory storage 13 surpasses the addressing capability of address space.For example, address space possibly be 64K size (0000 to FFFF that the address that it comprised can 16 carries represent), and the storage area of memory storage 13 possibly be 64M byte-sized (16 carry addresses be 0000000 to 3FFFFFF).Change speech, device for addressing 10 can come addressing to have the memory storage 13 of big storage area according to less address space.Memory storage 13 can comprise DRAM (DRAM) or flash memory (flashmemory) etc.Fig. 2 is reflection (mapping) relation of the storage area 23 of explicit address space 20 and memory storage 13.As shown in Figure 2, address space 20 comprises space, non-overlapping first subaddressing 21 and space, second subaddressing 22.Space, first subaddressing 21 is mapped to that first base address and first base address add first unit value between the two in the storage area 23, and space, second subaddressing 22 is mapped to that second base address and second base address add second unit value between the two in the storage area 23.First base address and second base address can be that unit adjusts with first unit value and second unit value respectively.Therefore, with regard to space, first subaddressing 21, storage area 23 is distinguished into plural number page or leaf (page), and every page size is first unit value, in like manner, also is so with regard to space, second subaddressing 22, and the size that is every page is second unit value.Change speech; Through adjusting first base address and second base address; Device for addressing 10 can make video respectively to the storage area each address section of 23 of space, first subaddressing 21 and space, second subaddressing 22, so can let electronic installation with less addressing capability reach the effect of the big storage area of addressing.
In addition; Though space, first subaddressing 21 and space, second subaddressing 22 non-overlappings own; But, the address section of the storage area 23 that space, first subaddressing 21 and space, second subaddressing 22 videoed is overlapped each other through first base address and second base address are transferred closely.Change speech, through the different space, subaddressing of address space 20, but the data of identical address in the access stored space 23, to reach the effect of data sharing.
In a preferred embodiment, second unit value is less than first unit value, and so storage area 23 can fully be used.For example, if first unit value is 64K, and space 21, first subaddressing is less than 64K, and then when space, first subaddressing 21 is videoed to storage area 23, every page (size is the first unit value 64K) just has partial section and be not mapped in the storage area 23.At this moment; If use less second unit value (like 4K); Just can second base address be adjusted to the aforementioned interval that is not mapped to, it is videoed by space, second subaddressing 22, so; Just can come access original, and fully use storage area 23 through space, second subaddressing 22 not by the interval of space, first subaddressing 21 reflections.
Please again with reference to figure 1.Device for addressing 10 comprises an address decoding unit 11 and an address conversioning unit 12.First access address in the address decoding unit 11 receiver address spaces 20, and whether decision videos first access address to memory storage 13.Address conversioning unit 12 is coupled to address decoding unit 11.When first access address was mapped to memory storage 13, address conversioning unit 12 can convert first access address in the storage area 23 second access address.
Address decoding unit 11 comprises comparer 111 and 112.Comparer 111 receives the LLA and the HLA (being called first LLA and first HLA) of the first sub-storage area 21; Do comparison with first access address respectively; If first access address is situated between between first LLA and first HLA; Represent first access address to belong to space, first subaddressing 21, address decoding unit 11 can be delivered to address conversioning unit 12 with first access address and change, to video to memory storage 13.112 LLA and HLA (being called second LLA and second HLA) that receive space, second subaddressing 22 of comparer; Do comparison with first access address respectively; If first access address is situated between between second LLA and second HLA; Represent first access address to belong to space, second subaddressing 22, address decoding unit 11 can be delivered to address conversioning unit 12 with first access address and change, to video to memory storage 13.
When first access address belongs to space 21, first subaddressing; Address conversioning unit 12 is according to first base address; Convert first access address into second access address; For example, second access address is that first base address adds first access address or its some (like a plurality of lowest orders (least significant bit) of first access address); When first access address belonged to space 22, second subaddressing, address conversioning unit 12 converted first access address into second access address according to second base address, and for example, second access address is that second base address adds first access address or its some.
In one embodiment; First access address be by one have addressing address space 20 abilities microcontroller (figure shows) institute provide, 13 of memory storages comprise a dynamic random access memory controller (DRAM controller) and a DRAM (figure shows).In address space 20; Except videoing to the space, first subaddressing 21 and space, second subaddressing 22 of memory storage 13; Address translation need not be carried out in 24 in remaining space, subaddressing; Directly address is to other function square, like the static random access memory (SRAM) of microcontroller inside or the buffer (for example, depositing first and second base address, first and second LLA and first and second HLA) of storage system each item running information.Therefore, address decoding unit 11 can judge that first access address that microcontroller is sent into is which block (space, first subaddressing 21, space, second subaddressing 22 or space, subaddressing 24) that belongs to address space 20, carries out corresponding addressing action again.In addition, access to produce the physical address of DRAM, is carried out to DRAM in second access address that dynamic random access memory controller is then provided according to address conversioning unit 12.
Fig. 3 is the process flow diagram of an embodiment of addressing method of the present invention.Described addressing method can be according to addressing of address one memory storage of address space.The addressable storage area of address space is less than the storage area in the described memory storage, and address space comprises non-overlapping space, first subaddressing and space, second subaddressing.Described addressing method comprises the following step:
Step 30: first access address in the receiver address space.
Step 31: when first access address belongs to space, first subaddressing or space, second subaddressing, videoed to described memory storage in first access address.
Step 32: when first access address belongs to space, first subaddressing,, first access address is converted into second access address of the storage area of described memory storage according to adjustable first base address.
Step 33: when first access address belongs to space, second subaddressing,, first access address is converted into second access address of the storage area of described memory storage according to adjustable second base address.
First base address is to adjust according to first unit value, and second base address is to adjust according to second unit value.Second unit value is less than first unit value.
In one embodiment, step 32 is that first base address is added first access address or its some (like a plurality of lowest orders of first access address), to produce second access address; Step 33 is that second base address is added first access address or its some, to produce second access address.
The above is to utilize preferred embodiment to specify the present invention, and unrestricted scope of the present invention.Allly know this type of skill personage and can both understand, can make many possibly the variation, still do not break away from the spirit and scope of the present invention according to the announcement of above embodiment.

Claims (8)

1. device for addressing, in order to according to an address space addressing one memory storage, described memory storage has a storage area, it is characterized in that: described device for addressing comprises:
One address decoding unit receives one first access address in the described address space, and whether decision videos described first access address to described memory storage; And
One address conversioning unit; Be coupled to described address decoding unit; When described first access address was mapped to described memory storage, described address conversioning unit converted described first access address into one second access address of described storage area;
Wherein, Described address space comprises non-overlapping space, one first subaddressing and space, one second subaddressing; When described first access address belonged to described space, first subaddressing or space, described second subaddressing, described address decoding unit can make described first access address reflection to described memory storage; Promptly when described first access address belonged to space, described first subaddressing, described address conversioning unit converted described first access address into described second access address according to adjustable first base address; When described first access address belonged to space, described second subaddressing, described address conversioning unit converted described first access address into described second access address according to adjustable second base address; Wherein said first base address is that foundation one first unit value is that unit adjusts, so that described storage area is distinguished into the plural number page or leaf for space, said first subaddressing, and every page size is first unit value; Described second base address is to adjust according to one second unit value, so that described storage area is distinguished into the plural number page or leaf for space, said second subaddressing, and every page size is second unit value; Described second unit value is less than described first unit value.
2. device for addressing according to claim 1 is characterized in that: the storage area of described address space addressing is less than the storage area of described memory storage.
3. device for addressing according to claim 1 is characterized in that: described address decoding unit comprises:
One comparer compares respectively in order to a lower limit address and a HLA with described first access address and space, described first subaddressing.
4. device for addressing according to claim 1 is characterized in that: when described first access address belonged to space, described first subaddressing, described second access address was that described first base address adds described first access address; When described first access address belonged to space, described second subaddressing, described second access address was that described second base address adds described first access address.
5. device for addressing according to claim 1 is characterized in that: described address decoding unit comprises:
One first comparer compares respectively in order to a lower limit address and a HLA with described first access address and space, described first subaddressing; And
One second comparer compares respectively in order to a lower limit address and a HLA with described first access address and space, described second subaddressing.
6. addressing method, in order to have the memory storage of a storage area according to an address space addressing one, it is characterized in that: described addressing method comprises the following step:
Receive one first access address in the described address space;
Whether decision videos described first access address to described memory storage; Described address space comprises non-overlapping space, one first subaddressing and space, one second subaddressing; When described first access address belonged to described space, first subaddressing or space, described second subaddressing, described first access address was mapped to described memory storage; And
When described first access address is mapped to described memory storage; Described first access address is converted into one second access address of described storage area; Promptly when described first access address belongs to space, described first subaddressing; According to adjustable first base address, convert described first access address into described second access address; When described first access address belongs to space, described second subaddressing,, convert described first access address into described second access address according to adjustable second base address; Wherein, described first base address is that foundation one first unit value is that unit adjusts, so that described storage area is distinguished into the plural number page or leaf for space, said first subaddressing, and every page size is first unit value; Described second base address is to adjust according to one second unit value, so that described storage area is distinguished into the plural number page or leaf for space, said second subaddressing, and every page size is second unit value; Described second unit value is less than described first unit value.
7. addressing method according to claim 6 is characterized in that: the storage area of described address space addressing is less than the storage area of described memory storage.
8. addressing method according to claim 6 is characterized in that: when described first access address belonged to space, described first subaddressing, described second access address was that described first base address adds described first access address; When described first access address belonged to space, described second subaddressing, described second access address was that described second base address adds described first access address.
CN2007101673475A 2007-10-25 2007-10-25 Memory device addressing apparatus and method Expired - Fee Related CN101419570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101673475A CN101419570B (en) 2007-10-25 2007-10-25 Memory device addressing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101673475A CN101419570B (en) 2007-10-25 2007-10-25 Memory device addressing apparatus and method

Publications (2)

Publication Number Publication Date
CN101419570A CN101419570A (en) 2009-04-29
CN101419570B true CN101419570B (en) 2012-07-04

Family

ID=40630366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101673475A Expired - Fee Related CN101419570B (en) 2007-10-25 2007-10-25 Memory device addressing apparatus and method

Country Status (1)

Country Link
CN (1) CN101419570B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279811B (en) * 2010-06-09 2014-07-09 联咏科技股份有限公司 Adaptive address conversion method and controller applied to high-bandwidth low-voltage system
CN106294187B (en) * 2015-05-15 2019-11-08 比亚迪股份有限公司 The control method and device of position accessing operation function

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1149185A (en) * 1995-10-13 1997-05-07 合泰半导体股份有限公司 Method and device for extending memory
CN1848097A (en) * 2005-04-11 2006-10-18 三洋电机株式会社 Storage generating address and processor with same, storage address generating method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1149185A (en) * 1995-10-13 1997-05-07 合泰半导体股份有限公司 Method and device for extending memory
CN1848097A (en) * 2005-04-11 2006-10-18 三洋电机株式会社 Storage generating address and processor with same, storage address generating method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开平8-161217A 1996.06.21

Also Published As

Publication number Publication date
CN101419570A (en) 2009-04-29

Similar Documents

Publication Publication Date Title
CN107203475B (en) Memory system including memory device and method of operating the same
US6199150B1 (en) Data memory apparatus forming memory map having areas with different access speeds
US10223273B2 (en) Memory access method, storage-class memory, and computer system
US6720978B2 (en) Method for storing and retrieving data that conserves memory bandwidth
WO2008055269A3 (en) Asymmetric memory migration in hybrid main memory
US11442638B2 (en) Status management in storage backed memory package
CN101751993A (en) Apparatus and method for cache control
CN101419570B (en) Memory device addressing apparatus and method
CN100550189C (en) The device of data storing method, mapping affairs and the method for write data line
CN101192195B (en) Packet management method for electronic hard disk memory space
US20070245075A1 (en) Integrated Circuit and Method for Memory Access Control
CN1608250A (en) Method for expanding local memory address space of processor
CN101661438B (en) Electronic device and method for expanding addressing space of central processing unit
CN105190576A (en) Shared memory system
CN110704338B (en) Address conversion device, artificial intelligence chip and electronic equipment
CN106919516B (en) DDR address mapping system and method
WO2020237682A1 (en) Content-addressable storage apparatus and method, and related device
CN115543869A (en) Multi-way set connection cache memory and access method thereof, and computer equipment
CN100370436C (en) Method for improving storage access efficiency and storage coutroller
US8370599B2 (en) Storage system and controlling system and method thereof
US8762683B2 (en) Device and method for memory addressing
CN106776373B (en) Flash-memory-based cache system and method for mobile equipment
CN108574870A (en) A kind of display methods, device and the equipment in multi channel signals source
KR101736884B1 (en) Dram for providing successive row and column data
CN101944385B (en) Memorizer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200416

Address after: No.1, Duhang 1st Road, Hsinchu City, Hsinchu Science Park, Taiwan, China

Patentee after: MEDIATEK Inc.

Address before: Hsinchu County, Taiwan, China

Patentee before: MSTAR SEMICONDUCTOR Inc.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120704