JPH01161549A - Expansion memory circuit - Google Patents

Expansion memory circuit

Info

Publication number
JPH01161549A
JPH01161549A JP31873387A JP31873387A JPH01161549A JP H01161549 A JPH01161549 A JP H01161549A JP 31873387 A JP31873387 A JP 31873387A JP 31873387 A JP31873387 A JP 31873387A JP H01161549 A JPH01161549 A JP H01161549A
Authority
JP
Japan
Prior art keywords
register
expansion
memory
expansion unit
circuit
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
JP31873387A
Other languages
Japanese (ja)
Inventor
Toyonori Ishida
石田 豊範
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP31873387A priority Critical patent/JPH01161549A/en
Publication of JPH01161549A publication Critical patent/JPH01161549A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the expansion of a memory which has no relation with the capacity of an expansion unit and does not require DIP switches at every unit by providing a converter which makes the 1st and 2nd registers and the content of the 1st register to correspond to a space to be mapped. CONSTITUTION:Among the 24-bit addresses from a CPU 1, the high-order four bits are inputted to a decoder 5. On the other hand, registers 2 are the registers which exists at every expansion unit of memories and which address space is to be mapped in written by the CPU 1. Moreover, output results of an AND /OR circuit 6 are written in a register 3 at every access of the CPU 1. Each converter exists at every expansion unit of the memories and their input/output relations are different from each other in accordance with their capacities. The circuit 6 inputs the outputs of the converters 4 and decoders 5 and outputs their AND/OR results by one piece. The circuit 6 exists at every expansion unit of the memories and their outputs are inputted to the register 3 after wired-OR. Thus the expansion of memories are realized.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はコンピュータシステムのメモリ回路に係シ、特
に増設メモリ回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory circuit for a computer system, and particularly to an expansion memory circuit.

〔従来の技術〕[Conventional technology]

従来の増設メモリ方式の一例を第6図に示し説明する。 An example of a conventional expansion memory system is shown in FIG. 6 and will be described.

図において、“21は増設メモリの増設単位、22はD
IPスイッチ、23はコンピュータシステムのメそりマ
ツプである。そして、この種の増設メモリは例えば、こ
の第6図に示すように、増設したいメモリをメモリマツ
プ23上どこのアドレスにマツピングするかをDIPス
イッチ22を使って増設単位21毎にユーザがセットし
ていた。
In the figure, "21 is the expansion unit of the expansion memory, 22 is the D
The IP switch 23 is a mesori map of the computer system. For example, with this type of expansion memory, as shown in FIG. 6, the user sets which address on the memory map 23 the memory to be expanded should be mapped to for each expansion unit 21 using the DIP switch 22. Ta.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の増設メモリ方式では、増設単位毎にDI
Pスイッチの設定を行う必要があるため、1)手間がか
かる 2)ユーザの設定ζスによシ、意図した増設が行なわれ
ない可能性がある などという問題点があった。
In the conventional expansion memory method described above, DI is set for each expansion unit.
Since it is necessary to set the P switch, there are problems such as: 1) it is time-consuming; 2) the user's setting ζ is dependent on the user's settings; there is a possibility that the intended expansion will not be carried out.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の増設メモリ回路は、中央処理装置が持つアドレ
ス空間の内との空間にマツピングするかを決める第1の
レジスタと、増設単位自身が上記中央処理装置からアク
セスされたことを記憶する第2のレジスタと、上記増設
単位のメモリ容量に応じて上記第1のレジスタの内容を
マツピングすべき空間に対応させる変換器とを具備する
ものである。
The expansion memory circuit of the present invention includes a first register that determines mapping between address spaces of the central processing unit, and a second register that stores information that the expansion unit itself has been accessed from the central processing unit. and a converter for making the contents of the first register correspond to the space to be mapped according to the memory capacity of the expansion unit.

〔作用〕[Effect]

本発明においては、増設単位の容量に関係なく、また、
増設単位毎にI)IPスイッチなどのスイッチ設定を行
うことなく、メモリ増設を行う。
In the present invention, regardless of the capacity of the expansion unit,
I) Memory expansion is performed without setting switches such as IP switches for each expansion unit.

〔実施例〕〔Example〕

以下、図面に基づき本発明の実施例を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail based on the drawings.

第1図は本発明による増設メモリ回路の一実施例を示す
ブロック図である。
FIG. 1 is a block diagram showing an embodiment of an additional memory circuit according to the present invention.

図において、1は中央処理装置(以下、 CPUと略称
する)、2はこのCP’UIが持つアドレス空間の内と
の空間にマツピングするかを決めるレジスタ、3は増設
単位自身がCPUIからアクセスされたことを記憶する
レジスタ、4は増設単位のメモリ容量に応じてレジスタ
2の内容をマツピングナベき空間に対応させる変換器、
5はデコーダ、6は変換器4の出力とデコーダ5の出力
を入力とするアンド−オア(AND−OR)回路である
In the figure, 1 is a central processing unit (hereinafter abbreviated as CPU), 2 is a register that determines whether to map to or from the address space of this CP'UI, and 3 is a register that the expansion unit itself is accessed from the CPUUI. 4 is a converter that makes the contents of register 2 correspond to the mapping space according to the memory capacity of the expansion unit;
5 is a decoder, and 6 is an AND-OR circuit which receives the output of the converter 4 and the output of the decoder 5 as inputs.

つぎにこの第1図に示す実施例の動作を説明するO まず、CPUIから出力される24ビツトのアドレスの
うち、上位4ビツトがデコーダ5に入力されている。一
方、CPUIからアクセス可能なレジスタ2およびレジ
スタ3を持ち、このレジスタ2はメモリの増設単位毎に
存在するレジスタであシ、アドレス空間のどζにマツピ
ングされるかがCPUIKよって書き込まれる。また、
レジスタ3はAND・OR回路6の出力結果がCPUI
のアクセス毎に書き込まれるものとする。
Next, the operation of the embodiment shown in FIG. 1 will be explained.First, of the 24-bit address output from the CPUI, the upper 4 bits are input to the decoder 5. On the other hand, it has a register 2 and a register 3 that can be accessed from the CPUI, and this register 2 is a register that exists for each memory expansion unit, and the CPUIK writes in which ζ in the address space it is mapped to. Also,
Register 3 is the output result of AND/OR circuit 6 to the CPU
It is assumed that the data is written every time the file is accessed.

さて、レジスタ2の出力は変換器4に入力されている。Now, the output of register 2 is input to converter 4.

そして、この変換器4は増設単位毎に1つづつ存在し、
その容量に応じて入出力の関係は異なる。下記第1表は
この変換器4の入出力の関係を示したもので、CPUI
が持つ全アドレス空間の16分割のうち4つ分の容量を
持つ場合の例で第1表 入力        出 力 なお、この第1表において、出力におけるl以外は全部
0である。
There is one converter 4 for each expansion unit,
The input/output relationship differs depending on the capacity. Table 1 below shows the input/output relationship of this converter 4.
Table 1 is an example of a case where the address space has a capacity for 4 out of 16 divisions of the total address space.Input OutputIn this Table 1, all of the characters other than l in the output are 0.

つぎに、AND−OR回路6は変換器4の出力とデコー
ダ5の出力を入力とし、そのAND−ORの結果を1本
出力する。その詳細は第2図に示す通電である0この第
2図において、11はアンド(AND)ゲート、12は
オア(OR)ゲートである。
Next, the AND-OR circuit 6 inputs the output of the converter 4 and the output of the decoder 5, and outputs one result of the AND-OR. The details are as shown in FIG. 2. In FIG. 2, 11 is an AND gate, and 12 is an OR gate.

そして、このAND−OR回路6は増設単位毎に1つ存
在し、その出力はワイヤードオアされてレジスタ3に入
力されている。
One AND-OR circuit 6 exists for each expansion unit, and its output is wired-ORed and input to the register 3.

第3図は第1図におけるCPUIがもつアドレス空間を
示す図、すなわち、CPU1がアクセスし得るメモリ空
間を示し、斜線の部分は標準で実装されているメモリの
メモリ空間を示す。そして、第3図における番号1〜1
6は全アドレス空間を16分割し、それぞれ低位のアド
レスから順に付けた番号である。この第3図における2
〜16のメモリ空間に増設メモリをマツピングするもの
とする。増設単位は全メモリ空間の16分割の整数倍と
する。
FIG. 3 is a diagram showing the address space of the CPUI in FIG. 1, that is, the memory space that can be accessed by the CPU 1, and the shaded area shows the memory space of the memory that is installed as standard. And numbers 1 to 1 in Figure 3
6 is a number that divides the entire address space into 16 parts and assigns them to each part in order from the lowest address. 2 in this figure 3
It is assumed that the additional memory is mapped to 16 memory spaces. The expansion unit is an integral multiple of 16 divisions of the total memory space.

第2表は第1図におけるデコーダ50入出力の関係を示
したものである。
Table 2 shows the relationship between the input and output of the decoder 50 in FIG.

第2表 入力        出 力 なお、この第2表において、出力において空欄にしであ
る部分は全部Oである。
Table 2 Input Output Note that in Table 2, all blank fields in the output section are O's.

第4図は本発明を利用する際、CPUIが行うべき処理
のフローチャートである0 この第4図において、kは増設メモリ番号(k=1〜k
mm! )を示し、nは増設メモリエリア(n−2〜1
6)を示す。そして、第4図において、パラメータにお
よびkmaXはそれぞれ増設単位に工具−りに決めた番
号および増設単位の最大数である。また、nは93図に
おける16分割のメモリ空間のそれぞれを示す番号であ
る。
FIG. 4 is a flowchart of the processing to be performed by the CPUI when using the present invention. In this FIG. 4, k is an additional memory number (k=1 to k
mm! ), n is the additional memory area (n-2 to 1
6) is shown. In FIG. 4, the parameters and kmaX are the number and maximum number of extension units determined by the tool for each extension unit, respectively. Further, n is a number indicating each of the 16 divided memory spaces in FIG.

この第4図の70−チャートにしたがって処理を行うと
とKよって、低位のアドレスから順番に増設メモリをC
PUIのアドレス空間にマツピングすることができる0
その結果を第5図に示す0この第5図ではk wax 
w 3としている。
If the process is performed according to the 70-chart in Fig. 4, the additional memory will be sequentially moved from the lowest address to C.
0 that can be mapped into the PUI address space
The results are shown in Fig. 5.0 In this Fig. 5, k wax
w 3.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、増設単位の容量に関係な
く、また、増設単位毎K DIPスイッチなどのスイッ
チ設定を行うことなく、メモリの増設を行うことができ
る効果がある0
As explained above, the present invention has the advantage that memory can be expanded regardless of the capacity of each expansion unit and without setting switches such as K DIP switches for each expansion unit.

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

第1図は本発明による増設メモリ回路の一実施例を示す
ブロック図、第2図は第1図におけるAND・OR回路
の詳細を示す構成図、第3図は第1図における中央処理
装置が持つアドレス空間を示す図、第4図は本発明を利
用する際、中央処理装置が行うべき処理のフローチャー
ト、第5図は第4図のフローチャートにしたがって増設
メモリのマツピングを行った結果を示す図、第6図は従
来の増設メモリ方式の一例を示す構成図である。 1・働・・中央処理装置、2,3・・・・レジスタ、4
・・・・変換器、5・・倫・デコーダ、6・・−・AN
D・OR回路。 特許出願人  日本電気株式会社
FIG. 1 is a block diagram showing one embodiment of the expansion memory circuit according to the present invention, FIG. 2 is a block diagram showing details of the AND/OR circuit in FIG. 1, and FIG. 3 is a block diagram showing the details of the AND/OR circuit in FIG. 4 is a flowchart of the processing to be performed by the central processing unit when using the present invention, and FIG. 5 is a diagram showing the result of mapping the additional memory according to the flowchart in FIG. 4. , FIG. 6 is a block diagram showing an example of a conventional expansion memory system. 1. Work: central processing unit, 2, 3: register, 4
...Converter, 5...Lin decoder, 6...-AN
D・OR circuit. Patent applicant: NEC Corporation

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置が持つアドレス空間の内との空間にマッピ
ングするかを決める第1のレジスタと、増設単位自身が
前記中央処理装置からアクセスされたことを記憶する第
2のレジスタと、前記増設単位のメモリ容量に応じて前
記第1のレジスタの内容をマッピングすべき空間に対応
させる変換器とを具備することを特徴とする増設メモリ
回路。
a first register that determines whether to map to an address space within the address space of the central processing unit; a second register that stores information that the extension unit itself has been accessed from the central processing unit; An expansion memory circuit comprising: a converter for making the contents of the first register correspond to a space to be mapped according to a memory capacity.
JP31873387A 1987-12-18 1987-12-18 Expansion memory circuit Pending JPH01161549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31873387A JPH01161549A (en) 1987-12-18 1987-12-18 Expansion memory circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31873387A JPH01161549A (en) 1987-12-18 1987-12-18 Expansion memory circuit

Publications (1)

Publication Number Publication Date
JPH01161549A true JPH01161549A (en) 1989-06-26

Family

ID=18102338

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31873387A Pending JPH01161549A (en) 1987-12-18 1987-12-18 Expansion memory circuit

Country Status (1)

Country Link
JP (1) JPH01161549A (en)

Similar Documents

Publication Publication Date Title
EP0394436B1 (en) Automatically variable memory interleaving system
JPS6027964A (en) Memory access control circuit
US20020169900A1 (en) Direct memory access controller, and direct memory access control method
KR20030055467A (en) A method for memory allocation using multi-level partition
US4964037A (en) Memory addressing arrangement
JPH01161549A (en) Expansion memory circuit
JPH05197619A (en) Memory control circuit for multi-cpu
JPS5827253A (en) Data processing device
US6742077B1 (en) System for accessing a memory comprising interleaved memory modules having different capacities
JP3336073B2 (en) Memory, data writing method, data reading method
JP3429880B2 (en) Memory device and memory access method
JPH07334420A (en) Extended memory control circuit
JP2853736B2 (en) Cluster number conversion circuit
KR920003845B1 (en) Rom region expansion system for users of pc
JP2692180B2 (en) Microcomputer
JP2507399B2 (en) Database equipment
JP2590704B2 (en) Parallel processor LSI
JPH01140342A (en) Virtual computer system
JPS6198467A (en) Register arrangement
JPS60129854A (en) Address bus controller
JPS592938B2 (en) Memory workspace
JPH0370052A (en) Address translation circuit, memory controller, information processor, and recorder
JPS58168166A (en) Memory extension system
JPH04178851A (en) Information processor
JPS61125656A (en) Address converting system