JPH01226052A - Memory controller - Google Patents

Memory controller

Info

Publication number
JPH01226052A
JPH01226052A JP5295388A JP5295388A JPH01226052A JP H01226052 A JPH01226052 A JP H01226052A JP 5295388 A JP5295388 A JP 5295388A JP 5295388 A JP5295388 A JP 5295388A JP H01226052 A JPH01226052 A JP H01226052A
Authority
JP
Japan
Prior art keywords
address
output
selector
space
rom
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
JP5295388A
Other languages
Japanese (ja)
Inventor
Toshio Kamata
寿夫 鎌田
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP5295388A priority Critical patent/JPH01226052A/en
Publication of JPH01226052A publication Critical patent/JPH01226052A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To access other divided space data during the execution of a program in a bank ROM space by providing 1st and 2nd address registers so that two divided areas can be accessed. CONSTITUTION:In case of directly specifying only a fixed address space in a ROM 26 by normal access, a selector 23 is controlled so as to select address data in an address bus 22 and apply the data to the ROM 26. In case of making access to one divided area in order to read out data simply from the ROM 26, the selector 23 accesses the divided area in accordance with the upper two bits of an address register 27. In case of making access to another divided space on the way of making access to one divided space of the ROM 26, the combination of outputs of the address register 27 and the address bus 22 and the independent output state of the output of an address register 28 are switched by the selector 23.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、マイクロプロセッサの通常のアドレスデー
タで指定できる範囲以上の空間を有したROMを効率的
に制御するメモリ制御装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention provides a memory control device that efficiently controls a ROM having a space larger than the range that can be specified by normal address data of a microprocessor. Regarding.

(従来の技術) 半導体メモリの集積化技術の進歩により、大規模のメモ
リを構成することが可能になっている。
(Prior Art) Advances in semiconductor memory integration technology have made it possible to construct large-scale memories.

このメモリの容量は、マイクロプロセッサが通常アクセ
スできるメモリ空間よりも大きなものである。このため
に、マイクロプロセッサのプログラムをメモリに格納し
て用いるとしても、未使用空間を生じることになる。
This memory capacity is larger than the memory space normally accessible by a microprocessor. For this reason, even if the microprocessor program is stored and used in memory, unused space will be generated.

そこで、未使用空間を有効に活用するために。Therefore, in order to make effective use of unused space.

第3図に示すような制御装置が従来用いられている。即
ち、マイクロプロセッサ11のアドレスバス12とデー
タバス13とはROM14に接続されている。アドレス
バス12は更にアドレスデコーダ15にも接続され、デ
ータバス13はアドレスレジスタ16にも接続されてい
る。そして、アドレスデコーダ15のデコード出力は、
ROM14のチップイネーブル信号として使用され、ま
たアドレスレジスタ16の出力は、セレクタ17を介し
てROM14の上位アドレスを指定するのに利用される
。セレクタ17は、アドレスバス12からの上位アドレ
スまたはアドレスレジスタ16からの上位アドレスのい
ずれか一方を選択してROM14に与える。
A control device as shown in FIG. 3 has been conventionally used. That is, the address bus 12 and data bus 13 of the microprocessor 11 are connected to the ROM 14. The address bus 12 is further connected to an address decoder 15 and the data bus 13 is also connected to an address register 16. The decoded output of the address decoder 15 is
It is used as a chip enable signal for the ROM 14, and the output of the address register 16 is used to specify the upper address of the ROM 14 via the selector 17. The selector 17 selects either the upper address from the address bus 12 or the upper address from the address register 16 and supplies it to the ROM 14.

上記マイクロプロセッサ11が想定し得るアドレス空間
は、第4図に示すように固定のアドレス空間Aと、バン
クエリアBである。
The address spaces that the microprocessor 11 can assume are a fixed address space A and a bank area B, as shown in FIG.

これに対して実際のROMI 1のメモリ空間は、固定
アドレス空間Allと、バンクエリアとしての分割空間
A12. A13. A14がある。そして分割窓Iu
l A 12. A 13. A 14はそれぞれ固定
アドレス空間と同様な容量である。
On the other hand, the actual memory space of ROMI 1 consists of a fixed address space All and a divided space A12 . A13. There is A14. and split window Iu
l A 12. A13. Each of A14 has a capacity similar to that of a fixed address space.

上記ROM14のアドレス空間は、マクロプロセッサ1
1が通常に直接指定できるアドレスは、固定アドレス空
間Allの範囲である。この固定アドレス空間Allの
アクセスのみで用が足りる場合には、アドレスバス12
を通じて固定アドレス空間Allの下位アドレスが指定
され、上位アドレスはセレクタ17を通じて指定される
。ROM14からのデータはデータバス13を通じてマ
イクロプロセッサ11に読取られる。
The address space of the ROM 14 is the macro processor 1.
Addresses that 1 can normally specify directly are within the fixed address space All. If accessing only this fixed address space All is sufficient, the address bus 12
The lower address of the fixed address space All is specified through the selector 17, and the upper address is specified through the selector 17. Data from ROM 14 is read by microprocessor 11 via data bus 13.

ROM14は、更に、固定アドレス空間Allと同様な
複数の分割空間A12. A13. Al1を有し、マ
イクロプロセッサ11の直接アドレス指定容量よりも大
きな容量である。
The ROM 14 further includes a plurality of divided spaces A12 . A13. Al1, which has a larger capacity than the direct addressing capacity of the microprocessor 11.

そこで、これらの分割空間A12. A13. Al1
をアクセスする場合には、アドレスデコーダ15により
セレクタ17を切換え、セレクタ17にアドレスレジス
タ16の出力を選択させる。そして、アドレスレジスタ
16にデータバス13を介して、アドレスの上位2ビツ
トを与える。これによりアドレスバス12からのアドレ
スデータはROM14空間の下位アドレスを、またアド
レスレジスタ16の出力が上位アドレスを指定する。ア
ドレスレジスタ16の出力は、その内容に応じて分割空
間A12. A13. Al1のいずれかを指定すると
ともに上位アドレスを指定する。
Therefore, these divided spaces A12. A13. Al1
When accessing the address register 16, the address decoder 15 switches the selector 17, causing the selector 17 to select the output of the address register 16. Then, the upper two bits of the address are given to the address register 16 via the data bus 13. As a result, the address data from the address bus 12 specifies a lower address in the ROM 14 space, and the output of the address register 16 specifies an upper address. The output of the address register 16 is divided into divided spaces A12, . A13. In addition to specifying one of Al1, the upper address is also specified.

(発明が解決しようとする課題) 上記従来のメモリ制御装置は、ROM14の固定アドレ
ス空間のプログラムデータを読出している途中で、分割
空間のデータを必要とした場合に上述した制御が得られ
る。
(Problems to be Solved by the Invention) The conventional memory control device described above can obtain the above-described control when data in a divided space is required while reading program data in a fixed address space of the ROM 14.

しかしながら、従来の装置は、ROM14の固定アドレ
ス空間をアクセスしてプログラムデータを読取り実行し
ている途中に、分割空間の1つをアクセスして必要なデ
ータを読み出すという機能に限定されている。このよう
な機能に限定されると、例えば1つの分割空間にプログ
ラムデータが格納されており、他の分割空間にそのプロ
グラム実行に必要なデータが格納されているような場合
、メモリアクセスが複雑になる。つまり、固定アドレス
空間と、1つの分割空間の切換えにおいては、アドレス
レジスタの出力をセレクタを介して出力するか否かの制
御でよいが、分割空間と他の分割空間との切換えを行な
う場合には、その都度アドレスレジスタ16のデータを
一回退避させて、他方の分割空間の上位アドレスを送ら
なければならず、アクセス効率が悪い。
However, the conventional device is limited to the function of accessing one of the divided spaces and reading necessary data while accessing the fixed address space of the ROM 14 to read and execute program data. If this function is limited, for example, if program data is stored in one partitioned space and data necessary for program execution is stored in another partitioned space, memory access becomes complicated. Become. In other words, when switching between a fixed address space and one divided space, it is sufficient to control whether or not the output of the address register is output via the selector, but when switching between a divided space and another divided space, In this case, the data in the address register 16 must be saved once and the upper address of the other divided space must be sent each time, resulting in poor access efficiency.

そこでこの発明は、マイクロプロセッサにより直接アド
レス指定できる空間よりも更に多(の空間を有したRO
Mをアドレス制御する場合、制御の自由度が拡大されか
つ、アクセス効率のよいメモリ制御装置を提供すること
を目的とする。
Therefore, the present invention proposes an RO which has more space than can be directly addressed by a microprocessor.
It is an object of the present invention to provide a memory control device in which the degree of freedom of control is expanded and access efficiency is high when performing address control on M.

[発明の構成] (課題を解決するための手段) この発明は、マイクロプロセッサからのアドレスデータ
により直接指定できる固定アドレス空間と、このアドレ
ス空間の他に、該アドレス空間と同様な容量の複数の分
割空間を有したROMをアクセスする場合、次の手段を
備える。
[Structure of the Invention] (Means for Solving the Problems) The present invention provides a fixed address space that can be directly designated by address data from a microprocessor, and a plurality of spaces having the same capacity as the address space in addition to this address space. When accessing a ROM having a divided space, the following means are provided.

すなわち、第1.第2のアドレスレジスタにマイクロプ
ロセッサのデータバスを接続し、セレクタに、第1.第
2のアドレスレジスタの出力及び前記マイクロプロセッ
サのアドレスバス出力が入力するように構成する。この
セレクタは、前記アドレスバス出力の単独出力状態、前
記アドレスバス出力と前記第1のアドレスレジスタの出
力との組合わせ出力状態、前記第2のアドレスレジスタ
出力の単独出力状態の3つの状態を選択的にとり得るこ
とができる。この状態は、アドレスデコーダにより制御
されるもので、前記マイクロプロセッサからの入力出力
命令及びアドレスデータが供給され、この入力情報によ
り、入力出力命令が有るときには前記第2のアドレスレ
ジスタ出力の単独出力状態に前記セレクタを制御し、前
記入力出力命令が無いときには前記アドレスデータの内
容に応じて、前記アドレスバス出力の単独出力状態に前
記セレクタを制御するか、又は、前記アドレスバス出力
と前記第1のアドレスレジスタ出力との組合わせ出力状
態に前記セレクタを制御するものである。
That is, 1st. The data bus of the microprocessor is connected to the second address register, and the first address register is connected to the selector. The configuration is such that the output of the second address register and the address bus output of the microprocessor are input. This selector selects three states: an individual output state of the address bus output, a combination output state of the address bus output and the output of the first address register, and an individual output state of the second address register output. It can be taken as a target. This state is controlled by the address decoder, which is supplied with input/output commands and address data from the microprocessor, and based on this input information, when there is an input/output command, the second address register output is in a single output state. and when there is no input/output command, the selector is controlled to output only the address bus output, or the address bus output and the first The selector is controlled to an output state in combination with the address register output.

(作用) 上記の手段により、本発明では、第1、第2のアドレス
レジスタを備え、2つの分割領域をアクセスできるアド
レスを用意することができる。
(Function) With the above means, the present invention can provide addresses that can access the two divided areas by providing the first and second address registers.

そして、いずれの分割領域をアクセスするかは、マイク
ロプロセッサの入力出力命令を利用することにより、プ
ログラムデータ要求か通常データ要求かを認識できるの
で容易にアクセス領域を切換えることができる。
By using the input/output command of the microprocessor, it is possible to recognize which divided area is to be accessed, whether it is a program data request or a normal data request, so that the access area can be easily switched.

(実施例) 以下この発明の実施例を図面を参照して説明する。(Example) Embodiments of the present invention will be described below with reference to the drawings.

第1図はこの発明の一実施例であり、マイクロプロセッ
サ21のアドレスバス22は、セレクタ23及びアドレ
スデコーダ24に接続される。
FIG. 1 shows one embodiment of the present invention, in which an address bus 22 of a microprocessor 21 is connected to a selector 23 and an address decoder 24. In FIG.

またマイクロプロセッサ21とROM26間には、デー
タバス25が接続され、このデータバス25は第1.第
2のアドレスレジスタ27.28にも接続される。さら
にマイクロプロセッサ21の入力出力命令Xiは、アド
レスデコーダ24に供給されている。アドレスデコーダ
24は、入力出力命令X1とアドレスバス22からのア
ドレスデータの内容に応じて、チップイネーブル信号X
2を出力するとともに、2ビツトのセレクタ制御信号X
3を出力する。チップイネーブル信号X2は、ROM2
6のチップ選択状態、または、これ以外のROMを制御
状態にする。
Further, a data bus 25 is connected between the microprocessor 21 and the ROM 26, and this data bus 25 is connected to the first . Also connected to the second address register 27.28. Further, input/output instructions Xi of the microprocessor 21 are supplied to an address decoder 24. The address decoder 24 receives a chip enable signal
2 and outputs a 2-bit selector control signal
Outputs 3. Chip enable signal X2 is ROM2
6 is in the chip selection state, or other ROMs are put in the control state.

セレクタ23には、第1、第2のアドレスレジスタ27
.28の出力及びアドレスバス22からのアドレスデー
タが供給されている。
The selector 23 includes first and second address registers 27.
.. 28 and address data from the address bus 22 are supplied.

ここで、セレクタ23は、セレクタ制御信号X3の内容
に応じて、アドレスバス22からのアドレスデータを単
独選択した状態、又は、アドレスバス22からのアドレ
スデータと第1のアドレスレジスタ27の出力を組合わ
せて選択した状態、又は、第2のアドレスレジスタ28
の出力を単独に選択した状態の3つの状態を取ることが
できる。
Here, the selector 23 selects the address data from the address bus 22 alone, or combines the address data from the address bus 22 and the output of the first address register 27, depending on the contents of the selector control signal X3. The selected state or the second address register 28
It is possible to take three states in which the output of is selected independently.

セレクタ23で選択導出されたアドレスデータは、RO
M26のアドレス指定部に供給される。
The address data selected and derived by the selector 23 is
It is supplied to the addressing section of M26.

本実施例は上記のように構成される。This embodiment is configured as described above.

(1)ROM26の固定アドレス空間のみを通常のアク
セスで直接指定する場合には、セレクタ制御信号X3は
、セレクタ23がアドレスバス22のアドレスデータを
選択してROM26に与えるように制御する。セレクタ
制御信号X3はこの時“00”であり、これは入力出力
命令X1が例えば“Oaであるからである。
(1) When only the fixed address space of the ROM 26 is directly designated by normal access, the selector control signal X3 controls the selector 23 to select address data on the address bus 22 and provide it to the ROM 26. The selector control signal X3 is "00" at this time, because the input/output command X1 is, for example, "Oa".

(2)次に、ROM26から単にデータを読出すために
の1つの分割領域をアクセスする場合には、入力出力命
令X1は′0”であるが、16ビツトのアドレスのうち
、例えば上記2ビツトが“10”または01”または′
11”となる。このときは、セレクタ23の出力はその
上位2ビツトの“10”または“01”または11“に
応じてROM26の分割領域A12. A13. A1
4をアクセスする。またこのときは、セレクタ制御信号
X3は、第1のレジスタ27の出力は、データバス25
を介して与えられており、ROM26の上位アドレスを
指定し、下位アドレスはアドレスバス22からの出力が
利用される。
(2) Next, when accessing one divided area to simply read data from the ROM 26, the input/output command is "10" or 01" or '
11''. At this time, the output of the selector 23 is divided into divided areas A12 . A13. A1
Access 4. Further, at this time, the selector control signal X3 is the output of the first register 27,
The upper address of the ROM 26 is specified, and the output from the address bus 22 is used for the lower address.

(3)次に、ROM26の1つの分割空間をアクセスし
ている途中で、他の分割空間をアクセスする場合には、
アドレス27とアドレスバス22の出力の組合わせ出力
状態と、アドレスレジスタ28の出力の単独出力状態と
がセレクタ23において切換えられる。つまり、第2図
に示す真理値表のように、入出力命令XIが例えば“1
”になると第2のレジスタ28の出力が選択される。
(3) Next, when accessing another divided space while accessing one divided space of the ROM 26,
The selector 23 switches between a combined output state of the address 27 and the output of the address bus 22 and a single output state of the output of the address register 28. In other words, as shown in the truth table shown in FIG.
”, the output of the second register 28 is selected.

上記のように本実施例は、入出力命令を利用し、また第
1.第2のレジスタを用意することにより、分割空間の
プログラムを実行している途中で、他の分割空間のアク
セスという規則性の無い要求が生じたとしても高速でそ
のアクセスを実現することができる。
As described above, this embodiment uses input/output commands, and the first . By providing the second register, even if an irregular request to access another divided space occurs while a program in the divided space is being executed, the access can be realized at high speed.

[発明の効果] 以上説明したようにこの発明によれば、バンクROM空
間内のプログラムを実行している途中においても、他の
分割空間のデータをアクセスすることができ、大容量化
の進むROMを有効に活用することができ、しかも入出
力命令を利用することにより簡単な構成でメモリ制御を
行なうことができる。
[Effects of the Invention] As explained above, according to the present invention, even while a program in the bank ROM space is being executed, data in other divided spaces can be accessed, and ROMs with increasingly large capacities can be used. In addition, by using input/output instructions, memory control can be performed with a simple configuration.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例を示す回路図、第2図は第
1図の回路の動作を説明するために示した動作説明図、
第3図は従来のメモリ制御装置を示す回路図、第4図は
マイクロプロセッサとROMとのアドレス空間説明図で
ある。 21・・・マイクロプロセッサ、22・・・アドレスバ
ス、23・・・セレクタ、24・・・アドレスデコーダ
、25・・・データバス、26・・・ROM、27.2
8・・・第1.第2のアドレスレジスタ。 出願人代理人  弁理士 鈴江武彦
FIG. 1 is a circuit diagram showing an embodiment of the present invention, FIG. 2 is an operation explanatory diagram shown to explain the operation of the circuit in FIG. 1,
FIG. 3 is a circuit diagram showing a conventional memory control device, and FIG. 4 is an explanatory diagram of an address space between a microprocessor and a ROM. 21...Microprocessor, 22...Address bus, 23...Selector, 24...Address decoder, 25...Data bus, 26...ROM, 27.2
8...1st. Second address register. Applicant's agent Patent attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】 マイクロプロセッサからのアドレスデータにより直接指
定できる固定アドレス空間と、このアドレス空間の他に
該アドレス空間と同様な容量の複数の分割空間とを有し
たROMと、 前記マイクロプロセッサのデータバスが接続される第1
、第2のアドレスレジスタと、 この第1、第2のアドレスレジスタの出力及び前記マイ
クロプロセッサのアドレスバス出力が入力され、前記ア
ドレスバス出力の単独出力状態、前記アドレスバス出力
と前記第1のアドレスレジスタの出力との組合わせ出力
状態、前記第2のアドレスレジスタ出力の単独出力状態
の3つの状態を選択的にとり得るセレクタと、 前記マイクロプロセッサからの入出力命令及びアドレス
データが供給され、この入力情報により、入出力命令が
有るときには前記第2のアドレスレジスタ出力の単独出
力状態に前記セレクタを制御し、前記入出力命令が無い
ときには前記アドレスデータの内容に応じて、前記アド
レスバス出力の単独出力状態に前記セレクタを制御する
か、又は、前記アドレスバス出力と前記第1のアドレス
レジスタ出力との組合わせ出力状態に前記セレクタを制
御するアドレスデコーダとを具備したことを特徴とする
メモリ制御装置。
[Scope of Claims] A ROM having a fixed address space that can be directly designated by address data from a microprocessor, and a plurality of divided spaces having the same capacity as the address space in addition to this address space; The first to which the data bus is connected
, a second address register, and the outputs of the first and second address registers and the address bus output of the microprocessor are input, and the single output state of the address bus output, the address bus output and the first address a selector that can selectively take one of three states: a combination output state with the output of the register, and an independent output state of the second address register output; Based on the information, when there is an input/output command, the selector is controlled to output the second address register output alone, and when there is no input/output command, the selector is controlled to output the address bus output independently according to the contents of the address data. A memory control device comprising: an address decoder that controls the selector to a state, or controls the selector to a combination output state of the address bus output and the first address register output.
JP5295388A 1988-03-07 1988-03-07 Memory controller Pending JPH01226052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5295388A JPH01226052A (en) 1988-03-07 1988-03-07 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5295388A JPH01226052A (en) 1988-03-07 1988-03-07 Memory controller

Publications (1)

Publication Number Publication Date
JPH01226052A true JPH01226052A (en) 1989-09-08

Family

ID=12929242

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5295388A Pending JPH01226052A (en) 1988-03-07 1988-03-07 Memory controller

Country Status (1)

Country Link
JP (1) JPH01226052A (en)

Similar Documents

Publication Publication Date Title
JPS61139866A (en) Microprocessor
JPS6027964A (en) Memory access control circuit
JPH0719426B2 (en) Disk controller
US6584528B1 (en) Microprocessor allocating no wait storage of variable capacity to plurality of resources, and memory device therefor
JPS5844263B2 (en) memory control circuit
JPH05197619A (en) Memory control circuit for multi-cpu
US6862667B2 (en) Synchronous DRAM utilizable as shared memory
JPH01226052A (en) Memory controller
US6289429B2 (en) Accessing multiple memories using address conversion among multiple addresses
KR970006412B1 (en) Multiprocessor memory control device
JPH0628243A (en) Semiconductor integrated circuit
JPH07334420A (en) Extended memory control circuit
KR920003845B1 (en) Rom region expansion system for users of pc
JPS6065342A (en) Microcomputer
JPH06348314A (en) Programmable controller
JPS6126699B2 (en)
JPS60159954A (en) Memory controlling system
JPS6230660B2 (en)
JPS60245060A (en) Microcomputer device
JPS5856885B2 (en) Address control method
JPH02148240A (en) Processor
JPH0784963A (en) Semiconductor integrated circuit with cpu
JPS63141149A (en) Memory device control system
JPH0512107A (en) Program execution system
JPH01284960A (en) Use priority determining system for memory device