JPS6126700B2 - - Google Patents

Info

Publication number
JPS6126700B2
JPS6126700B2 JP56028452A JP2845281A JPS6126700B2 JP S6126700 B2 JPS6126700 B2 JP S6126700B2 JP 56028452 A JP56028452 A JP 56028452A JP 2845281 A JP2845281 A JP 2845281A JP S6126700 B2 JPS6126700 B2 JP S6126700B2
Authority
JP
Japan
Prior art keywords
data
memory
series
register
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.)
Expired
Application number
JP56028452A
Other languages
Japanese (ja)
Other versions
JPS57143654A (en
Inventor
Shigeru Komatsu
Shigeru Hirahata
Tsuguji Tateuchi
Takuo Koyama
Kunihiko Nagai
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP56028452A priority Critical patent/JPS57143654A/en
Publication of JPS57143654A publication Critical patent/JPS57143654A/en
Publication of JPS6126700B2 publication Critical patent/JPS6126700B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4234Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a memory bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microcomputers (AREA)

Description

【発明の詳細な説明】 本発明はコンピユータの基本部分の外部に複数
の系列のメモリを拡張することができるメモリ系
列切換回路に開するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention is directed to a memory series switching circuit capable of expanding a plurality of series of memories outside the basic part of a computer.

コンピユータが直接読み書きできる領域、すな
わちアドレス領域は、そのコンピユータが持つア
ドレスバスの本数をnとすると通常2nアドレス
である。例えば、現在最も一般的な8ビツト並列
処理のマイクロコンピユータの場合、16本のアド
レスバスを有しており、従つて216=65536アドレ
スをアドレス領域として持つ。そして、この1ア
ドレスごとにデータを保持するメモリや、外部機
器等とデータをやりとりするための入出力ポート
を割り当てることができる。しかし、近年メモリ
価格の急激な低下に供なつて、経済的に大きなメ
モリ容量のメモリを持つことができるようになり
大きなアドレス領域が必要となりアドレス領域が
不足する場合も増加してきた。このような場合
に、一般的に使われるアドレス領域を拡大する手
法としてバンク切換方式というのがある。
The area that a computer can directly read and write, that is, the address area, usually has 2 n addresses, where n is the number of address buses the computer has. For example, the currently most common 8-bit parallel processing microcomputer has 16 address buses, and thus has an address area of 2 16 =65536 addresses. Then, a memory for holding data and an input/output port for exchanging data with external devices can be assigned to each address. However, with the rapid decline in memory prices in recent years, it has become economically possible to have a memory with a large memory capacity, which requires a large address area, and the number of cases where the address area is insufficient has increased. In such cases, a bank switching method is a commonly used method for expanding the address area.

以下にバンク切換方式について説明する。第1
図はバンク切換方式を用いたコンピユータシステ
ムの構成図である。第1図において1は中央演算
処理装置(以下CPUと略す)、2はデータ保持回
路(以下レジスタと略す)、3はデコーダ、4は
データバス、6は第1系列メモリ、7は第2系列
メモリ、8は第3系列メモリ、9は第4系列メモ
リ、10は系列選択信号、11はオペレーシヨン
システム(以下OSと略す)用メモリである。
The bank switching method will be explained below. 1st
The figure is a configuration diagram of a computer system using the bank switching method. In Fig. 1, 1 is a central processing unit (hereinafter abbreviated as CPU), 2 is a data holding circuit (hereinafter abbreviated as register), 3 is a decoder, 4 is a data bus, 6 is a first series memory, and 7 is a second series memory. 8 is a third series memory, 9 is a fourth series memory, 10 is a series selection signal, and 11 is a memory for an operating system (hereinafter abbreviated as OS).

第1図において、CPU1が、これからアクセス
したい系列番号をレジスタ2に書き込むと、上記
デコーダ3により前記系列番号に一致する系列メ
モリが6〜9の中からただ1つ系列選択信号10
により有効となる。OSメモリ11には一般にこ
れらの切換制御を含むシステム全体の基本的な動
作を管理する手順が記録されておりこの従来例で
は系列切換される領域とは異なる領域に割当て、
どの系列が選択されている時でもアクセス可能と
している。
In FIG. 1, when the CPU 1 writes the sequence number that it wishes to access from now on to the register 2, the decoder 3 selects only one sequence memory among 6 to 9 that matches the sequence number and outputs the sequence selection signal 10.
becomes effective. The OS memory 11 generally records procedures for managing the basic operations of the entire system, including these switching controls.
It is accessible no matter which series is selected.

上述したようなバンク切換方式は(1) CPUの
総アドレス領域を増大できる、(2) 複数の仕事を
並列に処理する場合の切換えが容易などの長所が
あるが、次のような問題点がある。
The bank switching method described above has the advantages of (1) increasing the total address area of the CPU, and (2) easy switching when processing multiple tasks in parallel, but it also has the following problems. be.

(1) 予め本体内にバンク切換を行なうためのハー
ドウエアを用意しておく必要がある。
(1) It is necessary to prepare hardware for bank switching in the main body in advance.

(2) 予め設定しておいた系列数の上限を越えて拡
張する事は困難である。
(2) It is difficult to expand the number of sequences beyond the preset upper limit.

従つて、予めバンク切換を用いたアドレス領域
の拡張を配慮していないコンピユータシステム、
あるいは配慮が不充分で系列数の不足が生じたシ
ステムではメモリのそれ以上の拡張は困難となり
問題であつた。これに対処するために次のような
方法が考えられている。
Therefore, computer systems that do not take into account expansion of the address area using bank switching in advance,
Alternatively, in systems where the number of sequences is insufficient due to insufficient consideration, it becomes difficult to further expand the memory, which poses a problem. The following methods have been considered to deal with this problem.

この方法を第2図を用いて説明する。第2図に
おいて1はCPU、4はアドレスバス、5はデー
タバス、11はOS用メモリ、12はレジスタ、
13はプリセツトスイツチ、14は比較回路、1
5は一致信号、16はメモリ、17は拡張メモリ
カードである。第2図において、前出CPU1、ア
ドレス、バス、データバス、OS用メモリ11は
第1図のそれと同じである。前記レジスタ12は
第1図におけるレジスタ2とほぼ同一の機能を持
つが、各系列ごとに1個存在し、CPU1からは存
在する全てのレジスタ12に並列に書き込みが行
なわれる。前記プリセツトスイツチ13は例えば
DIPスイツチのような予め自身の系列番号を設定
しておくためのスイツチで、比較回路14によ
り、前記レジスタ12が保持しているデータとプ
リセツトスイツチ13に設定されているデータが
等しい場合に限り前記一致信号15がアクテイブ
となる。全系列のうち前記一致信号15がアクテ
イブな系列のメモリ16に限り有効となり、そう
でない系列のメモリ16は全て無効となる。従つ
て、同一系列番号同一領域の拡張メモリカード1
7の場合を除きアドレスバス、データバスの駆動
能力の許す限り拡張メモリカード17の枚数を追
加接続することが可能となる。また、系列番号と
しては例えば8ビツト並列データの場合だけと最
大256とおり持つことができるので、予めモー
ド、あるいは仕事の種類によつて固定の系列番号
を決めておき、その時々で必要な系列の拡張メモ
リカード17を数枚ずつ組合せて使用する事も可
能となる。しかし、この方式にも次のような欠点
がある。(1) メモリカード17のうちどのメモリ
カードが選択されているかをCPUが知るため選
択されたメモリカードに保持されているレジスタ
の設定値を読み出すことが必要であるが、これが
困難である。特に、並列に接続されているレジス
タ12を全て同時読み出そうとすると伝播遅延時
間の差によつてデータの競合が起きてICの寿命
を短かくする可能性がある。(2) プログラム暴走
を防止するため、メモリ選択にあたつて、所望の
系列メモリが存在するかどうかを判断することも
必要であるが、この判断が複雑となりがちであ
る。
This method will be explained using FIG. 2. In Figure 2, 1 is the CPU, 4 is the address bus, 5 is the data bus, 11 is the OS memory, 12 is the register,
13 is a preset switch, 14 is a comparison circuit, 1
5 is a coincidence signal, 16 is a memory, and 17 is an expansion memory card. In FIG. 2, the aforementioned CPU 1 , address, bus, data bus, and OS memory 11 are the same as those in FIG. 1. The register 12 has almost the same function as the register 2 in FIG. 1, but there is one for each series, and the CPU 1 writes to all the registers 12 in parallel. The preset switch 13 is, for example,
This is a switch such as a DIP switch that sets its own sequence number in advance, and only when the data held in the register 12 and the data set in the preset switch 13 are equal by the comparison circuit 14, The coincidence signal 15 becomes active. Of all the series, only the memories 16 of the series in which the coincidence signal 15 is active are valid, and all the memories 16 of the other series are invalid. Therefore, expansion memory card 1 with the same series number and the same area
Except for case 7, it is possible to additionally connect as many expansion memory cards 17 as the drive capacity of the address bus and data bus allows. In addition, it is possible to have up to 256 sequence numbers, for example, only in the case of 8-bit parallel data, so you can decide on a fixed sequence number depending on the mode or type of work in advance, and select the sequence number you need at any given time. It is also possible to use a combination of several expansion memory cards 17. However, this method also has the following drawbacks. (1) In order for the CPU to know which memory card is selected among the memory cards 17, it is necessary to read the set value of the register held in the selected memory card, but this is difficult. In particular, if all registers 12 connected in parallel are attempted to be read simultaneously, data conflicts may occur due to differences in propagation delay times, potentially shortening the life of the IC. (2) In order to prevent program runaway, it is necessary to determine whether a desired sequence memory exists when selecting a memory, but this determination tends to be complicated.

これらの欠点のため、ソフトウエアの処理の複
雑化や、使用上の制限などが生じ問題であつた。
These drawbacks have caused problems such as complication of software processing and restrictions on use.

本発明の目的は、上記した従来技術の欠点をな
くし、選択されたレジスタ12に設定されている
系列番号を読み出し可能とすると共に、個々の系
列の存在の有無を容易に調べる事ができるメモリ
系列拡張回路を提供するにある。
It is an object of the present invention to provide a memory series that eliminates the drawbacks of the prior art described above, makes it possible to read the series number set in the selected register 12, and allows easy checking of the presence or absence of each series. To provide an expansion circuit.

上記した目的を達成するため、一致信号を利用
して、前記一致信号が有効となつている系列のメ
モリカードからのみデータバス上に系列番号を出
力し、CPUがそれを読み取ることにより現在デ
ータバスを通じて自己の管理下にあるメモリカー
ドを識別できるようにしたものである。
In order to achieve the above purpose, the match signal is used to output the series number on the data bus only from the memory cards of the series for which the match signal is valid, and the CPU reads it to output the series number on the data bus. This allows you to identify memory cards under your control.

本発明による具体的実施例を以下第3図を用い
て説明する。第3図は、第2図における拡張メモ
リカード17に本発明を適用した一実施例の構成
図である。第3図において、18はバツフア回
路、19はブルアツプ抵抗、20はレジスタ書き
込みパルス、21はレジスタ読み出しパルス、2
2はアンド回路である。第3図における5,12
〜16の各ブロツクは、第2図における同一番号
のブロツクと同じである。また、メモリ16へ入
出力されるアドレスバス、データバスは説明の便
宜上省略した。第3図を用いて、本実施例の動作
を説明する。本実施例における系列選択の動作原
理は第2図の説明で述べた通りである。従来例と
の大きな違いは、前出の比較回路14の出力信号
である一致信号15は、メモリ16へ有効無効制
御信号として入力するだけでなく、前記アンド回
路22にも入力する。アンド回路22はレジスタ
読み出しパルス21とアンドをとり、バツフア回
路18の出力制御信号として出力する。
A specific embodiment according to the present invention will be described below with reference to FIG. FIG. 3 is a block diagram of an embodiment in which the present invention is applied to the expansion memory card 17 in FIG. 2. In FIG. 3, 18 is a buffer circuit, 19 is a pull-up resistor, 20 is a register write pulse, 21 is a register read pulse, and 2
2 is an AND circuit. 5, 12 in Figure 3
Each block numbered 16 to 16 is the same as the block with the same number in FIG. Further, an address bus and a data bus input/output to/from the memory 16 are omitted for convenience of explanation. The operation of this embodiment will be explained using FIG. The operating principle of sequence selection in this embodiment is as described in the explanation of FIG. The major difference from the conventional example is that the coincidence signal 15, which is the output signal of the comparison circuit 14 mentioned above, is not only inputted to the memory 16 as a valid/invalid control signal, but also inputted to the AND circuit 22. The AND circuit 22 ANDs the register read pulse 21 and outputs it as an output control signal for the buffer circuit 18.

以上のようにして、CPU1は書込み状態のとき
にメモリカード17の各レジスタ12に自己の選
択するメモリカードに対応する系列番号を書込
み、プリセツトスイツチ13に設定した値と一致
するメモリカード(すなわちCPUが選択したメ
モリカード)の一致信号のみをアクテイブにす
る。したがつて、CPUが選択したメモリカード
のバツフア18のみが出力可能となる。次に
CPUは読出し状態となり選択されたメモリカー
ドのバツフア18からデータバス5上に出力され
ている系列番号を読込むことにより現在自分の管
理しているメモリカードを識別することができ
る。
As described above, the CPU 1 writes the series number corresponding to the memory card selected by the CPU 1 to each register 12 of the memory card 17 in the write state, and selects the memory card ( In other words, only the matching signal of the memory card selected by the CPU is made active. Therefore, only the buffer 18 of the memory card selected by the CPU can be output. next
The CPU enters the read state and can identify the memory card it is currently managing by reading the series number output from the buffer 18 of the selected memory card onto the data bus 5.

バツフア18は一致信号15がアクテイブの場
合を除いてハイインピーダンス、即ちデータバス
5から切りはなされた状態である。プルアツプ抵
抗19は、データバス5がハイインピーダンス状
態にある時必ず全ビツト“H”レベルのデータを
与えるためのものである。このようにしておく
と、複数の拡張メモリカード17が挿入されてい
ても、CPU1が並列に書き込んだレジスタ12の
保持データと、プリセツトスイツチ13のデータ
が一致した系列即ち現在選択されている系列のレ
ジスタ12のみが読み出される。この結果、デー
タバス上の競合を避けられる他、レジスタ12に
書き込んだ系列番号と一致する系列が存在しない
場合、前記レジスタ12を読み出すと対応するレ
ジスタ12がないためその時の前記バツフア18
の出力はハイインピーダンス状態となり、前記プ
ルアツプ抵抗19の作用により、データとしては
前記レジスタ12の設定値とは無関係に、全ビツ
ト“H”レベルである。従つて、全ビツト“H”
レベル即ち8ビツト並列データであれば16進数の
(FF)という系列は持たないという約束をしてお
けば、指定した系列が存在するか否かの確認も容
易に行なえる。
Buffer 18 is high impedance, ie, disconnected from data bus 5, except when match signal 15 is active. The pull-up resistor 19 is provided to provide all bits of data at "H" level whenever the data bus 5 is in a high impedance state. By doing this, even if multiple expansion memory cards 17 are inserted, the data held in the register 12 written in parallel by the CPU 1 and the data in the preset switch 13 will match, that is, the currently selected sequence. Only the registers 12 of the series are read. As a result, in addition to avoiding conflicts on the data bus, if there is no sequence that matches the sequence number written in the register 12, when the register 12 is read, there is no corresponding register 12, so the buffer 18 at that time is
The output is in a high impedance state, and due to the action of the pull-up resistor 19, all bits of data are at the "H" level, regardless of the setting value of the register 12. Therefore, all bits are “H”
If you make a promise that if it is level, that is, 8-bit parallel data, there will be no hexadecimal (FF) series, you can easily check whether the specified series exists.

したがつて、誤つたメモリ系列に書込むことに
よるデータ破壊や、存在しないメモリ系列に書込
んでデータを消滅させてしまうなどの弊害が防止
できる。
Therefore, it is possible to prevent harmful effects such as data destruction due to writing to the wrong memory series and data being erased due to writing to a non-existent memory series.

本発明を実施することにより、現在選択されて
いる系列番号を保持しているレジスタをデータの
競合を起こすことなく直接読み出す事が可能とな
り、電子回路部品や読み出しデータの信頼性を損
なう事なくソフトウエア上の処理を高速化簡略化
できる。さらに、1系列ごとに存在しているか否
かを極めて容易に知る事ができる。
By implementing the present invention, it becomes possible to directly read the register holding the currently selected series number without causing a data conflict, and it becomes possible to directly read the register holding the currently selected series number without causing a data conflict. Processing on the hardware can be accelerated and simplified. Furthermore, it is extremely easy to know whether each series exists or not.

したがつて、誤つたメモリカードをアクセスす
ることによりCPUが誤つたデータやプログラム
を読込み、書込みすることによる機器の暴走や、
データの消減を防止できる。
Therefore, accessing the wrong memory card may cause the CPU to read or write incorrect data or programs, causing the device to run out of control.
Data loss can be prevented.

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

第1図は第1の従来例を説明するための構成
図、第2図は第2の従来例を説明するための構成
図、第3図は本発明による一実施例を示すブロツ
ク図である。 12…レジスタ、13…プリセツトスイツチ、
14…比較回路、15…一致回路、18…バツフ
ア回路、19…プルアツプ抵抗、22…アンド回
路。
FIG. 1 is a block diagram for explaining a first conventional example, FIG. 2 is a block diagram for explaining a second conventional example, and FIG. 3 is a block diagram showing an embodiment according to the present invention. . 12...Register, 13...Preset switch,
14... Comparison circuit, 15... Matching circuit, 18... Buffer circuit, 19... Pull-up resistor, 22... AND circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 バスライン方式の中央演算処理装置を有する
デイジタル信号処理装置に装着でき前記中央演算
処理装置より任意のデータを設定可能なデータ保
持回路と、予め固定データまたは任意のデータを
設定しておくための設定手段と、前記設定手段と
前記データ保持回路双方の設定データ値が対応し
た時に限り有効信号を出力するデータ比較手段
と、前記有効信号により有効・無効を制御できる
メモリと、前記有効信号により、前記データ保持
回路が保持しているデータの読み出しを制御する
手段とからなることを特徴とするメモリ系列拡張
回路。
1. A data holding circuit that can be attached to a digital signal processing device having a bus line type central processing unit and that can set arbitrary data from the central processing unit, and a data holding circuit that can be set with fixed data or arbitrary data in advance. A setting means, a data comparison means that outputs a valid signal only when the set data values of both the setting means and the data holding circuit correspond, a memory whose validity can be controlled by the valid signal, and the valid signal, A memory series expansion circuit comprising means for controlling reading of data held by the data holding circuit.
JP56028452A 1981-03-02 1981-03-02 Memory sequence extending circuit Granted JPS57143654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56028452A JPS57143654A (en) 1981-03-02 1981-03-02 Memory sequence extending circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56028452A JPS57143654A (en) 1981-03-02 1981-03-02 Memory sequence extending circuit

Publications (2)

Publication Number Publication Date
JPS57143654A JPS57143654A (en) 1982-09-04
JPS6126700B2 true JPS6126700B2 (en) 1986-06-21

Family

ID=12249051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56028452A Granted JPS57143654A (en) 1981-03-02 1981-03-02 Memory sequence extending circuit

Country Status (1)

Country Link
JP (1) JPS57143654A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0179981B1 (en) * 1984-10-26 1992-08-26 International Business Machines Corporation Data processing apparatus with fixed address space and variable memory
JPS61160162A (en) * 1985-01-07 1986-07-19 Meidensha Electric Mfg Co Ltd Page system of memory
JPS61211750A (en) * 1985-03-15 1986-09-19 Nec Corp Changeover confirmation system for memory bank

Also Published As

Publication number Publication date
JPS57143654A (en) 1982-09-04

Similar Documents

Publication Publication Date Title
US4964038A (en) Data processing system having automatic address allocation arrangements for addressing interface cards
EP0182044A2 (en) Initialization apparatus for a data processing system with a plurality of input/output and storage controller connected to a common bus.
US5047920A (en) Hierarchal system for reducing memory access time to plural equal sized memories by simultaneously addressing and accessing memory
EP0182126A2 (en) Directing storage requests during master mode operation
EP0265575A1 (en) Data processing system having automatic address allocation arrangements for addressing interface cards
JPS6126700B2 (en)
US4985826A (en) Method and device to execute two instruction sequences in an order determined in advance
US5168558A (en) Apparatus and method for providing distributed control in a main memory unit of a data processing system
JPH0562380B2 (en)
US4954946A (en) Apparatus and method for providing distribution control in a main memory unit of a data processing system
US5561813A (en) Circuit for resolving I/O port address conflicts
CN1004945B (en) address control device
JPS59116866A (en) Storage device of computer system
SU1500662A1 (en) Memory
RU2020563C1 (en) Device for data distribution at parallel copying of data
JP2968636B2 (en) Microcomputer
JP3222647B2 (en) Automatic memory bank switching system
JP3441944B2 (en) Sequential access type semiconductor memory device
JP2632859B2 (en) Memory access control circuit
SU1481780A1 (en) Two-channel bicomputer interface
JP2758745B2 (en) Memory circuit
JPH02302855A (en) Memory control system
JPH02214958A (en) Device combined with processor for extending port of said processor
JPH08235054A (en) shared memory
JPS59231665A (en) Disk controller