JPH0118520B2 - - Google Patents
Info
- Publication number
- JPH0118520B2 JPH0118520B2 JP58114744A JP11474483A JPH0118520B2 JP H0118520 B2 JPH0118520 B2 JP H0118520B2 JP 58114744 A JP58114744 A JP 58114744A JP 11474483 A JP11474483 A JP 11474483A JP H0118520 B2 JPH0118520 B2 JP H0118520B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- signal
- memory
- timing
- output
- 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
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
Landscapes
- Memory System (AREA)
Description
【発明の詳細な説明】
発明の技術分野
本発明は、読出し書込みメモリ(以下RAMと
略す)をレジスタとしてアクセスする場合におけ
るタイミングを定めるための、メモリアクセスタ
イミング回路に関するものである。TECHNICAL FIELD OF THE INVENTION The present invention relates to a memory access timing circuit for determining timing when a read/write memory (hereinafter abbreviated as RAM) is accessed as a register.
従来技術と問題点
メモリをアクセスするためには、その動作のタ
イミングを定めるための各種の信号を必要とす
る。このような信号は通常、シフトレジスタ等を
利用して、一定の順序とタイミングとを有する出
力を発生することによつて作られる。Prior Art and Problems In order to access a memory, various signals are required to determine the timing of its operation. Such signals are typically created using shift registers or the like to generate outputs with a fixed order and timing.
一方、メモリと入出力回路としてのレジスタと
では、これらをアクセスするタイミングがそれぞ
れ異つており、そのため、RAMをレジスタとし
てアクセスするためには、そのためのタイミング
回路が必要である。 On the other hand, memory and registers serving as input/output circuits have different access timings, and therefore, in order to access RAM as a register, a timing circuit is required.
第1図は従来のRAMをレジスタとしてアクセ
スするためのRAMアクセスタイミング回路の構
成を示している。同図において1は外部バス、2
はRAM、3はバスタイミング回路、4はアドレ
スバス、5−1,5−2はそれぞれラツチ回路、6
はドライバレシーバ、7はメモリタイミング回
路、8は内部バスである。またバスタイミング回
路3において、31はアドレス一致回路、32は
ゲート回路、33はオア回路、34はシフトレジ
スタ、35,36,37はゲート回路である。 FIG. 1 shows the configuration of a conventional RAM access timing circuit for accessing RAM as a register. In the figure, 1 is an external bus, 2
is RAM, 3 is a bus timing circuit, 4 is an address bus, 5-1 and 5-2 are latch circuits, 6
is a driver receiver, 7 is a memory timing circuit, and 8 is an internal bus. In the bus timing circuit 3, 31 is an address matching circuit, 32 is a gate circuit, 33 is an OR circuit, 34 is a shift register, and 35, 36, and 37 are gate circuits.
第1図において、外部バス1がRAM2をレジ
スタとしてこれにデータを書込む場合には、図示
されない中央制御装置(以下CPUと略す)から
バスタイミング回路3に対して、書込み指示信号
*WTをオンにするとともに、アドレスバス4を
経て所定のアドレスを出力する。アドレスバス4
から与えられたアドレスがアドレス一致回路31
に予めセツトされているアドレスと一致したと
き、アドレス一致回路31は出力を発生してゲー
ト回路32を開く。これによつてオア回路33を
経て書込み指示信号*WTがシフトレジスタ34
に与えられ、クロツク信号CKに応じてシフトレ
ジスタ34がセツトされる。これによつて出力Q
1がオンになつてゲート回路35に加えられる。
ゲート回路35の他方の入力には書込み指示信号
*WTが加えられており、これによつてゲート回
路35から信号CK1が発生して、ラツチ回路5
-1のCK端子に加えられる。ラツチ回路5-1は信
号CK1を加えられたとき、ドライバレシーバ6
を経て外部バス1のデータをラツチする。一方、
シフトレジスタ34は信号MEMREQをメモリタ
イミング回路7に対して出力する。メモリタイミ
ング回路7はこれによつて、RAM2が動作する
ために必要な各種のタイミング信号を、RAM2
に対して発生し、RAMにメモリライトのサイク
ルを与える。RAM2はこれによつて内部バス8
のデータを書込む状態となるが、ラツチ回路はゲ
ート回路35の出力を出力制御端子OCに与えら
れることによつて、ラツチしたデータを内部バス
8に出力しており、従つてラツチ回路5-1にラツ
チされたデータは、メモリライトのサイクルに応
じてRAM2に書込まれる。シフトレジスタ34
はRAM2の書込みが終了した時刻に出力Q3を
発生する。ゲート回路36は信号MEMREQによ
つて開いており、これによつて動作完了を示す確
認信号*ACKがCPUに対して返送される。さら
にシフトレジスタ34がリセツトされて出力Q1
がオフになり、従つてラツチ回路5-1は動作を停
止する。 In FIG. 1, when the external bus 1 writes data to the RAM 2 as a register, the central control unit (hereinafter abbreviated as CPU), not shown, turns on the write instruction signal *WT to the bus timing circuit 3. At the same time, a predetermined address is output via the address bus 4. address bus 4
The address given from address match circuit 31
When the address matches the preset address, the address match circuit 31 generates an output and opens the gate circuit 32. As a result, the write instruction signal *WT is sent to the shift register 34 via the OR circuit 33.
The shift register 34 is set in response to the clock signal CK. This results in output Q
1 is turned on and applied to the gate circuit 35.
A write instruction signal *WT is applied to the other input of the gate circuit 35, so that the signal CK1 is generated from the gate circuit 35, and the latch circuit 5
-1 is added to the CK terminal. When the latch circuit 5-1 is applied with the signal CK1, the driver receiver 6
The data on the external bus 1 is latched via the external bus 1. on the other hand,
Shift register 34 outputs signal MEMREQ to memory timing circuit 7. The memory timing circuit 7 thereby sends various timing signals necessary for the operation of the RAM 2 to the RAM 2.
occurs and gives a memory write cycle to RAM. RAM2 is thereby connected to internal bus 8.
However, the latch circuit outputs the latched data to the internal bus 8 by applying the output of the gate circuit 35 to the output control terminal OC, and therefore the latch circuit 5 - The data latched to 1 is written to RAM2 in accordance with the memory write cycle. shift register 34
generates output Q3 at the time when writing to RAM2 is completed. The gate circuit 36 is opened by the signal MEMREQ, and an acknowledgment signal *ACK indicating the completion of the operation is thereby sent back to the CPU. Furthermore, the shift register 34 is reset and output Q1
is turned off, and therefore the latch circuit 5-1 stops operating.
次にRAM2に書込まれたデータを外部バス1
に読出す場合には、CPUは読出し指示信号*RD
をオンにするとともに、アドレスバス4に所定の
アドレスを出力する。これによつてアドレス一致
回路31においてアドレスの一致がとれると、ゲ
ート回路32から出力が発生してシフトレジスタ
34がセツトされて、出力Q2がオンになるとと
もに信号MEMREQが出力される。メモリタイミ
ング回路7はこれによつてRAM2にタイミング
信号を与えRAMにメモリリードのサイクルを与
える。従つてRAM2から書込まれているデータ
が読出されて内部バス8に出力される。これとと
もにメモリタイミング回路から信号CK2が出力
されて、内部バス8のデータがラツチ回路5-2に
ラツチされ、メモリリードサイクルが終了した後
でもデータは保持される。一方、出力Q2の発生
によつてゲート回路37から出力が発生して、ラ
ツチ回路5-2の出力制御端子OCに与えられるこ
とによつて、ラツチ回路5-2にラツチされたデー
タが読出されてドライバレシーバ6を経て外部バ
ス1に出力される。シフトレジスタ34は外部バ
ス1へのデータ出力が終了した時刻に出力Q3を
発生し、これによつてゲート回路36を経て確認
信号*ACKがCPUに返送され、さらにシフトレ
ジスタ34のリセツトによつて出力Q2がオフに
なつてラツチ回路5-2が動作を停止する。 Next, the data written to RAM2 is transferred to external bus 1.
When reading, the CPU sends the read instruction signal *RD
is turned on, and a predetermined address is output to the address bus 4. When the addresses match in the address match circuit 31, an output is generated from the gate circuit 32, the shift register 34 is set, the output Q2 is turned on, and the signal MEMREQ is output. The memory timing circuit 7 thereby provides a timing signal to the RAM 2 to provide a memory read cycle to the RAM. Therefore, the data written in RAM 2 is read out and output to internal bus 8. At the same time, the signal CK2 is output from the memory timing circuit, and the data on the internal bus 8 is latched in the latch circuit 5-2 , so that the data is held even after the memory read cycle is completed. On the other hand, an output is generated from the gate circuit 37 due to the generation of the output Q2, and is applied to the output control terminal OC of the latch circuit 5-2 , so that the data latched in the latch circuit 5-2 is read out. The signal is then output to the external bus 1 via the driver receiver 6. The shift register 34 generates an output Q3 at the time when the data output to the external bus 1 is completed, and an acknowledgment signal *ACK is sent back to the CPU via the gate circuit 36. The output Q2 is turned off and the latch circuit 5-2 stops operating.
すなわちCPUからのアクセス要求により、バ
スタイミング回路3のメモリアクセス信号
(MEMREQ)によつてメモリタイミング回路7
が起動されるが、メモリタイミング回路7の終了
はバスタイミング回路3とは無関係に行われるた
め、ドライバレシーバ6とRAM2の間にラツチ
回路5−1,5−2を設けて、メモリタイミング回
路7とバスタイミング回路3のタイミング補正を
行うことが必要となる。 In other words, in response to an access request from the CPU, the memory timing circuit 7 is activated by the memory access signal (MEMREQ) of the bus timing circuit 3.
is activated, but the memory timing circuit 7 is terminated independently of the bus timing circuit 3. Therefore, latch circuits 5-1 and 5-2 are provided between the driver receiver 6 and the RAM 2, and the memory timing circuit 7 is activated. Therefore, it is necessary to correct the timing of the bus timing circuit 3.
このように従来のメモリアクセスタイミング回
路ではRAMをレジスタとしてアクセスするため
には、外部バスにおけるデータ入出力のタイミン
グと、RAMにおける書込み、読出しサイクルの
タイミングとの調整をとるためにラツチ回路とこ
れを制御するための回路を必要とし、回路構成が
複雑化することを避けられなかつた。 In this way, in order to access RAM as a register, conventional memory access timing circuits require a latch circuit and a latch circuit to adjust the timing of data input/output on the external bus and the timing of write and read cycles in RAM. This requires a circuit for control, making the circuit configuration unavoidably complicated.
発明の目的
本発明はこのような従来技術の問題点を解決し
ようとするものであつて、その目的はRAMをレ
ジスタとしてアクセスする場合において、ラツチ
回路を必要としないメモリアクセスタイミング回
路を提供することにある。Purpose of the Invention The present invention aims to solve the problems of the prior art, and its purpose is to provide a memory access timing circuit that does not require a latch circuit when accessing RAM as a register. It is in.
発明の実施例
第2図は本発明のメモリアクセスタイミング回
路の一実施例の構成を示すものである。同図にお
いて、第1図におけると同じ部分は同じ番号で示
されており、9はフリツプフロツプ(FF)であ
る。Embodiment of the Invention FIG. 2 shows the configuration of an embodiment of the memory access timing circuit of the present invention. In this figure, the same parts as in FIG. 1 are designated by the same numbers, and 9 is a flip-flop (FF).
第2図において、外部バス1がRAM2をレジ
スタとしてこれにデータを書込む場合には、
CPUが書込み指示信号*WTをオンにするととも
に、アドレスバス4を経て所定のアドレスを出力
する。アドレス一致回路31においてアドレスの
一致がとれたとき、ゲート回路32から出力が発
生しクロツクCKに応じてシフトレジスタ34が
セツトされる。これによつてシフトレジスタ34
から信号MEMREQが発生し、メモリタイミング
回路7に与えられる。メモリタイミング回路7は
これによつてRAM2が動作するために必要な各
種タイミング信号を発生し、メモリライトサイク
ルを与える。RAM2はタイミング信号を与えら
れたとき、ドライバレシーバ6を経て内部バス8
に出力されている外部バス1のデータを書込む。
一方、後述するデータ読出しの場合と同様の動作
によつて信号MEMSELが出力され、さらに書込
み終了時刻に信号Tが出力されてこれによつて
FF9がセツトされて信号PAUSEによつてメモリ
のライトサイクルが終了せずに待たされる。これ
と同時に信号MEMACKが出力されてゲート回路
36を経て動作完了を示す確認信号*ACKが
CPUに対して返送される。CPUは*ACKが返送
されたのを知り、指示信号*WTアドレスバスを
OFFし、それによつてMEMREQ、MEMSELが
OFFされる。MEMSELがFFされることによ
り、FF9はリセツト状態となり、信号PAUSEは
OFFされメモリのライトサイクルが終了する。 In FIG. 2, when external bus 1 writes data to RAM 2 as a register,
The CPU turns on the write instruction signal *WT and outputs a predetermined address via the address bus 4. When the addresses match in the address match circuit 31, an output is generated from the gate circuit 32 and the shift register 34 is set in response to the clock CK. This allows the shift register 34
A signal MEMREQ is generated from the memory timing circuit 7 and applied to the memory timing circuit 7. The memory timing circuit 7 thereby generates various timing signals necessary for the operation of the RAM 2 and provides a memory write cycle. When RAM2 is given a timing signal, it passes through driver receiver 6 to internal bus 8.
Write the data of external bus 1 that is being output to.
On the other hand, the signal MEMSEL is output by the same operation as in the case of data reading, which will be described later, and furthermore, the signal T is output at the write end time.
FF9 is set and the memory write cycle is made to wait without being completed by the signal PAUSE. At the same time, the signal MEMACK is output, and the confirmation signal *ACK indicating the completion of the operation is sent through the gate circuit 36.
Sent back to the CPU. The CPU knows that *ACK has been returned, and sends the instruction signal *WT address bus.
OFF, thereby MEMREQ, MEMSEL
It will be turned off. By turning MEMSEL FF, FF9 becomes reset state, and signal PAUSE becomes
It is turned OFF and the memory write cycle ends.
次にRAM2に書込まれたデータを外部バス1
に読出す場合には、CPUは読出し指示信号*RD
をオンにするとともに、アドレスバス4に所定の
アドレスを出力する。アドレス一致回路31にお
いてアドレスの一致がとれると、ゲート回路32
から出力が発生してシフトレジスタ34がセツト
されて、信号MEMREQが出力される。メモリタ
イミング回路7はこれによつてRAM2にタイミ
ング信号を出力し、従つてRAM2から書込まれ
ているデータが読出されて内部バス8に出力さ
れ、ドライバレシーバ6を経て外部バス1に出力
される。 Next, the data written to RAM2 is transferred to external bus 1.
When reading, the CPU sends the read instruction signal *RD
is turned on, and a predetermined address is output to the address bus 4. When the addresses match in the address matching circuit 31, the gate circuit 32
An output is generated from , the shift register 34 is set, and a signal MEMREQ is output. The memory timing circuit 7 thereby outputs a timing signal to the RAM 2, and therefore the data written from the RAM 2 is read out and output to the internal bus 8, and then output to the external bus 1 via the driver receiver 6. .
一方、アドレス一致回路31におけるアドレス
一致によつて信号MEMSELが出力されてFF9
0のリセツトが解除され、メモリタイミング回路
7からRAM2におけるデータの読出しが終了す
る時刻に信号Tが出力され、これによつてFF9
がセツトされて信号PAUSEが出力され、メモリ
のリードサイクルが終了せずに待たされる。ま
た、同時に信号MEMACKが出力されて、ゲート
回路36を経て動作完了を示す確認信号*ACK
がCPUに対して返送される。前述のデータ書込
みの場合と同様に、CPUは*ACKの返送によつ
て信号*RDとアドレスバスをOFFし、それによ
つてMEMREQ、MEMSELがOFFされ、従つて
FF9はリセツト状態となり、信号PAUSEは
OFFされてメモリのリードサイクルが終了する。 On the other hand, due to the address match in the address match circuit 31, the signal MEMSEL is output and the FF9
0 reset is released and the memory timing circuit 7 outputs the signal T at the time when the reading of data in the RAM 2 is completed.
is set and the signal PAUSE is output, causing the memory read cycle to wait without completing. At the same time, the signal MEMACK is output, and the confirmation signal *ACK indicating the completion of the operation is passed through the gate circuit 36.
is sent back to the CPU. As in the case of data writing described above, the CPU turns off the signal *RD and the address bus by returning *ACK, which turns off MEMREQ and MEMSEL, and therefore
FF9 is in the reset state and the signal PAUSE is
It is turned OFF and the memory read cycle ends.
すなわち本発明では、CPUからのメモリアク
セス要求では、メモリタイミング回路7の終了が
バスのアクセスのときはPAUSE信号により延長
されることで、データバスのラツチが不要とな
る。 That is, in the present invention, in the case of a memory access request from the CPU, the end of the memory timing circuit 7 is extended by the PAUSE signal when the bus is accessed, thereby eliminating the need to latch the data bus.
このように本発明のメモリアクセスタイミング
回路では、RAMをレジスタとしてアクセスする
ために外部バスにおけるデータ入出力のタイミン
グと、RAMにおける書込み、読出しのタイミン
グとの調整を行うためにラツチ回路およびこれを
制御するための回路を必要とせず、回路構成が簡
単化される。 As described above, the memory access timing circuit of the present invention uses a latch circuit and a latch circuit to adjust the timing of data input/output on the external bus and the timing of writing and reading in the RAM in order to access the RAM as a register. There is no need for a circuit for this purpose, and the circuit configuration is simplified.
発明の効果
以上説明したように本発明のメモリアクセスタ
イミング回路によれば、書込み指示信号に応じて
外部バスのデータを書込むためのタイミング信号
をメモリに対して発生するとともに読出し指示信
号に応じてメモリのデータを外部バスへ読出すた
めのタイミング信号を発生する手段を設けるとと
もに、該手段のタイミング信号に応じてメモリに
おけるデータの書込みまたは読出しの終了を示す
確認信号およびメモリのアクセスサイクルを休止
する信号を出力する手段を設けたので、外部から
メモリをレジスタとしてアクセスする際における
メモリのアクセスタイミングを外部のタイミング
に依存したものとすることができる。従つて外部
バスにおけるデータの入出力タイミングとメモリ
における書込み、読出しのタイミングとの調整を
とるためのラツチ回路およびその制御回路が不要
になり、回路構成が簡単化される。Effects of the Invention As explained above, according to the memory access timing circuit of the present invention, a timing signal for writing data on an external bus is generated to the memory in response to a write instruction signal, and a timing signal for writing data on an external bus is generated in response to a read instruction signal. A means for generating a timing signal for reading data from the memory onto an external bus is provided, and a confirmation signal indicating completion of writing or reading data in the memory and a halt to the memory access cycle are provided in accordance with the timing signal of the means. Since a means for outputting a signal is provided, the access timing of the memory can be made dependent on the external timing when the memory is accessed from the outside as a register. Therefore, a latch circuit and its control circuit for adjusting the data input/output timing on the external bus and the write/read timing in the memory are not required, and the circuit configuration is simplified.
第1図は従来のメモリアクセスタイミング回路
の構成を示す図、第2図は本発明のメモリアクセ
スタイミング回路の一実施例の構成を示す図であ
る。
1……外部バス、2……読出し書込みメモリ
(RAM)、3……バスタイミング回路、4……ア
ドレスバス、5-1,5-2……ラツチ回路、6……
ドライバレシーバ、7……メモリタイミング回
路、8……内部バス、9……フリツプフロツプ
(FF)、31……アドレス一致回路、32……ゲ
ート回路、33……オア回路、34……シフトレ
ジスタ、35,36,37……ゲート回路。
FIG. 1 is a diagram showing the configuration of a conventional memory access timing circuit, and FIG. 2 is a diagram showing the configuration of an embodiment of the memory access timing circuit of the present invention. 1... External bus, 2... Read/write memory (RAM), 3... Bus timing circuit, 4... Address bus, 5 -1 , 5 -2 ... Latch circuit, 6...
Driver receiver, 7... Memory timing circuit, 8... Internal bus, 9... Flip-flop (FF), 31... Address matching circuit, 32... Gate circuit, 33... OR circuit, 34... Shift register, 35 , 36, 37... gate circuit.
Claims (1)
出しをレジスタとして行う際におけるメモリの書
込み、読出しのタイミングを定めるメモリアクセ
スタイミング回路において、書込み指示信号に応
じて外部バスのデータを書込むためのタイミング
信号をメモリに対して発生するとともに読出し指
示信号に応じてメモリのデータを外部バスへ読出
すためのタイミング信号をメモリに対して発生す
る手段と、該手段のタイミング信号に応じてメモ
リにおけるデータの書込みまたは読出しの終了を
示す確認信号及びメモリのアクセスサイクルを休
止する信号を出力する手段を具えたことを特徴と
するメモリアクセスタイミング回路。1. Timing for writing data on the external bus in response to a write instruction signal in a memory access timing circuit that determines the timing of writing and reading data when writing and reading data between an external bus and memory as a register. means for generating a signal to the memory and a timing signal for reading data in the memory to an external bus in response to a read instruction signal; 1. A memory access timing circuit comprising means for outputting a confirmation signal indicating completion of writing or reading and a signal halting a memory access cycle.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58114744A JPS607677A (en) | 1983-06-25 | 1983-06-25 | Memory access timing circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58114744A JPS607677A (en) | 1983-06-25 | 1983-06-25 | Memory access timing circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS607677A JPS607677A (en) | 1985-01-16 |
| JPH0118520B2 true JPH0118520B2 (en) | 1989-04-06 |
Family
ID=14645572
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58114744A Granted JPS607677A (en) | 1983-06-25 | 1983-06-25 | Memory access timing circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS607677A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0426221Y2 (en) * | 1985-01-22 | 1992-06-24 |
-
1983
- 1983-06-25 JP JP58114744A patent/JPS607677A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS607677A (en) | 1985-01-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3001981B2 (en) | Optimization circuit and control for a synchronous memory device with programmable latency | |
| JPS61175845A (en) | Microprocessor system | |
| JPS62251865A (en) | Information processor | |
| JPH11167515A (en) | Data transmission device and data transmission method | |
| JPH0118520B2 (en) | ||
| JP2624388B2 (en) | DMA device | |
| JPH0143392B2 (en) | ||
| JPH029401Y2 (en) | ||
| JPH0542525Y2 (en) | ||
| KR930010283B1 (en) | Data access circuits | |
| EP0644550B1 (en) | Dram control Circuit | |
| JP2597156Y2 (en) | Evaluation microcomputer | |
| JPS626360A (en) | Memory control circuit | |
| JPH0158597B2 (en) | ||
| JPH03276346A (en) | Memory card | |
| JPS6112294B2 (en) | ||
| JPH0259495B2 (en) | ||
| JPS58179978A (en) | Writing control system of semiconductor memory | |
| JPS601644B2 (en) | Timing pulse generation circuit | |
| JPH01316847A (en) | Memory interface system | |
| JPS6049333B2 (en) | Clock control method | |
| JP2002312257A (en) | Trace device | |
| JPS6155764A (en) | Address setting control system | |
| JPS627583B2 (en) | ||
| JPH10149313A (en) | Shared memory controller |