JP2000347929A - Memory ic - Google Patents
Memory icInfo
- Publication number
- JP2000347929A JP2000347929A JP11162180A JP16218099A JP2000347929A JP 2000347929 A JP2000347929 A JP 2000347929A JP 11162180 A JP11162180 A JP 11162180A JP 16218099 A JP16218099 A JP 16218099A JP 2000347929 A JP2000347929 A JP 2000347929A
- Authority
- JP
- Japan
- Prior art keywords
- address
- memory
- signal
- information
- nonvolatile memory
- 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
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明によるメモリIC(集
積回路)、特にマイクロプロセッサ(MPU)等の処理
装置の周辺回路に好適なメモリICに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory IC (integrated circuit) according to the present invention, and more particularly to a memory IC suitable for a peripheral circuit of a processing device such as a microprocessor (MPU).
【0002】[0002]
【従来の技術】MPUを使用するパーソナルコンピュー
タの普及及び高性能化に伴って、それと共に使用するメ
モリ(記憶回路又は素子)も大容量化及び高速化が進ん
でいる。2. Description of the Related Art With the spread of personal computers using MPUs and their high performance, memories (storage circuits or elements) used therewith have been increasing in capacity and speed.
【0003】MPU等の処理装置から複数のメモリで構
成される記憶装置へのアクセス動作を制御するメモリ制
御装置は、一般に次の手段から構成される。即ち、記憶
装置のメモリ構成を認識する為のメモリ構成認識手段、
記憶されたメモリ構成に基づき各メモリに適合する動作
モードを決定する決定手段、決定された動作モードに基
づき各メモリに対する決定手段及び決定された動作モー
ドに対応するアドレス信号を生成し、そのアドレス信号
を対応するメモリへ出力するアドレス調整手段である。A memory control device for controlling an access operation from a processing device such as an MPU to a storage device composed of a plurality of memories generally comprises the following means. That is, a memory configuration recognizing means for recognizing a memory configuration of the storage device,
Determining means for determining an operation mode suitable for each memory based on the stored memory configuration, determining means for each memory based on the determined operation mode, and generating an address signal corresponding to the determined operation mode; Is output to the corresponding memory.
【0004】また、デコード手段において、決定された
動作モードに基づき各メモリに対するマッピングをアド
レスが連続するように決定する特徴と有する。即ち、こ
のメモリ制御装置を介して複数のメモリ(内蔵メモリ、
増設メモリ等)をマイクロプロセッサ等に接続した場
合、マイクロプロセッサから見る全てのメモリが一連の
連続したアドレス空間にマッピングされているように見
える。[0004] The decoding means is characterized in that the mapping for each memory is determined so that addresses are continuous based on the determined operation mode. That is, a plurality of memories (built-in memory,
When an additional memory is connected to a microprocessor or the like, all the memory seen from the microprocessor appears to be mapped to a series of continuous address spaces.
【0005】更にまた、斯るメモリ制御装置又はメモリ
管理装置の関連技術は、特開平5−216745号公報
にも開示されている。Further, the related art of such a memory control device or memory management device is also disclosed in Japanese Patent Application Laid-Open No. 5-216745.
【0006】[0006]
【発明が解決しようとする課題】上述した従来技術にあ
っては、バッファ管理をすることにより、空き領域を連
続させ、可変長のバッファを作り出すことが可能である
が、ブロック的なメモリを扱うとき、ソフトウエア設計
段階では、冗長領域を持たせている。そして、実際の運
用段階において冗長的に空かせている領域を使用したい
場合、多大な変更箇所が生じてしまうという問題があっ
た。In the above-mentioned prior art, it is possible to create a variable length buffer by making the free space continuous by managing the buffer. At the time of software design, a redundant area is provided. Then, when it is desired to use a redundantly vacant area in an actual operation stage, there is a problem that a great deal of change occurs.
【0007】また、ソフトウエア設計で必要とするRA
M(ランダムアクセスメモリ)の容量が把握できない場
合、必要以上のRAMを予め搭載しなければならない。
しかし、これは不要な領域を多く含む為に無駄が多い。
従って、冗長的なメモリを含んだまま実運用すること
は、装置(システム)コスト面から不都合であり、メモ
リを基板に搭載する手段においても多大なスペースを必
要とする。Further, the RA required in software design
If the capacity of M (random access memory) cannot be determined, more RAM than necessary must be installed in advance.
However, this is wasteful because it includes many unnecessary areas.
Therefore, the actual operation including the redundant memory is inconvenient in terms of the device (system) cost, and a large amount of space is required for the means for mounting the memory on the board.
【0008】本発明の目的は、ソフトウエア設計段階で
構成されたアドレスマップを実運用上でも利用すること
ができ且つ不連続な領域をなくすことにより低コスト省
スペース化が可能であるメモリICを提供することであ
る。An object of the present invention is to provide a memory IC which can use an address map constructed at a software design stage in actual operation and can save space and cost by eliminating discontinuous areas. To provide.
【0009】[0009]
【課題を解決するための手段】前述の課題を解決するた
め、本発明によるメモリICは、次のような特徴的な構
成を採用している。In order to solve the above-mentioned problems, a memory IC according to the present invention employs the following characteristic configuration.
【0010】(1)多数の記憶アドレスを有するRAM
を含むメモリICにおいて、予め不要なアドレス領域を
読み飛ばす為の情報を記憶する不揮発メモリと、該不揮
発メモリからの前記情報を基に、入力されたアドレスに
対して再マッピングの計算を行うアドレス変換回路とを
備えるメモリIC。(1) RAM having a large number of storage addresses
In a memory IC including: a non-volatile memory for storing information for skipping an unnecessary address area in advance, and an address conversion for calculating remapping for an input address based on the information from the non-volatile memory A memory IC comprising a circuit.
【0011】(2)前記アドレス変換回路の前段にセレ
クタを更に配置し、アドレスバスからのアドレスを前記
セレクタを介して前記アドレス変換回路に入力する上記
(1)のメモリIC。(2) The memory IC according to (1), wherein a selector is further arranged at a stage preceding the address conversion circuit, and an address from an address bus is input to the address conversion circuit via the selector.
【0012】(3)前記不揮発メモリが記憶する前記情
報は、先頭アドレス、ブロックサイズ及び空きエリアを
含む上記(1)又は(2)のメモリIC。(3) The memory IC according to (1) or (2), wherein the information stored in the nonvolatile memory includes a start address, a block size, and a free area.
【0013】(4)前記アドレス変換回路は、アドレス
変換の為の情報を保持する先頭アドレスレジスタ、ブロ
ックサイズレジスタ及び空きエリアレジスタを含む上記
(3)のメモリIC。(4) The memory IC according to (3), wherein the address conversion circuit includes a head address register, a block size register, and a free area register for holding information for address conversion.
【0014】(5)前記不揮発メモリの前記情報は、外
部からコントロール信号とデータバス及びライト信号と
を用いて書込む上記(1)のメモリIC。(5) The memory IC according to (1), wherein the information in the nonvolatile memory is written from outside using a control signal, a data bus and a write signal.
【0015】(6)前記RAM及び前記不揮発メモリに
は、外部からデータバス、ライト信号及びリード信号が
共通接続される上記(1)のメモリIC。(6) The memory IC according to (1), wherein a data bus, a write signal, and a read signal are commonly connected to the RAM and the nonvolatile memory from the outside.
【0016】[0016]
【発明の実施の形態】以下、本発明によるメモリICの
好適実施形態例を添付図を参照して詳細に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of a memory IC according to the present invention will be described below in detail with reference to the accompanying drawings.
【0017】先ず、図1は、本発明によるメモリICの
好適実施形態例の内部構成を示すブロック図である。こ
のメモリICは、不揮発メモリ12、アドレス変換回路
11、セレクタ13及び内部RAM16より構成され
る。不揮発メモリ12は、不連続情報を保持する。アド
レス変換回路11は、上述した不連続情報に基づいてア
ドレスを変換する。内部RAM16は実際にデータが書
込まれる。FIG. 1 is a block diagram showing the internal configuration of a preferred embodiment of a memory IC according to the present invention. This memory IC includes a nonvolatile memory 12, an address conversion circuit 11, a selector 13, and an internal RAM 16. The nonvolatile memory 12 holds discontinuous information. The address conversion circuit 11 converts an address based on the discontinuity information described above. Data is actually written in the internal RAM 16.
【0018】不揮発メモリ12と内部RAM16には、
外部からデータバス17、ライト(書込み)信号19及
びリード(読出し)信号20が入出力される。また、不
揮発メモリ12には、コントロール信号15が入力され
る。セレクタ13には、アドレスバス10が接続され、
セレクト信号14がセレクタ13と不揮発メモリ12に
入力される。更に、セレクタ13の出力は、アドレス変
換回路11に入力されると共に内部アドレス21が不揮
発メモリ12に入力される。アドレス変換回路11の出
力は、内部RAM16のAddress Busに入力される。ア
ドレス変換回路11と不揮発メモリ12間は、ポーリン
グ信号22とデータバス23で接続されている。また、
内部RAM16には、外部からチップセレクト信号18
がCSB端子に入力される。The nonvolatile memory 12 and the internal RAM 16 include:
A data bus 17, a write (write) signal 19, and a read (read) signal 20 are input / output from outside. The control signal 15 is input to the nonvolatile memory 12. The address bus 10 is connected to the selector 13.
The select signal 14 is input to the selector 13 and the nonvolatile memory 12. Further, the output of the selector 13 is input to the address conversion circuit 11 and the internal address 21 is input to the nonvolatile memory 12. The output of the address conversion circuit 11 is input to the address bus of the internal RAM 16. The polling signal 22 and the data bus 23 are connected between the address conversion circuit 11 and the nonvolatile memory 12. Also,
The internal RAM 16 has an external chip select signal 18
Is input to the CSB terminal.
【0019】アドレス変換回路11の詳細ブロック図を
図4に示す。このアドレス変換回路11は、セレクタ4
2、46、先頭アドレスレジスタ43、ブロックサイズ
レジスタ44、空きエリア情報レジスタ45、減算回路
47、51、加算回路48、50、減算及びカウント回
路49、タイミング発生回路52、P/S(並列/直
列)変換シフトレジスタ53及び不揮発メモリ書込監視
57を有する。FIG. 4 is a detailed block diagram of the address conversion circuit 11. The address conversion circuit 11 includes a selector 4
2, 46, the start address register 43, the block size register 44, the free area information register 45, the subtraction circuits 47 and 51, the addition circuits 48 and 50, the subtraction and counting circuit 49, the timing generation circuit 52, the P / S (parallel / serial). ) A conversion shift register 53 and a non-volatile memory write monitor 57 are provided.
【0020】減算回路47、51には、入力アドレス4
0が入力される。タイミング発生回路52は、外部クロ
ック入力54、不揮発メモリ書込監視57からのトリガ
ー信号55、減算及びカウント回路49からのカウント
信号70を受取り、P/S変換クロック60、セレクト
信号61及びアドレス69を出力する。P/S変換シフ
トレジスタ53は、上述したタイミング発生回路52か
らのPS変換クロック60と不揮発メモリ12からの入
力56を入力とし、シリアル変換された信号62をセレ
クタ42に入力する。セレクタ42、46は、入力され
た信号62、60をタイミング発生回路52からのセレ
クタ信号61により選択して、レジスタ43、44、4
5に入力し、これらレジスタ43〜45は、夫々のレジ
スタにセットされた情報63〜65を減算回路47、4
8に入力する。また、空きエリア情報レジスタ45から
の情報65は、加算回路50に入力され、その出力であ
る空きエリア結果68を減算回路51に入力し、変換ア
ドレス41を出力する。The subtraction circuits 47 and 51 have the input address 4
0 is input. The timing generation circuit 52 receives the external clock input 54, the trigger signal 55 from the nonvolatile memory writing monitor 57, the count signal 70 from the subtraction and count circuit 49, and receives the P / S conversion clock 60, the select signal 61 and the address 69. Output. The P / S conversion shift register 53 receives the PS conversion clock 60 from the timing generation circuit 52 and the input 56 from the non-volatile memory 12 as inputs, and inputs a serially converted signal 62 to the selector 42. The selectors 42 and 46 select the input signals 62 and 60 based on the selector signal 61 from the timing generation circuit 52, and select the registers 43, 44 and
5, the registers 43 to 45 subtract the information 63 to 65 set in the respective registers into subtraction circuits 47 and 4.
Enter 8 The information 65 from the free area information register 45 is input to the adding circuit 50, and the output 65 of the free area result is input to the subtracting circuit 51, and the converted address 41 is output.
【0021】次に、図1及び図4に示すメモリICの動
作を説明する。初期設定動作として、外部制御装置(マ
イクロプロセッサ等)から不揮発メモリ12に対して各
情報を書込む必要がある。この動作は、セレクト信号1
4によりアドレスバス10を不揮発メモリ12に接続す
る。そして、コントロール信号15をアクティブにし、
データバス17とライト信号19を用いて先頭アドレ
ス、ブロックサイズ、空きエリア情報を書込む(図5参
照)。Next, the operation of the memory IC shown in FIGS. 1 and 4 will be described. As an initial setting operation, it is necessary to write each information to the nonvolatile memory 12 from an external control device (such as a microprocessor). This operation is performed when select signal 1
4 connects the address bus 10 to the nonvolatile memory 12. Then, the control signal 15 is activated,
The head address, block size, and free area information are written using the data bus 17 and the write signal 19 (see FIG. 5).
【0022】図2を参照すると、初期設定の動作は、不
揮発メモリ12に先頭アドレス書き込み、ブロック
サイズ書込み空きエリア情報書書込み、OKフラグ
レジスタ書込みの4ステップで行われる。また、ブロッ
クサイズが不均等な時は、ブロックサイズレジスタ44
及び空きエリア情報レジスタ45に書込む。Referring to FIG. 2, the initial setting operation is performed in four steps of writing a head address into the nonvolatile memory 12, writing a block size write free area information, and writing an OK flag register. When the block sizes are not uniform, the block size register 44
And writes it in the free area information register 45.
【0023】アドレス変換回路11の初期化に関して図
4を参照する。不揮発メモリ書込監視57がポーリング
信号58を使用して、不揮発メモリのOKフラグの書込
みを監視し、1が書き込まれたことがわかると、タイミ
ング発生回路52にトリガー信号55を出力する。トリ
ガー信号55のタイミングを基準にし、タイミング発生
回路52は外部クロック54に同期しP/S変換クロッ
ク60とセレクト信号61、及び不揮発メモリ12に対
してアドレス69を出力する。Referring to FIG. 4, the initialization of the address conversion circuit 11 will be described. The non-volatile memory write monitor 57 monitors the writing of the OK flag of the non-volatile memory using the polling signal 58, and outputs a trigger signal 55 to the timing generation circuit 52 when it is found that 1 has been written. Based on the timing of the trigger signal 55, the timing generation circuit 52 outputs an address 69 to the P / S conversion clock 60, the select signal 61, and the nonvolatile memory 12 in synchronization with the external clock 54.
【0024】P/S変換シフトレジスタ53でシリアル
信号に変換された信号62は、セレクタ信号61を元に
セレクタ42を介し、各レジスタ43〜45にセットさ
れる。The signal 62 converted to a serial signal by the P / S conversion shift register 53 is set in each of the registers 43 to 45 via the selector 42 based on the selector signal 61.
【0025】運用時についてであるが、図1を参照する
と、アドレスバス10を介してメモリICに入力された
信号は、セレクト信号14によりセレクタ13を介しア
ドレス変換回路11に入力される。そして、アドレス変
換回路11でアドレス再マッピングされた後、内部RA
M16に入力される。以下のアドレス変換方法を説明す
る。In operation, referring to FIG. 1, a signal input to the memory IC via the address bus 10 is input to the address conversion circuit 11 via the selector 13 by the select signal 14. Then, after the address is remapped by the address conversion circuit 11, the internal RA
It is input to M16. The following address conversion method will be described.
【0026】図4を参照すると、レジスタ43〜45に
セットされた各情報63〜65を使用して、減算回路4
7に入力アドレス40−先頭アドレス63の減算を行
う。加算回路48では、ブロックサイズ64+空きエリ
ア情報65の加算を行い、減算及びカウント回路49に
て出力信号66と67の減算を行い、入力アドレスがど
のブロックに該当するか判定する。信号66−信号67
の計算が正であれは、ブロックサイズ情報と空きエリア
情報のアドレスを変更する為に使用するカウント信号7
0を1プラスし、信号67は次のブロックへ変更する。
加算回路50は、空きエリア情報65+空きエリア結果
68の加算を行う。そして、信号66−信号67の結果
が負になるまでこの計算を行う。この結果が負になった
ときは、空きエリア結果68が読み飛ばすべきアドレス
になるので、入力アドレス40−空きエリア結果68を
行うことによりアドレス再マッピングされた変換アドレ
ス41が出力される。Referring to FIG. 4, the subtraction circuit 4 uses information 63 to 65 set in registers 43 to 45, respectively.
In step 7, subtraction of input address 40-head address 63 is performed. The adder circuit 48 adds the block size 64 + the free area information 65, subtracts the output signals 66 and 67 by the subtraction and count circuit 49, and determines which block the input address corresponds to. Signal 66-signal 67
Is positive, the count signal 7 used to change the addresses of the block size information and the free area information
The signal 67 is changed to the next block by adding 1 to 0.
The adding circuit 50 adds the free area information 65 + the free area result 68. This calculation is performed until the result of the signal 66-signal 67 becomes negative. When the result is negative, the empty area result 68 is the address to be skipped, so that by performing the input address 40-the empty area result 68, the converted address 41 whose address is remapped is output.
【0027】次に、図7を参照して、本発明によるメモ
リIC101を使用するシステムを説明する。このシス
テムは、本発明によるメモリIC101、CPU(中央
処理装置)100及び1対の周辺回路102、103よ
り構成される。CPU100、メモリIC101及び両
周辺回路102、103間はアドレスバス110、デー
タバス111、ライト信号112及びリード信号113
で相互に接続されている。また、メモリIC101と周
辺回路102間は、セレクト信号114及びコントロー
ル信号115で接続される。他方、メモリIC101と
周辺回路103との間は、チップセレクト信号116で
接続されている。Next, a system using the memory IC 101 according to the present invention will be described with reference to FIG. This system includes a memory IC 101, a CPU (central processing unit) 100, and a pair of peripheral circuits 102, 103 according to the present invention. An address bus 110, a data bus 111, a write signal 112, and a read signal 113 are provided between the CPU 100, the memory IC 101, and the peripheral circuits 102 and 103.
Connected to each other. The memory IC 101 and the peripheral circuit 102 are connected by a select signal 114 and a control signal 115. On the other hand, the memory IC 101 and the peripheral circuit 103 are connected by a chip select signal 116.
【0028】図6は、本発明のメモリICによるアドレ
スマップの例を示す。一例として512Kビットのアド
レス空間を3つのブロックに分けて使用する。図6
(A)に示す如く、ブロック0のサイズは30000、
空きエリアは10000、ブロック1のサイズは400
00、空きエリア10000、ブロック2のサイズは1
0000、空きエリア2は60000となっている。FIG. 6 shows an example of an address map by the memory IC of the present invention. As an example, a 512 Kbit address space is divided into three blocks and used. FIG.
As shown in (A), the size of block 0 is 30,000,
Empty area is 10000, block 1 size is 400
00, free area 10000, block 2 size is 1
0000 and the empty area 2 are 60000.
【0029】図6及び図7を参照して動作を説明する。
本発明によるメモリIC101は、初期設定モードと、
運用モードの2つのモードで動作する。The operation will be described with reference to FIGS.
The memory IC 101 according to the present invention includes an initialization mode,
It operates in two modes, the operation mode.
【0030】初期設定モードでは、CPU100からメ
モリIC101内の不揮発メモリ(図1の12)に対し
て情報を設定する。図6のアドレスマップを用いると、
先頭アドレスは0000h、ブロック0のサイズは10
000h、空きエリア0のサイズは10000h、空き
エリア1のサイズは10000h、空きエリア2のサイ
ズは60000hであることが判る。この各情報を図2
のフローチャート通りに不揮発メモリ12に書込む。即
ち、ステップS1で設定したことがない、若しくは、再
設定するか否か判断する。YESの場合には、ステップ
S2へ進み、NOの場合には終了する。ステップS2で
は、先頭アドレスを不揮発メモリ0番地に書込む。次に
ステップS3で、ブロックサイズ空きエリアは均一か否
か判断する。YES(均一)の場合には、ステップS4
へ進み、ブロックサイズ(均一)を不揮発メモリに書込
む。次に空きエリア(均一)を不揮発メモリに書込み
(ステップS5)、後述するステップS9へ進む。In the initial setting mode, information is set from the CPU 100 to the nonvolatile memory (12 in FIG. 1) in the memory IC 101. Using the address map of FIG. 6,
The start address is 0000h and the size of block 0 is 10.
000h, the size of the free area 0 is 10000h, the size of the free area 1 is 10,000h, and the size of the free area 2 is 60,000h. Fig. 2
Is written in the nonvolatile memory 12 as shown in the flowchart of FIG. That is, it is determined whether the setting has not been made in step S1 or whether the setting should be reset. If YES, the process proceeds to step S2, and if NO, the process ends. In step S2, the head address is written to address 0 of the nonvolatile memory. Next, in step S3, it is determined whether the free area of the block size is uniform. If YES (uniform), step S4
Then, the block size (uniform) is written to the nonvolatile memory. Next, the empty area (uniform) is written in the nonvolatile memory (step S5), and the process proceeds to step S9 described later.
【0031】次に、ステップS3でNO、即ち不均一と判
断されると、ステップS6へ進み、ブロックサイズ及び
空きエリア(均一)に0を書込む。次にステップS7
で、ブロックサイズ(n)を不揮発メモリに書込む。そ
の後、ステップS8で、空きエリア情報(n)を不揮発
メモリに書込む。これらステップS7及びS8をn回ル
ープして最後にステップS9で、書込みOKフラグを不
揮発メモリに書込む。Next, if NO in step S3, that is, if it is determined to be non-uniform, the process proceeds to step S6, where 0 is written in the block size and the empty area (uniform). Next, step S7
Then, the block size (n) is written in the nonvolatile memory. Then, in step S8, the free area information (n) is written in the nonvolatile memory. Steps S7 and S8 are looped n times, and finally, in step S9, a write OK flag is written in the nonvolatile memory.
【0032】また、図5に示す如く、情報を全て書込ん
だ後に書込みOKビットを1にするべく不揮発メモリの
OKビットレジスタに1を書込む。この書込みを図4の
不揮発メモリ書込監視57が監視している。書込み後、
タイミング発生回路52は、不揮発メモリに対してアド
レス69を発生し、それと同時にセレクト信号61とP
/Sクロック60を発生することにより、各レジスタ4
3〜45に各情報がセットされる。再度設定するとき
は、同様な動作を行う必要がある。一度設定した情報を
電源再投入した後でも使用することができる。その場
合、不揮発メモリ書込監視57が電源投入後にOKフラ
グレジスタに1が書かれているか否かで自動設定を行う
か否か判断する。As shown in FIG. 5, after writing all the information, 1 is written to the OK bit register of the nonvolatile memory in order to set the write OK bit to 1. This writing is monitored by the nonvolatile memory writing monitor 57 in FIG. After writing,
The timing generation circuit 52 generates an address 69 for the nonvolatile memory, and at the same time, the select signal 61 and the P signal
By generating the / S clock 60, each register 4
Each information is set in 3-45. When setting again, the same operation needs to be performed. The information set once can be used even after the power is turned on again. In this case, the nonvolatile memory write monitor 57 determines whether or not to perform the automatic setting based on whether or not 1 is written in the OK flag register after the power is turned on.
【0033】次に、本発明によるメモリICに6000
0hを入力したときの変換動作を説明する(図3のフロ
ーチャート参照)。Next, the memory IC according to the present invention has
The conversion operation when 0h is input will be described (see the flowchart of FIG. 3).
【0034】図3は、本発明のメモリICに入力される
アドレスをアドレス変換回路11を用いて変換する動作
を説明する為のフローチャートを示す。先ず、図3中に
付記する如く、n、a及びAtempは、夫々ブロック計算
用テンポラリーレジスタ、エリア計算用テンポラリーレ
ジスタ及び空き領域計算用テンポラリーレジスタの内容
である。また、Size(n)及びArea(n)は、夫々ブロ
ックサイズ及び空きエリア情報である。FIG. 3 is a flowchart for explaining an operation of converting an address input to the memory IC of the present invention by using the address conversion circuit 11. First, as additionally shown in FIG. 3, n, a, and Atemp are the contents of a block calculation temporary register, an area calculation temporary register, and a free area calculation temporary register, respectively. Size (n) and Area (n) are block size and free area information, respectively.
【0035】ステップS10で各計算用レジスタの初期
化を行う。即ち、n=0、a=0及びAtemp=0とす
る。続いて、ステップS11でアドレスを入力し、(入
力アドレス−先頭アドレス)の計算を行う。次に、ステ
ップS12で(入力アドレス−a)が正(>0)か否か
判断する。Yesの場合には、ステップS13へ進み、
a+Size(n)+Area(n)を計算して、その結果をa
とする。次に、ステップS14でnを1つインクリメン
トして、再びステップS12へ戻る。Noの場合には、
ステップS15へ進み、入力アドレスが0か否か判断す
る。Yesの場合には、変換を終了し、Noの場合には
ステップS16へ進み、n−1を行い、結果をnに代入
する。その後、ステップS17でnが正か否か判断す
る。Yesの場合、ステップS18へ進み、Atemp+Are
a(n)を計算し、その結果をAtempとする。その後、ス
テップS19へ進んでnを1つデクリメントした後、ス
テップS17へ戻る。他方、Noの場合には、ステップ
S20へ進み、(入力アドレス−Atemp)の計算を行っ
て終了する。In step S10, each calculation register is initialized. That is, n = 0, a = 0, and Atemp = 0. Subsequently, in step S11, an address is input, and (input address-head address) is calculated. Next, in step S12, it is determined whether (input address-a) is correct (> 0). In the case of Yes, the process proceeds to step S13,
Calculate a + Size (n) + Area (n) and calculate the result as a
And Next, n is incremented by one in step S14, and the process returns to step S12. In the case of No,
Proceeding to step S15, it is determined whether the input address is 0. In the case of Yes, the conversion ends, and in the case of No, the process proceeds to step S16, where n-1 is performed, and the result is substituted for n. Thereafter, it is determined in step S17 whether n is positive. In the case of Yes, the process proceeds to step S18, and Atemp + Are
a (n) is calculated, and the result is set to Atemp. Thereafter, the process proceeds to step S19, where n is decremented by one, and then returns to step S17. On the other hand, in the case of No, the process proceeds to step S20, where (input address-Atemp) is calculated, and the process ends.
【0036】n、a、Atempの各計算用レジスタに0を
代入して初期化する(A)。先頭アドレスレジスタ43
から0000hを取込み、入力アドレス−先頭アドレス
の演算を行う(B)。ここで、入力アドレス−エリア計
算用テンポラリレジスタの計算を行なう(C)。その結
果は、正になる為に、計算用テンポラリレジスタa+ブ
ロックサイズ30000h+空きエリア10000hの
計算を行い、これをaとして(D)、nを1つカウント
アップする(E)。再度入力アドレス−エリア計算用テ
ンポラリレジスタaの計算が0より上か判断する。60
000−40000=20000であり、まだ正である
ことが判る(F)。よって、エリア計算用テンポラリレ
ジスタa+ブロック1のサイズ10000h+空きエリ
ア1のサイズ10000hを計算し、これをaとする
(G)。そして、nを1つインクリメントする(H)。Initialization is performed by substituting 0 into each of the calculation registers n, a, and Atemp (A). Start address register 43
From the input address, and the input address-head address is calculated (B). Here, the input address-area calculation temporary register is calculated (C). In order to make the result positive, the calculation of the calculation temporary register a + block size 30000h + free area 10000h is performed, and this is set as a (D), and n is counted up by 1 (E). It is determined again whether the calculation of the temporary register a for input address-area calculation is above 0. 60
000-40000 = 20,000, and it is found that it is still positive (F). Therefore, the area calculation temporary register a + the block 1 size 10000h + the free area 1 size 10000h is calculated, and this is set to a (G). Then, n is incremented by one (H).
【0037】次に、入力アドレス−エリア計算用テンポ
ラリレジスタaの計算を行うが、この計算で60000
−60000となり条件を満たさない(I)。よって、
次の条件に移る。入力アドレスは0ではないので
(J)、n−1の計算を行い、それをnとする(k)。
そして、ブロック計算用テンポラリレジスタn>0の判
定を行う(L)。現在n=1であるので、空き領域計算
用テンポラリレジスタAtemp+空きエリア(1)の計算
を行い、その結果をnとして(N)、再度n>0の判定
を行う(0)。ここで、nは現在0であるので条件を満
たさない。よって入力アドレス60000hからAtemp
の値10000hを引いたものが再マッピング後のアド
レスとして出力される(P)。上述の説明を式で示すと
次のとおりである。 n=0、a=0、Atemp=0…(A) 60000−0=60000…(B) 60000−0>の結果は正であり、以下の式を計算する…(C) 0+30000+10000=40000→aに代入…(D) 0+1=0→hに代入…(E) 60000−40000>0の結果は正であり、以下の式を計算する…(F) 40000+10000+10000=60000→aに代入…(G) 1+1=2→nに代入…(H) 60000−60000=0であり、条件を満たさない…(I) 60000≠0となるので次の条件に進む。…(J) n−1=2−1−1→nに代入…(K) n=1>0なので以下の式を計算する。…(L) 0+10000=10000→Atempに代入…(M) n−1=0→nに代入…(N) n>0の判定はNOとなる。…(O) 60000−10000=50000…出力アドレス…(P)Next, the input address-area calculation temporary register a is calculated.
−60000, which does not satisfy the condition (I). Therefore,
Move on to the next condition. Since the input address is not 0 (J), the calculation of n-1 is performed and it is set as n (k).
Then, a determination is made that the block calculation temporary register n> 0 (L). Since n is currently 1, the calculation of the free area calculation temporary register Atemp + the free area (1) is performed, the result is set to n (N), and the determination of n> 0 is performed again (0). Here, since n is currently 0, the condition is not satisfied. Therefore, from the input address 60000h to Atemp
The value obtained by subtracting the value of 10000h is output as an address after remapping (P). The above description is expressed by the following equations. n = 0, a = 0, Atemp = 0 ... (A) 60000-0 = 60000 ... (B) The result of 60000-0> is positive, and the following formula is calculated ... (C) 0 + 30000 + 10000 = 40000 → a (D) 0 + 1 = 0 → h is substituted (E) The result of 60000-40000> 0 is positive, and the following formula is calculated ... (F) 40000 + 10000 + 10000 = 60000 → a is substituted (G) Substituting for 1 + 1 = 2 → n ... (H) 60000-60000 = 0, not satisfying the condition ... (I) Since 60000 ≠ 0, go to the next condition. ... (J) Substitute for n-1 = 2-1-1 → n ... (K) Since n = 1> 0, the following equation is calculated. .. (L) 0 + 10000 = 10000 → substituted into Atemp (M) n−1 = 0 → substituted into n (N) The determination of n> 0 is NO. ... (O) 60000-10000 = 50000 ... Output address ... (P)
【0038】以上、本発明によるメモリICの好適実施
形態例を説明したが、これは単なる例示にすぎず、特定
用途に応じて種々の変形変更が可能であること勿論であ
る。Although the preferred embodiment of the memory IC according to the present invention has been described above, this is merely an example, and it goes without saying that various modifications can be made in accordance with the specific application.
【0039】[0039]
【発明の効果】上述の説明から理解される如く、本発明
のメモリICによると、不連続なアドレス領域をなくす
ことにより、限られたメモリ資源を有効活用することが
でき、且つソフトウエア設計に柔軟に対応することがで
きる。その理由は、不揮発メモリに設定した情報のとお
りにアドレスの再マッピングが行われ、不要なメモリ空
間を読み飛ばし、無駄なメモリ空間を省くことができる
からである。As can be understood from the above description, according to the memory IC of the present invention, by eliminating discontinuous address areas, limited memory resources can be effectively used and software design can be improved. It can respond flexibly. The reason is that addresses are remapped according to the information set in the non-volatile memory, unnecessary memory space can be skipped, and useless memory space can be omitted.
【図1】本発明によるメモリICの好適実施形態例の内
部ブロック図である。FIG. 1 is an internal block diagram of a preferred embodiment of a memory IC according to the present invention.
【図2】図1に示すメモリICの初期設定で不揮発メモ
リに情報を設定するフローチャートである。FIG. 2 is a flowchart for setting information in a non-volatile memory in the initial setting of the memory IC shown in FIG. 1;
【図3】図1に示すメモリICに入力されたアドレスの
変換動作のフローチャートである。FIG. 3 is a flowchart of an operation for converting an address input to the memory IC shown in FIG. 1;
【図4】図1に示すメモリICを構成するアドレス変換
回路の詳細内部ブロック図である。FIG. 4 is a detailed internal block diagram of an address conversion circuit constituting the memory IC shown in FIG. 1;
【図5】図1に示すメモリICを構成する不揮発メモリ
の内部アドレス空間マップを示す図である。FIG. 5 is a diagram showing an internal address space map of a nonvolatile memory included in the memory IC shown in FIG. 1;
【図6】アドレスマップの例を示し(A)は従来例であ
り、(B)は本発明により変換された例を示す図であ
る。FIG. 6 shows an example of an address map, (A) is a conventional example, and (B) is a diagram showing an example converted by the present invention.
【図7】図1に示すメモリICを使用するシステムの構
成図である。FIG. 7 is a configuration diagram of a system using the memory IC shown in FIG. 1;
10 アドレスバス 11 アドレス変換回路 12 不揮発メモリ 13 セレクタ 15 コントロール信号 16 RAM 17 データバス 19 ライト信号 20 リード信号 43 先頭アドレスレジスタ 44 ブロックサイズレジスタ 45 空きエリア情報レジスタ Reference Signs List 10 address bus 11 address conversion circuit 12 nonvolatile memory 13 selector 15 control signal 16 RAM 17 data bus 19 write signal 20 read signal 43 start address register 44 block size register 45 free area information register
Claims (6)
メモリICにおいて、予め不要なアドレス領域を読み飛
ばす為の情報を記憶する不揮発メモリと、該不揮発メモ
リからの前記情報を基に、入力されたアドレスに対して
再マッピングの計算を行うアドレス変換回路とを備える
ことを特徴とするメモリIC。1. A memory IC including a RAM having a large number of storage addresses, a nonvolatile memory for storing information for skipping an unnecessary address area in advance, and an input based on the information from the nonvolatile memory. A memory IC, comprising: an address conversion circuit that performs a remapping calculation on an address.
更に配置し、アドレスバスからのアドレスを前記セレク
タを介して前記アドレス変換回路に入力することを特徴
とする請求項1に記載のメモリIC。2. The memory IC according to claim 1, wherein a selector is further arranged at a stage preceding the address conversion circuit, and an address from an address bus is input to the address conversion circuit via the selector.
先頭アドレス、ブロックサイズ及び空きエリアを含むこ
とを特徴とする請求項1又は2に記載のメモリIC。3. The information stored in the nonvolatile memory is:
3. The memory IC according to claim 1, comprising a start address, a block size, and a free area.
為の情報を保持する先頭アドレスレジスタ、ブロックサ
イズレジスタ及び空きエリアレジスタを含むことを特徴
とする請求項3に記載のメモリIC。4. The memory IC according to claim 3, wherein said address conversion circuit includes a head address register, a block size register, and a free area register for holding information for address conversion.
コントロール信号とデータバス及びライト信号とを用い
て書込むことを特徴とする請求項1に記載のメモリI
C。5. The memory according to claim 1, wherein said information in said nonvolatile memory is written from outside using a control signal, a data bus and a write signal.
C.
部からデータバス、ライト信号及びリード信号が共通接
続されることを特徴とする請求項1に記載のメモリI
C。6. The memory I according to claim 1, wherein a data bus, a write signal, and a read signal are externally connected to the RAM and the nonvolatile memory in common.
C.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11162180A JP2000347929A (en) | 1999-06-09 | 1999-06-09 | Memory ic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11162180A JP2000347929A (en) | 1999-06-09 | 1999-06-09 | Memory ic |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2000347929A true JP2000347929A (en) | 2000-12-15 |
Family
ID=15749543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11162180A Pending JP2000347929A (en) | 1999-06-09 | 1999-06-09 | Memory ic |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2000347929A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002056183A1 (en) * | 2001-01-11 | 2002-07-18 | Flasys Corporation | Semiconductor memory device and method for accessing the same |
JP2005514845A (en) * | 2002-01-11 | 2005-05-19 | チ.エンネ.エッルレ. コンシグリオ ナツオナレ デレ リチェルチェ | Electromagnetic radiation detector especially for radio astronomy |
JP2007041795A (en) * | 2005-08-02 | 2007-02-15 | Ricoh Co Ltd | Computer system |
US7426625B2 (en) | 2004-03-31 | 2008-09-16 | International Business Machines Corporation | Data processing system and computer program product for support of system memory addresses with holes |
-
1999
- 1999-06-09 JP JP11162180A patent/JP2000347929A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002056183A1 (en) * | 2001-01-11 | 2002-07-18 | Flasys Corporation | Semiconductor memory device and method for accessing the same |
JP2005514845A (en) * | 2002-01-11 | 2005-05-19 | チ.エンネ.エッルレ. コンシグリオ ナツオナレ デレ リチェルチェ | Electromagnetic radiation detector especially for radio astronomy |
US7426625B2 (en) | 2004-03-31 | 2008-09-16 | International Business Machines Corporation | Data processing system and computer program product for support of system memory addresses with holes |
JP2007041795A (en) * | 2005-08-02 | 2007-02-15 | Ricoh Co Ltd | Computer system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7171526B2 (en) | Memory controller useable in a data processing system | |
US5079693A (en) | Bidirectional FIFO buffer having reread and rewrite means | |
US6341318B1 (en) | DMA data streaming | |
US6915413B2 (en) | Micro-controller for reading out compressed instruction code and program memory for compressing instruction code and storing therein | |
US20090138687A1 (en) | Memory device having data processing function | |
US6272583B1 (en) | Microprocessor having built-in DRAM and internal data transfer paths wider and faster than independent external transfer paths | |
US6735643B2 (en) | Electronic card with dynamic memory allocation management | |
US20070047308A1 (en) | Memory controller, flash memory system and control method for flash memory | |
JP4855864B2 (en) | Direct memory access controller | |
US5847997A (en) | PC card | |
JP2000347929A (en) | Memory ic | |
US6813647B2 (en) | Microcomputer system reading data from secondary storage medium when receiving upper address from outside and writing data to primary storage medium | |
US6760790B2 (en) | Direct access controller | |
JP2002278836A (en) | Cache memory | |
JP3618249B2 (en) | Data transfer device | |
JP2818418B2 (en) | Semiconductor storage device | |
US20070094460A1 (en) | DRAM control circuit | |
US20090235003A1 (en) | Memory control device and memory control method | |
JP2605656B2 (en) | One-chip memory device | |
US7249226B2 (en) | Semiconductor system and memory sharing method | |
US20030051106A1 (en) | Multi-memory architecture and access controller therefor | |
JPH07334420A (en) | Extended memory control circuit | |
RU2212715C2 (en) | Associative memory device | |
KR100192776B1 (en) | Memory sharing circuit | |
US7409479B2 (en) | Semiconductor integrated circuit |