JPH0542010B2 - - Google Patents

Info

Publication number
JPH0542010B2
JPH0542010B2 JP62133060A JP13306087A JPH0542010B2 JP H0542010 B2 JPH0542010 B2 JP H0542010B2 JP 62133060 A JP62133060 A JP 62133060A JP 13306087 A JP13306087 A JP 13306087A JP H0542010 B2 JPH0542010 B2 JP H0542010B2
Authority
JP
Japan
Prior art keywords
data
address
memory
written
read
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
Application number
JP62133060A
Other languages
Japanese (ja)
Other versions
JPS63298434A (en
Inventor
Atsumi Tanaka
Hirokazu Fukui
Masahiro Maeda
Norio Murakami
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62133060A priority Critical patent/JPS63298434A/en
Publication of JPS63298434A publication Critical patent/JPS63298434A/en
Publication of JPH0542010B2 publication Critical patent/JPH0542010B2/ja
Granted legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/30Hydrogen technology
    • Y02E60/50Fuel cells

Landscapes

  • Memory System (AREA)

Description

【発明の詳細な説明】 〔概要〕 データバツフア用のシーケンスシヤルメモリ回
路の高速処理化において、書込みと読出しを独立
して行う2ケの2ポートメモリと、0番地データ
を迂回させるレジスタ1ケを設け、メモリに書込
むデータ長が偶数個でも奇数個でも奇数個でも同
じように、最初の0番地データは0番地データを
迂回させるレジスタに書込み、1番地データ以降
の入力データは2ケの2ポートメモリに交互に書
込む。
[Detailed Description of the Invention] [Summary] In order to increase the processing speed of a sequential serial memory circuit for data buffering, two 2-port memories that perform writing and reading independently and one register that bypasses data at address 0 are provided. , regardless of whether the data length to be written to the memory is an even number, an odd number, or an odd number, the first data at address 0 is written to the register that bypasses the data at address 0, and the input data after the data at address 1 is written to the two 2 ports. Write to memory alternately.

一方、レジスタと、2ケの2ポートメモリに交
互に書込まれたデータは、書込まれた順に、書込
みが終了した後、書込みタイミングから或る一定
の安定した期間をおいた読出しタイミングで、書
込み動作とは独立して書込まれた順に読出し、メ
モリに書込まれるデータ長が奇数でも偶数でも同
じように、回路内部のメモリの動作速度の約2倍
の速度で、データの書込み・読出し処理を行うよ
うにしたシーケンシヤルメモリ回路を実現するも
のである。
On the other hand, the data written alternately to the register and the two 2-port memories is read out at a certain stable period after the writing is completed in the order in which they were written. Data is read in the order written independently of the write operation, and whether the data length written to the memory is odd or even, data is written and read at approximately twice the operating speed of the memory inside the circuit. This realizes a sequential memory circuit that performs processing.

〔産業上の利用分野〕[Industrial application field]

本発明はシーケンシヤルメモリ回路の改良に関
する。
The present invention relates to improvements in sequential memory circuits.

本発明はシーケンシヤルデータを使用するデイ
ジタル装置における速度変換用のデータバツフア
やデータ記録装置として使用可能なシーケンシヤ
ルメモリ回路を提供するものである。
The present invention provides a sequential memory circuit that can be used as a data buffer or data recording device for speed conversion in a digital device that uses sequential data.

この様なメモリ回路は高速且つ大量のデータを
記憶できることが望まれる。
It is desired that such memory circuits be able to store large amounts of data at high speed.

〔従来の技術〕[Conventional technology]

従来より、メモリの動作速度を高めるために、
2つのメモリを用意し、この2つのメモリを交互
に切換えながら、書込み・読出しの処理を行う、
所謂メモリシエア方式を適用した回路が提案され
ており、そのメモリシエア方式を第6a図に示
す。
Traditionally, in order to increase the operating speed of memory,
Two memories are prepared, and writing and reading processes are performed while switching between these two memories alternately.
A circuit to which a so-called memory share method is applied has been proposed, and the memory share method is shown in FIG. 6a.

第6a図に示す交互動作のメモリシエア方式
は、メモリアドレス0番地への入力データの書込
みが終了してから、メモリアドレス1番地へのデ
ータの書込みが行われ、以下同様にして、メモリ
アドレス2番地、3番地へと交互にメモリへ書込
みが行われる。
In the alternating operation memory sharing method shown in FIG. 6a, after the writing of input data to memory address 0 is completed, data is written to memory address 1, and thereafter data is written to memory address 2 in the same manner. , 3 are written to the memory alternately.

このような交互動作を行うメモリシエア方式で
は、書込み周期は単一メモリの場合と同じてある
ため、メモリ回路としての動作速度を改善するこ
とはできない。
In the memory share system that performs such alternating operations, the write cycle is the same as in the case of a single memory, so the operating speed of the memory circuit cannot be improved.

そこで、この動作速度を改善するために、第6
b図に示すように、偶数アドレスメモリと奇数ア
ドレスメモリの書込みタイミングを半周期をずら
して、交互動作させる方式が提案され、現在この
方式が一般に用いられている。
Therefore, in order to improve this operation speed, the sixth
As shown in Figure b, a method has been proposed in which the write timings of the even address memory and the odd address memory are shifted by half a cycle so that they operate alternately, and this method is currently in general use.

この方式であると、書込みが偶数アドレスメモ
リと奇数アドレスメモリとが半周期ずれのタイミ
ングを保持してどちらも動作しているので、メモ
リの書込み速度を2倍にすることができる。
With this method, the even-address memory and the odd-address memory operate at timings that are shifted by half a cycle, so that the memory write speed can be doubled.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、従来の第6b図に示す書込みタ
イミングを半周期ずらす方式では、書込むデータ
が偶数個の場合は、例えば、データ長が第6b図
に示すように、0〜3番地までの4個であれば、
0、2番地のデータは偶数アドレスメモリへ書込
まれ、1、3番地のデータは奇数アドレスメモリ
へ書込まれるので、問題は発生しない。
However, in the conventional method of shifting the write timing by half a cycle as shown in Fig. 6b, when the number of data to be written is an even number, for example, the data length is 4 pieces from addresses 0 to 3 as shown in Fig. 6b. if there is,
Since the data at addresses 0 and 2 are written to the even address memory, and the data at addresses 1 and 3 are written to the odd address memory, no problem occurs.

しかし、データ長が奇数個の場合は、0、2、
4等の偶数アドレス番地のデータを偶数アドレス
メモリへ書込み、1、3、5等の奇数アドレス番
地のデータを奇数アドレスメモリに書込むように
すると、第6c図の斜線でに示すように、最後の
番地のデータが書込まれる2n番地の次に位置す
る奇数アドレス側の番地に無効なデータが生じる
ことになる。
However, if the data length is an odd number, 0, 2,
If the data at even address addresses such as 4 is written to the even address memory, and the data at odd address addresses such as 1, 3, 5, etc. are written to the odd address memory, the last Invalid data will occur at the address on the odd-numbered address side next to the 2n address where the data at the address is written.

その結果、読出しに際して、この無効なデータ
の処理を行う必要が発生した。
As a result, it has become necessary to process this invalid data upon reading.

これを避けるために、例えば、データをメモリ
回路に入力する段階で、偶数個のデータに整合さ
せるようにして対応する等が行われていたが、回
路規模を増大させることになるという欠点があつ
た。
In order to avoid this, measures have been taken, for example, to match data with an even number of data at the stage of inputting the data to the memory circuit, but this has the disadvantage of increasing the circuit scale. Ta.

また、無効なデータを発生させないようにする
方法として、第6d図に示すように、最後のデー
タが書込まれる2n番地と次のデータの0番地の
データをそれぞれ1/2の時間で連続して書込む方
法が考えられるが、2nと0番地でメモリの動作
速度が追従しないため、物理的に書込み不可能で
ある。
In addition, as a method to prevent invalid data from being generated, as shown in Figure 6d, the data at address 2n, where the last data is written, and the data at address 0, where the next data is written, are written consecutively for 1/2 of the time. However, since the memory operating speed cannot follow the 2n and 0 addresses, it is physically impossible to write.

本発明は、係る問題を解決するもので、入力す
るデータのデータ長に関係なく、書込み・読出し
が高速で実行できるシーケンシヤルメモリ回路を
提供することを目的とする。
SUMMARY OF THE INVENTION The present invention is intended to solve this problem, and aims to provide a sequential memory circuit that can perform writing and reading at high speed regardless of the data length of input data.

〔問題点を解決するための手段〕[Means for solving problems]

上記の問題点は、第1図の本発明の原理図に示
すように、2つのメモリ回路4,5を用い、書込
アドレスクロツク発生回路8が供給する書込クロ
ツクにより、2つの該メモリ回路4,5はデータ
の書込みを交互に行い、また、読出アドレスクロ
ツク発生回路9が供給する読出クロツクにより、
データの読出しを交互に行い、該メモリ回路4,
5から相互に読出したデータは、該読出アドレス
クロツク発生回路9が供給する選択信号により切
換え動作するセレクタ6を交互に切替えて、2つ
の該メモリ回路4,5に書込まれた該データを読
出して取り出すシーケンシヤルメモリ回路におい
て、該メモリ回路4,5に、データの書込みとデ
ータの読出しを独立して実行できる2つの2ポー
トメモリ回路を用いる。
The above problem can be solved by using two memory circuits 4 and 5, as shown in the principle diagram of the present invention in FIG. The circuits 4 and 5 write data alternately, and the read clock supplied by the read address clock generation circuit 9 is used to write data.
Data is read out alternately, and the memory circuits 4,
The data mutually read from the two memory circuits 4 and 5 is transferred by alternately switching the selector 6 which is operated by a selection signal supplied by the read address clock generation circuit 9. In a sequential memory circuit that reads and retrieves data, two two-port memory circuits that can independently execute data writing and data reading are used for the memory circuits 4 and 5.

また、複数個からなる入力データの0番地デー
タを該書込アドレスクロツク発生回路8からの書
込クロツクで書込み、また、該読出アドレスクロ
ツク発生回路9の発生アドレスが“0”のとき、
該セレクタ6からの選択信号により、読出しを行
うレジスタ3を設ける。
Further, when data at address 0 of a plurality of input data is written using the write clock from the write address clock generation circuit 8, and when the address generated by the read address clock generation circuit 9 is "0",
A register 3 is provided which performs reading based on a selection signal from the selector 6.

そして、該入力データの該0番地データは該レ
ジスタ3に迂回させ、該入力データの1番地デー
タ以降のデータは、2つの該メモリ回路4,5に
おいて、交互に書込みを行い、また、書込みとは
独立して該レジスタ3と、交互に該メモリ回路
4,5に書込まれた該データの読出しを行うよう
にすることにより、解決される。
Then, the data at address 0 of the input data is detoured to the register 3, and the data after address 1 of the input data is written alternately in the two memory circuits 4 and 5. This can be solved by independently reading the data written in the register 3 and alternately reading the data written in the memory circuits 4 and 5.

〔作用〕[Effect]

本発明によれば、レジスタ3は、外部にある書
込制御回路において生成する書込クロツク、書込
アドレス信号の供給を受ける書込アドレスクロツ
ク発生回路8からの1パルスのレジスタ書込クロ
ツクにより、入力する複数個データの最初のデー
タである0番地データを書込む。レジスタ3への
データ書込みが終了すると、書込アドレスクロツ
ク発生回路8からの書込アドレスと書込クロツク
により、一方のメモリ回路5に2番目のデータで
ある1番地データを書込み、半周期遅れて、もう
一方のメモリ回路4に3番目のデータである2番
地データを書込む。以下順次交互にメモリ回路
5,4にデータを書込む。
According to the present invention, the register 3 is clocked by a write clock generated in an external write control circuit and a one-pulse register write clock from a write address clock generation circuit 8 which receives a write address signal. , writes the 0 address data which is the first data of the plural data to be input. When data writing to the register 3 is completed, the second data, address 1 data, is written to one of the memory circuits 5 using the write address and write clock from the write address clock generation circuit 8, and is delayed by half a cycle. Then, the third data, address 2 data, is written into the other memory circuit 4. Thereafter, data is sequentially and alternately written into the memory circuits 5 and 4.

そして、1つ目の複数のデータの書込みが終了
し、次の複数のデータが入力するときは、書込ア
ドレスクロツク発生回路8に外部から得られる書
込リセツト信号により、レジスタ書込クロツクが
レジスタ3に供給されると同時に、メモリ回路
4,5への書込クロツクが停止するので、1つ目
の複数のデータの場合と同様にして、レジスタ3
へ0番地データの書込みを行う。
When the writing of the first plurality of data is completed and the next plurality of data is input, the register write clock is reset by a write reset signal obtained from the outside to the write address clock generation circuit 8. At the same time as the data is supplied to the register 3, the write clocks to the memory circuits 4 and 5 are stopped, so in the same way as in the case of the first plurality of data, the data is written to the register 3.
Write address 0 data to.

以下、メモリ回路5,4への1番地データ以降
のデータの書込みも1つ目のデータと同様にして
行う。
Thereafter, the writing of data after the first address data to the memory circuits 5 and 4 is performed in the same manner as the first data.

また、レジスタ3、メモリ回路5,4に書込ま
れたデータの読出しは、先ず、外部にある読出制
御回路において生成する読出アドレス信号、読出
クロツク、セレクタ制御信号を受ける読出アドレ
スクロツク発生回路9からの選択信号でセレクタ
6を切換え、レジスタ3に書込まれた0番地デー
タを読出してセレクタ6を介して取り出す。
Further, in order to read the data written in the register 3 and memory circuits 5 and 4, first, a read address clock generation circuit 9 receives a read address signal, a read clock, and a selector control signal generated in an external read control circuit. The selector 6 is switched by a selection signal from the register 3, and the 0 address data written in the register 3 is read out and taken out via the selector 6.

次に、読出アドレスクロツク発生回路9からメ
モリ回路5に読出アドレスと読出クロツクが供給
されるので、メモリ回路5に書込まれた1番地デ
ータを読出し、読出アドレスクロツク発生回路9
からセレクタ6に供給される選択信号でメモリ回
路5を選択して読出した1番地データをセレクタ
6を介して取り出す。
Next, the read address and read clock are supplied from the read address clock generation circuit 9 to the memory circuit 5, so the data at address 1 written in the memory circuit 5 is read out, and the read address clock generation circuit 9
The memory circuit 5 is selected by a selection signal supplied to the selector 6 from the selector 6, and the read address 1 data is taken out via the selector 6.

同様にして、読出アドレスクロツク発生回路9
からの読出アドレスと読出クロツクでメモリ回路
4に書込まれた2番地データを読出し、同発生回
路9からの選択信号でメモリ回路4を選択して読
出した2番地データをセレクタ6を介して取り出
す。
Similarly, read address clock generation circuit 9
The second address data written in the memory circuit 4 is read using the read address and the read clock from the memory circuit 4, and the memory circuit 4 is selected using the selection signal from the same generation circuit 9, and the read second address data is taken out via the selector 6. .

以下同様に、メモリ回路5,4に書込まれたデ
ータを読出し、セレクタ6を介して取り出す。
Similarly, the data written in the memory circuits 5 and 4 is read out and taken out via the selector 6.

メモリ回路4,5には、2ポートメモリを用い
ているので、データの書込みとデータの読出しと
を独立して行うことができる。
Since two-port memories are used in the memory circuits 4 and 5, data writing and data reading can be performed independently.

このようにすることにより、メモリ回路に入力
するデータのデータ長が偶数でも、奇数でも同じ
ように、データの書込み・読出しを行うことがで
きる。
By doing so, data can be written and read in the same way regardless of whether the data length of the data input to the memory circuit is an even number or an odd number.

〔実施例〕〔Example〕

第2図は本発明の一実施例のシーケンシヤルメ
モリのブロツク図である。また、第2図の回路図
の動作について、第3図に奇数データの書込タイ
ムチヤートを示し、第4図に偶数データの書込タ
イムチヤートを示し、第5図に奇数データの読出
タイムチヤートを示す。
FIG. 2 is a block diagram of a sequential memory according to an embodiment of the present invention. Regarding the operation of the circuit diagram in Figure 2, Figure 3 shows the write time chart for odd number data, Figure 4 shows the write time chart for even number data, and Figure 5 shows the read time chart for odd number data. shows.

先ず、第2図、第3図を用いて、奇数データの
書込タイムチヤートについて説明する。
First, a write time chart for odd number data will be explained using FIGS. 2 and 3.

ここで、入力データ1はAm〜Gm(m=0〜
n)の7個の奇数個のデータからなるものとす
る。
Here, input data 1 is Am~Gm (m=0~
n) is made up of seven odd-numbered pieces of data.

先ず、A0〜G0からなる1つ目の入力データ1
は、A0は0アドレスレジスタ30へ、B0,D0,
F0はBメモリ53へ、また、C0,E0,G0はAメ
モリ43に書込まれる。そして、同じように、次
のA1〜G1からなる入力データ1のA1は0ア
ドレスレジスタ30へ、B1,D1,F1はBメ
モリ53へ、C1,E1,G1はAメモリ43に
書込まれる。以下、同様である。
First, the first input data 1 consisting of A0 to G0
, A0 goes to 0 address register 30, B0, D0,
F0 is written to the B memory 53, and C0, E0, G0 are written to the A memory 43. Then, in the same way, A1 of the next input data 1 consisting of A1 to G1 is written to the 0 address register 30, B1, D1, and F1 are written to the B memory 53, and C1, E1, and G1 are written to the A memory 43. The same applies hereafter.

レジスタ30やメモリ43,53へのデータ書
込みのための書込アドレスクロツク発生回路8に
は、外部から得られる(a)書込クロツクWCKと、
(b)書込リセツト信号WRとにより、0アドレスレ
ジスタ30への(f)レジスタ書込クロツクWCK0
と、Aメモリ43のデータレジスタ41とアドレ
スレジスタ42への(d)Aメモリ書込クロツク
WCKAと、Bメモリ53のデータレジスタ51
とアドレスレジスタ52への(e)Bメモリ書込クロ
ツクWCKBと、両アドレスレジスタ42,52
への(c)書込クロツクWAとを発生する。
The write address clock generation circuit 8 for writing data to the register 30 and memories 43 and 53 includes (a) write clock WCK obtained from the outside;
(b) Write reset signal WR and (f) Register write clock WCK0 to 0 address register 30.
and (d) A memory write clock to the data register 41 and address register 42 of the A memory 43.
WCKA and data register 51 of B memory 53
and (e)B memory write clock WCKB to address register 52, and both address registers 42, 52.
(c) Write clock WA is generated.

そして、入力データ1の各データAm,Bm,
Cm,……Gmには、それぞれメモリ回路に書込
む場所を指定するためのアドレス番号として、
0,1,2,……6が与えられる。
Then, each data Am, Bm,
Cm, ...Gm are address numbers for specifying the location to write to the memory circuit, respectively.
0, 1, 2,...6 are given.

入力データ1の書込みのタイミングは、先ず、
書込アドレスクロツク発生回路8に、外部から、
1つ前の入力データ1の最後のアドレス番号Gm
データと同じタイミングに与えられる(b)書込リセ
ツト信号WRに対応し、(a)書込クロツクに同期し
て発生する1パルスの(f)0アドレスレジスタ書込
クロツクWCKOにより、0アドレスレジスタ3
0に、入力データ1のアドレス番号0の入力デー
タAmが書込まれる。
The timing of writing input data 1 is as follows:
To the write address clock generation circuit 8 from the outside,
Last address number Gm of previous input data 1
Corresponding to (b) write reset signal WR given at the same timing as data, (f) 0 address register write clock WCKO of 1 pulse generated in synchronization with (a) write clock, 0 address register 3
0, input data Am of address number 0 of input data 1 is written.

一方、この(f)0アドレスレジスタ書込クロツク
WCKOが0アドレスレジスタ30に供給される
クロツクタイムに、Aメモリ、Bメモリへ(d)(e)書
込クロツクWCKA,WCKBが供給されないよう
に、この(f)0アドレスレジスタ書込クロツク
WCKOが0アドレスレジスタ30に供給される
クロツクのタイミングにおいては、Aメモリ、B
メモリへ(d)(e)書込クロツクWCKA,WCKBの供
給タイミングをそれぞれ1クロツク分だけ後へシ
フトしている。
On the other hand, this (f)0 address register write clock
This (f) 0 address register write clock is set so that the (d) (e) write clocks WCKA and WCKB are not supplied to the A memory and B memory at the clock time when WCKO is supplied to the 0 address register 30.
At the clock timing when WCKO is supplied to the 0 address register 30, memory A, memory B
The supply timings of (d) and (e) write clocks WCKA and WCKB to the memory are each shifted later by one clock.

次にアドレス番号の1の入力データBmが(e)B
メモリ書込クロツクWCKBによつて、データレ
ジスタ51を介してBメモリ53に書込まれる。
Next, the input data Bm of address number 1 is (e)B
The data is written to the B memory 53 via the data register 51 by the memory write clock WCKB.

そして、次のアドレス番号2の入力データCm
が(d)Aメモリ書込クロツクWCKAによつて、デ
ータレジスタ41を介してAメモリ43に書込ま
れる。
Then, input data Cm for the next address number 2
(d) is written to the A memory 43 via the data register 41 by the A memory write clock WCKA.

以下同様にして、アドレス番号3,5はBメモ
リ53に、また、アドレス番号4,6はAメモリ
43に交互にそれぞれデータレジスタ51,41
を介して書込まれる。
Similarly, address numbers 3 and 5 are stored in the B memory 53, and address numbers 4 and 6 are stored in the A memory 43 alternately in the data registers 51 and 41, respectively.
written via.

その結果、0アドレスレジスタ30に書込まれ
るタイミングは、(k)に示すように、例えば、入力
データA1の場合、書込アドレスが“0”の間に
書込まれて、次の書込リセツト信号が入力するま
でデータが保持される。
As a result, the timing at which data is written to the 0 address register 30 is as shown in (k). Data is held until a signal is input.

また、データレジスタB51を介してBメモリ
53に書込まれるタイミングは、(j)に示すよう
に、次の入力データB1の場合、入力データB1
が本メモリ回路に入力した次の書込クロツクの時
点から、一旦、データレジスタB51に記憶した
入力データB1を2クロツクの時間で、Bメモリ
53に書込みを行う。このように、外部から供給
される書込クロツク周期の2倍の時間でメモリ回
路53,43に書込めばよいことになる。即ち、
メモリ回路53,43の動作速度は1/2でよいこ
とになる。
Furthermore, the timing at which data is written to the B memory 53 via the data register B51 is as shown in (j), in the case of the next input data B1, the input data B1
From the time of the next write clock inputted to this memory circuit, the input data B1 temporarily stored in the data register B51 is written into the B memory 53 in two clocks. In this way, it is sufficient to write to the memory circuits 53, 43 in twice the period of the write clock supplied from the outside. That is,
This means that the operating speed of the memory circuits 53 and 43 can be reduced to 1/2.

このようにして、入力データAm〜Gmは、ア
ドレス0番号Amが(k)0アドレスレジスタ30に
示すタイミングで書込み、また、Bm,Dm,Fm
は(j)データレジスタBのタイミングでBメモリ5
3へ、また、Cm,Em,Gmは(i)データレジスタ
AのタイミングでAメモリ43へそれぞれ書込ま
れることになる。
In this way, input data Am to Gm are written at the timing indicated by address 0 number Am in the (k)0 address register 30, and Bm, Dm, Fm
(j) B memory 5 at the timing of data register B
3, and Cm, Em, and Gm are each written to the A memory 43 at the timing of (i) data register A.

次に、入力データが偶数個の場合について、第
4図を用いて説明する。
Next, the case where there is an even number of input data will be explained using FIG. 4.

入力データ1をAm〜Fm(m=0〜n)の6個
の偶数個のデータからなるものとする。
Assume that the input data 1 consists of six even-numbered data Am to Fm (m=0 to n).

先ず、1つ目のデータA0〜F0からなる入力デ
ータ1は、A0は0アドレスレジスタ30へ、
B0,D0,F0はBメモリ53へ、また、C0,E0
はAメモリ43に書込まれる。そして、同じよう
にして、次のA1〜F1からなる入力データ1
が、A1は0アドレスレジスタ30へ、B1,D
1,F1はBメモリ53へ、また、C1,E1は
Aメモリ43に書込まれる。以下同様である。
First, the input data 1 consisting of the first data A0 to F0 is sent to the address register 30 where A0 is 0.
B0, D0, F0 go to B memory 53, and C0, E0
is written to the A memory 43. Then, in the same way, the following input data 1 consisting of A1 to F1
However, A1 goes to 0 address register 30, B1, D
1 and F1 are written to the B memory 53, and C1 and E1 are written to the A memory 43. The same applies below.

第4図の偶数個で入力データがAm〜Fm(m=
0〜n)の6個の場合、1つの前の入力データの
最後のデータF0の入力と同じタイミングで、(b)
書込リセツト信号WRが書込アドレスクロツク発
生回路8に送られて来る。
The input data is Am~Fm (m=
0 to n), at the same timing as the input of the last data F0 of the previous input data, (b)
A write reset signal WR is sent to the write address clock generation circuit 8.

すると、第3図の場合の入力データ“GO”に
相当するデータが無くなるので、入力データ
“FO”の後に、すぐ、次のデータの最初のアドレ
スデータA1が送られてくる。また、同じタイミ
ングで(f)0アドレスレジスタ書込クロツク
WCKOが0アドレスレジスタ30に供給される。
それに対応して、(k)0アドレスレジスタのデータ
A1が書込まれる。
Then, since there is no longer any data corresponding to the input data "GO" in the case of FIG. 3, the first address data A1 of the next data is sent immediately after the input data "FO". Also, at the same timing, (f)0 address register write clock
WCKO is provided to the 0 address register 30.
Correspondingly, data A1 of the (k)0 address register is written.

そして、第3図の(c)書込アドレスWAのアドレ
スデータ“6”と、(d)A書込クロツクWCLAの
(c)書込アドレスWAのアドレスデータ“6”のタ
イミングにおける書込クロツクも無くなるので、
(g)Aアドレスレジスタのアドレスデータ“4”
は、次のアドレスデータ“2”が入力するまで継
続する。
In FIG. 3, (c) address data “6” of write address WA and (d) A write clock WCLA.
(c) Since the write clock at the timing of address data “6” of write address WA is also eliminated,
(g) Address data “4” of A address register
continues until the next address data "2" is input.

また、アドレスデータ“4”によつて書込まれ
る(i)Aデータレジスタのデータ“E0”も、次の
アドレスデータ“2”によつて書込まれるデータ
“C1”が入力するまで継続する。
Furthermore, data "E0" of the (i) A data register written by address data "4" continues until data "C1" written by the next address data "2" is input.

また、(h)Bアドレスレジスタのアドレスデータ
“5”も、次のアドレスデータ“1”が入力する
まで継続する。
Further, the address data "5" of the (h)B address register also continues until the next address data "1" is input.

この結果、メモリ回路5,4に書込まれる(l)書
込データの順序は、入力データと同じ順序で書込
まれることになる。
As a result, the (l) write data written into the memory circuits 5 and 4 is written in the same order as the input data.

このようにして、入力データが偶数個の場合
も、データが欠落することなく、書込むことがで
きる。
In this way, even if there is an even number of input data, it is possible to write without data loss.

次に、第3図に示すデータが7個の場合に対応
した、第5図の読出タイムチヤートについて説明
する。
Next, the read time chart of FIG. 5 corresponding to the case where there are seven pieces of data shown in FIG. 3 will be explained.

0アドレスレジスタ30や、Aメモリ43、B
メモリ53に書込まれれたデータを読出すため
に、読出アドレスクロツク発生回路9とセレクタ
6とが備えてある。
0 address register 30, A memory 43, B
In order to read the data written in the memory 53, a read address clock generation circuit 9 and a selector 6 are provided.

読出アドレスクロツク発生回路9に、外部から
得られる(m)読出クロツクRCKと(n)読出リセツト
信号RRとにより、(m)読出クロツクRCKに同期し
た、Aメモリ43のアドレスレジスタ44への(p)
Aメモリ読出クロツクRCKAと、Bメモリ53
のアドレスタ54への(q)Bメモリ読出クロツク
RCKBと、両アドレスレジスタ44,54への
(o)読出アドレスRAと、セレクタ6が0アドレス
レジスタ30や、Aメモリ43、Bメモリ53か
ら読出されたデータを取り出すための(y)選択信号
とを発生する。
The read address clock generation circuit 9 uses (m) read clock RCK and (n) read reset signal RR obtained from the outside to input ((m) to address register 44 of memory A 43 in synchronization with (m) read clock RCK). p)
A memory read clock RCKA and B memory 53
(q)B memory read clock to address register 54 of
RCKB and both address registers 44 and 54.
It generates (o) a read address RA and (y) a selection signal for the selector 6 to take out the data read from the 0 address register 30, the A memory 43, and the B memory 53.

また、セレクタ6は、読出アドレスクロツク発
生回路9から供給される(y)選択信号に対応して、
0アドレスレジスタ30、Bメモリ53、Aメモ
リ43を順次切換えて、それぞれに読出されたデ
ータを取り出す。
Further, in response to the (y) selection signal supplied from the read address clock generation circuit 9, the selector 6
The 0 address register 30, the B memory 53, and the A memory 43 are sequentially switched and the data read from each is taken out.

メモリ回路に書込まれたデータの読出しのタイ
ミングと、第3図における書込みのタイミングと
の関係においては、2ポートメモリ回路の記憶容
量の大きさや装置構成にもよるが、例えば、128
データを1フレームとすると、書込リセツト信号
より数データから数十データの遅れで読出リセツ
ト信号を入力し、データ読出しを安定にして実行
できるタイミングで読出すようにする。
The relationship between the read timing of data written in the memory circuit and the write timing in FIG. 3 depends on the storage capacity of the 2-port memory circuit and the device configuration, but for example,
Assuming one frame of data, the read reset signal is input with a delay of several to several tens of data from the write reset signal, so that the data is read out at a timing that allows stable data reading.

また、読出アドレスクロツク発生回路9に、外
部から与えられる(n)読出リセツト信号RRに対応
して、次の読出クロツクのタイミングに(o)読出ア
ドレスRAPが発生するが、セレクト6が(o)読出
アドレスRAにより、Bメモリ、Aメモリ54,
44から出力するデータの遅延を考慮して、2ク
ロツク分だけ遅れて(y)選択信号を供給するように
している。
Further, in response to the (n) read reset signal RR applied externally to the read address clock generation circuit 9, (o) read address RAP is generated at the timing of the next read clock, but the select 6 is (o). ) According to the read address RA, B memory, A memory 54,
In consideration of the delay in the data output from 44, the (y) selection signal is supplied with a delay of two clocks.

先ず、(n)読出リセツト信号RRにより、次のク
ロツクのタイミングに、(o)読出アドレスRAとし
て、データの0番地データを読出すための“0”
が発生するが、0アドレスレジスタ30には、0
番地データに対応するデータ“A1”しか書込ま
れていないので、(o)読出アドレスRAは供給され
ないが、2クロツク分後に0アドレスレジスタ3
0を選択する(y)選択信号がセレクタ6に供給され
るので、データ“A1”が読出され、セレクタ6
を介して取り出される。
First, by (n) read reset signal RR, at the timing of the next clock, (o) read address RA is set to "0" to read data at address 0.
occurs, but the 0 address register 30 contains 0.
Since only data "A1" corresponding to address data is written, (o) read address RA is not supplied, but after two clocks, 0 address register 3
Since the (y) selection signal for selecting 0 is supplied to the selector 6, data “A1” is read out and the selector 6
is retrieved via.

次に、(o)読出アドレスRAに、データの1番地
データを読出すための“1”と、(s)Bアドレスレ
ジスタRCKBがアドレスレジスタ54に供給さ
れる。すると、アドレスレジスタ54にそのデー
タ“1”が記憶され、Bメモリ53のアドレス
“1”に記憶されているデータ“Bm”が読出さ
れてセレクタ6へ送られる。そして、セレクタ6
にBメモリ53を選択する(y)選択信号が送られる
と、データ“Bm”がセレクタ6を介して取り出
される。同様にして、Aメモリ43のアドレス
“2”に書込まれているデータ“C1”がセレク
タ6を介して取り出される。
Next, (o) "1" for reading address 1 data is supplied to the read address RA, and (s) the B address register RCKB is supplied to the address register 54. Then, the data "1" is stored in the address register 54, and the data "Bm" stored at the address "1" in the B memory 53 is read out and sent to the selector 6. And selector 6
When a (y) selection signal is sent to select the B memory 53, data "Bm" is taken out via the selector 6. Similarly, data "C1" written in address "2" of A memory 43 is taken out via selector 6.

同様に、0アドレスレジスタ30に書込まれて
いるデータAm、Bメモリ53に書込まれている
データBm,Dm,FmとAメモリ43に書込まれ
ているデータCm,Em,GmはBメモリ53、A
メモリ43はそれぞれ読出した後、順次セレクタ
6より、(x)セレクタ出力データとして取り出され
る。
Similarly, data Am written in the 0 address register 30, data Bm, Dm, Fm written in the B memory 53, and data Cm, Em, Gm written in the A memory 43 are stored in the B memory. 53.A
After each data is read from the memory 43, the data is sequentially taken out by the selector 6 as (x) selector output data.

また、データから偶数個の場合の読出しも、奇
数個の場合と基本的に変わるところはないので、
説明を割愛する。
Also, reading data for an even number of data is basically the same as for an odd number of data, so
I will omit the explanation.

このようにして、第3図の(a)書込クロツク
WCKや、第5図の(m)読出クロツクRCKにで示
す外部クロツクサイクルと、(d)(e)書込クロツク
WCKA、WCKBや、(p),(q)読出クロツク
RCKA/RCKBにで示す内部クロツクサイク
ルは、はの2倍の動作時間となるが、Aメモ
リ、Bメモリと2個のメモリを書込み、読出しを
独立して行うので、レジスタの動作時間と比較し
て処理速度が1/2の遅いメモリを用いても、メモ
リ回路としては、0番号の付近の動作を除外すれ
ば、レジスタの動作時間と同程度の早い速度で、
書込み、読出し処理を行うことができる。
In this way, (a) write clock in Figure 3
WCK, the external clock cycle shown in (m) read clock RCK in Figure 5, and (d) (e) write clock.
WCKA, WCKB, (p), (q) read clock
The internal clock cycle indicated by RCKA/RCKB is twice the operating time of , but since the two memories, A memory and B memory, are written and read independently, it is difficult to compare it with the register operating time. Even if a memory with a processing speed of 1/2 is used, as a memory circuit, if the operation around the 0 number is excluded, the processing speed is as fast as the register operation time.
Write and read processing can be performed.

なお、第3図〜第5図では、説明の都合上、A
メモリ、Bメモリの使用アドレスが、例えば、A
メモリの場合、2,4,6ととびとびになつてい
るが、実際には、各メモリのアドレスは、外部か
らの書込クロツクWCKまたは、書込リセツト信
号WRのカウントにより発生させるアドレスデー
タのうちの最下位ビツト(LSB)を使用しない
等の工夫をして、Aメモリ、Bメモリに与えるア
ドレスが連続になるようにして、メモリの使用領
域がとびとびにならないようにしている。
In addition, in FIGS. 3 to 5, for convenience of explanation, A
For example, if the used address of memory, B memory is
In the case of memory, the address is 2, 4, 6, but in reality, each memory address is one of the address data generated by counting the external write clock WCK or write reset signal WR. By not using the least significant bit (LSB) of the memory, etc., the addresses given to memory A and memory B are made continuous, so that the memory usage area does not become discontinuous.

〔発明の効果〕〔Effect of the invention〕

上記のように、本発明によれば、0アドレスレ
ジスタを用いることにより、データ長が奇数でも
偶数でも同じように書込み・読出しが可能となる
ので、データ長が随時変化するようなデータの書
込み・読出しに大きく貢献できる。
As described above, according to the present invention, by using the 0 address register, it is possible to write and read data in the same way whether the data length is odd or even. It can greatly contribute to readout.

レジスタの動作より動作が遅くても書込みと読
出しが独立し実行できる2ポートメモリを複数個
使用することにより、書込みと読出しとを独立し
て実行し、かつ、使用する複数個を時間をずらし
て平行して動作させるので、早い速度のメモリ回
路を実現することが可能となる。
By using multiple 2-port memories that can perform writing and reading independently even if the operation is slower than that of registers, writing and reading can be performed independently, and the times used can be staggered. Since they operate in parallel, it is possible to realize a high-speed memory circuit.

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

第1図は本発明の原理図、第2図は本発明一実
施例のシーケンシヤルメモリのブロツク回路図、
第3図は本発明一実施例のシーケンシヤルメモリ
回路の書込タイムチヤート(奇数データ)、第4
図は本発明一実施例のシーケンシヤルメモリ回路
の書込タイムチヤート(偶数データ)、第5図は
本発明一実施例のシーケンシヤルメモリ回路の読
出タイムチヤート(奇数データ)、第6a図は従
来の交互動作のメモリシエア方式、第6b図は従
来の半周期ずらしの交互動作のメモリシエア方式
(偶数データ)、第6c図は従来の半周期ずらしの
交互動作のメモリシエア方式(奇数データ)、第
6d図は従来の半周期ずらしの交互動作のメモリ
シエア方式(奇数データ)。 図において、1は入力データ、2は出力デー
タ、3はレジスタ、4,5はメモリ回路、6はセ
レクタ、7は出力レジスタ、8は書込アドレスク
ロツク発生回路、9は読出アドレスクロツク発生
回路、30は0アドレスレジスタ、41,51は
データレジスタ、42,52,44,54はアド
レスレジスタ、43はAメモリ、53はBメモリ
である。
FIG. 1 is a principle diagram of the present invention, and FIG. 2 is a block circuit diagram of a sequential memory according to an embodiment of the present invention.
FIG. 3 is a write time chart (odd data) of a sequential memory circuit according to an embodiment of the present invention;
The figure is a write time chart (even data) of a sequential memory circuit according to an embodiment of the present invention, FIG. 5 is a read time chart (odd data) of a sequential memory circuit according to an embodiment of the present invention, and FIG. 6a is a conventional diagram. Figure 6b shows the conventional memory sharing method of alternating operation with half-cycle shift (even number data), Figure 6c shows the conventional memory sharing method of alternating operation with half-cycle shift (odd number data), and Figure 6d is the conventional memory sharing method of alternating half-cycle shifting (odd data). In the figure, 1 is input data, 2 is output data, 3 is a register, 4 and 5 are memory circuits, 6 is a selector, 7 is an output register, 8 is a write address clock generation circuit, and 9 is a read address clock generation circuit. In the circuit, 30 is a 0 address register, 41, 51 are data registers, 42, 52, 44, 54 are address registers, 43 is an A memory, and 53 is a B memory.

Claims (1)

【特許請求の範囲】 1 2つのメモリ回路4,5を用い、書込アドレ
スクロツク発生回路8が供給する書込クロツクに
より、2つの該メモリ回路4,5はデータの書込
みを交互に行い、また読出アドレスクロツク発生
回路9が供給する読出クロツクにより、データの
読出しを交互に行い、該メモリ回路4,5から相
互に読出したデータは、該読出アドレスクロツク
発生回路9が供給する選択信号により動作するセ
レクタ6を相互に切替えて、2つの該メモリ回路
4,5に書込まれた該データを読出して取り出す
シーケンシヤルメモリ回路において、 該メモリ回路4,5にデータの書込みと、デー
タの読出しを独立して行える2つの2ポートメモ
リ回路を用い、 複数個からなる入力データの0番地データを該
書込アドレスクロツク発生回路8からの書込クロ
ツクで書込み、また、該読出アドレスクロツク発
生回路9の発生アドレスが“0”のとき、該セレ
クタ6からの選択信号により、読出しを行うレジ
スタ3を設け、 該入力データの該0番地データは該レジスタ3
に迂回させ、該入力データの1番地データ以降の
データは、2つの該メモリ回路4,5において、
交互に書込みを行い、また、書込みとは独立して
該レジスタ3と、交互に該メモリ回路4,5に書
込まれた該データの読出しを行うことを特徴とす
るシーケンシヤルメモリ回路。
[Scope of Claims] 1. Using two memory circuits 4 and 5, data is written alternately in the two memory circuits 4 and 5 by a write clock supplied by a write address clock generation circuit 8, Data is read out alternately by the read clock supplied by the read address clock generation circuit 9, and the data mutually read from the memory circuits 4 and 5 is controlled by the selection signal supplied by the read address clock generation circuit 9. In a sequential memory circuit that reads and retrieves the data written in the two memory circuits 4 and 5 by mutually switching the selectors 6 operated by the Using two two-port memory circuits that can read data independently, data at address 0 of a plurality of pieces of input data is written using the write clock from the write address clock generation circuit 8, and the data at address 0 is written using the write clock from the write address clock generation circuit 8. When the generation address of the generation circuit 9 is "0", a register 3 is provided which performs reading according to a selection signal from the selector 6, and the data at address 0 of the input data is stored in the register 3.
The data after address 1 of the input data is detoured to the two memory circuits 4 and 5.
A sequential memory circuit characterized in that writing is performed alternately, and the data written in the register 3 and the memory circuits 4 and 5 are read out independently of the writing.
JP62133060A 1987-05-28 1987-05-28 Sequential memory circuit Granted JPS63298434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62133060A JPS63298434A (en) 1987-05-28 1987-05-28 Sequential memory circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62133060A JPS63298434A (en) 1987-05-28 1987-05-28 Sequential memory circuit

Publications (2)

Publication Number Publication Date
JPS63298434A JPS63298434A (en) 1988-12-06
JPH0542010B2 true JPH0542010B2 (en) 1993-06-25

Family

ID=15095889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62133060A Granted JPS63298434A (en) 1987-05-28 1987-05-28 Sequential memory circuit

Country Status (1)

Country Link
JP (1) JPS63298434A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4582032B2 (en) * 2006-03-16 2010-11-17 ソニー株式会社 Data transfer device and data transfer system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55134442A (en) * 1979-04-04 1980-10-20 Hitachi Ltd Data transfer unit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55134442A (en) * 1979-04-04 1980-10-20 Hitachi Ltd Data transfer unit

Also Published As

Publication number Publication date
JPS63298434A (en) 1988-12-06

Similar Documents

Publication Publication Date Title
JP2740063B2 (en) Semiconductor storage device
EP0248906A1 (en) Multi-port memory system
JPH01310433A (en) Line memory for converting speed
JPS5892160A (en) Sampling frequency converter
JP3086769B2 (en) Multi-port field memory
JPH09198862A (en) Semiconductor memory
JPH0542010B2 (en)
JP2820462B2 (en) Data string generator
JPS61196340A (en) Method of addressing random access memory as delay line and signal processor containing same delay line
JP5028710B2 (en) Semiconductor memory device
JPS62146064A (en) Multi-port memory
JP2812154B2 (en) Semiconductor storage device
JPH07307090A (en) Semiconductor memory
JP2514473B2 (en) Parallel processor
JP2504143B2 (en) Frame conversion circuit
JPH064689A (en) Parallel dsp processor of linear array type
JPS626481A (en) Variable length shift register
RU2081459C1 (en) Stack memory unit
JPH0467661B2 (en)
JPH02252186A (en) First-in first-out memory
JPH01223695A (en) Memory device
JPH0350297B2 (en)
JPS6349984A (en) Picture processor
JPH0243621A (en) Elastic storing
JPH06301629A (en) Main storage device