JPS63147245A - Memory access system - Google Patents

Memory access system

Info

Publication number
JPS63147245A
JPS63147245A JP61294439A JP29443986A JPS63147245A JP S63147245 A JPS63147245 A JP S63147245A JP 61294439 A JP61294439 A JP 61294439A JP 29443986 A JP29443986 A JP 29443986A JP S63147245 A JPS63147245 A JP S63147245A
Authority
JP
Japan
Prior art keywords
memory
access
address
data
memory access
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
JP61294439A
Other languages
Japanese (ja)
Inventor
Takao Hayashi
孝雄 林
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 JP61294439A priority Critical patent/JPS63147245A/en
Publication of JPS63147245A publication Critical patent/JPS63147245A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the high-speed working performance of a processor consisting of a CPU and a memory by comparing an address obtained in a memory access with the contents of a boundary register to activate exclusively two different signal lines and at the same time outputting continuous addresses at the time of memory access. CONSTITUTION:The contents of storage are compared with each other between an address register 5 and a boundary register 4. Then the output of a comparator 6 is set at L if the address value is smaller than the boundary value. Then the output of an AND gate 7-4 and an OR gate 7-10 to which the inverted data are applied are set at H and a signal line 7-2 is active in place of a signal line 7-1. Thus a high-speed ROM storing the data having high using frequencies is selected. Then the ROM receives an access with two continuous address produced by a +1 circuit 8-1 and a selecting circuit 8-2. As a result, the access speed is increased for a processor consisting of a CPU and a memory.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、中央処理装置とメモリよりなるデータ処理装
置におけるメモリアクセス方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory access method in a data processing device comprising a central processing unit and a memory.

[従来の技術及びその解決すべき問題点コ従来、データ
処理装置においては、性能の決めてとなるメモリアクセ
スタイム短縮のためにキャッシュメモリが用いられてい
た。
[Prior Art and Problems to be Solved] Conventionally, cache memory has been used in data processing devices to shorten memory access time, which determines performance.

しかし、従来のキャッシュメモリ方式では、キャッシュ
メモリ自体のアクセスタイムの他に多量のキャッシュデ
ィレクトリと、それをメモリアクセスアドレスと比較す
る多くの比較器の動作時間を要し、ヒツト時/ミスヒツ
ト時のアクセスタイムの増加をまねく。また、このため
多量のハードウェアを要するという欠点がある。
However, in the conventional cache memory method, in addition to the access time of the cache memory itself, the operation time of a large amount of cache directory and many comparators that compare the cache directory with the memory access address is required, and the access at the time of hit/miss This results in an increase in time. Furthermore, this method also has the disadvantage of requiring a large amount of hardware.

[問題点の解決手段] 上記従来の問題点を解決する本発明は、中央処理装置と
メモリより成るデータ処理装置のメモリアクセス方式に
おいて、中央処理装置がアクセスの種別を示す複数の信
号線、アドレス線、データ線、境界レジスタ、アドレス
レジスタ、メモリアクセス時のアドレスを境界レジスタ
と比較する比較器、その比較結果により2つの異なる信
号線を排他的にメモリアクセス時にアクティブにする手
段、更に命令アクセス時には連続したメモリアドレスを
出力する手段を有する構成よりなる。
[Means for Solving the Problems] The present invention solves the above-mentioned conventional problems. In a memory access method of a data processing device consisting of a central processing unit and a memory, the central processing unit uses a plurality of signal lines and addresses indicating the type of access. line, data line, boundary register, address register, a comparator that compares the address at the time of memory access with the boundary register, means for exclusively activating two different signal lines at the time of memory access based on the comparison result, and furthermore at the time of instruction access. It has a configuration having means for outputting consecutive memory addresses.

[実施例] 以下、本発明につき図面を参照して詳細に説明する。[Example] Hereinafter, the present invention will be explained in detail with reference to the drawings.

第1図は本発明の実施例を用いた中央処理装置のバス側
インタフェース回路である。
FIG. 1 shows a bus side interface circuit of a central processing unit using an embodiment of the present invention.

図中、1−1は命令フェッチリクエストを示す信号線、
1−2はメモリライトを示す信号線、7−1は低速メモ
リアクセスを示す信号線、7−2は高速メモリアクセス
を示す信号線、9−5はメモリの待ち合わせ信号を人力
する信号線、2はアドレスを示す信号線、3はリードデ
ータ/ライトデータの送受信線である。
In the figure, 1-1 is a signal line indicating an instruction fetch request;
1-2 is a signal line indicating memory write, 7-1 is a signal line indicating low-speed memory access, 7-2 is a signal line indicating high-speed memory access, 9-5 is a signal line for manually inputting a memory wait signal, 2 3 is a signal line indicating an address, and 3 is a transmission/reception line for read data/write data.

また、5はアドレスレジスタ、4は高速/低速メモリの
境界レジスタであり、このレジスタの示すアドレス以上
が低速メモリであることを示す。
Further, 5 is an address register, and 4 is a high-speed/low-speed memory boundary register, indicating that the address indicated by this register or higher is a low-speed memory.

6は比較器、8−1は+1回路、8−2はセレクタであ
り、8−4は命令フェッチリクエスト用のセットリセッ
トフリップフロップ、8−5はデータフェッチリクエス
ト用のセットリセットフリップフロップ、8−6はデー
タライト用のセットリセットフリップフロップである。
6 is a comparator, 8-1 is a +1 circuit, 8-2 is a selector, 8-4 is a set-reset flip-flop for instruction fetch requests, 8-5 is a set-reset flip-flop for data fetch requests, 8- 6 is a set/reset flip-flop for data writing.

さらに、各々8−4a、8−5a、8−6aがリクエス
ト要求端子である。9−3はDタイプフリップフロップ
で、高速メモリアクセス時にメモリレディ信号を自律的
に返送しリクエストを解除する。9−1はデータレジス
タでリード/ライト用データが保持される。7−3〜7
−8はANDゲート、7−9〜7−10はORゲートで
各々低速メモリアクセス、高速メモリアクセス用の信号
を作成する。
Furthermore, 8-4a, 8-5a, and 8-6a are request request terminals, respectively. 9-3 is a D-type flip-flop which autonomously returns a memory ready signal and releases a request during high-speed memory access. A data register 9-1 holds read/write data. 7-3~7
-8 is an AND gate, and 7-9 to 7-10 are OR gates, which respectively create signals for low-speed memory access and high-speed memory access.

第2図は本実施例の中央処理装置に接続されるメモリシ
ステムを示しており、図中10−1は高速スタティック
メモリチップ、10−2はデータ方向切替用パスバッフ
ァ、10−3はダイナミックRAMを用いた連続二語ア
クセス機能を有する(いわゆるニブルモード)メモリシ
ステムである。
FIG. 2 shows a memory system connected to the central processing unit of this embodiment, in which 10-1 is a high-speed static memory chip, 10-2 is a path buffer for data direction switching, and 10-3 is a dynamic RAM. This is a memory system that has a continuous two-word access function (so-called nibble mode).

次に、第1図、第2図を参照して本実施例の動作を説明
する。命令フェッチアクセス時、まずマイクロコードま
たは先行制御ハードウェアによりアドレスレジスタ5に
アクセスアドレスがセットされる。それからリクエスト
要求端子8−4aにアクセス要求を行なうアドレスは比
較器6により比較され、低速メモリであると比較器出力
は1となり、ANDゲート7−3が1となると共に、O
Rゲート7−9も1となる。これによって、信号線1−
1.7−1が1となり、ライト要求ではないために信号
線1−2が1となる。これによって、第2図のメモリシ
ステム10−3が動作し、アドレスをとり込みラッチす
る。メモリシステム10−3はニブルモードアクセスを
行ないデータを2ワード返送する。返送する時点で、メ
モリシステム10−3からは信号線9−5を1とするた
めセットリセットフリップフロップ8−4はリセットさ
れアクセスが完了する。データレジスタ9−1はダブル
バッファとなっており、2ワ一ド分のデータをとり込む
。信号線9−5の信号を返送するタイミングをメモリ側
が遅らせることによりメモリシステム10−3は自由な
スピードに設計することができるが、高速性は難かしい
Next, the operation of this embodiment will be explained with reference to FIGS. 1 and 2. At the time of instruction fetch access, an access address is first set in address register 5 by microcode or advance control hardware. Then, the address for making an access request to the request request terminal 8-4a is compared by the comparator 6. If the memory is a low-speed memory, the comparator output becomes 1, the AND gate 7-3 becomes 1, and the
The R gate 7-9 also becomes 1. As a result, signal line 1-
1.7-1 becomes 1, and since it is not a write request, the signal line 1-2 becomes 1. As a result, the memory system 10-3 in FIG. 2 operates to take in and latch the address. Memory system 10-3 performs nibble mode access and returns two words of data. At the time of return, the signal line 9-5 is set to 1 from the memory system 10-3, so the set-reset flip-flop 8-4 is reset and the access is completed. The data register 9-1 is a double buffer and takes in data for two words. Although the memory system 10-3 can be designed to have any speed by delaying the timing of returning the signal on the signal line 9-5 on the memory side, it is difficult to achieve high speed.

なお、アドレスは1回のアクセスで+1回路8−1、セ
レクタ8−2、Dタイプフリップフロップ8−3により
変化するが、メモリシステム10−3は+1された方の
アドレスは無視し、メモリシステム10−3の持つニブ
ルモードアクセス機能で連続アドレスをアクセスする。
Note that the address changes by +1 circuit 8-1, selector 8-2, and D type flip-flop 8-3 in one access, but the memory system 10-3 ignores the address that has been increased by +1. Continuous addresses are accessed using the nibble mode access function of 10-3.

次に、同様なアクセスで比較器出力が0の場合について
説明する。この場合、ANDゲート7−4、ORゲート
7−10により信号線7−2が1となり、高速メモリア
クセスである事が示されスタティックRAMl0−1が
チップセレクトされる。アクセス後1クロック目にDタ
イプフリップフロップ8−3によりアドレスが+1され
たものに切り替わり、同時に1ワード目のデータがダブ
ルバッファ9−1にラッチされる。さらに、1クロツタ
目に+1されたアドレスのデータがラッチされる。この
ようにして2クロツクで2ワ一ド分の命令を読み込むこ
とができる。プロセッサはアドレスの準備に1クロツク
要するため3クロツク2ワード読めることになる。
Next, a case where the comparator output is 0 in a similar access will be described. In this case, the signal line 7-2 is set to 1 by the AND gate 7-4 and the OR gate 7-10, indicating high-speed memory access, and the static RAM 10-1 is chip-selected. At the first clock after access, the address is switched by +1 by the D type flip-flop 8-3, and at the same time, the first word data is latched into the double buffer 9-1. Further, the data at the address incremented by 1 at the first clock is latched. In this way, instructions for two words can be read in two clocks. Since the processor requires one clock to prepare the address, it can read two words in three clocks.

また、高速メモリ側には、特別な回路が不要なためスタ
ティックRAMl0−1のスピードを生かしたアクセス
が可能である。
Furthermore, since no special circuit is required on the high-speed memory side, access can be made by taking advantage of the speed of the static RAM 10-1.

次に、データリードデータライト時は、アドレスは変化
せずに1ワードのみのアクセスとなる。
Next, when reading data and writing data, only one word is accessed without changing the address.

いずれにしても、高速メモリ/低速メモリの判定は比較
のみでよいため遅延が小さくてすみ、高速メモリをロス
なくアクセスすることができる。
In any case, since only a comparison is required to determine whether the memory is high speed memory or low speed memory, the delay is small and the high speed memory can be accessed without loss.

また、高速メモリには出現頻度の高いプログラムデータ
をおくことにより高い性能を得ることが可能となる。
Furthermore, high performance can be achieved by storing frequently appearing program data in the high-speed memory.

[発明の効果] 以上説明したように本発明は、中央処理装置とメモリよ
り成るデータ処理装置のメモリアクセス方式において、
中央処理装置がアクセスの種別を示す複数の信号線、ア
ドレス線、データ線、境界レジスタ、アドレスレジスタ
、メモリアクセス時のアドレスを境界レジスタと比較す
る比較器、その比較結果により2つの異なる信号線を排
他的にメモリアクセス時にアクティブにする手段、更に
命令アクセス時には連続したメモリアドレスを出力する
手段を有することにより、メモリを高速/低速に分けて
高速メモリアクセスをロスなく行なうことができ全体と
してのシステム性能を向上させることができる。これは
、プログラムの動きが固定的な組み込み型ソフトを持つ
システムで有効である。
[Effects of the Invention] As explained above, the present invention provides a memory access system for a data processing device comprising a central processing unit and a memory.
The central processing unit has multiple signal lines that indicate the type of access, an address line, a data line, a boundary register, an address register, a comparator that compares the address during memory access with the boundary register, and two different signal lines depending on the comparison results. By having a means to activate exclusively during memory access and a means to output continuous memory addresses during instruction access, the memory can be divided into high speed and low speed and high speed memory access can be performed without loss, improving the system as a whole. Performance can be improved. This is effective in systems with embedded software in which program behavior is fixed.

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

第1図は本発明の一実施例に係るメモリアクセス方式を
採用したプロセッサのバスインタフェース部分のブロッ
ク図、第2図は本発明を採用したプロセッサに接続され
るメモリシステムのブロック図である。 1−1.1−2.2゜ 7−1.7−2.9−5:信号線 4:境界レジスタ 5ニアドレスレジスタ 6:比較器 8−1:+1回路 8−2:セレクタ 8−3.9−3:Dタイプフリップフロップ8−4.8
−5.8−6 二セツトリセツトフリツプフロツブ 9−1:データレジスタ 7−3〜7−8:ANDゲート 7−9〜7−10:ORゲート 10−1:高速スタティックメモリチップ10−2 :
バスバッファ 10−3:メモリシステム
FIG. 1 is a block diagram of a bus interface portion of a processor employing a memory access method according to an embodiment of the present invention, and FIG. 2 is a block diagram of a memory system connected to the processor employing the present invention. 1-1.1-2.2゜7-1.7-2.9-5: Signal line 4: Boundary register 5 Near address register 6: Comparator 8-1: +1 circuit 8-2: Selector 8-3 .9-3: D type flip-flop 8-4.8
-5.8-6 Two-set reset flip-flop block 9-1: Data registers 7-3 to 7-8: AND gates 7-9 to 7-10: OR gate 10-1: High-speed static memory chip 10-2 :
Bus buffer 10-3: Memory system

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置とメモリより成るデータ処理装置のメモリ
アクセス方式において、中央処理装置がアクセスの種別
を示す複数の信号線、アドレス線、データ線、境界レジ
スタ、アドレスレジスタ、メモリアクセス時のアドレス
を境界レジスタと比較する比較器、その比較結果により
2つの異なる信号線を排他的にメモリアクセス時にアク
ティブにする手段、更に命令アクセス時には連続したメ
モリアドレスを出力する手段を有する事を特徴とするメ
モリアクセス方式。
In a memory access method for a data processing device consisting of a central processing unit and memory, the central processing unit uses multiple signal lines that indicate the type of access, address lines, data lines, boundary registers, address registers, and boundary registers that indicate addresses during memory access. A memory access system characterized by comprising: a comparator for comparing the data, a means for exclusively activating two different signal lines at the time of memory access according to the comparison result, and further a means for outputting continuous memory addresses at the time of instruction access.
JP61294439A 1986-12-10 1986-12-10 Memory access system Pending JPS63147245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61294439A JPS63147245A (en) 1986-12-10 1986-12-10 Memory access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61294439A JPS63147245A (en) 1986-12-10 1986-12-10 Memory access system

Publications (1)

Publication Number Publication Date
JPS63147245A true JPS63147245A (en) 1988-06-20

Family

ID=17807786

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61294439A Pending JPS63147245A (en) 1986-12-10 1986-12-10 Memory access system

Country Status (1)

Country Link
JP (1) JPS63147245A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5370214A (en) * 1992-10-14 1994-12-06 Nsk Ltd. Movable member feed device
JPH0883237A (en) * 1994-09-09 1996-03-26 Nec Corp Data processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5567856A (en) * 1978-11-16 1980-05-22 Nec Corp Memory device
JPS5760449A (en) * 1980-09-29 1982-04-12 Hitachi Ltd Main memoty control device
JPS5938862A (en) * 1982-08-27 1984-03-02 Fujitsu Ltd Memory access system
JPS59161752A (en) * 1983-03-04 1984-09-12 Hitachi Ltd Central processor of data processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5567856A (en) * 1978-11-16 1980-05-22 Nec Corp Memory device
JPS5760449A (en) * 1980-09-29 1982-04-12 Hitachi Ltd Main memoty control device
JPS5938862A (en) * 1982-08-27 1984-03-02 Fujitsu Ltd Memory access system
JPS59161752A (en) * 1983-03-04 1984-09-12 Hitachi Ltd Central processor of data processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5370214A (en) * 1992-10-14 1994-12-06 Nsk Ltd. Movable member feed device
JPH0883237A (en) * 1994-09-09 1996-03-26 Nec Corp Data processor

Similar Documents

Publication Publication Date Title
US6175893B1 (en) High bandwidth code/data access using slow memory
JP2957177B2 (en) Micro computer
US5398211A (en) Structure and method for providing prioritized arbitration in a dual port memory
US4872138A (en) Transparent cache memory
JPH05324348A (en) Single chip microcomputer
JPS63147245A (en) Memory access system
JPS581451B2 (en) Data transfer method
JPS61165170A (en) Bus controlling system
EP0787326B1 (en) System and method for processing of memory data and communication system comprising such system
US5761736A (en) Apparatus and method for implementing multiple scaled states in a state machine
JPS60195661A (en) Data processing system
JPH0248916Y2 (en)
JPS6019816B2 (en) microprogram control adapter
JPS61237145A (en) Controlling system for store buffer
JPS6014435B2 (en) Storage device
JPH0351943A (en) Sharing system for high/low speed bus lines
JP2539030B2 (en) Direct memory access device
JP3147456B2 (en) Cache memory system
JPS635446A (en) Microcomputer system
JPH041373B2 (en)
JPS6199996A (en) Dynamic ram controlling system
JPH03282667A (en) Computer device
JPH0551931B2 (en)
JPH039431A (en) Interruption processing system
JPH04291642A (en) Cache control system