JPH0479011B2 - - Google Patents
Info
- Publication number
- JPH0479011B2 JPH0479011B2 JP60233973A JP23397385A JPH0479011B2 JP H0479011 B2 JPH0479011 B2 JP H0479011B2 JP 60233973 A JP60233973 A JP 60233973A JP 23397385 A JP23397385 A JP 23397385A JP H0479011 B2 JPH0479011 B2 JP H0479011B2
- Authority
- JP
- Japan
- Prior art keywords
- shift register
- data
- speed
- shift
- switch
- 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
Landscapes
- Information Transfer Systems (AREA)
- Communication Control (AREA)
Description
【発明の詳細な説明】
〔目次〕
概要
産業上の利用分野
従来の技術
発明が解決しようとする問題点
問題点を解決するための手段(第1図)
作用
実施例
第1の実施例(第2図〜第5図)
第2の実施例(第6図〜第8図)
発明の効果
〔発明の概要〕
低速FIFOメモリに対して2個の高速シフトレ
ジスタを設け、間欠的に転送される高速データを
一方の高速シフトレジスタに書き込むとともに、
他方の高速シフトレジスタのデータを低速FIFO
メモリに入力する動作を交互に行わせることによ
つて、低速FIFOメモリへのデータ転送を低速か
つ一様な速度で行うことができるようにし、ま
た、低速FIFOメモリからの低速かつ一様な速度
を有するデータを一方の高速シフトレジスタに書
き込むとともに、他方の高速シフトレジスタのデ
ータを外部へ出力する動作を交互に行わせること
によつて、外部へのデータ転送を高速で行うこと
ができるようにする。[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems (Fig. 1) Functional Embodiment First Embodiment (Fig. 2 to 5) Second embodiment (Fig. 6 to 8) Effects of the invention [Summary of the invention] Two high-speed shift registers are provided for the low-speed FIFO memory, and data is transferred intermittently. While writing high-speed data to one high-speed shift register,
The data of the other high-speed shift register is transferred to the low-speed FIFO.
By alternating input operations to the memory, data can be transferred to the low-speed FIFO memory at a slow and uniform rate, and data can be transferred from the low-speed FIFO memory at a low and uniform rate. By alternately writing data with a value into one high-speed shift register and outputting data from the other high-speed shift register to the outside, data can be transferred to the outside at high speed. do.
本発明は、全体として一個のFIFOとして動作
させることを目的としており、内部でのシフトレ
ジスタや低速FIFOとの間の接続関係を外部から
制御する必要がない。即ちシフトレジスタ内の有
効ビツトによつて内部スイツチの切換えを自動的
に行う点が特徴である。しかも、その回路は極め
て低コストで実現できる。 The present invention aims to operate as a single FIFO as a whole, and there is no need to externally control the connection relationship between the internal shift register and the low-speed FIFO. That is, it is characterized in that the internal switch is automatically switched based on the valid bit in the shift register. Moreover, the circuit can be realized at extremely low cost.
本発明はFIFO(First−In First−Out)バツフ
アメモリを構成する方式に係り、特に低速FIFO
メモリの入力側または出力側に高速シフトレジス
タを組み合わせることによつて、入出力における
データ速度の変換を行うことができるようにした
FIFOメモリ制御装置に関するものである。
The present invention relates to a method for configuring a FIFO (First-In First-Out) buffer memory, and particularly relates to a method for configuring a FIFO (First-In First-Out) buffer memory.
By combining a high-speed shift register on the input or output side of the memory, it is possible to convert the data speed in input and output.
This relates to a FIFO memory control device.
データ処理装置等においては、二つの装置間に
おけるデータ転送を非同期で行うことが必要にな
る場合があるが、このような場合のデータ転送手
段としてFIFOメモリが一般的に用いられている。 In data processing devices and the like, there are cases where it is necessary to transfer data asynchronously between two devices, and FIFO memory is generally used as a data transfer means in such cases.
本発明のFIFOメモリ制御装置は、低速大容量
のFIFOメモリと高速のシフトレジスタとを組み
合わせることによつて、間欠的な高速データ入力
を比較的一様な速度の低速データとして転送し、
または比較的一様な速度の低速データを間欠的な
高速データとして転送することができるFIFOメ
モリ制御装置を提供しようとするものである。 The FIFO memory control device of the present invention transfers intermittent high-speed data input as low-speed data at a relatively uniform speed by combining a low-speed large-capacity FIFO memory and a high-speed shift register.
Another object of the present invention is to provide a FIFO memory control device that can transfer low-speed data at a relatively uniform rate as intermittent high-speed data.
従来、FIFOメモリを構成する方法としては、
RAM(Random Access Memery)を用い、こ
れに書き込み用ポインタと読み取用りポインタと
を設け、両ポインタを独立に制御して交互に書き
込みと読み取りとを行うことによつて、データの
転送を行う方法が用いられている。
Traditionally, the method of configuring FIFO memory is as follows:
A method of transferring data by using RAM (Random Access Memory), providing a write pointer and a read pointer, and controlling both pointers independently to perform writing and reading alternately. is used.
このような方式のFIFOメモリでは、入出力の
データ速度が異なる場合、入出力のデータ転送速
度の瞬間最高速度で動作することができるRAM
が必要になる。しかしながら一般にRAMにとつ
て、高速化と大容量化とは相反する要求であつて
両立させることは困難であり、そのためFIFOメ
モリを高速、大容量化しようとする場合には、高
速、小容量のRAMを多数使用しなければなら
ず、ハードウエア規模、コストともに著しく大き
くなることを避けられないという問題があつた。
With this type of FIFO memory, if the input and output data rates are different, the RAM can operate at the maximum instantaneous input and output data transfer rate.
is required. However, in general, for RAM, high speed and large capacity are contradictory demands and it is difficult to achieve both. Therefore, when trying to increase the speed and capacity of FIFO memory, it is necessary to There was a problem in that a large amount of RAM had to be used, which inevitably led to a significant increase in both hardware scale and cost.
第1図はこのような問題点を解決するための原
理的構成を示し、2個の高速シフトレジスタ10
1,102と低速FIFOメモリ103に対し、こ
の2個の高速シフトレジスタ101,102を切
り替えて低速FIFOメモリ103に接続するスイ
ツチ104と、2個の高速シフトレジスタ10
1,102を切り替えて外部と接続するスイツチ
105とを設けて、第1の発明では、外部からの
高速入力データをスイツチ105を経て一方の高
速シフトレジスタに書き込むとともに他方の高速
シフトレジスタからスイツチ104を経てデータ
を低速FIFOメモリ103に入力する動作を、高
速シフトレジスタへのデータ入力終了ごとにスイ
ツチ104,105を切り替えることによつて、
2個の高速シフトレジスタ101,102に交互
に行わせる。
FIG. 1 shows the principle configuration for solving such problems, and consists of two high-speed shift registers 10.
1, 102 and low-speed FIFO memory 103, a switch 104 switches between these two high-speed shift registers 101 and 102 and connects them to the low-speed FIFO memory 103, and the two high-speed shift registers 10
In the first invention, high-speed input data from the outside is written to one of the high-speed shift registers via the switch 105, and is written from the other high-speed shift register to the switch 104. The operation of inputting data to the low-speed FIFO memory 103 via the 100-degree shift register is controlled by switching switches 104 and 105 each time data input to the high-speed shift register is completed.
The two high-speed shift registers 101 and 102 are made to perform the shift alternately.
第2の発明では、低速FIFOメモリ103から
の低速データ出力をスイツチ104を経て一方の
高速シフトレジスタに書き込むとともに他方の高
速シフトレジスタからスイツチ105を経てデー
タを出力する動作を、高速シフトレジスタからの
データ出力終了ごとにスイツチ104,105を
切り替えることによつて、2個の高速シフトレジ
スタ101,102に交互に行わせる。 In the second invention, the operation of writing low-speed data output from the low-speed FIFO memory 103 to one high-speed shift register via the switch 104 and outputting data from the other high-speed shift register via the switch 105 is performed by changing the operation of writing the low-speed data output from the low-speed FIFO memory 103 to one high-speed shift register via the switch 105. By switching the switches 104 and 105 each time data output is completed, the two high-speed shift registers 101 and 102 are caused to perform the shift alternately.
本発明の構成及び特徴は、下記の通りである。 The structure and features of the present invention are as follows.
構 成
(1) 入力データの入力データ有りを表示する有効
ビツトとを一組として格納可能な第1、第2の
シフトレジスタと、
第1または第2のシフトレジスタに入力デー
タと入力データとともに有効ビツトを書き込む
手段と、
第1または第2のシフトレジスタを選択し
て、該書き込み手段を選択された一方のシフト
レジスタに接続する第1のスイツチと、
第1または第2のシフトレジスタに格納され
た入力データおよび有効ビツトとを読みだし、
読みだした入力データをFIFOに書き込む転送
回路手段と、
第1または第2のシフトレジスタを選択し
て、該転送回路と第1のスイツチに接続されて
いない他方のシフトレジスタとを接続する第2
のスイツチと、
第1および第2のシフトレジスタの最終段に
おける有効ビツトを監視して、データの書き込
みが行われているシフトレジスタから入力デー
タ有りを示し有効ビツトが、そして、データの
読みだしが行われているシフトレジスタからデ
ータ無しを示すビツトが検出された時に、第1
および第2のスイツチを切り替えてそれぞれ他
方のシフトレジスタに接続して、第1、第2の
シフトレジスタのデータの書き込みと読みだし
とを交互に行うように制御するスイツチ切り替
え制御手段と、を備えたことを特徴とする
FIFOメモリ制御装置。Configuration (1) First and second shift registers that can store input data as a set and a valid bit that indicates the presence of input data; means for writing bits; a first switch for selecting a first or second shift register and connecting the writing means to the selected one of the shift registers; Read the input data and valid bits,
A transfer circuit means for writing read input data into the FIFO, and a second switch for selecting a first or second shift register and connecting the transfer circuit to the other shift register not connected to the first switch.
The switch and the valid bit in the last stage of the first and second shift registers are monitored, and the valid bit indicates the presence of input data from the shift register to which data is being written, and the valid bit is detected when data is read. When a bit indicating no data is detected from the shift register being processed, the first
and switch switching control means for switching the second switch and connecting it to the other shift register to control the first and second shift registers to alternately write and read data. characterized by
FIFO memory controller.
(2) 入力データと入力データ有りを表示する有効
ビツトとを一組として格納可能な第1、第2の
シフトレジスタと、
FIFOと、
第1または第2のシフトレジスタに、該
FIFOから読みだした入力データと有効ビツト
とを書き込む書き込み手段と、
第1または第2のシフトレジスタを選択し
て、該書き込み手段を選択された一方のシフト
レジスタに接続する第1のスイツチと、
第1または第2のシフトレジスタに格納され
た入力データおよび有効ビツトとを読みだし、
読みだした入力データを外部回路に転送する転
送回路手段と、
第1または第2のシフトレジスタを選択し
て、該転送回路と第1のスイツチに接続されて
いない他方のシフトレジスタとを接続する第2
のスイツチと、
第1および第2のシフトレジスタの最終段に
おける有効ビツトを監視して、データの書き込
みが行われているシフトレジスタから入力デー
タ有りを示す有効ビツトが、そして、データの
読みだしが行われているシフトレジスタからデ
ータ無しを示すビツトが検出された時に、第1
および第2のスイツチを切り替えてそれぞれ他
方のシフトレジスタに接続して、第1、第2の
シフトレジスタのデータの書き込みと読みだし
とを交互に行うように制御するスイツチ切り替
え制御手段と、を備えたことを特徴とする
FIFOメモリ制御装置。(2) First and second shift registers capable of storing input data and a valid bit indicating the presence of input data as a set, a FIFO, and the first or second shift register.
a writing means for writing input data read from the FIFO and a valid bit; a first switch for selecting a first or second shift register and connecting the writing means to the selected one of the shift registers; Read the input data and valid bits stored in the first or second shift register,
Transfer circuit means for transferring read input data to an external circuit; selecting a first or second shift register; and connecting the transfer circuit to the other shift register not connected to the first switch; Second
The switch and the valid bit in the last stage of the first and second shift registers are monitored, and the valid bit indicating that there is input data from the shift register where data is being written is detected, and when the data is being read. When a bit indicating no data is detected from the shift register being processed, the first
and switch switching control means for switching the second switch and connecting it to the other shift register to control the first and second shift registers to alternately write and read data. characterized by
FIFO memory controller.
特 徴
本発明は、全体として一個のFIFOとして動作
させることを目的としており、内部でのシフトレ
ジスタレベルや低速FIFOとの間の接続関係を外
部から制御する必要がない。即ちシフトレジスタ
内の有効ビツトによつて内部スイツチの切り替え
を自動的に行う点が特徴である。しかも、その回
路は極めて低コストで実現できる。Features The present invention aims to operate as a single FIFO as a whole, and there is no need to externally control the internal shift register level or the connection relationship with the low-speed FIFO. That is, it is characterized in that internal switches are automatically switched based on valid bits in the shift register. Moreover, the circuit can be realized at extremely low cost.
第1の発明では、間欠的に転送される高速デー
タを2個の高速シフトレジスタの一方に満杯にな
るまで書き込むとともに、他方の高速シフトレジ
スタのデータを低速FIFOメモリに入力する動作
を、2個の高速シフトレジスタにその一方へのデ
ータ入力終了ごとに交互に行わせることによつ
て、低速FIFOメモリへのデータ低速を低速かつ
一様な高速で行うことができる。
In the first invention, the operation of writing intermittently transferred high-speed data into one of the two high-speed shift registers until it is full, and inputting the data from the other high-speed shift register to the low-speed FIFO memory is performed using two high-speed shift registers. By causing the high-speed shift registers to perform data input alternately each time data input to one of them is completed, data can be transferred to the low-speed FIFO memory at a low speed and at a uniform high speed.
第2の発明では、低速FIFOメモリからの低速
かつ一様な速度を有するデータを2個の高速シフ
トレジスタの一方に満杯になるまで書き込むとと
もに、他方の高速シフトレジスタのデータを外部
へ出力する動作を、2個の高速シフトレジスタに
その一方からのデータ出力終了ごとに交互に行わ
せることによつて、外部へのデータ転送を高速で
行うことができる。 In the second invention, the operation is to write data having a low and uniform speed from the low-speed FIFO memory into one of the two high-speed shift registers until it is full, and to output the data in the other high-speed shift register to the outside. By causing the two high-speed shift registers to alternately perform this every time data output from one of them is completed, data transfer to the outside can be performed at high speed.
〔第1の実施例〕
第2図は本発明の一実施例の構成を示す図であ
つて、1,2は高速のシフトレジスタ、3は転送
回路、4はスイツチ制御回路、5は低速大容量の
FIFOメモリ(以下単に低速FIFOという)、また
SW1-1、SW1-2、SW1-3およびSW2-1、SW2-2、
SW2-3はそれぞれ連動して交互に切り替えられる
スイツチである。
[First Embodiment] FIG. 2 is a diagram showing the configuration of an embodiment of the present invention, in which 1 and 2 are high-speed shift registers, 3 is a transfer circuit, 4 is a switch control circuit, and 5 is a low-speed high-speed shift register. of capacity
FIFO memory (hereinafter simply referred to as low-speed FIFO),
SW1 -1 , SW1 -2 , SW1 -3 and SW2 -1 , SW2 -2 ,
SW2 -3 are switches that can be switched alternately in conjunction with each other.
第3図はシフトレジスタ1,2における有効ビ
ツトの動作を示す図であつて、aはデータ入力
を、bはデータが満杯になつた状態を、eはデー
タ出力中をそれぞれ示している。 FIG. 3 is a diagram showing the operation of the valid bits in the shift registers 1 and 2, in which a indicates data input, b indicates a full state of data, and e indicates data output.
また第4図は第2図の構成における各部動作を
示すタイムチヤートである。 Further, FIG. 4 is a time chart showing the operation of each part in the configuration of FIG. 2.
高速シフトレジスタ1,2は、各段のデータと
して8ビツトの並列データを有し、その他に有効
ビツトと称する第9ビツトを有している。有効ビ
ツトはその段のデータが有効なとき‘1'となり、
無効なとき‘0'となつているものとする。 The high-speed shift registers 1 and 2 have 8-bit parallel data as data for each stage, and also have a 9th bit called a valid bit. The valid bit becomes '1' when the data in that stage is valid.
It is assumed to be '0' when it is invalid.
初期状態においては、シフトレジスタ1,2お
よび低速FIFO5は空であつて、シフトレジスタ
1,2の有効ビツトはすべて‘0'である。従つ
て、シフトレジスタ1,2G出力側におけるシフ
トレジスタ有効信号FG1,FG2も‘0'である。 In the initial state, shift registers 1 and 2 and low-speed FIFO 5 are empty, and all valid bits of shift registers 1 and 2 are '0'. Therefore, shift register valid signals FG1 and FG2 on the output side of shift registers 1 and 2G are also '0'.
最初、スイツチSW1-1,SW1-2,SW1-3がシフ
トレジスタ1側を指し、スイツチSW2-1、
SW2-2、SW2-3がシフトレジスタ2側を指してい
るものとすると、この状態ではデータ入力がスイ
ツチSW1-1を経て、入力クロツクがスイツチ
SW1-2を経てそれぞれシフトレジスタ1に与えら
れることによつて、シフトレジスタ1にデータの
書き込みが行われる。同時に有効ビツト‘1'が、
スイツチSW1-3を経てシフトレジスタ1に入力さ
れる。 Initially, switches SW1 -1 , SW1 -2 , SW1 -3 point to the shift register 1 side, and switches SW2 -1, SW1 -3 point to the shift register 1 side.
Assuming that SW2 -2 and SW2 -3 point to the shift register 2 side, in this state the data input passes through the switch SW1 -1, and the input clock passes through the switch SW1 -1 .
Data is written to the shift register 1 by being applied to the shift register 1 through SW1-2 . At the same time, the valid bit '1' is
It is input to shift register 1 via switches SW1-3 .
シフトレジスタ1にデータが入力されるにつれ
て、有効ビツト‘1'が第3図aに示すように出力
側に向つてシフトしてゆき、データの先頭がシフ
トレジスタ1の出力側に到達すると、有効ビツト
は第3図bに示すようになつてシフトレジスタ有
効信号FG1が‘1'になる。第4図においてAは、
この場合の各部の動作を示している。 As data is input to the shift register 1, the valid bit '1' shifts towards the output side as shown in FIG. The bit changes as shown in FIG. 3b, and the shift register valid signal FG1 becomes '1'. In Figure 4, A is
The operation of each part in this case is shown.
スイツチ制御回路4は、シフトレジスタ有効信
号FG1またはFG2が‘1'になつたとき、各スイツ
チを反転させる。いま信号FG1が‘1'になつたこ
とによつて、スイツチSW1-1,SW1-2,SW1-3が
シフトレジスタ2を指し、スイツチSW2-1、
SW2-2、SW2-3がシフトレジスタ1を指すように
なる。転送回路3はシフトレジスタ有効信号FG1
またはFG2が‘1'になつたとき、低速のシフトク
ロツクを供給する。このシフトクロツクはスイツ
チSW2-2を経てシフトレジスタ1に与えられ、シ
フトレジスタ1はこれによつて低速の一定速度で
データを出力し、このデータはスイツチSW2-1を
経て低速FIFO5に入力される。このときシフト
レジスタ1は、スイツチSW1-3を経て有効ビツト
‘0'が入力される。転送回路3は、第3図eに示
すように、シフトレジスタ有効信号FG1が‘1'の
間、シフトレジスタ1にシフトクロツクを供給
し、これによつてシフトレジスタ1からデータが
転送され、データが空になるまで読み取りが続け
られる。 The switch control circuit 4 inverts each switch when the shift register valid signal FG1 or FG2 becomes '1'. Now that the signal FG1 has become '1', the switches SW1 -1 , SW1 -2 , SW1 -3 point to the shift register 2, and the switches SW2 -1, SW1 -3 point to the shift register 2 .
SW2 -2 and SW2 -3 now point to shift register 1. Transfer circuit 3 uses shift register enable signal FG1
Or, when FG2 becomes '1', a low speed shift clock is supplied. This shift clock is applied to the shift register 1 via the switch SW2-2 , which causes the shift register 1 to output data at a constant low speed, and this data is input to the low-speed FIFO 5 via the switch SW2-1. At this time, the valid bit '0' is input to the shift register 1 via the switches SW1-3 . As shown in FIG. 3e, the transfer circuit 3 supplies a shift clock to the shift register 1 while the shift register valid signal FG1 is '1', thereby data is transferred from the shift register 1, and the data is Reading continues until it is empty.
一方、これと同時にシフトレジスタ2にはスイ
ツチSW1-1を経てデータ入力が、スイツチSW1-2
を経て入力クロツクが与えられることによつて、
データの書き込みが行われるとともに、スイツチ
SW2-3を経て有効ビツト‘1'が入力される。 At the same time, data is input to shift register 2 via switch SW1 -1 , and switch SW1 -2
By providing an input clock via
The data is written and the switch is
Valid bit '1' is input via SW2-3 .
この場合、シフトレジスタ1から低速FIFO5
へのデータ転送速度は、外部からシフトレジスタ
2へ入力されるデータの平均速度より大きく選ば
れているので、シフトレジスタ2にデータが満杯
になつたときは、シフトレジスタ1は既に空にな
つている。第4図においてBはこの場合に各部の
動作を示している。 In this case, from shift register 1 to low speed FIFO 5
The data transfer speed to is selected to be higher than the average speed of data input from the outside to shift register 2, so when shift register 2 is full of data, shift register 1 is already empty. There is. In FIG. 4, B indicates the operation of each part in this case.
シフトレジスタ2が満杯になつたことによつ
て、シフトレジスタ有効信号FG2が‘1'となり、
スイツチ制御回路4がこれを検出して各スイツチ
を反転させるとともに、転送回路3からシフトク
ロツクが供給されることによつて、シフトレジス
タ1に対するデータの書き込みが行われ、同時に
シフトレジスタ2から低速FIFO5へのデータ転
送が開始される。シフトレジスタ1にデータが満
杯になつたときデータの書き込みは終了するが、
このときは前述のようにシフトレジスタ2は既に
空になつている。第4図においてCは、この場合
の各部の動作を示している。 As the shift register 2 becomes full, the shift register valid signal FG2 becomes '1'.
The switch control circuit 4 detects this and inverts each switch, and the transfer circuit 3 supplies a shift clock to write data to the shift register 1, and at the same time, from the shift register 2 to the low-speed FIFO 5. data transfer is started. Data writing ends when shift register 1 is full of data, but
At this time, shift register 2 is already empty as described above. In FIG. 4, C indicates the operation of each part in this case.
以後、このような動作を交互に繰り返すことに
よつて、シフトレジスタ1,2に対するデータの
書き込みと、シフトレジスタ1,2から低速
FIFO5に対するデータの読み取りとが交互に行
われて、データが転送される。このようにして、
高速で間欠的に入力されるデータを低速の一様な
速度で、低速FIFO5へ入力することができる。 After that, by repeating this operation alternately, data is written to shift registers 1 and 2, and data is written from shift registers 1 and 2 at low speed.
Data is transferred by alternately reading and reading data from the FIFO 5. In this way,
Data that is input intermittently at high speed can be input to the low-speed FIFO 5 at a low and uniform speed.
低速FIFO5は、RAMから構成された周知の
FIFOメモリであつて、入力されたデータを外部
から与えられる出力クロツクによつて非同期で読
み取つて、出力データを生じる。なお低速FIFO
5の出力側のデータ転送速度は、低速の一様な速
度である。 The low-speed FIFO5 is a well-known memory composed of RAM.
A FIFO memory that reads input data asynchronously using an externally applied output clock to generate output data. Note that low-speed FIFO
The data transfer rate on the output side of 5 is a slow uniform rate.
第5図は第2図における転送回路3の具体的構
成例を示したものであつて、11はORゲート、
12はクロツク源、13はANDゲートである。 FIG. 5 shows a specific configuration example of the transfer circuit 3 in FIG. 2, in which 11 is an OR gate;
12 is a clock source, and 13 is an AND gate.
ORゲート11は、シフトレジスタ有効信号
FG1,FG2のいずれかが‘1'となつたとき出力‘
1'を発生し、これによつてANDゲート13を経
てクロツク源12のクロツクが出力される。この
出力は第2図における各シフトレジスタ1,2に
対するシフトクロツクおよび、低速FIFO5に対
する入力クロツクとなる。 OR gate 11 is a shift register enable signal
Output when either FG1 or FG2 becomes '1'
1', which causes the clock of the clock source 12 to be output via the AND gate 13. This output becomes the shift clock for each shift register 1, 2 in FIG. 2 and the input clock for the low-speed FIFO 5.
〔第2の実施例〕
第6図は本発明の他の実施例の構成を示し、第
2図におけると同じ部分は同じ番号で示されてお
り、3Aは転送回路である。ただし第2図の場合
と比較して高速のシフトレジスタ1,2と低速
FIFO5とは、入出力に対して逆の関係に接続さ
れていて、低速の比較的一様な速度を有する入力
データを間欠的な高速データに変換して転送する
ことがでいる。これに伴つて、転送回路3Aの出
力クロツクが低速FIFO5の出力クロツクおよび
シフトレジスタ1,2に対する書き込み時のシフ
トクロツクとして用いられるとともに、シフトレ
ジスタ1,2の読み取りクロツクとしては、外部
から与えられる出力用クロツクが用いられるよう
になつている。スイツチSW2-4はシフトレジスタ
有効信号FG1、FG2を外部へ出力する。[Second Embodiment] FIG. 6 shows the configuration of another embodiment of the present invention, in which the same parts as in FIG. 2 are designated by the same numbers, and 3A is a transfer circuit. However, compared to the case in Figure 2, high-speed shift registers 1 and 2 and low-speed shift registers
The FIFO 5 is connected in a reverse relationship with respect to input and output, and can convert input data having a relatively uniform speed into intermittent high-speed data and transfer the data. Along with this, the output clock of the transfer circuit 3A is used as the output clock of the low-speed FIFO 5 and the shift clock when writing to the shift registers 1 and 2, and the read clock of the shift registers 1 and 2 is used as the output clock given from the outside. Clocks are beginning to be used. Switch SW2-4 outputs shift register enable signals FG1 and FG2 to the outside.
また第7図は、第6図の構成における各部動作
を示すタイムチヤートである。 Further, FIG. 7 is a time chart showing the operation of each part in the configuration of FIG. 6.
第6図の実施例におけるシフトレジスタ1,2
の有効ビツトの動作は、第3図に示されたものと
同様である。 Shift registers 1 and 2 in the embodiment of FIG.
The operation of the valid bits is similar to that shown in FIG.
初期状態においては低速FIFO5は空であり、
シフトレジスタ1,2の有効ビツトはすべて‘0'
である。従つてシフトレジスタ1,2の出力側に
おけるシフトレジスタ有効信号FG1,FG2も‘0'
である。 In the initial state, low-speed FIFO 5 is empty,
All valid bits of shift registers 1 and 2 are '0'
It is. Therefore, the shift register valid signals FG1 and FG2 on the output sides of shift registers 1 and 2 are also '0'.
It is.
最初、スイツチSW1-1、SW1-2、SW1-3がシフ
トレジスタ1側を指し、スイツチSW2-1、
SW2-2、SW2-3、SW2-4がシフトレジスタ2側を
指しているものとする。低速FIFO5はその内容
が空であるとき、EMPTY信号として‘1'を発生
する。転送回路3AはEMPTY信号が‘0'のとき
(低速FIFO5が空でないとき)出力クロツクを供
給することによつて、低速FIFO5からスイツチ
SW1-1を経てシフトレジスタ1へデータを転送さ
せる。このときシフトレジスタ1には、スイツチ
SW1-3を経て有効ビツト‘1'が入力される。 Initially, switches SW1 -1 , SW1 -2 , and SW1 -3 point to the shift register 1 side, and switches SW2 -1 ,
It is assumed that SW2 -2 , SW2 -3 and SW2 -4 point to the shift register 2 side. When the low-speed FIFO 5 is empty, it generates '1' as an EMPTY signal. The transfer circuit 3A transfers the switch from the low-speed FIFO 5 by supplying an output clock when the EMPTY signal is '0' (when the low-speed FIFO 5 is not empty).
Transfer data to shift register 1 via SW1 -1 . At this time, shift register 1 contains a switch.
Valid bit '1' is input via SW1-3 .
低速FIFO5からデータがシフトレジスタ1に
転送されるに伴つて、第3図aに示すようにシフ
トレジスタ1の有効ビツトが出力に向つてシフト
してゆき、データの先頭がシフトレジスタ1の出
力側に到達すると、有効ビツトは第3図bに示す
ようになつて、シフトレジスタ有効信号FG1が‘
1'になる。第7図においてAは、この場合の各部
の動作を示している。 As data is transferred from the low-speed FIFO 5 to the shift register 1, the valid bits of the shift register 1 shift toward the output as shown in FIG. When it reaches , the valid bit becomes as shown in Figure 3b, and the shift register valid signal FG1 becomes ''.
Becomes 1'. In FIG. 7, A indicates the operation of each part in this case.
スイツチ制御回路4は、シフトレジスタ有効信
号FG1が‘1'、FG2が‘0'の状態を検出して、各
スイツチを反転させる。これによつてスイツチ
SW1-1、SW1-2、SW1-3がシフトレジスタ2を指
し、スイツチSW2-1、SW2-2、SW2-3,SW2-4が
シフトレジスタ1を指すようになる。シフトレジ
スタ有効信号FG1はスイツチSW2-4を経て図示さ
れない外部回路へ出力され、外部回路は信号FG1
が‘1'のときデータありと判定して、出力用クロ
ツクをスイツチSW2-2を経て入力することによつ
て、シフトレジスタ1からデータが読み取られ
て、スイツチSW2-1を経て出力データを生じる。
シフトレジスタ1からのデータの読み取りは、シ
フトレジスタ1が空になるまで続けられる。 The switch control circuit 4 detects that the shift register enable signal FG1 is '1' and the shift register enable signal FG2 is '0', and inverts each switch. This will cause the switch
SW1 -1 , SW1 -2 and SW1 -3 point to shift register 2, and switches SW2 -1 , SW2 -2 , SW2 -3 and SW2 -4 point to shift register 1. The shift register enable signal FG1 is output to an external circuit (not shown) via switch SW2-4 , and the external circuit receives the signal FG1.
When is '1', it is determined that there is data, and by inputting the output clock through switch SW2-2 , data is read from shift register 1 and output data is generated through switch SW2-1 . .
Reading data from shift register 1 continues until shift register 1 is empty.
一方、これと同時にシフトレジスタ2にはスイ
ツチSW1-1を経て低速FIFO5からデータが書き
込まれるとともに、スイツチSW2-3を経て有効ビ
ツト‘1'が入力され、シフトレジスタ2が満杯に
なつて、シフトレジスタ有効信号FG2が‘1'にな
るまで続けられる。信号FG2が‘1'になつたと
き、転送回路3からのシフトクロツクが停止し、
シフトレジスタ2へのデータ書き込みは停止され
る。 Meanwhile, at the same time, data is written to shift register 2 from low-speed FIFO 5 via switch SW1-1, and a valid bit '1' is input via switch SW2-3 . This continues until the register valid signal FG2 becomes '1'. When signal FG2 becomes '1', the shift clock from transfer circuit 3 stops,
Data writing to the shift register 2 is stopped.
このときシフトレジスタ1から外部に対する平
均的なデータ転送速度は、低速FIFO5からシフ
トレジスタ2へデータを転送する速度より小さく
選ばれているので、シフトレジスタ1が空になつ
てシフトレジスタ有効信号FG1が‘0'になつたと
きは、シフトレジスタ2は既に満杯になつてお
り、シフトレジスタ有効信号FG2は‘1'になつて
いる。第7図においてBはこの場合の各部の動作
を示している。 At this time, the average data transfer rate from shift register 1 to the outside is selected to be lower than the rate of data transfer from low-speed FIFO 5 to shift register 2, so shift register 1 becomes empty and shift register enable signal FG1 is activated. When it becomes '0', the shift register 2 is already full and the shift register valid signal FG2 has become '1'. In FIG. 7, B indicates the operation of each part in this case.
スイツチ制御回路4はシフトレジスタ有効信号
FG1が‘0'3FG2が‘1'の状態を検出して、各スイ
ツチを反転させる。これによつて低速FIFO5か
らスイツチSW1-1を経てシフトレジスタ1にデー
タが転送され、同時にシフトレジスタ2からスイ
ツチSW2-1を経て外部に対して出力データを生じ
る。シフトレジスタ2からのデータの読み取り
は、シフトレジスタ2が空になるまで続けられ
る。一方、シフトレジスタ1が満杯になつて、シ
フトレジスタ有効信号FG1が‘1'になると、転送
回路3Aからのシフトクロツクが停止し、シフト
レジスタ1へのデータ書き込みは停止される。第
7図においてCはこの場合に各部の動作を示して
いる。 The switch control circuit 4 is a shift register enable signal
Detects that FG1 is '0' 3 FG2 is '1' and inverts each switch. As a result, data is transferred from the low-speed FIFO 5 to the shift register 1 via the switch SW1-1 , and at the same time, output data is generated from the shift register 2 to the outside via the switch SW2-1 . Reading data from shift register 2 continues until shift register 2 is empty. On the other hand, when the shift register 1 becomes full and the shift register valid signal FG1 becomes '1', the shift clock from the transfer circuit 3A is stopped and data writing to the shift register 1 is stopped. In FIG. 7, C indicates the operation of each part in this case.
以後、このような動作を繰り返すことによつ
て、シフトレジスタ1,2からのデータの読み取
りと、低速FIFO5からシフトレジスタ1,2に
対するデータの書き込みとが交互に行われて、デ
ータが転送される。このようにして、低速FIFO
5からの低速で一様な速度を有するデータを高速
で間欠的に出力することができる。 Thereafter, by repeating such operations, reading data from shift registers 1 and 2 and writing data from low-speed FIFO 5 to shift registers 1 and 2 are performed alternately, and data is transferred. . In this way, the slow FIFO
Data having a slow and uniform speed from 5 can be output intermittently at a high speed.
なおこの場合における低速FIFO5の入力側の
データ転送速度は、低速の一様な速度である。 Note that the data transfer rate on the input side of the low-speed FIFO 5 in this case is a low, uniform rate.
第8図は第6図における転送回路3Aの具体的
に構成例を示したものであつて、第5図における
と同じ部分を同じ番号で示し、14はNANDゲ
ートである。 FIG. 8 shows a concrete configuration example of the transfer circuit 3A in FIG. 6, in which the same parts as in FIG. 5 are designated by the same numbers, and 14 is a NAND gate.
NANDゲート14は、シフトレジスタ有効信
号FG1、FG2がともに‘1'のとき出力‘0'を、そ
れ以外のとき‘1'を発生し、これによつてAND
ゲート13を経て信号FG1,FG2がともに‘1'で
ないとき、クロツク源12のクロツクが出力され
る。この出力は第6図における各シフトレジスタ
1,2に対するシフトクロツクおよび、低速
FIFO5に対する出力クロツクとなる。 The NAND gate 14 generates an output '0' when both shift register valid signals FG1 and FG2 are '1', and '1' otherwise.
When the signals FG1 and FG2 are not both '1' through the gate 13, the clock of the clock source 12 is output. This output is the shift clock for each shift register 1 and 2 in FIG.
This becomes the output clock for FIFO5.
なお以上のほかに、第2図および第6図にそれ
ぞれ構成を示された実施例の方式を組み合わせる
ことによつて、入出力がともに高速で、間欠的な
データ転送を行うFIFOを構成することもできる。 In addition to the above, by combining the methods of the embodiments whose configurations are shown in FIG. 2 and FIG. You can also do it.
この場合の構成、動作は上述の説明から容易に
類推可能であり、従つて詳細な説明を省略する。 The configuration and operation in this case can be easily inferred from the above explanation, and therefore detailed explanation will be omitted.
以上説明したように本発明によれば、低速大容
量FIFOを用いて瞬間入力速度または瞬間出力速
度の大きいFIFOバツフアメモリを構成すること
ができ、同一目的を達成するために、従来方式に
比べてハードウエア量とコストを低減することが
できる。
As explained above, according to the present invention, it is possible to configure a FIFO buffer memory with a high instantaneous input speed or instantaneous output speed using a low-speed large-capacity FIFO, and to achieve the same purpose, it is possible to configure a FIFO buffer memory with a high instantaneous input speed or instantaneous output speed. The amount of wear and cost can be reduced.
本発明では、内部のシフトレジスタや低速
FIFOとの間の接続関係を外部から指示する必要
がない。即ちシフトレジスタ内の有効ビツトによ
つて内部スイツチの切換えを自動的に行うことが
可能であり、しかも内部の制御ロジツクが低コス
トで実現できる。 In the present invention, internal shift registers and low-speed
There is no need to externally instruct the connection relationship with FIFO. That is, it is possible to automatically change the internal switch based on the valid bit in the shift register, and the internal control logic can be realized at low cost.
第1図は本発明の原理的構成を示す図、第2図
は本発明の第1の実施例を示す図、第3図はシフ
トレジスタにおける有効ビツトの動作を示す図、
第4図は第2図における各部動作を示すタイムチ
ヤート、第5図は第2図における転送回路の構成
例を示す図、第6図は本発明の第2の実施例を示
す図、第7図は第6図における各部動作を示すタ
イムチヤート、第8図は第6図における転送回路
の構成例を示す図である。
1,2……シフトレジスタ、3,3A……転送
回路、4……スイツチ制御回路、5……低速
FIFO、11……ORゲート、12……クロツク
源、13……ANDゲート、14……NANDゲー
ト。
FIG. 1 is a diagram showing the basic configuration of the present invention, FIG. 2 is a diagram showing a first embodiment of the present invention, and FIG. 3 is a diagram showing the operation of effective bits in a shift register.
4 is a time chart showing the operation of each part in FIG. 2, FIG. 5 is a diagram showing an example of the configuration of the transfer circuit in FIG. 2, FIG. 6 is a diagram showing the second embodiment of the present invention, and FIG. 6 is a time chart showing the operation of each part in FIG. 6, and FIG. 8 is a diagram showing an example of the configuration of the transfer circuit in FIG. 6. 1, 2...Shift register, 3,3A...Transfer circuit, 4...Switch control circuit, 5...Low speed
FIFO, 11...OR gate, 12...clock source, 13...AND gate, 14...NAND gate.
Claims (1)
ビツトとを一組として格納可能な第1、第2のシ
フトレジスタと、 第1または第2のシフトレジスタに入力データ
と入力データとともに有効ビツトを書き込む手段
と、 第1または第2のシフトレジスタを選択して、
該書き込み手段を選択された一方のシフトレジス
タに接続する第1のスイツチと、 第1または第2のシフトレジスタに格納された
入力データおよび有効ビツトとを読みだし、読み
だした入力データをFIFOに書き込む転送回路手
段と、 第1または第2のシフトレジスタを選択して、
該転送回路と第1のスイツチに接続されていない
他方のシフトレジスタとを接続する第2のスイツ
チと、 第1および第2のシフトレジスタの最終段にお
ける有効ビツトを監視して、データの書き込みが
行われているシフトレジスタから入力データ有り
を示す有効ビツトが、そして、データの読みだし
が行われているシフトレジスタからデータ無しを
示すビツトが検出された時に、第1および第2の
スイツチを切り替えてそれぞれ他方のシフトレジ
スタに接続して、第1、第2のシフトレジスタの
データの書き込みと読みだしとを交互に行うよう
に制御するスイツチ切り替え制御手段と、を備え
たことを特徴とするFIFOメモリ制御装置。 2 入力データと入力データ有りを表示する有効
ビツトとを一組として格納可能な第1、第2のシ
フトレジスタと、 FIFOと、 第1または第2のシフトレジスタに、該FIFO
から読みだした入力データと有効ビツトとを書き
込む書き込み手段と、 第1または第2のシフトレジスタを選択して、
該書き込み手段を選択された一方のシフトレジス
タに接続する第1のスイツチと、 第1または第2のシフトレジスタに格納された
入力データおよび有効ビツトとを読みだし、読み
だした入力データを外部回路に転送する転送回路
手段と、 第1または第2のシフトレジスタを選択して、
該転送回路と第1のスイツチに接続されていない
他方のシフトレジスタとを接続する第2のスイツ
チと、 第1および第2のシフトレジスタの最終段にお
ける有効ビツトを監視して、データの書き込みが
行われているシフトレジスタから入力データ有り
を示す有効ビツトが、そして、データの読みだし
が行われているシフトレジスタからデータ無しを
示すビツトが検出された時に、第1および第2の
スイツチを切り替えてそれぞれ他方のシフトレジ
スタに接続して、第1、第2のシフトレジスタの
データの書き込みと読みだしとを交互に行うよう
に制御するスイツチ切り替え制御手段と、を備え
たことを特徴とするFIFOメモリ制御装置。[Claims] 1. First and second shift registers capable of storing input data and a valid bit indicating the presence of input data as a set; and input data and input data in the first or second shift register. a means for writing a valid bit together with the first or second shift register;
A first switch connects the writing means to the selected one of the shift registers, reads the input data and valid bits stored in the first or second shift register, and stores the read input data in the FIFO. Select the transfer circuit means to be written and the first or second shift register,
A second switch connects the transfer circuit to the other shift register that is not connected to the first switch, and a valid bit in the final stage of the first and second shift registers is monitored, and data writing is performed. The first and second switches are switched when a valid bit indicating input data is present from the shift register being read and a bit indicating no data is detected from the shift register being read. and a switch switching control means connected to the other shift register to control the writing and reading of data in the first and second shift registers alternately. Memory controller. 2. First and second shift registers capable of storing input data and a valid bit indicating the presence of input data as a set; a FIFO; and a FIFO in the first or second shift register.
a writing means for writing input data and valid bits read from the input data, and a first or second shift register;
A first switch connects the writing means to the selected one of the shift registers, reads input data and valid bits stored in the first or second shift register, and transfers the read input data to an external circuit. Selecting the transfer circuit means to transfer data to and the first or second shift register,
A second switch connects the transfer circuit to the other shift register that is not connected to the first switch, and a valid bit in the final stage of the first and second shift registers is monitored, and data writing is performed. The first and second switches are switched when a valid bit indicating input data is present from the shift register being read and a bit indicating no data is detected from the shift register being read. and a switch switching control means connected to the other shift register to control the writing and reading of data in the first and second shift registers alternately. Memory controller.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60233973A JPS6293728A (en) | 1985-10-18 | 1985-10-18 | Fifo memory system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60233973A JPS6293728A (en) | 1985-10-18 | 1985-10-18 | Fifo memory system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6293728A JPS6293728A (en) | 1987-04-30 |
| JPH0479011B2 true JPH0479011B2 (en) | 1992-12-14 |
Family
ID=16963538
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60233973A Granted JPS6293728A (en) | 1985-10-18 | 1985-10-18 | Fifo memory system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6293728A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014164788A (en) * | 2013-02-27 | 2014-09-08 | Casio Comput Co Ltd | Semiconductor storage device |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2642652B2 (en) * | 1988-02-02 | 1997-08-20 | 日本電信電話株式会社 | Fluctuation absorption buffer |
| US5874766A (en) * | 1988-12-20 | 1999-02-23 | Matsushita Electric Industrial Co., Ltd. | Semiconductor device having an oxynitride film |
| JPH0349699U (en) * | 1989-09-19 | 1991-05-15 | ||
| JP2703668B2 (en) * | 1991-03-18 | 1998-01-26 | 株式会社日立製作所 | Data transfer control device and magnetic disk control device |
| JP2769418B2 (en) * | 1993-01-22 | 1998-06-25 | 国際電気株式会社 | Buffer and data conversion method thereof |
| US6445825B2 (en) | 1997-01-23 | 2002-09-03 | Sony Corporation | Apparatus and method of generating compressed data |
| JP4569163B2 (en) * | 2004-05-07 | 2010-10-27 | 富士ゼロックス株式会社 | Data input / output device and data input / output method |
| JP2007065948A (en) * | 2005-08-31 | 2007-03-15 | Alpine Electronics Inc | Buffer memory device and data transfer system |
| JP2012155670A (en) * | 2011-01-28 | 2012-08-16 | Yokogawa Electric Corp | Data receiving device, data transfer controlling device, and data transfer system |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5435645A (en) * | 1977-08-25 | 1979-03-15 | Hitachi Denshi Ltd | Input/output control system for real-time data |
| JPS55112646A (en) * | 1979-02-23 | 1980-08-30 | Fujitsu Ltd | Buffer unit |
| JPS57203135A (en) * | 1981-06-10 | 1982-12-13 | Toshiba Corp | Data transfer system |
| JPS6017533A (en) * | 1983-07-09 | 1985-01-29 | Ricoh Co Ltd | Double buffer switching control device |
-
1985
- 1985-10-18 JP JP60233973A patent/JPS6293728A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014164788A (en) * | 2013-02-27 | 2014-09-08 | Casio Comput Co Ltd | Semiconductor storage device |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6293728A (en) | 1987-04-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS607306B2 (en) | Sequential storage interface device | |
| JPH0479011B2 (en) | ||
| JPH0576650B2 (en) | ||
| US4575796A (en) | Information processing unit | |
| JPH0222748A (en) | Non-volatile memory control circuit | |
| KR0179903B1 (en) | First in, first out memory | |
| JP4696003B2 (en) | Data transfer circuit | |
| JPH01269150A (en) | Buffering device | |
| JP2002050172A (en) | Fifo control circuit | |
| JP2570986B2 (en) | Data transfer control device and method | |
| KR910006684Y1 (en) | Central processing unit signal control circuit | |
| JPH0133862B2 (en) | ||
| JPH031394A (en) | Storage device | |
| JPH06103026A (en) | Memory system | |
| JP2581144B2 (en) | Bus control device | |
| JPH03142774A (en) | Memory applying circuit | |
| JPS63157390A (en) | First-in, first-out buffer memory control circuit | |
| JPS61198344A (en) | Block data writing system | |
| JPH0290795A (en) | Time divisional switch control system | |
| JPH02118722A (en) | Fifo memory | |
| JPH0376558B2 (en) | ||
| JPS62219390A (en) | Fifo memory | |
| JPS61193230A (en) | Magnetic disk controller | |
| JPH03269662A (en) | High speed memory access system | |
| JPH02159811A (en) | Pattern generator |