JPH02183350A - Memory access circuit - Google Patents

Memory access circuit

Info

Publication number
JPH02183350A
JPH02183350A JP214089A JP214089A JPH02183350A JP H02183350 A JPH02183350 A JP H02183350A JP 214089 A JP214089 A JP 214089A JP 214089 A JP214089 A JP 214089A JP H02183350 A JPH02183350 A JP H02183350A
Authority
JP
Japan
Prior art keywords
memory
data
signal
clock signal
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.)
Pending
Application number
JP214089A
Other languages
Japanese (ja)
Inventor
Izuru Haruhara
春原 出
Masao Tokokuni
雅夫 常国
Katsunori Kato
勝則 加藤
Atsuyuki Seki
敬幸 関
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP214089A priority Critical patent/JPH02183350A/en
Publication of JPH02183350A publication Critical patent/JPH02183350A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently store data to a memory or to read the data by counting a clock signal and preparing the access timing of the memory. CONSTITUTION:A counter 31 of a memory timing adjustment circuit inputs a clock signal the inverse of CLK and counts the number of the clocks corresponding to the pointer of the memory. A counter 29 counts the number of the input and output data to the memory synchronizing with the clock signal the inverse of CLK. A comparator 30 compares these count values and when those values are coincident, a coincidence signal 24 is made high level. Then, an SE signal outputted from an AND circuit 27 writes the data of an SD bus to the serial port of the memory with the rising of a clock signal SAS. Thus, since the serial port side of the dual port memory can be asynchronously accessed, the memory can be simultaneously read and written and the use efficiency of the bus is improved.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は例えばデュアルポートメモリなどのメモリにア
クセスし、そのメモリと入出力機器との間でデータの入
出力処理を実行するメモリアクセス回路に関するもので
ある。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a memory access circuit that accesses a memory such as a dual port memory and executes data input/output processing between the memory and an input/output device. It is something.

[従来の技術] 従来、スキャナなどよりのイメージデータな人力したり
、プリンタやCRT等に出力するイメージデータなどの
イメージデータを記憶する場合、同一のボートを通して
データを書込んだり、読出したりできる単一のポートし
か持たないRAMからなるメモリに記憶していた。
[Prior Art] Conventionally, when storing image data such as image data from a scanner or the like, or image data output to a printer or CRT, etc., a unit that can write and read data through the same boat has been used. It was stored in a memory consisting of RAM with only one port.

[発明が解決しようとする課題] しかしながら上記従来例では、メモリにデータを書込ん
でいるときはそのメモリよりデータの読出しができず、
メモリよりデータを読出しているときはそのメモリにデ
ータを書込むことができなかった。このため、例えばス
キャナからイメージデータを入力しながら、そのイメー
ジデータなプリンタ等に出力する場合、スキャナからの
イメージデータの入力中はプリンタへの出力ができず、
またプリンタへの出力中はスキャナよりのイメージデー
タの人力ができないという問題があった。
[Problems to be Solved by the Invention] However, in the above conventional example, when data is being written to the memory, data cannot be read from the memory.
While data was being read from memory, it was not possible to write data to that memory. For this reason, for example, if you are inputting image data from a scanner and outputting that image data to a printer, you will not be able to output to the printer while the image data is being input from the scanner.
There is also a problem in that the image data cannot be manually scanned by the scanner while it is being output to the printer.

さらにまた、このようなイメージデータは一般に多量で
あるため、イメージデータの転送中は長時間ハスを占有
してしまい、同一バス上の他の資源も有効に活用できな
いという問題があった。
Furthermore, since such image data is generally large in amount, the bus is occupied for a long time while the image data is being transferred, resulting in the problem that other resources on the same bus cannot be used effectively.

本発明は上記従来例に鑑みてなされたもので、クロック
信号を人力し、そのクロック信号によりメモリのバッフ
ァを指示するポインタを更新するメモリを用い、そのク
ロック信号を計数してメモリのアクセスタイミングを作
成してメモリにアクセスすることにより、効率良くその
メモリにデータの蓄積や読出しができるメモリアクセス
回路を提供することを目的とする。
The present invention has been made in view of the above-mentioned conventional example, and uses a memory that manually generates a clock signal, updates a pointer indicating a memory buffer using the clock signal, and calculates the memory access timing by counting the clock signal. It is an object of the present invention to provide a memory access circuit that can efficiently store and read data from and to a memory by creating the memory and accessing the memory.

[課題を解決するための手段] 上記目的を達成するために本発明のメモリアクセス回路
は以下の様な構成からなる。即ち、クロック信号を入力
し、該クロック信号を計数してメモリ内のバッファを指
示するポインタを備えたメモリにアクセスするメモリア
クセス回路であって、前記クロック信号を入力し、前記
ポインタに対応して前記クロック信号の数を計数する第
1の計数手段と、前記クロック信号に同期して前記メモ
リへの入出力データ数を計数する第2の計数手段と、前
記第1及び第2の計数手段の計数値を比較する比較手段
と、前記比較手段により前記計数値が一致したと判定さ
れると、前記メモリへの書込みあるいは前記メモリより
の読出しを行うアクセス手段とを有する。
[Means for Solving the Problems] In order to achieve the above object, a memory access circuit of the present invention has the following configuration. That is, it is a memory access circuit that receives a clock signal, counts the clock signal, and accesses a memory provided with a pointer that points to a buffer in the memory. a first counting means for counting the number of said clock signals; a second counting means for counting the number of input/output data to said memory in synchronization with said clock signal; and said first and second counting means. It has a comparing means for comparing the counted values, and an accessing means for writing to or reading from the memory when the comparing means determines that the counted values match.

[作用] 以上の構成において、クロック信号を人力し、メモリの
ポインタに対応して、そのクロック数を計数する。また
、そのクロック信号に同期してメモリへの人出力データ
数を計数する。これら計数値同士を比較し、計数値が一
致したと判定するとメモリへの書込みあるいはメモリよ
りの読出しを行うように動作する。
[Operation] In the above configuration, the clock signal is manually generated and the number of clocks is counted in correspondence with the pointer of the memory. In addition, the number of human output data to the memory is counted in synchronization with the clock signal. These counted values are compared, and if it is determined that the counted values match, it operates to write to or read from the memory.

[実施例] 以下、添付図面を参照して本発明の好適な実施例を詳細
に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[全体構成の説明 (第1図)] 第1図は本実施例のメモリ回路全体を示すブロツク図で
ある。
[Description of Overall Configuration (FIG. 1)] FIG. 1 is a block diagram showing the entire memory circuit of this embodiment.

第1図において、11は第2図に詳細を示すメモリタイ
ミング調整回路で、メモリ12とI10機器14との間
でのデータ転送制御を行っている。
In FIG. 1, 11 is a memory timing adjustment circuit whose details are shown in FIG. 2, which controls data transfer between the memory 12 and the I10 device 14.

12はランダムアクセスポートとシリアルアクセスポー
トの2ボートを持つメモリ(以下、デュアルポートメモ
リ)で、図示しないCPUなとよりデータバスを介して
入力されたデータを記憶したり、逆にデータバスにデー
タを読出したりするとともに、それとは非同期にシリア
ルポートな介して、SDババスデータを入出力できる。
Reference numeral 12 denotes a memory having two ports, a random access port and a serial access port (hereinafter referred to as dual port memory), which stores data input via a data bus from a CPU (not shown), or vice versa. SD bus data can be input and output asynchronously via the serial port.

13はデュアルポートメモリ12用のメモリコントロー
ラで、メモリ12のアドレスやロウアドレス(RAS)
カラムアドレス(CAS)及び書込み信号(WE)など
を出力している。14はDMA機能付き110機器で、
メモリ12へのデータ入出力要求を出力して、メモリ1
2よりデータを読出したり、デュアルポートメモリ12
にデータを書込むことができる。
13 is a memory controller for the dual port memory 12, which controls the memory 12 address and row address (RAS).
It outputs column address (CAS), write signal (WE), etc. 14 is a 110 device with DMA function,
Outputs a data input/output request to memory 12, and
2 or read data from dual port memory 12.
Data can be written to.

[メモリタイミング調整回路(第2図、3図)]第2図
はメモリタイミング調整回路11の構成を示す回路図で
ある。
[Memory Timing Adjustment Circuit (FIGS. 2 and 3)] FIG. 2 is a circuit diagram showing the configuration of the memory timing adjustment circuit 11. As shown in FIG.

17〜21及び26はそれぞれJKフリップフロップで
、クロック信号SASの立ち下がりで動作する。29.
30はデュアルポートメモリ12のシリアルボートの1
ラインバツフア数に対応する数を計数するカウンタで、
カウンタ31はデュアルポートメモリ12のシリアルボ
ートのラインバッファの計数値と同じ計数を行っており
、カウンタ29はデュアルポートメモリ12にSDババ
スデータが書込まれるごとにカウントアツプしている。
JK flip-flops 17 to 21 and 26 operate at the falling edge of the clock signal SAS. 29.
30 is one of the serial ports of dual port memory 12
A counter that counts the number corresponding to the number of line buffers.
The counter 31 counts the same as the count value of the line buffer of the serial port of the dual port memory 12, and the counter 29 counts up every time SD bus data is written to the dual port memory 12.

30は比較器(コンパレータ)で、カウンタ29と31
の出力を入力し、それらの値が一致したときの一致信号
24をハイレベルにしてAND回路27に出力している
30 is a comparator, and counters 29 and 31
When these values match, a match signal 24 is set to high level and output to an AND circuit 27.

AND回路27から出力されるSE倍信号デュアルポー
トメモリ12にデータを書込むための信号で、デュアル
ポートメモリ12はSE倍信号ハイレベルのとき、クロ
ックSASの立上がりでSDババスデータをメモリ12
のシリアルボートに書込む。いま例えば、デュアルポー
トメモリ12のシリアルボートのバッファ数が256個
のときは、カウンタ29と31はそれぞれ8ビツトで構
成され、カウンタ29の計数値に対応して順次デュアル
ポートメモリ12のラインバッファにデータが転送され
る。
SE double signal output from the AND circuit 27 This is a signal for writing data into the dual port memory 12. When the SE double signal is at high level, the dual port memory 12 writes the SD bus data to the memory 12 at the rising edge of the clock SAS.
Write to the serial boat. For example, when the number of serial port buffers in the dual port memory 12 is 256, the counters 29 and 31 each consist of 8 bits, and corresponding to the count value of the counter 29, the serial port buffers in the dual port memory 12 are sequentially loaded. Data is transferred.

こうしてデュアルポートメモリ12のシリアルボートの
全てのラインバッファにデータを書込むと、カウンタ2
9よりキャリイ信号(TREQ)がメモリコントローラ
13に出力される。これによりメモリコントローラ13
はTR10E(言号なデュアルポートメモリ12に出力
し、デュアルポートメモリ12のシリアルボートのバッ
ファのデータを実メモリに書込み、新たに書込みポイン
タにアドレスを再セットする。TREAD信号はメモリ
コントローラ13からメモリタイミング調整回路11に
出力されており、デュアルポートメモリ12よりのシリ
アル読出しモードのときはハイレベルに、シリアル書込
みモードのときはロウレベルに設定されている。
When data is written to all line buffers of the serial ports of the dual port memory 12 in this way, the counter 2
A carry signal (TREQ) is output from 9 to the memory controller 13. As a result, the memory controller 13
outputs TR10E (word) to the dual port memory 12, writes the data in the serial port buffer of the dual port memory 12 to the real memory, and resets the address to the new write pointer.The TREAD signal is sent from the memory controller 13 to the memory It is output to the timing adjustment circuit 11, and is set to a high level in the serial read mode from the dual port memory 12, and set to a low level in the serial write mode.

次に、第2図の回路図と第3図のタイミングチャートを
もとにメモリタイミング調整回路11の動作について説
明する。
Next, the operation of the memory timing adjustment circuit 11 will be explained based on the circuit diagram of FIG. 2 and the timing chart of FIG. 3.

デュアルポートメモリ12のシリアルボートにデータを
書き込む動作を示すと、まずI10機器14がメモリ1
2に出力するデータを有しているとき、REQ信号がメ
モリタイミング調整回路11に出力される。メモリタイ
ミング調整回路11はREQ信号を入力すると、AND
ゲート16を介してフリップフロップ17〜21を順次
セットしていき、第3図に示すタイミングでACK信号
をI10機器14に返送する。これにより、I10機器
14はIODバスにデュアルポートメモリ12への書込
みデータを出力し、このデータはACK信号の立ち下が
り(こ同期してフリップフロップ33にラッチされる(
タイミングTl)。
To illustrate the operation of writing data to the serial port of the dual port memory 12, first the I10 device 14 writes data to the serial port of the dual port memory 12.
2, the REQ signal is output to the memory timing adjustment circuit 11. When the memory timing adjustment circuit 11 receives the REQ signal, the AND
The flip-flops 17 to 21 are sequentially set via the gate 16, and an ACK signal is sent back to the I10 device 14 at the timing shown in FIG. As a result, the I10 device 14 outputs the write data to the dual port memory 12 to the IOD bus, and this data is latched into the flip-flop 33 in synchronization with the falling edge of the ACK signal (
Timing Tl).

また、このタイミングT1でフリップフロップ26がセ
ットされており、カウンタ29と31の値が等しくなり
コンパレータ3oの一致信号24がハイレベルになると
、タイミングT2でSE倍信号ハイレベルで出力される
。ここではI10機器14よりメモリ12への書込み状
態であるから、TREAD信号はロウレベルになってい
るため、AND回路40の出力はSE倍信号同期してロ
ウレベルになる。これにより、I10機器14より■O
Dバスを通して入力され、フリップフロップ33にラッ
チされているデータは、トライステートバッファ38を
通して、SDババス通してメモリ12に出力される。そ
して、SE倍信号ハイレベルのときのSASクロックの
立上がり(タイミングT3)により、デュアルポートメ
モリ12のシリアルボートにSDババスデータが書込ま
れる。
Further, the flip-flop 26 is set at this timing T1, and when the values of the counters 29 and 31 become equal and the match signal 24 of the comparator 3o becomes high level, the SE multiplied signal is outputted at a high level at timing T2. Here, since the I10 device 14 is writing to the memory 12, the TREAD signal is at a low level, so the output of the AND circuit 40 becomes a low level in synchronization with the SE multiplied signal. As a result, ■O from I10 device 14
Data inputted through the D bus and latched in the flip-flop 33 is outputted to the memory 12 through the tri-state buffer 38 and the SD bus. Then, the SD bus data is written to the serial port of the dual port memory 12 at the rise of the SAS clock (timing T3) when the SE double signal is at high level.

こうしてデュアルポートメモリ12のシリアルボートの
ラインバッファの全てにデータが書込まれ、カウンタ2
9のキャリイ信号(TREQ)がハイレベルになると(
タイミングT5)、前述したようにメモリコントローラ
13はTR10E信号を出力して、シリアルボートのデ
ータをデュアルポートメモリ12の実メモリに書込む。
In this way, data is written to all line buffers of the serial ports of the dual port memory 12, and the counter 2
When the carry signal (TREQ) of 9 becomes high level (
At timing T5), as described above, the memory controller 13 outputs the TR10E signal and writes the serial port data to the real memory of the dual port memory 12.

[メモリへのデータ書込みの説明 (第4図〜第7図)] 第4図〜第7図は実施例のメモリ回路の動作を示するた
めのフローチャートである。
[Description of writing data to memory (FIGS. 4 to 7)] FIGS. 4 to 7 are flowcharts showing the operation of the memory circuit of the embodiment.

第4図はI10機器14の動作を示すフローチャートで
、まずステップSlでメモリ12に書込むべきデータが
あるかどうかを調べ、書込むべきデータがあるときはス
テップS2でREQ信号をメモリタイミング調整回路1
1に出力する。そしてステップS3てメモリタイミング
調整回路11よりのACK信号の入力を待ち、ACK信
号が入力されるとステップS4で書込むデータをIOD
バスに出力する。
FIG. 4 is a flowchart showing the operation of the I10 device 14. First, in step Sl it is checked whether there is data to be written in the memory 12, and if there is data to be written, the REQ signal is sent to the memory timing adjustment circuit in step S2. 1
Output to 1. Then, in step S3, wait for the input of the ACK signal from the memory timing adjustment circuit 11, and when the ACK signal is input, the data to be written is transferred to the IOD in step S4.
Output to bus.

これに対するメモリタイミング調整回路11の動作を示
したのが第5図である。
FIG. 5 shows the operation of the memory timing adjustment circuit 11 in response to this.

ステップS5でI10機器14よりのREQ信号を入力
すると、前述したようにステップS6でACK信号を出
力し、ステップS7でIODバスのデータを入力してフ
リップフロップ33にラッチする。ステップS8でカウ
ンタ29の計数値とカウンタ31の計数値が一致するの
を待ち、一致するとステップS10でSE倍信号メモリ
12に出力する。これにより、トライステートバッファ
38がエネーブルになり、フリップフロップ33にラッ
チされているデータがSDババス出力される。そして、
次のクロックSASの立上がりでカウンタ29が+1さ
れ(ステップS11.ステップ512)、ステップS1
3でカウンタ29にキヤリイが発生するとTREQ信号
がメモリ12に出力される。これにより、SE信号がオ
フになりAND回路32がクローズされる。
When the REQ signal from the I10 device 14 is input in step S5, the ACK signal is output in step S6 as described above, and the data on the IOD bus is input and latched into the flip-flop 33 in step S7. In step S8, it is waited for the counted value of the counter 29 and the counted value of the counter 31 to match, and when they match, they are outputted to the SE multiplied signal memory 12 in step S10. As a result, the tri-state buffer 38 is enabled, and the data latched in the flip-flop 33 is output as an SD bus. and,
At the next rise of the clock SAS, the counter 29 is incremented by 1 (step S11, step 512), and step S1
When a carry occurs in the counter 29 at step 3, the TREQ signal is output to the memory 12. This turns off the SE signal and closes the AND circuit 32.

第6図はデュアルポートメモリ12のシリアルボートの
動作を示すフローチャートで、ステップS20でメモリ
タイミング調整回路11よりのSE信号がハイレベルか
どうかを調べ、ハイレベルであればSASクロックの立
上がりで、シリアルボートのバッファにSDババスデー
タを格納しくステップ522)、ラインバッファを指示
するメモリ12内の書込みポインタを+1する(ステッ
プ523)。一方、ステップS20でSE信号がロウレ
ベルであればステップS24に進み、SASクロックの
立上がりに同期して、ステップS23の場合と同様に、
書込みポインタを+1する。
FIG. 6 is a flowchart showing the operation of the serial port of the dual port memory 12. In step S20, it is checked whether the SE signal from the memory timing adjustment circuit 11 is at a high level, and if it is at a high level, the serial port is The SD bus data is stored in the buffer of the boat (step 522), and the write pointer in the memory 12 pointing to the line buffer is incremented by 1 (step 523). On the other hand, if the SE signal is at a low level in step S20, the process proceeds to step S24, and in synchronization with the rising edge of the SAS clock, similarly to step S23,
Add 1 to the write pointer.

第7図はメモリコントローラ13の動作を示すフローチ
ャートで、ステップS26でメモリタイミング調整回路
11よりTREQ信号を入力すると、デュアルポートメ
モリ12にTR10E信号を出力し、メモリ12のシリ
アルボートのデータを実メモリに転送する。そして、ス
テップS28でメモリ12内のポインタを1ライン分進
めるようにしている。
FIG. 7 is a flowchart showing the operation of the memory controller 13. When the TREQ signal is input from the memory timing adjustment circuit 11 in step S26, the TR10E signal is output to the dual port memory 12, and the serial port data of the memory 12 is transferred to the real memory. Transfer to. Then, in step S28, the pointer in the memory 12 is advanced by one line.

[メモリより170機器への読出し説明(第3図、第8
図〜第11図)] 次に、デュアルポートメモリ12のシリアルボートから
データを読出してI10機器14に転送する動作を説明
する。
[Explanation of reading from memory to 170 devices (Figures 3 and 8)
11)] Next, the operation of reading data from the serial port of the dual port memory 12 and transferring it to the I10 device 14 will be described.

メモリ12よりの読出し時にはTREAD信号がハイレ
ベルとなっているため、CLR信号でJKフリップフロ
ップ26のQ出力はハイレベルにセットされる。これに
より、I10機器14からREQ信号がでても、AND
回路16は開かれないため、I10機器14にデータを
転送することがない。そして、カウンタ29とカウンタ
31の出力が一致するとSE信号がデュアルポートメモ
リ12に出力される。これによりデュアルポートメモリ
12からSDババスデータが出力され、SASクロック
の立ち下がりに同期してDフリップフロップ34にSD
ババスデータがラッチされる。
Since the TREAD signal is at a high level when reading from the memory 12, the Q output of the JK flip-flop 26 is set to a high level by the CLR signal. As a result, even if the REQ signal is output from the I10 device 14, the AND
Since circuit 16 is not opened, no data is transferred to I10 device 14. Then, when the outputs of the counter 29 and the counter 31 match, an SE signal is output to the dual port memory 12. As a result, the SD bus data is output from the dual port memory 12, and the SD bus data is sent to the D flip-flop 34 in synchronization with the falling edge of the SAS clock.
The bus data is latched.

このとき同時に、JKフリップフロップ26が反転し、
Q出力がロウレベルとなるためAND回路16の一方の
入力がハイレベルとなる。そして、I10機器14から
REQ信号が入力されるとAND回路16の出力がハイ
レベルとなり、メモリ12へのシリアル書込みモード時
と同じようにI10機器14にACK信号を返送する。
At the same time, the JK flip-flop 26 is inverted,
Since the Q output becomes low level, one input of the AND circuit 16 becomes high level. When the REQ signal is input from the I10 device 14, the output of the AND circuit 16 becomes high level, and an ACK signal is sent back to the I10 device 14 in the same way as in the serial write mode to the memory 12.

これと同時に、AND回路37の出力がロウレベルにな
るためトライステートバッファ36がエネーブルとなり
、フリップフロップ34に格納されているSDババスり
入力されたデータがIODバスに出力されて、I10機
器14へ出力される。これが第3図のタイミングT6で
示されている。
At the same time, the output of the AND circuit 37 becomes low level, so the tri-state buffer 36 is enabled, and the data input from the SD bus stored in the flip-flop 34 is output to the IOD bus and output to the I10 device 14. be done. This is shown at timing T6 in FIG.

カウンタ29からキャリイ信号(TREQ)が出力され
ると、シリアル書込みモード時と同様にTREQ信号が
出力され、デュアルポートメモリ12にデータ・トラン
スファ・サイクルを生じさせる。
When the carry signal (TREQ) is output from the counter 29, the TREQ signal is output as in the serial write mode, causing a data transfer cycle in the dual port memory 12.

以上の動作を第8図から第11図のフローチャートによ
り説明する。
The above operation will be explained using flowcharts shown in FIGS. 8 to 11.

第8図はI10機器14の動作を示すフローチャートで
ある。
FIG. 8 is a flowchart showing the operation of the I10 device 14.

ステップS30でデータ入力可のときはステッブS31
に進み、メモリタイミング調整回路11にREQ信号を
出力する。そして、メモリタイミング調整回路11から
ACK信号が入力されるとステップS33てIODバス
のデータを入力する。
If data input is possible in step S30, step S31
Then, the REQ signal is output to the memory timing adjustment circuit 11. Then, when the ACK signal is input from the memory timing adjustment circuit 11, data on the IOD bus is input in step S33.

第9図はメモリタイミング調整回路11の動作を示すフ
ローチャートである。
FIG. 9 is a flowchart showing the operation of the memory timing adjustment circuit 11.

ステップS34でカウンタ29と31の出力が一致する
とステップS35に進み、SE倍信号出力する。これに
より、SASクロックの立下がりでフリップフロップ3
4にIODバスのデータがラッチされる。これと同時に
、カウンタ29が+1され、キャリイが発生するとTR
EQ信号が出力される(ステップ337〜539)。こ
れによりデュアルポートメモリ12の実メモリの内容が
シリアルボートに転送され、次のシリアル読出しが可能
になる。
If the outputs of the counters 29 and 31 match in step S34, the process proceeds to step S35, where an SE multiplied signal is output. As a result, flip-flop 3 is activated at the falling edge of the SAS clock.
4, the data on the IOD bus is latched. At the same time, the counter 29 is incremented by 1, and when a carry occurs, TR
An EQ signal is output (steps 337-539). As a result, the contents of the real memory of the dual port memory 12 are transferred to the serial port, making the next serial read possible.

この状態では、フリップフロップ26が反転しREQ信
号を入力可能になっているため、ステップS40でI1
0機器14よりREQ信号が人力されるのを待ち、RE
Q信号を受付けると、書込み時と同じタイミングでAC
K信号をI10機器14に出力する(ステップ541)
。このACK信号に同期してデータ36を開き、メモリ
12よりのデータをIODバスに出力する。
In this state, the flip-flop 26 is inverted and the REQ signal can be input, so the I1
Wait for the REQ signal to be input manually from the 0 device 14, and then
When a Q signal is received, AC is activated at the same timing as when writing.
Output the K signal to the I10 device 14 (step 541)
. The data 36 is opened in synchronization with this ACK signal, and the data from the memory 12 is output to the IOD bus.

第10図はデュアルポートメモリ12の動作を示すフロ
ーチャートである。
FIG. 10 is a flowchart showing the operation of the dual port memory 12.

ステップS50でSE倍信号人力するとステップS51
でデータをSDババス出力する。そして、SASクロッ
クの立上がりでメモリ12のシリアルボートのバッファ
を指示する読出しポインタを+1する。
When the SE multiplication signal is manually operated in step S50, step S51
Outputs the data to the SD bus. Then, at the rising edge of the SAS clock, the read pointer pointing to the buffer of the serial port in the memory 12 is incremented by 1.

第11図はメモリコントローラ13の動作を示すフロー
チャートである。
FIG. 11 is a flowchart showing the operation of the memory controller 13.

ここではステップS54でTREQ信号が入力されると
、ステップS55でデュアルポートメモリ12内の実メ
モリの内容をシリアルボートに転送し、ステップS56
で読出しポインタを1ライン更新する。
Here, when the TREQ signal is input in step S54, the contents of the real memory in the dual port memory 12 are transferred to the serial port in step S55, and in step S56
The read pointer is updated by one line.

[他の実施例 (第12図)] 第12図及び第13図は本発明の他の実施例を示すブロ
ック図で、前述の実施例と共通する部分は同一番号で示
している。
[Other Embodiments (FIG. 12)] FIGS. 12 and 13 are block diagrams showing other embodiments of the present invention, in which parts common to the previous embodiments are designated by the same numbers.

前述し実施例と異なる点は、メモリコントローラ13a
よりメモリタイミング調整回路11aに出力するTAC
K信号を設けた点にある。これによりメモリコントロー
ラ13aがTREQ信号を受付け、メモリ12にTR1
0E信号を出力してメモリ12内で実メモリよりシリア
ルバッファに転送する前に、メモリ12に対する次のデ
ータの読み書きを禁止することができる。
The difference from the above-mentioned embodiment is that the memory controller 13a
TAC output to the memory timing adjustment circuit 11a
The point is that the K signal is provided. As a result, the memory controller 13a accepts the TREQ signal and stores TR1 in the memory 12.
Before the 0E signal is output and the data is transferred from the real memory to the serial buffer within the memory 12, reading and writing of the next data to the memory 12 can be inhibited.

第13図は他の実施例のメモリタイミング調整回路11
11aの構成を示す回路図である。
FIG. 13 shows a memory timing adjustment circuit 11 of another embodiment.
11a is a circuit diagram showing the configuration of 11a.

図において、JKフリップフロップ25を設けて、TR
EQ信号の出力抜法のデータの読み書きを禁止している
。即ち、カウンタ29よりTREQ信号が出力されると
、JKフリップフロップ25のQ出力がロウレベルにな
り、AND回路32aを閉じて、カウンタ29の計数及
びフリップフロップ34へのラッチを禁止する。そして
、次にメモリコントローラ13aによるメモリ12内で
の実メモリよりシリアルボートへのデータ転送が終了し
たのちTACK信号が返送されると、JKフリップフロ
ップ25のQ出力がロウレベルとなつてAND回路32
aが開き、再びメモリ12に対する読み書きが可能にな
る。
In the figure, a JK flip-flop 25 is provided and TR
Reading and writing data for EQ signal output is prohibited. That is, when the TREQ signal is output from the counter 29, the Q output of the JK flip-flop 25 becomes low level, closing the AND circuit 32a and inhibiting the counter 29 from counting and from latching to the flip-flop 34. Then, when the TACK signal is returned after the memory controller 13a completes data transfer from the real memory in the memory 12 to the serial port, the Q output of the JK flip-flop 25 becomes low level and the AND circuit 32
a is opened, and the memory 12 can be read and written again.

なお、デュアルポートメモリ12は、シリアルポートバ
ッファの途中からでも読み書きができるようになってい
るので、カウンタ30がプリセット可能に構成されてい
れば、デュアルポートメモリ12の任意の位置(アドレ
ス)から読み書きできることはいうまでもない。
Note that the dual port memory 12 can be read and written even from the middle of the serial port buffer, so if the counter 30 is configured to be presetable, reading and writing can be performed from any position (address) in the dual port memory 12. It goes without saying that it can be done.

以上説明したように本実施例によれば、デュアルポート
メモリのシリアルボート側を非同期でアクセスできるた
め、メモリの同時読み書きが可能となり、バスの使用効
率が向上する。
As described above, according to this embodiment, the serial port side of the dual port memory can be accessed asynchronously, so that simultaneous reading and writing of the memory is possible, and bus usage efficiency is improved.

[発明の効果] 以上説明したようの本発明によれば、クロック信号を入
力し、そのクロック信号によりメモリのバッファを指示
するポインタを更新するメモリを用い、そのクロック信
号を計数してメモリのアクセスタイミングを作成してメ
モリにアクセスすることにより、効率良くそのメモリに
データの蓄積や読出しができる効果がある。
[Effects of the Invention] According to the present invention as described above, a memory that receives a clock signal and updates a pointer indicating a buffer in the memory using the clock signal is used, and the memory is accessed by counting the clock signal. By creating the timing and accessing the memory, data can be efficiently stored and read from the memory.

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

第1図は本実施例のメモリタイミング調整回路の位置付
けを説明するための全体構成図、第2図は実施例のタイ
ミング調整回路の詳細を示す回路図、 第3図は第2図のタイミング調整回路の動作タイミング
を示すタイミングチャート、 第4図は110機器によるメモリへの書込み動作を示す
フローチャート、 第5図はメモリタイミング調整回路によるメモリへの書
込み動作を示すフローチャート、第6図はメモリにおけ
る書込み動作を示すフ0−チャート、 第7図はメモリへの書込み時のメモリコントローラの動
作を示すフローチャート、 第8図は110機器によるメモリよりの読出し動作を示
すフローチャート、 第9図はメモリタイミング調整回路によるメモリよりの
読出し動作を示すフローチャート、第10図はメモリに
おける読出し動作を示すフローチャート、 第11図はメモリよりの読出し時のメモリコントローラ
の動作を示すフローチャート、第12図は他の実施例の
メモリ回路の全体構成を示すブロック図、そして 第13図は他の実施例のメモリタイミング調整回路の回
路構成を示す回路図である。 図中、11.lla・・・メモリタイミング調整回〜 路、12・・・メモリ、13.13a・・・メモリコン
トローラ、14・・・170機器、17〜21,25.
26・・・JKフリップフロップ、29.31・・・カ
ウンタ、30・・・コンパレータ、33.34・・・D
タイプフリップフロップである。 特許出願人  キャノン株式会社 第6図 第7図 第10図 第11図
Figure 1 is an overall configuration diagram for explaining the positioning of the memory timing adjustment circuit of this embodiment, Figure 2 is a circuit diagram showing details of the timing adjustment circuit of this embodiment, and Figure 3 is the timing adjustment of Figure 2. A timing chart showing the operation timing of the circuit. Fig. 4 is a flowchart showing the write operation to the memory by the 110 device. Fig. 5 is a flow chart showing the write operation to the memory by the memory timing adjustment circuit. Fig. 6 is a flow chart showing the write operation to the memory by the memory timing adjustment circuit. FIG. 7 is a flowchart showing the operation of the memory controller when writing to the memory; FIG. 8 is a flowchart showing the readout operation from the memory by the 110 device; FIG. 9 is the memory timing adjustment circuit. 10 is a flowchart showing the readout operation in the memory, FIG. 11 is a flowchart showing the operation of the memory controller when reading from the memory, and FIG. 12 is the memory of another embodiment. FIG. 13 is a block diagram showing the overall configuration of the circuit, and FIG. 13 is a circuit diagram showing the circuit configuration of a memory timing adjustment circuit according to another embodiment. In the figure, 11. lla...Memory timing adjustment circuit, 12...Memory, 13.13a...Memory controller, 14...170 equipment, 17-21, 25.
26...JK flip-flop, 29.31...Counter, 30...Comparator, 33.34...D
It is a type flip-flop. Patent applicant Canon Co., Ltd. Figure 6 Figure 7 Figure 10 Figure 11

Claims (1)

【特許請求の範囲】[Claims] (1)クロック信号を入力し、該クロック信号を計数し
てメモリ内のバッファを指示するポインタを備えたメモ
リにアクセスするメモリアクセス回路であつて、 前記クロック信号を入力し、前記ポインタに対応して前
記クロック信号の数を計数する第1の計数手段と、 前記クロック信号に同期して前記メモリへの入出力デー
タ数を計数する第2の計数手段と、前記第1及び第2の
計数手段の計数値を比較する比較手段と、 前記比較手段により前記計数値が一致したと判定される
と、前記メモリへの書込みあるいは前記メモリよりの読
出しを行うアクセス手段と、を有することを特徴とする
メモリアクセス回路。
(1) A memory access circuit that receives a clock signal, counts the clock signal, and accesses a memory provided with a pointer that points to a buffer in the memory, which inputs the clock signal and counts the clock signal to access a memory that has a pointer that points to a buffer in the memory. a first counting means for counting the number of the clock signals; a second counting means for counting the number of input/output data to the memory in synchronization with the clock signal; and the first and second counting means. and access means for writing to or reading from the memory when the comparing means determines that the counted values match. Memory access circuit.
JP214089A 1989-01-10 1989-01-10 Memory access circuit Pending JPH02183350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP214089A JPH02183350A (en) 1989-01-10 1989-01-10 Memory access circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP214089A JPH02183350A (en) 1989-01-10 1989-01-10 Memory access circuit

Publications (1)

Publication Number Publication Date
JPH02183350A true JPH02183350A (en) 1990-07-17

Family

ID=11521035

Family Applications (1)

Application Number Title Priority Date Filing Date
JP214089A Pending JPH02183350A (en) 1989-01-10 1989-01-10 Memory access circuit

Country Status (1)

Country Link
JP (1) JPH02183350A (en)

Similar Documents

Publication Publication Date Title
US5237670A (en) Method and apparatus for data transfer between source and destination modules
JP5379826B2 (en) Low latency FIFO circuit for mixed asynchronous and synchronous systems
KR0176422B1 (en) Page-in, burst-out fifo
US5931926A (en) Method and apparatus for dynamically calculating degrees of fullness of a synchronous FIFO
US7196948B1 (en) Method and apparatus for data capture on a bi-directional bus
TW201312565A (en) DDR PSRAM and data writing and reading methods, accessing and operating methods, and controller thereof
JP2007525766A (en) Collision detection in multiport memory systems
JPS62146035A (en) Data synchronizer
US6226698B1 (en) Method and apparatus for dynamically calculating degrees of fullness of a synchronous FIFO
US5313620A (en) Selective receiver for each processor in a multiple processor system
US7454589B2 (en) Data buffer circuit, interface circuit and control method therefor
US6272583B1 (en) Microprocessor having built-in DRAM and internal data transfer paths wider and faster than independent external transfer paths
US6327667B1 (en) Apparatus and method for operating clock sensitive devices in multiple timing domains
US7177966B2 (en) Microcomputer minimizing influence of bus contention
US5627968A (en) Data transfer apparatus which allows data to be transferred between data devices without accessing a shared memory
JPH02183350A (en) Memory access circuit
EP0752642B1 (en) Method and apparatus for dynamically calculating degrees of fullness of a synchronous fifo
US3921150A (en) Three-rank priority select register system for fail-safe priority determination
US7962698B1 (en) Deterministic collision detection
JPS5927938B2 (en) multiprocessing device
US20080228961A1 (en) System including virtual dma and driving method thereof
JPH04120652A (en) Parallel processors
JP2637319B2 (en) Direct memory access circuit
JP2000132451A (en) Memory control circuit
JPH08137741A (en) Fifo-type memory