JPH0630084B2 - Memory circuit - Google Patents
Memory circuitInfo
- Publication number
- JPH0630084B2 JPH0630084B2 JP59050419A JP5041984A JPH0630084B2 JP H0630084 B2 JPH0630084 B2 JP H0630084B2 JP 59050419 A JP59050419 A JP 59050419A JP 5041984 A JP5041984 A JP 5041984A JP H0630084 B2 JPH0630084 B2 JP H0630084B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- read
- write
- cycle
- 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.)
- Expired - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
Description
【発明の詳細な説明】 (技術分野) 本発明は記憶回路に係り、特にコンピュータ及び高速プ
ロセッサの主記憶装置や外部記憶装置などの記憶回路に
関する。TECHNICAL FIELD The present invention relates to a memory circuit, and more particularly to a memory circuit such as a main memory or an external memory of a computer and a high speed processor.
(従来技術) 記憶回路のメモリアクセスとして、リードアクセス(第
1図(a))及びライトアクセス(第1図(b))がある。こ
れら図に示す様に、クロック1の1周期を1サイクルと
すると、第1図(a)のリードアクセスでは1サイクル目
でメモリに対しアドレス2を送ってリード要求3を行
い、2サイクル目で読出されたリードデータをデータバ
ス出力4としている。第1図(b)のライトアクセスでは
最初の1サイクルでライト要求3′によるライトデータ
4′をメモリに書込む。またメモリアクセスはアドレス
バス1本と、双方向データバス1本とで行う。この従来
の記憶回路のブロック図を第2図に示す。同図におい
て、本記憶回路は、ランダムアクセスメモリ回路11
と、タイミング制御回路12と、リードデータ出力ドラ
イバ13とライトデータ入力ドライバ14とから構成さ
れる。まず、第3図にも示すように、第1サイクル目に
リード要求cがアドレスデータfとともに入力される
と、タイミング制御回路12はライトイネーブル信号k
をオフにする。これによってメモリ11からデータをリ
ードし、同一サイクル内にリードデータjを出力する。
第2サイクル目のクロック信号eの立上りでアウトプッ
トコントロール信号hもハイレベルとなり、リードデー
タjをデータバスaに出力して、リードアクセスを終了
する。この間、ライトアクセスは禁止される。第3サイ
クル目でライト要求が可能となり、ライト要求dがON
になっていると、タイミング制御回路には、ライトイネ
ーブル信号kをONにするとともにアウトプットコント
ロール信号hをローレベルにし、リードデータ出力ドラ
イバ13の出力をハイインピーダンスにする。同時にイ
ンプットコントロール信号gをハイレベルにすることに
よって、ライトデータiは、アドレスデータfで指定さ
れたアドレスに書き込まれる。このような従来回路で
は、1サイクル目でリード要求が行なわれ、その次のサ
イクルでライト要求が行われると、リードアクセスに2
サイクル必要なため、データバス上でライトデータとリ
ードデータとのぶつかりが生じる。このため、第3図に
示す様に、リードアクセスの2サイクル間はメモリアク
セスを禁止しなければならず、メモリアクセスの効率化
が計れないという欠点があった。(Prior Art) Memory access to a memory circuit includes read access (FIG. 1 (a)) and write access (FIG. 1 (b)). As shown in these figures, assuming that one cycle of the clock 1 is one cycle, in the read access shown in FIG. 1 (a), the address 2 is sent to the memory at the first cycle and the read request 3 is made, and at the second cycle. The read read data is used as the data bus output 4. In the write access shown in FIG. 1 (b), the write data 4'according to the write request 3'is written in the memory in the first cycle. Memory access is performed by one address bus and one bidirectional data bus. A block diagram of this conventional memory circuit is shown in FIG. In the figure, this memory circuit is a random access memory circuit 11
And a timing control circuit 12, a read data output driver 13 and a write data input driver 14. First, as shown in FIG. 3, when the read request c is input together with the address data f in the first cycle, the timing control circuit 12 causes the write enable signal k
Turn off. As a result, the data is read from the memory 11 and the read data j is output within the same cycle.
At the rising edge of the clock signal e in the second cycle, the output control signal h also becomes high level, the read data j is output to the data bus a, and the read access is completed. During this time, write access is prohibited. Write request becomes possible in the third cycle, and write request d is turned on.
Then, in the timing control circuit, the write enable signal k is turned on, the output control signal h is set to low level, and the output of the read data output driver 13 is set to high impedance. At the same time, by setting the input control signal g to the high level, the write data i is written at the address designated by the address data f. In such a conventional circuit, when a read request is made in the first cycle and a write request is made in the next cycle, two read access requests are made.
Since cycles are required, write data and read data collide with each other on the data bus. For this reason, as shown in FIG. 3, the memory access must be prohibited during the two read access cycles, and the memory access efficiency cannot be improved.
(発明の目的) 本発明の目的は、前記欠点を解決し、連続サイクルでリ
ードアクセス,ライトアクセスを行った時のデータバス
上でのリードデータとライトデータとのぶつかりを回避
し、メモリアクセスの効率化ひいては高速化を可能とし
た記憶回路を提供することにある。(Object of the Invention) An object of the present invention is to solve the above-mentioned drawbacks, avoid collision of read data and write data on the data bus when performing read access and write access in continuous cycles, and to prevent memory access. It is to provide a memory circuit that can achieve higher efficiency and higher speed.
(発明の構成) 本発明の記憶回路の構成は、メモリ回路と、データバス
と、前記データバスを入力とし前記メモリ回路に出力す
る第1のドライバと、前記メモリ回路のリードデータを
入力とし前記データバスに出力する第2のドライバと、
前記第1,第2のドライバ,前記メモリ回路を制御する
タイミング制御回路と、前記第2のドライバと前記メモ
リ回路との間に、前記リードデータを一時的に記憶する
ラッチ回路とを設けたことを特徴とする。(Structure of the Invention) A memory circuit according to the present invention has a memory circuit, a data bus, a first driver that receives the data bus as an input and outputs the data circuit to the memory circuit, and receives read data of the memory circuit as an input. A second driver that outputs to the data bus,
A timing control circuit for controlling the first and second drivers and the memory circuit and a latch circuit for temporarily storing the read data are provided between the second driver and the memory circuit. Is characterized by.
(実施例) 次に本発明の実施例について図面を参照して詳細に説明
する。(Example) Next, the Example of this invention is described in detail with reference to drawings.
第4図は本発明の一実施例の記憶回路を示す回路ブロッ
ク図、第5図は第4図の記憶回路のタイミング図であ
る。これらの図において、本記憶回路は、ランダムアク
セスメモリ回路11とタイミング制御回路12とラッチ
回路15とリードデータ出力ドライバ13とライトデー
タ入力ドライバ14とを含み構成される。まず、第1サ
イクル目に、リード要求dがアドレスデータfとともに
入力されると、タイミング制御回路12はライトイネー
ブル信号kをオフにする。これによってメモリ回路11
からデータをリードし、同一サイクル内にメモリ回路1
1からのリードデータjをラッチ回路15に記録する。
このラッチ回路15のラッチタイミングは、クロック信
号eを1/4周期程度遅延させたサブクロック信号と同
期させたラッチ信号lの立下りで行う。第2サイクル目
にライト要求dがOFFになっている場合は、第2サイ
クル目のクロック信号eの立上りでアウトプットコント
ロール信号hもハイレベルとなり、ラッチデータmをデ
ータバスaに出力してリードアクセスを終了する。第2
サイクル目にライト要求dがONになっていると、タイ
ミング制御回路12はライトイネーブル信号kをONに
するとともに、アウトプットコントロール信号hをロー
レベルにし、ラッチデータmのデータバスaへの出力を
禁止する。これによって、リードデータとライトデータ
とのぶつかりを回避し、リードデータはラッチ回路15
によって保持される。また、インプットコントロール信
号gをハイレベルにすることによってライトデータiは
アドレスデータfで指定されたアドレスに書込まれる。
ライトアクセスが終了すると、ライト要求信号dはOF
F,リード要求信号はONになり、アウトプットコント
ロール信号hはハイレベルとなる。これによって保持さ
れていたリードデータすなわちラッチデータmは、デー
タバスに出力される。尚第5図において、連続サイクル
でR1データのリード要求,R2データのリード要求,
それにW1データのライト要求を行った時のメモリサイ
クルタイミング等が示されている。FIG. 4 is a circuit block diagram showing a memory circuit of an embodiment of the present invention, and FIG. 5 is a timing diagram of the memory circuit of FIG. In these drawings, the present memory circuit includes a random access memory circuit 11, a timing control circuit 12, a latch circuit 15, a read data output driver 13, and a write data input driver 14. First, in the first cycle, when the read request d is input together with the address data f, the timing control circuit 12 turns off the write enable signal k. As a result, the memory circuit 11
From the memory circuit 1 in the same cycle
The read data j from 1 is recorded in the latch circuit 15.
The latch timing of the latch circuit 15 is set at the falling edge of the latch signal l synchronized with the sub clock signal obtained by delaying the clock signal e by about 1/4 cycle. When the write request d is OFF in the second cycle, the output control signal h also becomes high level at the rising edge of the clock signal e in the second cycle, and the latch data m is output to the data bus a and read. Terminate access. Second
When the write request d is turned on at the cycle, the timing control circuit 12 turns on the write enable signal k, turns the output control signal h to low level, and outputs the latch data m to the data bus a. Ban. As a result, collision of read data and write data is avoided, and read data is latched by the latch circuit 15.
Held by Further, by setting the input control signal g to the high level, the write data i is written at the address designated by the address data f.
When the write access ends, the write request signal d becomes OF.
F, the read request signal is turned on, and the output control signal h becomes high level. The read data, that is, the latch data m held by this is output to the data bus. In FIG. 5, in a continuous cycle, R1 data read request, R2 data read request,
It also shows the memory cycle timing and the like when a W1 data write request is issued.
(発明の効果) 以上説明したように、本発明によれば、メモリアクセス
をリードデータのメモリからの読出し、メモリから読出
したデータのデータバスへの出力、及びライトデータの
メモリへの書込みの3ステップに分割し、パイプライン
的に並列処理する構成を取ることによって、連続サイク
ルにおけるメモリアクセスを高速に処理することができ
る等の効果が得られる。(Effects of the Invention) As described above, according to the present invention, three types of memory access are performed: read data is read from the memory, data read from the memory is output to the data bus, and write data is written to the memory. By dividing the process into steps and performing parallel processing in a pipeline manner, it is possible to obtain an effect such that memory access in a continuous cycle can be processed at high speed.
第1図(a)はメモリアクセスのうちリードアクセスを示
すタイミング図、第1図(b)はメモリアクセスのうちラ
イトアクセスを示すタイミング図、第2図は従来の記憶
回路を示す回路ブロック図、第3図は第2図の記憶回路
において連続サイクルでリード要求,ライト要求を行っ
た場合を示すタイミング図、第4図は本発明の一実施例
の記憶回路を示す回路ブロック図、第5図は第4図の記
憶回路において連続サイクルでリード要求,ライト要求
を行った場合を示すタイミング図である。尚図において 1……クロック、2,2′……アドレス、3……リード
要求、3′……ライト要求、4,4′……データ出力、
11……ランダムアクセスメモリ回路、12……タイミ
ング制御回路、13……出力ドライバ回路、14……入
力ドライバ回路、15……ラッチ回路、a……データバ
ス、b……アウトプットイネーブル信号、c……リード
要求信号、d……ライト要求信号、e……クロック信
号、f……アドレスデータ、g……インプットコントロ
ール信号、h……アウトプットコントロール信号、i…
…ライトデータ、j……リードデータ、k……ライトイ
ネーブル信号、l……ラッチ信号、m……ラッチデー
タ、R1,R2……メモリからの読出しデータ、W1…
…メモリへの書込みデータ。FIG. 1 (a) is a timing diagram showing a read access among memory accesses, FIG. 1 (b) is a timing diagram showing a write access among memory accesses, and FIG. 2 is a circuit block diagram showing a conventional memory circuit, FIG. 3 is a timing diagram showing a case where a read request and a write request are made in a continuous cycle in the memory circuit of FIG. 2, FIG. 4 is a circuit block diagram showing a memory circuit of an embodiment of the present invention, and FIG. FIG. 6 is a timing diagram showing a case where a read request and a write request are made in consecutive cycles in the memory circuit of FIG. In the figure, 1 ... Clock, 2, 2 '... Address, 3 ... Read request, 3' ... Write request, 4, 4 '... Data output,
11 ... Random access memory circuit, 12 ... Timing control circuit, 13 ... Output driver circuit, 14 ... Input driver circuit, 15 ... Latch circuit, a ... Data bus, b ... Output enable signal, c ... Read request signal, d ... Write request signal, e ... Clock signal, f ... Address data, g ... Input control signal, h ... Output control signal, i ...
... write data, j ... read data, k ... write enable signal, l ... latch signal, m ... latch data, R1, R2 ... read data from memory, W1 ...
… Data written to memory.
Claims (1)
たアドレスバスと、リードデータとライトデータとを共
通に扱うデータバスと、前記データバスと前記メモリ回
路との間に挿入されライトデータを前記メモリ回路に出
力する第1のドライバと、前記データバスと前記メモリ
回路との間に挿入され前記メモリ回路からのリードデー
タを前記データバスに出力する第2のドライバと、前記
第2のドライバと前記メモリ回路との間に設けられ前記
リードデータを一時的に記憶するラッチ回路と、前記メ
モリ回路、第1及び第2のドライバ及びラッチ回路を制
御するタイミング制御回路とを具備し、前記タイミング
制御回路は、1サイクルの間にライトアドレスとライト
データを前記メモリ回路に与えてライト動作を完了し、
1サイクルの間にリードアドレスを前記メモリ回路に与
えて読出されたリードデータを前記ラッチ回路にラッチ
する動作を完了し、リードサイクルの後にライトサイク
ルがこない場合は次のサイクルで前記ラッチ回路のリー
ドデータを前記データバスへ送り出すように前記第2の
ドライバを制御し、リードサイクルの後にライトクルが
1回来る場合はライトサイクルが終ったあとのサイクル
で、またリードサイクルの後にライトサイクルが連続し
て来る場合は連続するライトサイクルが全て終ったあと
のサイクルで前記ラッチ回路のリードデータを前記デー
タバスへ送り出すように前記第2のドライバを制御する
ことを特徴とする記憶回路。1. A memory circuit, an address bus connected to the memory circuit, a data bus that handles read data and write data in common, and write data inserted between the data bus and the memory circuit. A first driver for outputting to the memory circuit, a second driver inserted between the data bus and the memory circuit for outputting read data from the memory circuit to the data bus, and the second driver A timing circuit that controls the memory circuit, the first and second drivers and the latch circuit, and a timing control circuit that is provided between the memory circuit and the memory circuit. The control circuit gives a write address and write data to the memory circuit in one cycle to complete the write operation,
The operation of applying the read address to the memory circuit during one cycle to complete the operation of latching the read data read in the latch circuit, and if the write cycle does not come after the read cycle, the read of the latch circuit is performed in the next cycle. The second driver is controlled so as to send out data to the data bus, and if the write cycle comes once after the read cycle, the write cycle ends and the write cycle continues after the read cycle. When it comes, the storage circuit is characterized in that the second driver is controlled so as to send the read data of the latch circuit to the data bus in a cycle after all the continuous write cycles are completed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59050419A JPH0630084B2 (en) | 1984-03-16 | 1984-03-16 | Memory circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59050419A JPH0630084B2 (en) | 1984-03-16 | 1984-03-16 | Memory circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60195658A JPS60195658A (en) | 1985-10-04 |
| JPH0630084B2 true JPH0630084B2 (en) | 1994-04-20 |
Family
ID=12858343
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59050419A Expired - Lifetime JPH0630084B2 (en) | 1984-03-16 | 1984-03-16 | Memory circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0630084B2 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5538668A (en) * | 1978-09-12 | 1980-03-18 | Nec Corp | Memory unit |
-
1984
- 1984-03-16 JP JP59050419A patent/JPH0630084B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60195658A (en) | 1985-10-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2571067B2 (en) | Bus master | |
| JPS6073774A (en) | Interface circuit | |
| JPH0619760B2 (en) | Information processing equipment | |
| JPS6217783B2 (en) | ||
| JP2000020451A (en) | Device and method for processing information and provision method | |
| JPH0630084B2 (en) | Memory circuit | |
| JPS6323581B2 (en) | ||
| JPH029401Y2 (en) | ||
| JP2606824Y2 (en) | Multiport memory device | |
| JP2570271B2 (en) | Semiconductor memory controller | |
| JP2719227B2 (en) | Processing equipment | |
| JPH0142017B2 (en) | ||
| JP3255429B2 (en) | Memory interface circuit | |
| JP2626112B2 (en) | Microprocessor | |
| JPS6113265B2 (en) | ||
| JPS5999522A (en) | Input and output control system | |
| JPS5938827A (en) | Microprocessor ipl system | |
| JPS61183764A (en) | Direct memory access controlling system | |
| JPH0587653U (en) | Address generator | |
| JPS646495B2 (en) | ||
| JPH05108545A (en) | Dma controller | |
| JPS63223854A (en) | Set-up time control system | |
| JPH11176165A (en) | Sequential access type semiconductor memory device | |
| JPH01265351A (en) | MPU system | |
| JPH0520165A (en) | System bus controller |