JPH0477342B2 - - Google Patents
Info
- Publication number
- JPH0477342B2 JPH0477342B2 JP21613783A JP21613783A JPH0477342B2 JP H0477342 B2 JPH0477342 B2 JP H0477342B2 JP 21613783 A JP21613783 A JP 21613783A JP 21613783 A JP21613783 A JP 21613783A JP H0477342 B2 JPH0477342 B2 JP H0477342B2
- Authority
- JP
- Japan
- Prior art keywords
- request
- memory
- stack
- memory device
- data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/06—Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
Description
【発明の詳細な説明】
〔発明の利用分野〕
本発明はメモリインタフエース回路に関し、特
に複数バンクで構成されたメモリ装置と中央処理
装置間のデータ転送に好適なメモリインタフエー
ス回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a memory interface circuit, and particularly to a memory interface circuit suitable for data transfer between a memory device configured with a plurality of banks and a central processing unit.
複数バンクを有するメモリ装置と中央処理装置
(CPU)とのインタフエース回路の構成方法に
は、従来大別して2種類がある。第1の構成方法
は、メモリ装置のバンクに対応した制御回路を持
ち、従つてバンクに対応して各々リクエスト線、
アクセプト線、エンド線を持つた構成であり、第
2の構成方法は、制御回路は1組とし、メモリと
のデータ転送は、1つのアクセスの終了を待つて
次のアクセス要求を行う構成である。しかしなが
ら上記第1の構成方法では、メモリ装置のバンク
に対応して制御回路を持つたため、ハードウエア
量が増大し、かつメモリ装置とメモリインタフエ
ース回路との間のインタフエース線が増大すると
いう問題点があつた。また、上記第2の構成方法
では、制御回路が1組であるため上記第1の構成
方法で問題となる点は解消されるが、メモリアク
セスが逐次化されるため、CPUとメモリ装置と
の間のデータ転送スループツトが低下するという
問題点があつた。
Conventionally, there are two types of methods for configuring an interface circuit between a memory device having multiple banks and a central processing unit (CPU). The first configuration method has a control circuit corresponding to the bank of the memory device, and therefore has a request line, a request line, and a control circuit corresponding to each bank.
This configuration has an accept line and an end line.The second configuration method uses one set of control circuits, and the data transfer with the memory waits for the completion of one access before issuing the next access request. . However, in the first configuration method, since a control circuit is provided corresponding to each bank of the memory device, the amount of hardware increases, and the number of interface lines between the memory device and the memory interface circuit increases. The dot was hot. In addition, in the second configuration method, the problem with the first configuration method is solved because there is only one set of control circuits, but since memory access is serialized, the CPU and memory device are There was a problem that the data transfer throughput between the two was reduced.
本発明は上述の点にかんがみてなされたもの
で、メモリ装置とCPUとの間のデータ転送のス
ループツトを低下させることなく、少ないハード
ウエア量および少ないインタフエース線数でメモ
リ装置とCPUとの間のインタフエースを制御す
るメモリインタフエース回路を提供することを目
的とする。
The present invention has been made in view of the above-mentioned points, and is capable of transferring data between a memory device and a CPU using a small amount of hardware and a small number of interface lines without reducing the throughput of data transfer between the memory device and the CPU. The purpose of the present invention is to provide a memory interface circuit that controls the interface of the memory interface.
本発明の要点は、1つのリクエストに対して応
答されるメモリ装置からの応答信号の計数値をリ
クエスト毎に複数個記憶するリクエストスタツク
と、メモリ装置からの応答信号を計数する計数手
段とを設け、リクエストスタツクに先入れされた
計数値とメモリ装置からの応答信号の計数値が一
致することを検出することにより該リクエストが
完了したことを検知するようにした点にある。
The gist of the present invention is to include a request stack that stores a plurality of counted values of response signals from a memory device in response to one request for each request, and a counting means that counts the response signals from the memory device. The completion of the request is detected by detecting that the count value previously entered into the request stack matches the count value of the response signal from the memory device.
以下、本発明の一実施例を図面に基づいて説明
する。
Hereinafter, one embodiment of the present invention will be described based on the drawings.
第1図は、本発明に係るCPUとメモリ装置の
接続構成を示すブロツク図である。同図におい
て、CPU1は、アドレスおよびライトデータ共
用バス2、リードデータバス3を介して、バンク
0のメモリ4とバンク1のメモリ5に接続され
る。CPU1とメモリ装置とのインタフエースは
CPU1内に設けられたメモリインタフエース回
路6により制御する。 FIG. 1 is a block diagram showing a connection configuration between a CPU and a memory device according to the present invention. In the figure, a CPU 1 is connected to a memory 4 in bank 0 and a memory 5 in bank 1 via an address and write data common bus 2 and a read data bus 3. The interface between CPU1 and memory device is
It is controlled by a memory interface circuit 6 provided within the CPU 1.
第2図は、上記CPU1内に設けられたメモリ
インタフエース回路6の詳細を示すブロツク図で
あり、メモリリクエスト要求線7のリクエスト信
号により制御信号を発生するリクエスト制御回路
8、リクエスト種別を保持するリクエストスタツ
ク9、メモリからの応答信号(エンド信号)を計
数するエンドカウンタ10、リクエストスタツク
9とエンドカウンタ10の出力を比較する比較器
11により構成される。 FIG. 2 is a block diagram showing details of the memory interface circuit 6 provided in the CPU 1, including a request control circuit 8 that generates a control signal in response to a request signal on a memory request request line 7, and a request control circuit 8 that holds the request type. It consists of a request stack 9, an end counter 10 that counts response signals (end signals) from the memory, and a comparator 11 that compares the outputs of the request stack 9 and the end counter 10.
CPU1からのメモリアクセスの種別は、例え
ば4,8,12,16バイト命令フエツチ、4,
8バイトオペランドフエツチ。4,8バイトオペ
ランドライトから成る。 The types of memory access from CPU 1 are, for example, 4, 8, 12, 16 byte instruction fetch, 4,
8-byte operand fetch. Consists of 4 and 8 byte operand writes.
また、バンク0のメモリ4、バンク1のメモリ
5は第3図に示すようにKバイト単位でインタリ
ーブされており、バンク対応にリクエストを受付
ける。リードの時は、連続する4〜16バイトの
データを4バイトずつリクエスト元に転送する。
その際、応答信号を転送回数分返す。ライト時
は、連続する4〜8バイトデータをメモリに書き
込む。 Furthermore, the memory 4 of bank 0 and the memory 5 of bank 1 are interleaved in units of K bytes as shown in FIG. 3, and requests are accepted in correspondence with the banks. When reading, 4 to 16 consecutive bytes of data are transferred 4 bytes at a time to the request source.
At that time, response signals are returned for the number of transfers. When writing, consecutive 4 to 8 bytes of data are written to the memory.
第4図はリクエストスタツク9の構成の一例を
示す図で、4段スタツクの例を示す。リクエスト
スタツクは上下に分かれ、上部aにはメモリから
返されるべき応答信号(エント信号)の数を格納
し、下部bにはリードデータのセツト先等を示す
情報が格納される。 FIG. 4 is a diagram showing an example of the configuration of the request stack 9, and shows an example of a four-stage stack. The request stack is divided into upper and lower parts, with the upper part a storing the number of response signals (ent signals) to be returned from the memory, and the lower part b storing information indicating the destination of read data and the like.
第5図は上記リクエストスタツク9のスタツク
イン動作を説明するための図で、4バイトリード
→8バイトリード→16バイトリードのリクエス
トが連続して行われた場合を例に示す。最初の4
バイトリード・リクエストでは、同図aに示すよ
うに応答信号の数“1”と、この受付信号と同期
して送られてきたリードデータのセツト先である
フエツチデータレジスタFDRとが格納される。
次に8バイトリード・リクエストが来ると、同図
bに示すように、先の4バイトリード・リクエス
トの後に、応答信号の数“2”、データのセツト
先フエツチデータレジスタFDRが格納される。
次の16バイトリード・リクエストの場合も同様
に、応答信号の数“4”、データのセツト先命令
バツフアレジスタIBRが格納される。 FIG. 5 is a diagram for explaining the stack-in operation of the request stack 9, and shows as an example a case where requests for 4-byte read → 8-byte read → 16-byte read are successively performed. first 4
In the byte read request, as shown in Figure a, the number of response signals "1" and the fetch data register FDR, which is the set destination of the read data sent in synchronization with this acceptance signal, are stored. .
When an 8-byte read request comes next, the number of response signals "2" and the data set destination fetch data register FDR are stored after the previous 4-byte read request, as shown in Figure b. .
Similarly, in the case of the next 16-byte read request, the number of response signals "4" and the instruction buffer register IBR to which the data is set are stored.
第6図は第5図において、スタツクインされた
りリクエストスタツク9のスタツクアウト動作を
説明するための図で、同図aは初期状態を示す。
メモリからの1回の応答信号(END)により、
最初の4バイトリードで転送されてきたデータを
転送先にセツトして、スタツクアウトする(同図
b参照)。同様にして2回の応答信号、4回の応
答信号で、それぞれ8バイトリード16バイトリ
ードで転送されてきたデータをデータ転送先にセ
ツトし、スタツクアウトする。 FIG. 6 is a diagram for explaining stack-in and stack-out operations of the request stack 9 in FIG. 5, and a in FIG. 6 shows an initial state.
With one response signal (END) from memory,
The data transferred by the first 4-byte read is set at the transfer destination and stacked out (see b in the same figure). Similarly, with two response signals and four response signals, the data transferred by 8-byte read and 16-byte read is set at the data transfer destination and stacked out.
以下、第2図に示すインタフエース回路の動作
を8バイト命令フエツチと8バイトオペランドフ
エツチが連続する場合を例にして説明する。バン
ク0のメモリ4に対する8バイト命令フエツチ要
求がリクエスト要求線7にあると、リクエスト制
御回路8はリクエスト要求線16Aを“1”と
し、リクエストタイプ線17を8バイトリードと
する。バンク0のメモリ4からの受付け信号によ
り受付け信号線15が“1”となると、リクエス
ト要求線16Aを“0”にすると共にリクエス
ト・スタツク9に、命令フエツチビツト=“1”
(データのセツト先)、計数値=“2”(応答信号
数)として、データ線14およびスタツク指示線
13を介してスタツクする。次にバンク1のメモ
リ5に対する8バイトオペランドフエツチ要求が
リクエスト制御回路8に入力されると、リクエス
ト制御回路8は、リクエスト要求線16Bを
“1”とし、リクエストタイプ線17を8バイト
リードとする。バンク1のメモリ5からの受付け
信号により受付け信号15が“1”となると、リ
クエスト要求線16Bを“0”とすると共に、リ
クエストスタツク9に命令フエツチビツト=“0”
(データのセツト先)、計数値=“2”(応答信号
数)として、データ線14、スタツク指示線13
を介してスタツクする。次にメモリからの応答信
号により応答信号線12が“1”となると、リー
ドデータバス3のデータを図示しない命令バツフ
アにセツトすると共に、エンドカウンタ10によ
り応答数が計数される。 The operation of the interface circuit shown in FIG. 2 will be described below, taking as an example the case where an 8-byte instruction fetch and an 8-byte operand fetch are consecutive. When an 8-byte instruction fetch request for the memory 4 of bank 0 is on the request line 7, the request control circuit 8 sets the request line 16A to "1" and sets the request type line 17 to 8-byte read. When the acceptance signal line 15 becomes "1" due to the acceptance signal from the memory 4 of bank 0, the request request line 16A is set to "0" and the instruction fetch bit is set to "1" in the request stack 9.
(data set destination), count value = "2" (number of response signals), and stacking is performed via the data line 14 and the stack instruction line 13. Next, when an 8-byte operand fetch request for the memory 5 of bank 1 is input to the request control circuit 8, the request control circuit 8 sets the request request line 16B to "1" and sets the request type line 17 to 8-byte read. do. When the acceptance signal 15 becomes "1" due to the acceptance signal from the memory 5 of bank 1, the request request line 16B is set to "0" and the instruction fetch bit is set to "0" in the request stack 9.
(data set destination), count value = “2” (number of response signals), data line 14, stack instruction line 13
Stack through. Next, when the response signal line 12 becomes "1" in response to a response signal from the memory, the data on the read data bus 3 is set in a command buffer (not shown), and the end counter 10 counts the number of responses.
エンドカウンタ10が“2”となると、比較器
11により、リクエストスタツク9の応答信号数
“2”と一致がとられ、先入された命令8バイト
リードが終了したことを検出すると共にリクエス
ト完了信号18によりリクエストスタツク9内の
該リクエスト要求はスタツクアウトされ、かつエ
ンドカウンタ10はリセツトされる。続いて応答
信号が“1”となると、リードデータバス3のデ
ータを図示していないオペランド読出しレジスタ
にセツトする共に、エンドカウンタ10により応
答器が計数値され、計数値が“2”となると、上
述と同様に比較器11により次に先入されたオペ
ランド8バイトリードが終了したことを検出し、
リクエスト完了信号18によりリクエストスタツ
ク内の該リクエスト要求はスタツクアウトされ、
かつエンドカウンタ10はリセツトされる。 When the end counter 10 reaches "2", the comparator 11 matches the response signal number "2" of the request stack 9, detects that the 8-byte read of the previously input instruction is completed, and also outputs a request completion signal. 18, the request in the request stack 9 is stacked out, and the end counter 10 is reset. Subsequently, when the response signal becomes "1", the data on the read data bus 3 is set in an operand read register (not shown), and the end counter 10 counts the value of the responder, and when the count value becomes "2", Similarly to the above, the comparator 11 detects that the next 8-byte operand read has been completed, and
The request request in the request stack is stacked out by the request completion signal 18,
And the end counter 10 is reset.
第7図は、前記説明した動作例のデータバス上
のタイミングチヤートであり、8バイト命令フエ
ツチのアドレスがA0サイクルで、8バイトオペ
ランドフエツチのアドレスがA1サイクルでアド
レスバス2に転送され、リードデータは命令フエ
ツチに対してはD00,D01サイクルで、オペ
ランドフエツチに対しD10,D11サイクルで
4バイトずつリードデータバス3により転送され
ることを示す。メモリからの応答信号は応答信号
線12に上記D00,D01,D10,D11に
対応して出力される。 FIG. 7 is a timing chart on the data bus in the operation example described above, in which the address of the 8-byte instruction fetch is transferred to the address bus 2 in the A0 cycle, the address of the 8-byte operand fetch is transferred to the address bus 2 in the A1 cycle, and the read address is transferred to the address bus 2 in the A1 cycle. Data is transferred by the read data bus 3 by 4 bytes in cycles D00 and D01 for instruction fetches and in cycles D10 and D11 for operand fetches. Response signals from the memory are output to the response signal line 12 corresponding to the above D00, D01, D10, and D11.
なお、本実施例では、メモリ装置のバンク数は
2、アドレスおよびデータ線2,3はバス線とし
て説明したが、メモリ装置のバンク数は2以上で
ある場合およびアドレスおよびデータ線が独立線
である場合でもまた全部共用の場合でも同様であ
る。 In this embodiment, the number of banks of the memory device is 2, and the address and data lines 2 and 3 are bus lines. However, if the number of banks of the memory device is 2 or more, and the address and data lines are independent lines. The same applies whether there is one or all are shared.
また、ライト動作は、応答信号を待つ場合はリ
クエストスタツク9にスタツクされるが、応答信
号を待たない場合はリクエストスタツク9にスタ
ツクしない。 Further, a write operation is stacked on the request stack 9 when waiting for a response signal, but is not stacked on the request stack 9 when not waiting for a response signal.
以上説明したように、本発明によればリクエス
ト先のメモリ装置のバンクを記憶することなく、
また、メモリ装置に対するリクエスト動作の完了
を待つことなく連続してメモリアクセスができる
ので、少ないハードウエア量及びインタフエース
線数でデータ転送スループツトの減少が得られる
という優れた効果がある。
As explained above, according to the present invention, without storing the bank of the request destination memory device,
Furthermore, since memory access can be performed continuously without waiting for the completion of request operations to the memory device, there is an excellent effect that data transfer throughput can be reduced with a small amount of hardware and a small number of interface lines.
第1図はCPUとメモリ装置の接続構成を示す
ブロツク図、第2図はメモリインタフエース回路
6の詳細を示すブロツク図、第3図はメモリのイ
ンタリーブを説明する図、第4図はリクエストス
タツクを示す図、第5図及び第6図はリクエスト
スタツクのスタツクイン、スタツクアウトを示す
図、第7図は第2図の動作を説明するタイミング
図である。
1……CPU、2……アドレスおよびライトデ
ータ共用バス、3……リードデータバス、4,5
……メモリ装置、6……インタフエース回路、8
……リクエスト制御回路、9……リクエストスタ
ツク、10……エンドカウンタ、11……比較
器。
Figure 1 is a block diagram showing the connection configuration between the CPU and memory device, Figure 2 is a block diagram showing details of the memory interface circuit 6, Figure 3 is a diagram explaining memory interleaving, and Figure 4 is a request star. 5 and 6 are diagrams showing request stack stack-in and stack-out, and FIG. 7 is a timing chart explaining the operation of FIG. 2. 1...CPU, 2...Address and write data shared bus, 3...Read data bus, 4, 5
...Memory device, 6...Interface circuit, 8
...Request control circuit, 9...Request stack, 10...End counter, 11...Comparator.
Claims (1)
央処理装置との間のインターフエースを制御する
メモリインターフエース回路において、 前記中央処理装置からの前記メモリ装置に対す
るリクエストに対して、少なくとも前記メモリ装
置から返されるべき応答信号数をリクエスト毎に
記憶するリクエストスタツク手段と、一つのリク
エストに対応した前記メモリ装置からの応答信号
が記憶された前記応答信号数に達したら、前記リ
クエストスタツク手段から当該リクエストに対応
する前記応答信号数をスタツクアウトする手段と
を備えたことを特徴とするメモリインタフエース
回路。[Claims] 1. In a memory interface circuit that controls an interface between a memory device composed of a plurality of banks and a central processing unit, in response to a request from the central processing unit to the memory device, request stack means for storing at least the number of response signals to be returned from the memory device for each request; and when the number of response signals from the memory device corresponding to one request reaches the stored number of response signals, A memory interface circuit comprising means for stacking out the number of response signals corresponding to the request from the stacking means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21613783A JPS60108941A (en) | 1983-11-18 | 1983-11-18 | Memory interface circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21613783A JPS60108941A (en) | 1983-11-18 | 1983-11-18 | Memory interface circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60108941A JPS60108941A (en) | 1985-06-14 |
| JPH0477342B2 true JPH0477342B2 (en) | 1992-12-08 |
Family
ID=16683842
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21613783A Granted JPS60108941A (en) | 1983-11-18 | 1983-11-18 | Memory interface circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60108941A (en) |
-
1983
- 1983-11-18 JP JP21613783A patent/JPS60108941A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60108941A (en) | 1985-06-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0523764A2 (en) | Computer system having direct bus attachment between processor and dynamic main memory, and having in-processor DMA control with respect to a plurality of data exchange means also connected to said bus, and central processor for use in such computer system | |
| EP0384620A2 (en) | High performance memory system | |
| US4347567A (en) | Computer system apparatus for improving access to memory by deferring write operations | |
| JPS6297036A (en) | Calculator system | |
| JPH0479026B2 (en) | ||
| JPH03189843A (en) | System and method for processing data | |
| TW491970B (en) | Page collector for improving performance of a memory | |
| JPH0477342B2 (en) | ||
| JPH0283736A (en) | OSC detection method of buffer storage controller | |
| JPS6191740A (en) | Memory access control system | |
| JP2574821B2 (en) | Direct memory access controller | |
| JPS6326753A (en) | Memory bus control method | |
| JPS6079445A (en) | Storage controller | |
| JP2581144B2 (en) | Bus control device | |
| JPS616746A (en) | Partial writing control system | |
| JPS5890227A (en) | Interface system of data transfer | |
| JPH04333950A (en) | Information processing system | |
| JPH05120211A (en) | Data bus width controller | |
| JPS5856891B2 (en) | information processing system | |
| JPH0652516B2 (en) | Bus interface device | |
| JPH03228163A (en) | Data transfer equipment | |
| JPS63239549A (en) | Data chaining control method | |
| JPH0215095B2 (en) | ||
| JPH01114961A (en) | Directory memory access controller | |
| JPH0690711B2 (en) | Memory access control method |