[go: up one dir, main page]

JPH07334420A - Extended memory control circuit - Google Patents

Extended memory control circuit

Info

Publication number
JPH07334420A
JPH07334420A JP14858594A JP14858594A JPH07334420A JP H07334420 A JPH07334420 A JP H07334420A JP 14858594 A JP14858594 A JP 14858594A JP 14858594 A JP14858594 A JP 14858594A JP H07334420 A JPH07334420 A JP H07334420A
Authority
JP
Japan
Prior art keywords
address
data
space
bus
cpu
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
JP14858594A
Other languages
Japanese (ja)
Inventor
Yoshihito Saitou
嘉仁 斎藤
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.)
Shinko Seisakusho KK
Original Assignee
Shinko Seisakusho KK
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 Shinko Seisakusho KK filed Critical Shinko Seisakusho KK
Priority to JP14858594A priority Critical patent/JPH07334420A/en
Publication of JPH07334420A publication Critical patent/JPH07334420A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide an extended memory control circuit capable of easily managing the extended memory space and reducing restriction to the constitution of address space of a CPU. CONSTITUTION:When a CPU 1 sends address data corresponding to an I/O address to an address bus AB and sends the address data of an extended memory space to be accessed to a data bus DB, an address control means 8 gives the address data of the extended memory space sent to the data bus DB to a memory means 2A. Thereby, the CPU 1 can access the extended memory space.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マイクロコンピュータ
(CPU)を使用した制御装置等において、拡張された
メモリ空間を管理するための拡張メモリ制御回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an extended memory control circuit for managing an extended memory space in a control device using a microcomputer (CPU).

【0002】[0002]

【従来の技術】従来、マイクロコンピュータを使用した
制御装置において、CPUのアドレス空間よりも広いメ
モリ容量が必要となる場合がある。このようにメモリ空
間を拡張する際には、次に述べるようなバンク切替えの
手法を用いることが一般的であった。
2. Description of the Related Art Conventionally, a control device using a microcomputer may require a memory capacity wider than the address space of a CPU. When expanding the memory space in this way, it has been common to use the following bank switching method.

【0003】図3は、CPUのアドレス空間が64キロ
バイト(以下KBという、アドレス0000H〜FFF
FHまで)の場合に、RAM空間を128KBに拡張し
てバンク切替えを行う例を示すメモリマップである。図
4は、図3に対応するメモリ制御回路を示す回路図であ
る。
In FIG. 3, the CPU address space is 64 kilobytes (hereinafter referred to as KB, addresses 0000H to FFF).
In the case of (up to FH), it is a memory map showing an example in which the RAM space is expanded to 128 KB and bank switching is performed. FIG. 4 is a circuit diagram showing a memory control circuit corresponding to FIG.

【0004】図3に示すように、CPUのアドレス空間
10は、32KBのRAM空間12(8000H〜FF
FFH)、及び32KBのROM空間14(0000H
〜7FFFH)に区分されている。RAM空間12は、
図4のRAM2のメモリ空間に32KBのバンクB0と
して割り当てられる。さらに、RAM2のメモリ空間
は、上記バンクB0と同一容量(32KB)のバンクB
1,B2,及びB3が割り当てられる。これらのバンク
B0〜B3によって合計128KB分の拡張RAM空間
20が構成される。
As shown in FIG. 3, a CPU address space 10 is a 32 KB RAM space 12 (8000H to FF).
FFH), and 32 KB ROM space 14 (0000H
.About.7FFFH). RAM space 12
A 32 KB bank B0 is allocated in the memory space of the RAM 2 of FIG. Further, the memory space of the RAM2 is a bank B having the same capacity (32 KB) as the bank B0.
1, B2, and B3 are assigned. These banks B0 to B3 form an extended RAM space 20 for a total of 128 KB.

【0005】4つのバンクB0〜B3には、2ビット分
の拡張アドレスを割り当てる。すなわち、バンクB0に
は“00”を、バンクB1には“01”を、バンクB2
には“10”を、及びバンクB3には“11”をそれぞ
れ割り当てる。バンクの切替えは、RAM2の上位アド
レスA15,A16を、上記拡張アドレスとして用い、
下位アドレスA0〜A14を通常のアドレスとして用い
ることにより行う。
An extended address of 2 bits is assigned to each of the four banks B0 to B3. That is, the bank B0 is "00", the bank B1 is "01", and the bank B2 is
"10" is assigned to the bank B and "11" is assigned to the bank B3. To switch banks, the upper addresses A15 and A16 of RAM2 are used as the extension addresses,
This is performed by using the lower addresses A0 to A14 as normal addresses.

【0006】図4に示すように、CPU1は、RAM2
の各バンクB0〜B3をアクセスする際、データバスD
Bに、アクセスすべきバンクに対応する拡張アドレス2
ビット分のデータを送出してポートPTに保持させると
ともに、通常のアドレスデータをアドレスバスABに送
出する。これにより、全幅分のアドレスデータをRAM
2に供給して任意のバンクをアクセスする。
As shown in FIG. 4, the CPU 1 has a RAM 2
Of the data bus D when accessing each bank B0 to B3 of
B has an extended address 2 corresponding to the bank to be accessed
Bit data is sent and held in the port PT, and normal address data is sent to the address bus AB. This allows the full width of address data to be stored in the RAM.
2 to access any bank.

【0007】[0007]

【発明が解決しようとする課題】以上のような従来技術
にあっては、次のような欠点があった。第1に、CPU
1は、RAM2に構成されたバンクB0〜B3をアクセ
スして動作している際、常にどのバンクをアクセスして
いるのかを、ポートPTが保持するデータを読み取って
確認する等のバンク管理動作を行う必要がある。これ
は、何らかの原因により、誤ったバンクの空間にアクセ
スしてしまうことを防止するためである。このようなバ
ンク管理動作の実行は、ソフトウェアの構成が複雑とな
るので好ましくなかった。
The above-mentioned conventional techniques have the following drawbacks. First, the CPU
1 accesses the banks B0 to B3 configured in the RAM 2 to operate, and performs bank management operations such as checking which bank is being accessed by reading the data held by the port PT. There is a need to do. This is to prevent access to the wrong bank space for some reason. Execution of such a bank management operation is not preferable because the software configuration becomes complicated.

【0008】第2に、CPU1のアドレス空間にRAM
空間12及びROM空間14を割り当てる際、ROM空
間14を可能な限り大きく確保したい場合がある。しか
しながら、このような場合には、CPU1のアドレス空
間におけるRAM空間10が小さくなると、個々のバン
ク容量も必然的に小さくなるために、拡張メモリ空間で
ある拡張RAM空間20が多数個の小容量のバンクによ
って構成されることになり、バンク管理の繁雑さを考慮
すると、CPU1のアドレス空間におけるRAM空間1
2を小さく、すなわちROM空間14を大きく設定する
ことは難しかった。このような事情により、CPUのア
ドレス空間の構成には制約があった。
Second, the RAM is provided in the address space of the CPU 1.
When allocating the space 12 and the ROM space 14, it may be desired to secure the ROM space 14 as large as possible. However, in such a case, when the RAM space 10 in the address space of the CPU 1 becomes smaller, the capacity of each bank also becomes smaller inevitably. Therefore, the expansion RAM space 20 which is the expansion memory space has a large number of small capacities. Since it is composed of banks, considering the complexity of bank management, the RAM space 1 in the address space of the CPU 1
It was difficult to set 2 to be small, that is, to set the ROM space 14 to be large. Due to such circumstances, there is a restriction on the configuration of the address space of the CPU.

【0009】本発明は、このような事情に基づいてなさ
れたもので、その目的は、拡張メモリ空間の管理が容易
で、かつ、CPUのアドレス空間の構成に対する制約が
少ない拡張メモリ制御回路を提供することにある。
The present invention has been made under the circumstances described above, and an object thereof is to provide an extended memory control circuit in which management of the extended memory space is easy and there are few restrictions on the configuration of the address space of the CPU. To do.

【0010】[0010]

【課題を解決するための手段】本発明の拡張メモリ制御
回路は、CPUと、メモリ手段と、アドレス制御手段と
を有し、メモリ手段のメモリ空間は、少なくとも、CP
Uのアドレス空間に割り当てられたワークエリアと、拡
張メモリ空間とに区分されており、CPUは、ワークエ
リアをアクセスする際には、ワークエリアに対応するア
ドレスデータをアドレスバスに送出し、拡張メモリ空間
をアクセスする際には、所定のI/Oアドレスデータを
アドレスバスに送出するとともに、拡張メモリ空間に対
応するアドレスデータをデータバスに送出し、アドレス
制御手段は、アドレスバスにワークエリアに対応するア
ドレスデータが送出された場合には、アドレスバスのデ
ータをメモリ手段に与え、アドレスバスに所定のI/O
アドレスデータが送出された場合には、データバスのデ
ータをメモリ手段に与えることを特徴としている。
The extended memory control circuit of the present invention has a CPU, a memory means, and an address control means, and the memory space of the memory means is at least CP.
It is divided into a work area assigned to the U address space and an extended memory space. When the CPU accesses the work area, the CPU sends the address data corresponding to the work area to the address bus to extend the extended memory. When accessing the space, predetermined I / O address data is sent to the address bus and address data corresponding to the extended memory space is sent to the data bus, and the address control means corresponds to the work area on the address bus. When the address data to be transmitted is transmitted, the data on the address bus is given to the memory means, and a predetermined I / O is applied to the address bus.
When the address data is sent, the data of the data bus is given to the memory means.

【0011】また、本発明の拡張メモリ制御回路は、ア
ドレス制御手段が、選択信号生成部と、データ保持部
と、アドレス選択部とを有し、選択信号生成部は、CP
Uのアドレス空間に割り当てられた所定のI/Oアドレ
スをCPUがアクセスした際にのみ能動状態となる選択
信号を生成するものであり、データ保持部は、データバ
スから入力するデータを保持するものであり、アドレス
選択部は、選択信号が能動状態であるときには、データ
保持部が保持するデータをアドレスデータとしてメモリ
手段に与え、選択信号が非能動状態であるときには、ア
ドレスバスのアドレスデータをメモリ手段に与えるもの
であることを特徴としている。
In the extended memory control circuit of the present invention, the address control means has a selection signal generating section, a data holding section and an address selecting section, and the selection signal generating section is a CP.
The data holding unit holds a data input from the data bus, and generates a selection signal that becomes active only when the CPU accesses a predetermined I / O address assigned to the U address space. When the selection signal is in the active state, the address selection section gives the data held by the data holding section to the memory means as address data, and when the selection signal is in the inactive state, the address selection section stores the address data of the address bus in the memory. It is characterized by giving to means.

【0012】[0012]

【作用】CPUが、所定のI/Oアドレスに対応するア
ドレスデータをアドレスバスに送出するとともに、アク
セスすべき拡張メモリ空間のアドレスデータをデータバ
スに送出すると、アドレス制御手段は、データバスに送
出された拡張メモリ空間のアドレスデータをメモリ手段
に与える。これにより、CPUは、拡張メモリ空間をア
クセスすることができる。
When the CPU sends the address data corresponding to the predetermined I / O address to the address bus and the address data of the extended memory space to be accessed to the data bus, the address control means sends it to the data bus. The address data of the expanded memory space thus created is given to the memory means. This allows the CPU to access the extended memory space.

【0013】また、本発明の拡張メモリ制御回路は、ア
ドレス制御手段が、選択信号生成部と、データ保持部
と、アドレス選択部とを有している場合には、CPU
が、所定のI/Oアドレスに対応するアドレスデータを
アドレスバスに送出するとともに、アクセスすべき拡張
メモリ空間のアドレスデータをデータバスを介してデー
タ保持手段に与えると、選択信号生成手段は、能動状態
の選択信号をアドレス選択手段に与える。アドレス選択
手段は、データ保持手段に保持されている上記拡張メモ
リ空間のアドレスデータを選択してメモリ手段に与え
る。これにより、CPUは、拡張メモリ空間をアクセス
することができる。
Also, in the extended memory control circuit of the present invention, when the address control means has a selection signal generation section, a data holding section, and an address selection section, the CPU
When the address data corresponding to the predetermined I / O address is sent to the address bus and the address data of the extended memory space to be accessed is given to the data holding means via the data bus, the selection signal generating means is activated. A state selection signal is given to the address selection means. The address selecting means selects the address data of the extended memory space held in the data holding means and supplies it to the memory means. This allows the CPU to access the extended memory space.

【0014】[0014]

【実施例】次に、本発明について図面を参照して説明す
る。図1は、本発明の拡張メモリ制御回路の一実施例を
示す概略構成図であり、図2は、同実施例に対応するメ
モリマップである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a schematic configuration diagram showing an embodiment of an extended memory control circuit of the present invention, and FIG. 2 is a memory map corresponding to the embodiment.

【0015】初めに、図2に基づいてメモリ構成につい
て説明する。図2に示すように、64KBのCPUのア
ドレス空間40は、少なくとも、RAM空間42(C0
00H〜FFFFH)、ROM空間44(0000H〜
XXXXH)、及びメモリマップドI/O方式の場合に
構成されるI/Oアドレス空間46(XXXX+1H〜
BFFFH)に区分されている。ただし、上記“XXX
XH”は、ROM空間44の容量によって決まるアドレ
スである。また、I/Oアドレス空間46において、任
意に選択された1個の所定のI/OアドレスデータDi
(例えば、BFFFH)が割り当てられている。
First, the memory configuration will be described with reference to FIG. As shown in FIG. 2, the address space 40 of the 64 KB CPU is at least the RAM space 42 (C0
00H-FFFFH), ROM space 44 (0000H-
XXXXXH) and the I / O address space 46 (XXXX + 1H-) configured in the case of the memory mapped I / O system
BFFFH). However, the above "XXX
XH ″ is an address determined by the capacity of the ROM space 44. Further, one arbitrarily selected I / O address data Di in the I / O address space 46 is selected.
(For example, BFFFH) is assigned.

【0016】一方、RAM(メモリ手段)のメモリ空間
50は、少なくとも、上記RAM空間42と対応して本
来のアドレスデータによってアクセスされるワークエリ
ア52と、上記I/Oアドレス空間46に対応して後述
する拡張アドレスによってアクセスされる拡張RAM空
間(拡張メモリ空間)54とに区分されている。
On the other hand, the memory space 50 of the RAM (memory means) corresponds to at least the work area 52 corresponding to the RAM space 42 and accessed by the original address data, and the I / O address space 46. It is divided into an extended RAM space (extended memory space) 54 accessed by an extended address described later.

【0017】次に、図1に基づいて回路構成について説
明する。なお、図1において、各制御信号は、ロウアク
ティブ(負論理)で表示されているが、以下の説明にお
いては、表記の簡略化のために負論理を示す符号は省略
されている。
Next, the circuit configuration will be described with reference to FIG. In FIG. 1, each control signal is displayed as low active (negative logic), but in the following description, a symbol indicating negative logic is omitted for simplicity of description.

【0018】CPU1は、RAM(メモリ手段)2Aに
対して、制御信号である、リード信号RD及びライト信
号WRを与えるとともに、データバスDBを介してデー
タの授受を行う。なお、RAM2Aのメモリ容量は、一
例としてCPU1のアドレス空間と同一の64KBであ
る。
The CPU 1 gives a read signal RD and a write signal WR, which are control signals, to the RAM (memory means) 2A and sends and receives data via the data bus DB. The memory capacity of the RAM 2A is, for example, 64 KB, which is the same as the address space of the CPU 1.

【0019】周知のチップセレクト信号生成部3は、ア
ドレスバスAB上に送出されたアドレスデータをデコー
ドし、RAM2Aのワークエリア52をアクセスする際
に能動状態となるチップセレクト信号CS1を生成する
ものである。
The well-known chip select signal generating section 3 decodes the address data transmitted on the address bus AB and generates a chip select signal CS1 which becomes active when the work area 52 of the RAM 2A is accessed. is there.

【0020】データ保持部4は、周知のポートやラッチ
等によって構成されるものであり、データバスDB上に
送出されているデータを、CPU1から与えられる制御
信号LSに従って一時的に保持するものである。
The data holding unit 4 is composed of well-known ports, latches, etc., and temporarily holds the data sent on the data bus DB according to the control signal LS given from the CPU 1. is there.

【0021】選択信号生成部5は、アドレスバスAB上
に送出されているアドレスデータをデコードすることに
より、RAM2Aの拡張RAM空間54をアクセスする
際に能動状態となる選択信号SEを生成するものであ
る。
The selection signal generating section 5 decodes the address data transmitted on the address bus AB to generate a selection signal SE which becomes active when the expansion RAM space 54 of the RAM 2A is accessed. is there.

【0022】アドレス選択部6は、データ保持部4に保
持されているデータと、アドレスバスABのアドレスデ
ータとを入力し、上記選択信号SEの状態が能動状態で
あれば、前者のデータを、非能動状態であれば、後者の
データを、それぞれ選択してRAM2Aのアドレス端子
に送出するものである。
The address selection unit 6 inputs the data held in the data holding unit 4 and the address data of the address bus AB, and if the selection signal SE is in the active state, the former data is In the inactive state, the latter data is selected and sent to the address terminal of the RAM 2A.

【0023】ORゲート7は、上記チップセレクト信号
CS1及び選択信号SEのいずれか一方が能動状態
(“L”)になると、RAM2Aにチップセレクト信号
CSを与えることによってRAM2Aを動作状態に遷移
させものである。なお、チップセレクト信号CS1及び
選択信号SEの両者が同時に能動状態となることはな
い。
The OR gate 7 shifts the RAM 2A to the operating state by applying the chip select signal CS to the RAM 2A when either one of the chip select signal CS1 and the select signal SE becomes the active state ("L"). Is. It should be noted that both the chip select signal CS1 and the select signal SE do not become active at the same time.

【0024】上述したデータ保持部4、選択信号生成部
5、及びアドレス選択部6によってアドレス制御手段8
が構成されている。
Address control means 8 is constituted by the data holding section 4, the selection signal generating section 5, and the address selecting section 6 described above.
Is configured.

【0025】ROM9は、プログラムを格納するもので
あり、CPU1は、ROM9のプログラムに従って動作
を行う。
The ROM 9 stores a program, and the CPU 1 operates according to the program in the ROM 9.

【0026】次に、図1及び図2に基づいて動作を説明
する。図2に示すワークエリア52をアクセスする場合
は、CPU1は、ワークエリア52に対応するアドレス
データ(C000H〜FFFFH)をアドレスバスAB
に送出する。チップセレクト信号生成部3は、上記アド
レスデータをデコードして能動状態(“L”)のチップ
セレクト信号CS1をORゲート経由でRAM2Aのチ
ップセレクト入力端子CSに与える。一方、アドレス選
択部6は、選択信号SEが非能動状態(“H”)である
ため、アドレスバスAB側に入力されたアドレスデータ
を選択してRAM2Aに送出する。この結果、RAM2
Aのワークエリア52がアクセスされる。
Next, the operation will be described with reference to FIGS. When accessing the work area 52 shown in FIG. 2, the CPU 1 transfers the address data (C000H to FFFFH) corresponding to the work area 52 to the address bus AB.
Send to. The chip select signal generator 3 decodes the address data and supplies the chip select signal CS1 in the active state (“L”) to the chip select input terminal CS of the RAM 2A via the OR gate. On the other hand, since the selection signal SE is inactive (“H”), the address selection unit 6 selects the address data input to the address bus AB side and sends it to the RAM 2A. As a result, RAM2
The work area 52 of A is accessed.

【0027】一方、図2に示す拡張RAM空間54をア
クセスする場合は、CPU1は、所定のI/Oアドレス
データDiをアドレスバスABに送出するとともに、ア
クセスすべき拡張RAM空間54のアドレス(0000
H〜BFFFH)をデータバスDBに送出する。本実施
例では、アドレスデータのビット幅は16ビットであ
り、データバスDBのビット幅8ビットの2倍なので、
アドレスデータを上位及び下位の2回に分割してデータ
保持部4に保持させればよい。
On the other hand, when the expansion RAM space 54 shown in FIG. 2 is accessed, the CPU 1 sends out predetermined I / O address data Di to the address bus AB, and the address (0000) of the expansion RAM space 54 to be accessed.
H to BFFFH) is sent to the data bus DB. In this embodiment, the bit width of the address data is 16 bits, which is twice the bit width of the data bus DB, which is 8 bits.
The address data may be divided into upper and lower parts and held in the data holding section 4.

【0028】所定のI/OアドレスデータDiを入力し
た選択信号生成部5は、能動状態(“L”)の選択信号
SEを生成してアドレス選択部6に与える。この結果、
アドレス選択部6は、データ保持部4に保持されている
拡張アドレスデータを選択してRAM2Aに与える。こ
の際、RAM2Aのチップセレクト入力端子CSには、
上記能動状態(“L”)の選択信号SEがORゲート7
を介して入力されている。これにより、RAM2Aの拡
張RAM空間54がアクセスされる。
The selection signal generator 5 to which the predetermined I / O address data Di is input generates the selection signal SE in the active state (“L”) and supplies it to the address selector 6. As a result,
The address selection unit 6 selects the extended address data held in the data holding unit 4 and supplies it to the RAM 2A. At this time, the chip select input terminal CS of the RAM 2A is
The selection signal SE in the active state (“L”) is OR gate 7
Have been entered through. As a result, the expanded RAM space 54 of the RAM 2A is accessed.

【0029】また、図1には示されていないROMをア
クセスする際には、図2に示すROM空間44に対応す
るアドレス(0000H〜XXXXH)をアクセスすれ
ばよく、通常の動作と同じであるので、説明を省略す
る。
Further, when accessing the ROM not shown in FIG. 1, it is sufficient to access the address (0000H to XXXXXH) corresponding to the ROM space 44 shown in FIG. 2, which is the same as the normal operation. Therefore, the description is omitted.

【0030】以上説明したように、本実施例によれば、
CPU1が、所定のI/OアドレスデータDiをアドレ
スバスABに送出するとともに、アクセスすべき拡張R
AM空間(拡張メモリ空間)54のアドレスデータをデ
ータバスDBに送出すると、アドレス制御手段8は、デ
ータバスDBに送出された拡張RAM空間54のアドレ
スデータをRAM(メモリ手段)2Aに与える。これに
より、CPU1は、拡張RAM空間54をアクセスする
ことができる。
As described above, according to this embodiment,
The CPU 1 sends the predetermined I / O address data Di to the address bus AB, and at the same time, the extended R to be accessed.
When the address data of the AM space (extended memory space) 54 is sent to the data bus DB, the address control means 8 gives the address data of the extended RAM space 54 sent to the data bus DB to the RAM (memory means) 2A. As a result, the CPU 1 can access the expansion RAM space 54.

【0031】したがって、従来のバンク切替えを行う場
合に比較して、バンクをRAM(メモリ手段)のメモリ
空間に設ける必要がないので、第1に、バンクに関する
管理が不要となり、拡張RAM空間(拡張メモリ空間)
の管理が容易となる。また、第2に、拡張RAM空間
(拡張メモリ空間)をRAM(メモリ手段)に自由に設
定することができるので、CPUのアドレス空間の構成
の制約が少ない。
Therefore, as compared with the conventional bank switching, it is not necessary to provide the bank in the memory space of the RAM (memory means). Memory space)
Management becomes easier. Secondly, since the extended RAM space (extended memory space) can be freely set in the RAM (memory means), there are few restrictions on the configuration of the CPU address space.

【0032】選択信号生成部5は、デコーダ、あるいは
任意の論理素子を組み合わせて構成したデコード回路等
を任意に用いることが可能である。データ保持部4は、
ポート、ラッチ、及びレジスタ等の素子を任意に選択
し、あるいは組み合わせて用いればよく、これらの素子
は、上述した実施例に示したように、CPU1の外部に
設けたものを使用してもよいし、CPU1の内部に含ま
れているものを使用してもよい。アドレス選択部6は、
ディジタルマルチプレクサ、あるいは任意の論理素子を
組み合わせて構成することが可能である。
The selection signal generator 5 can arbitrarily use a decoder or a decoding circuit formed by combining arbitrary logic elements. The data holding unit 4
Elements such as a port, a latch, and a register may be arbitrarily selected or used in combination, and as these elements, those provided outside the CPU 1 may be used as shown in the above-described embodiments. However, the one included in the CPU 1 may be used. The address selection unit 6
It is possible to configure by combining a digital multiplexer or arbitrary logic elements.

【0033】また、本実施例では、アドレス制御手段8
を、データ保持部4、選択信号生成部5、及びアドレス
選択部6によって構成したが、これに限定されるもので
なく、任意の論理回路を適宜組み合わせて実現できるこ
とはもちろんである。
In this embodiment, the address control means 8
Is configured by the data holding unit 4, the selection signal generation unit 5, and the address selection unit 6, but the present invention is not limited to this, and it goes without saying that it can be realized by appropriately combining arbitrary logic circuits.

【0034】なお、本発明は、上記実施例で示されたビ
ット幅のアドレスバス(16ビット)を使用するCPU
やメモリ手段に限定されるものではなく、任意のCPU
及びメモリ手段を用いることができる。例えば、メモリ
手段2Aのメモリ容量がCPU1のアドレス空間より大
であってもよい。その場合には、アドレス制御部8を、
それがメモリ手段2Aのアドレス端子数に対応するビッ
ト幅のアドレスデータを処理し得るように構成すればよ
い。すなわち、データ保持部4及びアドレス選択部6
を、それらが保持及び選択し得るようにメモリ手段2A
のアドレス端子数に対応するビット幅のアドレスデータ
を処理し得るように構成すればよい。
The present invention is a CPU using the address bus (16 bits) having the bit width shown in the above embodiment.
It is not limited to the memory means and memory means, but any CPU
And memory means can be used. For example, the memory capacity of the memory means 2A may be larger than the address space of the CPU 1. In that case, the address controller 8
It may be constructed so that it can process address data having a bit width corresponding to the number of address terminals of the memory means 2A. That is, the data holding unit 4 and the address selecting unit 6
Memory means 2A so that they can be retained and selected.
The address data having a bit width corresponding to the number of the address terminals may be processed.

【0035】本実施例では、CPU1のアドレス空間の
構成を図2に示す構成としたが、RAM空間42、RO
M空間44、I/Oアドレス空間46の割り当ては、任
意でよい。また、所定のI/OアドレスデータDiは、
I/Oアドレス空間の中から任意に選択すればよく、特
に限定されない。
In this embodiment, the address space of the CPU 1 has the structure shown in FIG.
Allocation of the M space 44 and the I / O address space 46 may be arbitrary. Further, the predetermined I / O address data Di is
It may be arbitrarily selected from the I / O address space and is not particularly limited.

【0036】[0036]

【発明の効果】以上詳述したように、本発明の拡張メモ
リ制御回路によれば、メモリ手段のメモリ空間にバンク
を設ける必要がないので、従来のバンク切替えを行う場
合に比較して、拡張メモリ空間の管理が容易となり、か
つ、CPUのアドレス空間の構成に対する制約が減り、
拡張メモリの空間を自由に構成することができる。
As described above in detail, according to the extended memory control circuit of the present invention, it is not necessary to provide a bank in the memory space of the memory means. Management of the memory space becomes easy, and restrictions on the configuration of the CPU address space are reduced,
The extended memory space can be freely configured.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の拡張メモリ制御回路の一実施例の構成
を示す回路図である。
FIG. 1 is a circuit diagram showing a configuration of an embodiment of an extended memory control circuit of the present invention.

【図2】同実施例におけるメモリマップである。FIG. 2 is a memory map in the same embodiment.

【図3】従来のバンク切替えを用いる場合のメモリマッ
プである。
FIG. 3 is a memory map when conventional bank switching is used.

【図4】従来のバンク切替えを行う回路の一例を示す回
路図である。
FIG. 4 is a circuit diagram showing an example of a conventional circuit for performing bank switching.

【符号の説明】 1 CPU 2A RAM(メモリ手段) 8 アドレス制御手段 4 データ保持部 5 選択信号生成部 6 アドレス選択部 40 CPUのアドレス空間 42 RAM空間 46 I/Oアドレス空間 50 RAMのメモリ空間 52 ワークエリア 54 拡張RAM空間(拡張メモリ空間) DB データバス AB アドレスバス CS1 チップセレクト信号 SE 選択信号 Di 所定のI/Oアドレスデータ[Description of Reference Signs] 1 CPU 2A RAM (memory means) 8 address control means 4 data holding unit 5 selection signal generation unit 6 address selection unit 40 CPU address space 42 RAM space 46 I / O address space 50 RAM memory space 52 Work area 54 Extended RAM space (extended memory space) DB data bus AB address bus CS1 chip select signal SE select signal Di predetermined I / O address data

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】CPUと、メモリ手段と、アドレス制御手
段とを有し、 前記メモリ手段のメモリ空間は、少なくとも、前記CP
Uのアドレス空間に割り当てられたワークエリアと、拡
張メモリ空間とに区分されており、 前記CPUは、前記ワークエリアをアクセスする際に
は、前記ワークエリアに対応するアドレスデータをアド
レスバスに送出し、前記拡張メモリ空間をアクセスする
際には、所定のI/Oアドレスデータをアドレスバスに
送出するとともに、前記拡張メモリ空間に対応するアド
レスデータをデータバスに送出し、 前記アドレス制御手段は、アドレスバスに前記ワークエ
リアに対応するアドレスデータが送出された場合には、
アドレスバスのデータを前記メモリ手段に与え、アドレ
スバスに前記所定のI/Oアドレスデータが送出された
場合には、データバスのデータを前記メモリ手段に与え
ること、 を特徴とする拡張メモリ制御回路。
1. A CPU, a memory means, and an address control means, wherein a memory space of the memory means is at least the CP.
It is divided into a work area assigned to the U address space and an extended memory space. When the CPU accesses the work area, the CPU sends address data corresponding to the work area to an address bus. When accessing the extended memory space, a predetermined I / O address data is sent to an address bus, and address data corresponding to the extended memory space is sent to a data bus. When address data corresponding to the work area is sent to the bus,
An extended memory control circuit, wherein data of an address bus is given to the memory means, and when the predetermined I / O address data is sent to the address bus, data of the data bus is given to the memory means. .
【請求項2】アドレス制御手段は、選択信号生成部と、
データ保持部と、アドレス選択部とを有し、 前記選択信号生成部は、CPUのアドレス空間に割り当
てられた所定のI/OアドレスをCPUがアクセスした
際にのみ能動状態となる選択信号を生成するものであ
り、 前記データ保持部は、データバスから入力するデータを
保持するものであり、 前記アドレス選択部は、前記選択信号が能動状態である
ときには、前記データ保持部が保持するデータをアドレ
スデータとして前記メモリ手段に与え、前記選択信号が
非能動状態であるときには、アドレスバスのアドレスデ
ータを前記メモリ手段に与えるものであること、 を特徴とする請求項1記載の拡張メモリ制御回路。
2. The address control means includes a selection signal generation section,
It has a data holding unit and an address selection unit, and the selection signal generation unit generates a selection signal that becomes active only when the CPU accesses a predetermined I / O address assigned to the address space of the CPU. The data holding unit holds data input from a data bus, and the address selecting unit addresses the data held by the data holding unit when the selection signal is in an active state. 2. The extended memory control circuit according to claim 1, wherein the extended memory control circuit is provided as data to the memory means, and when the selection signal is in an inactive state, the address data of an address bus is provided to the memory means.
JP14858594A 1994-06-07 1994-06-07 Extended memory control circuit Pending JPH07334420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14858594A JPH07334420A (en) 1994-06-07 1994-06-07 Extended memory control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14858594A JPH07334420A (en) 1994-06-07 1994-06-07 Extended memory control circuit

Publications (1)

Publication Number Publication Date
JPH07334420A true JPH07334420A (en) 1995-12-22

Family

ID=15456042

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14858594A Pending JPH07334420A (en) 1994-06-07 1994-06-07 Extended memory control circuit

Country Status (1)

Country Link
JP (1) JPH07334420A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100496856B1 (en) * 1999-05-20 2005-06-22 삼성전자주식회사 Data processing system for expanding address
JP2007041795A (en) * 2005-08-02 2007-02-15 Ricoh Co Ltd Computer system
JP2008282415A (en) * 2008-06-30 2008-11-20 Sonix Technology Co Ltd Memory management system, and its management method
US8205031B2 (en) 2008-08-19 2012-06-19 Sonix Technology Co., Ltd. Memory management system and method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100496856B1 (en) * 1999-05-20 2005-06-22 삼성전자주식회사 Data processing system for expanding address
JP2007041795A (en) * 2005-08-02 2007-02-15 Ricoh Co Ltd Computer system
JP2008282415A (en) * 2008-06-30 2008-11-20 Sonix Technology Co Ltd Memory management system, and its management method
US8205031B2 (en) 2008-08-19 2012-06-19 Sonix Technology Co., Ltd. Memory management system and method thereof
US8402199B2 (en) 2008-08-19 2013-03-19 Sonix Technology Co., Ltd. Memory management system and method thereof

Similar Documents

Publication Publication Date Title
US4870572A (en) Multi-processor system
US5339402A (en) System for connecting an IC memory card to a central processing unit of a computer
JPH07334420A (en) Extended memory control circuit
JPH1139212A (en) Microcomputer
JP2860655B2 (en) Parallel instruction execution type processor
JP2634488B2 (en) Computer equipment
JPH07325757A (en) Storage management device
JP3429880B2 (en) Memory device and memory access method
JPH0368046A (en) Memory access system
JP2684752B2 (en) Extended storage control method
JP3315145B2 (en) Memory address allocation method for microprocessor system
JP2954988B2 (en) Information processing device
JPH03211641A (en) Address designation method for memory device
JP2622553B2 (en) Microcomputer
JPS59114657A (en) Memory interface circuit of microcomputer
JPH04168545A (en) Interface circuit
JPH07219843A (en) Memory bank switching device
JPH0224748A (en) Address switching circuit
JPS5913766B2 (en) Address control method
JPS6348688A (en) Memory device
JPH04177439A (en) Single chip microcomputer
JPH03204049A (en) Memory controller
JPS6352261A (en) Management system for allocation of memory address
JPH0317758A (en) Memory mapping storage
JPS63204342A (en) Memory device