JP4511819B2 - FIFO memory control apparatus and method - Google Patents

FIFO memory control apparatus and method Download PDF

Info

Publication number
JP4511819B2
JP4511819B2 JP2003380423A JP2003380423A JP4511819B2 JP 4511819 B2 JP4511819 B2 JP 4511819B2 JP 2003380423 A JP2003380423 A JP 2003380423A JP 2003380423 A JP2003380423 A JP 2003380423A JP 4511819 B2 JP4511819 B2 JP 4511819B2
Authority
JP
Japan
Prior art keywords
change point
read
write
point information
data
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 - Fee Related
Application number
JP2003380423A
Other languages
Japanese (ja)
Other versions
JP2005141696A (en
Inventor
富史 片山
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2003380423A priority Critical patent/JP4511819B2/en
Publication of JP2005141696A publication Critical patent/JP2005141696A/en
Application granted granted Critical
Publication of JP4511819B2 publication Critical patent/JP4511819B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Memory System (AREA)

Description

本発明は半導体集積回路に関し、特にデジタルデータの処理を行うシステムにおいて、サブシステム間のデータ転送に使用されるFIFOメモリ制御装置及び方法に関する。   The present invention relates to a semiconductor integrated circuit, and more particularly to a FIFO memory control apparatus and method used for data transfer between subsystems in a system for processing digital data.

デジタルデータの処理を行うシステムにおいて、一般にサブシステム間のデータ転送はFIFOメモリを介して行われる。特に同一データの連続転送が存在する場合に消費電力の低減を図る方法として、特開2003−36145公報「FIFOメモリのデータ転送制御装置」に記載された技術が開示されている。以下図面を参照し、この技術について簡潔に説明する。   In a system that processes digital data, data transfer between subsystems is generally performed via a FIFO memory. In particular, as a method for reducing power consumption when there is continuous transfer of the same data, a technique disclosed in Japanese Unexamined Patent Application Publication No. 2003-36145 “Data Transfer Control Device of FIFO Memory” is disclosed. The technique will be briefly described below with reference to the drawings.

図9において、23はリードコントロール部であり、24はライトコントロール部、25はFIFOメモリ、26はFIFOメモリ内の分割された各エリアを示し、27はエリア内のデータ一致を検出する検出部、29はエリアレジスタ、矢印はデータ及び制御信号の流れを示している。図に示すように、データ書き込み時にエリア毎にデータがすべて一致するか否かについて判定を行う。その情報はエリアレジスタ内に格納しておき、データの読み出し時に対象エリアのデータが全て同じ場合には、読み出しを行うアドレスをエリアの先頭アドレスのみとすることにより、FIFOメモリ読み出しに要する消費電力の削減が図られることとなる。   In FIG. 9, 23 is a read control unit, 24 is a write control unit, 25 is a FIFO memory, 26 is each divided area in the FIFO memory, 27 is a detection unit for detecting data coincidence in the area, Reference numeral 29 denotes an area register, and arrows indicate the flow of data and control signals. As shown in the figure, it is determined whether or not all data matches for each area when data is written. The information is stored in the area register, and if all the data in the target area is the same at the time of data reading, the address to be read is limited to the head address of the area, so that the power consumption required for FIFO memory reading can be reduced. Reduction will be achieved.

特開2003−36145公報JP 2003-36145 A

しかしながら、この先行技術公報により開示されたFIFOメモリの制御装置には、以下に掲げるような問題点が存在する。   However, the FIFO memory control device disclosed in this prior art publication has the following problems.

第一に、転送データの変化率に応じて柔軟に消費電力を抑えることができない。この原因は、エリア単位に連続データの検出並びに読み出し停止制御を行っているため、同一データがエリアのワード数以上連続しないと消費電力が削減できないことに起因する(例えば、エリアサイズを256ワードとした場合、転送データのエリア内変化率が0/256の場合では読み出しアクセスは1回のみでよいが、変化率1/256〜256/256の場合ではエリア内全アドレスへの読み出しアクセスが発生してしまうため消費電力が削減できない)。   First, it is not possible to flexibly suppress power consumption according to the rate of change of transfer data. This is because continuous data detection and read stop control are performed for each area, and power consumption cannot be reduced unless the same data continues beyond the number of words in the area (for example, the area size is set to 256 words). In this case, when the rate of change in the transfer data area is 0/256, only one read access is required. However, when the rate of change is 1/256 to 256/256, read access to all addresses in the area occurs. Power consumption cannot be reduced.

第二の問題点は、仮にエリアワード数以上の同一データを転送し続ける場合でも、FIFOメモリにおいて余分な電力を消費してしまうことである。これは、読み出し制御では連続データの検出と読み出し停止制御の間に相関があるが、書き込み制御ではデータの連続性に関係なく書き込みが行われていることに起因している。   The second problem is that extra power is consumed in the FIFO memory even if the same data exceeding the number of area words is continuously transferred. This is because there is a correlation between detection of continuous data and read stop control in read control, but writing is performed regardless of data continuity in write control.

本発明の目的は、転送データの変化率に応じた消費電力を抑制することが可能なFIFOメモリ制御装置及び方法を実現することにある。   An object of the present invention is to realize a FIFO memory control apparatus and method capable of suppressing power consumption according to the rate of change of transfer data.

以上の課題を鑑み、本発明のFIFOメモリ制御装置は、外部からの書き込み要求信号に応じて入力データを複数ポートを有する書き込み可能なメモリに順次格納し、読み出し要求信号に応じて前記複数ポートを有する書き込み可能なメモリに格納された順序で読み出すFIFOメモリにおいて、前記入力データの変化点を検出し変化点情報を生成する変化点検出手段と、前記変化点検出手段より与えられる前記変化点情報を基に前記複数ポートを有する書き込み可能なメモリの書き込みクロック供給/停止制御を行う書き込みクロック制御手段と、前記変化点情報を記憶する変化点情報記憶手段と、前記複数ポートを有する書き込み可能なメモリ及び前記変化点情報記憶手段に与える書き込みアドレスを、前記書き込み要求信号が入力されている間、順次インクリメントして出力する書き込みアドレス生成手段と、前記複数ポートを有する書き込み可能なメモリ及び前記変化点情報記憶手段に与える読み出しアドレスを、前記読み出し要求信号が入力されている間、順次インクリメントして出力する読み出しアドレス生成手段と、前記変化点情報記憶手段から出力された変化点情報を元に前記複数ポートを有する書き込み可能なメモリの読み出しクロックの供給/停止制御を行う読み出しクロック制御手段と、前記書き込み要求信号及び前記読み出し要求信号に基づいて前記複数ポートを有する書き込み可能なメモリの格納データ量を監視するデータ量監視手段とにより構成されることを特徴としている。   In view of the above problems, the FIFO memory control device of the present invention sequentially stores input data in a writable memory having a plurality of ports in response to an external write request signal, and sets the plurality of ports in response to a read request signal. In a FIFO memory that reads data in the order stored in a writable memory, change point detection means for detecting a change point of the input data and generating change point information, and the change point information given by the change point detection means Write clock control means for performing write clock supply / stop control of the writable memory based on the plurality of ports, change point information storage means for storing the change point information, writable memory having the plurality of ports, and The write request signal is input as a write address to be given to the change point information storage means. Write address generation means for sequentially incrementing and outputting, and a write address to be provided to the writable memory having the plurality of ports and the change point information storage means are sequentially incremented while the read request signal is being input. Read address generation means for outputting and read clock control means for controlling supply / stop of a read clock of a writable memory having the plurality of ports based on change point information output from the change point information storage means And a data amount monitoring means for monitoring the stored data amount of the writable memory having the plurality of ports based on the write request signal and the read request signal.

また、本発明のFIFOメモリ制御装置の第二構成例としては、上述した2つの構成例の各々に加えてさらに、前記書き込み要求信号が書き込み要求を示し、かつ前記入力データが変化した場合にのみ、変化後に到来する新たな入力データを、前記複数ポートを有する書き込み可能なメモリの前記書き込みアドレス生成手段が示すアドレスに対して書き込みを行い、前記読み出し要求信号が読み出し要求を示し、かつ前記入力データが書き込まれたか否かを前記読み出しアドレス生成手段が示すアドレス毎に前記変化点情報記憶手段を参照・確認し、書き込みが行われたアドレスに対してのみ該複数ポートを有する書き込み可能なメモリからデータを読み出すことを特徴としている。 Further, as a second configuration example of the FIFO memory control device of the present invention, in addition to each of the two configuration examples described above, only when the write request signal indicates a write request and the input data changes. The new input data that arrives after the change is written to the address indicated by the write address generation means of the writable memory having the plurality of ports, the read request signal indicates a read request, and the input data For each address indicated by the read address generation means, the change point information storage means is referred to and confirmed, and data is written from the writable memory having the plurality of ports only for the written address. Is read out.

また、本発明のFIFOメモリ制御装置の第三構成例としては、前記複数ポートを有する書き込み可能なメモリに対して、書き込みが行われない場合は前記書き込みクロック制御手段が書き込みクロックを停止し、読み出しが行われない場合は前記読み出しクロック制御手段が読み出しクロックを停止することを特徴としている。   Further, as a third configuration example of the FIFO memory control device of the present invention, when writing is not performed on the writable memory having the plurality of ports, the write clock control means stops the write clock and performs reading. When the operation is not performed, the read clock control means stops the read clock.

本発明のFIFOメモリ制御装置及び方法においては、入力データに変化がある場合のみ2ポートRAMへのアクセスを行い、入力データに変化が無い場合には2ポートRAMへのアクセスを行わないため(その際書き込みクロック、読み出しクロックの供給を停止する)、転送データの変化率が低くなればなるほど2ポートRAMへのアクセス回数が低減し、FIFOメモリの消費電力の大部分を占める2ポートRAMの消費電力を抑制する効果を奏する。   In the FIFO memory control device and method according to the present invention, the 2-port RAM is accessed only when there is a change in the input data, and the 2-port RAM is not accessed when there is no change in the input data. The supply of the write clock and the read clock is stopped), and the lower the rate of change of the transfer data, the lower the number of accesses to the 2-port RAM, and the power consumption of the 2-port RAM occupying most of the power consumption of the FIFO memory. The effect which suppresses is produced.

本発明のFIFOメモリ制御装置の一実施形態につき、図1を参照して詳細に説明する。このFIFOメモリは、データを格納するための2ポートRAM1と、2ポートRAM1に対する書き込みクロックを制御する書き込みクロック制御回路6と、2ポートRAM1の読み出しクロックを制御する読み出しクロック制御回路8と、2ポートRAM1に入力されるデータの変化点を検出する入力データ変化点検出回路4と、2ポートRAM1に格納される入力データの変化点情報を保存するための変化点情報テーブル2と、2ポートRAMの1の書き込みアドレス並びに変化点情報テーブル2の書き込みアドレスを生成するライトアドレスカウンタ5と、2ポートRAM1の読み出しアドレス並びに変化点情報テーブル2の読み出しアドレスを生成するリードアドレスカウンタ7と、外部アクセス調停用信号(FULL,EMPTY)を生成するFULL/EMPTY判定回路3とにより構成されている。   An embodiment of the FIFO memory control device of the present invention will be described in detail with reference to FIG. This FIFO memory includes a 2-port RAM 1 for storing data, a write clock control circuit 6 for controlling a write clock for the 2-port RAM 1, a read clock control circuit 8 for controlling a read clock of the 2-port RAM 1, and a 2-port An input data change point detection circuit 4 for detecting a change point of data input to the RAM 1, a change point information table 2 for storing change point information of input data stored in the 2-port RAM 1, and a 2-port RAM. 1 write address and a write address counter 5 that generates a write address of the change point information table 2, a read address counter 7 that generates a read address of the 2-port RAM 1 and a read address of the change point information table 2, and for external access arbitration Signal (FULL, EMPT ) It is constituted by a FULL / EMPTY decision circuit 3 for generating.

外部からの書き込み制御信号WR_ENが、入力データ変化点検出回路4のEN入力と、ライトアドレスカウンタ5のEN入力と、変化点情報テーブル2のWEN入力と、FULL/EMPTY判定回路3のWR_EN入力にそれぞれ入力される。また、外部からの読み出し制御信号RD_ENは、リードアドレスカウンタ7のEN入力と、変化点情報テーブル2のREN入力と、FULL/EMPTY判定回路3のRD_EN入力にそれぞれ入力される。   An external write control signal WR_EN is input to the EN input of the input data change point detection circuit 4, the EN input of the write address counter 5, the WEN input of the change point information table 2, and the WR_EN input of the FULL / EMPTY determination circuit 3. Each is entered. The external read control signal RD_EN is input to the EN input of the read address counter 7, the REN input of the change point information table 2, and the RD_EN input of the FULL / EMPTY determination circuit 3.

入力データ変化点検出回路4によって得られる変化点情報は、書き込みクロック制御回路6において2ポートRAM1の書き込みクロックの供給/停止制御に使用されるとともに、変化点情報テーブル2に順次保存される。また、保存された変化点情報は読み出し側において順次参照され、2ポートRAM1の読み出しクロック供給/停止制御に使用される。2ポートRAM1を除く全ての回路は、外部から入力されるクロック信号CLKを使用して各回路の処理を行う。   The change point information obtained by the input data change point detection circuit 4 is used in the write clock control circuit 6 for supply / stop control of the write clock of the 2-port RAM 1 and is also stored in the change point information table 2 in sequence. The stored change point information is sequentially referred to on the read side, and is used for read clock supply / stop control of the 2-port RAM 1. All circuits except the 2-port RAM 1 perform processing of each circuit using a clock signal CLK input from the outside.

続いて、本発明の第一実施形態の動作について、図面を参照して詳細に説明を行う。   Next, the operation of the first embodiment of the present invention will be described in detail with reference to the drawings.

書き込み側の処理において、ライトアドレスカウンタ5は、外部書き込み制御信号WR_ENが書き込みを指示する区間(入力データ「有り」を示す区間)でインクリメント動作を行い、2ポートRAM1のライトアドレスの生成を行う。但し、実際に書き込みが行われるアドレスは、入力データ変化点検出回路4と書き込みクロック制御回路6により、入力データに変化のあった場合のみに限定される。変化が無い場合は書き込みクロックが停止され、2ポートRAM1への書き込みは行われない。   In the processing on the write side, the write address counter 5 performs an increment operation in a section where the external write control signal WR_EN instructs writing (section indicating input data “present”), and generates a write address for the 2-port RAM 1. However, the address at which data is actually written is limited to the case where there is a change in input data by the input data change point detection circuit 4 and the write clock control circuit 6. When there is no change, the write clock is stopped and writing to the 2-port RAM 1 is not performed.

また変化点情報テーブル2は、ライトアドレスカウンタ5が示すテーブルアドレスに順次変化点情報を保存し、2ポートRAM1のアドレス毎に実際に書き込みが行われたかどうかを調べることが可能なテーブルを構築する。   In addition, the change point information table 2 stores the change point information sequentially at the table address indicated by the write address counter 5 and constructs a table that can check whether or not writing has actually been performed for each address of the 2-port RAM 1. .

読み出し側処理において、リードアドレスカウンタ7は外部読み出し制御信号RD_ENが読み出しを指示する区間でインクリメント動作を行い、2ポートRAM1のリードアドレス生成を行う。なお、読み出し側処理においても変化点情報テーブル2が参照され、入力データが書き込まれなかったアドレスに対しては読み出しクロック制御回路8により読み出しクロックが停止されることとなり、読み出しは行われない。   In the read side process, the read address counter 7 performs an increment operation in a section in which the external read control signal RD_EN instructs reading, and generates a read address for the 2-port RAM 1. Note that the change point information table 2 is also referred to in the reading side processing, and the reading clock is stopped by the reading clock control circuit 8 for the address where the input data has not been written, and reading is not performed.

続いて本発明の第二実施形態について、図2を参照して説明を行う。
第一実施形態においては、外部より入力されるクロック信号は1本(CLK)のみであったが、この第二実施形態では、FIFOメモリに対して書き込み要求を行うシステムと読み出し要求を行うシステムのクロックが異なる場合に対応するため、2本の外部クロック入力信号(WR_CLK,RD_CLK)を有する。WR_CLK信号は書き込み側の各処理で使用するクロック信号であり、入力データ変化点検出回路4、ライトアドレスカウンタ5、変化点情報テーブル2の各CLK入力、書き込みクロック制御回路6のCLKIN入力、及びFULL/EMPTY判定回路3のRD_CLK入力にそれぞれ接続される。これらWR_CLK信号、RD_CLK信号が入力される各々の回路は、基準となるクロック信号が異なるのみで処理自体は第一実施形態と同様の処理が行われる。
Next, a second embodiment of the present invention will be described with reference to FIG.
In the first embodiment, only one clock signal (CLK) is input from the outside, but in this second embodiment, there are a system for making a write request to a FIFO memory and a system for making a read request. In order to cope with the case where the clocks are different, two external clock input signals (WR_CLK, RD_CLK) are provided. The WR_CLK signal is a clock signal used in each process on the write side, and includes the input data change point detection circuit 4, the write address counter 5, the CLK input of the change point information table 2, the CLKIN input of the write clock control circuit 6, and the FULL. / EMPTY determination circuit 3 is connected to RD_CLK input. Each circuit to which the WR_CLK signal and the RD_CLK signal are input is different from the reference clock signal, and the process itself is the same as that of the first embodiment.

次に図3を参照し、第一実施形態のより具体的な実施例として、最大データ格納容量を8ビット、256ワードとした場合につき説明する。
外部より入力されるデータ信号DINは、8つのディジタルフリップフロップ(DFF)9−1〜9−8を介して、2ポートRAM1(8ビット、256ワード)の書き込みデータ入力DINに入力されるとともに、入力データ変化点検出回路4にも入力される。入力データ変化点検出回路4は、保持機能付きDFF401−1〜401−8と比較回路402と論理積(AND)回路403によって構成され、保持機能付きDFF401−1〜401−8のD入力、並びに比較回路402の第1の入力Aには外部入力データ信号DINが接続され、比較回路402の第2の入力Bには保持機能付きDFF401−1〜401−8のQ出力が接続される。
Next, a case where the maximum data storage capacity is 8 bits and 256 words will be described as a more specific example of the first embodiment with reference to FIG.
The data signal DIN input from the outside is input to the write data input DIN of the 2-port RAM 1 (8 bits, 256 words) via eight digital flip-flops (DFF) 9-1 to 9-8, It is also input to the input data change point detection circuit 4. The input data change point detection circuit 4 includes DFFs 401-1 to 401-8 with a holding function, a comparison circuit 402, and a logical product (AND) circuit 403, and the D inputs of the DFFs 401-1 to 401-8 with a holding function, The external input data signal DIN is connected to the first input A of the comparison circuit 402, and the Q outputs of the DFFs 401-1 to 401-8 with a holding function are connected to the second input B of the comparison circuit 402.

比較回路402の比較結果信号S2はAND回路403の第1の入力に接続される。入力データ変化点検出回路4によって生成されるデータ変化点検出結果信号S3は、書き込みクロック制御回路6のEN入力とリタイミングDFF11を介して変化点情報テーブル2のWFLG入力に接続される。外部入力の書き込み制御信号WR_ENは、入力データ変化検出回路4の保持機能付きDFF401−1〜401−8のEN入力とAND回路403の第2の入力に接続されるとともに、リタイミングDFF10に接続される。またリタイミングDFF10によってリタイミングされたWR_EN信号S4は、ライトアドレスカウンタ5のEN入力と変化点情報テーブル2のWEN入力とFULL/EMPTY判定回路3のUP入力に接続される。ライトアドレスカウンタ5のカウント出力Qは、2ポートRAM1と変化点情報テーブル2のWADD入力にそれぞれ接続される。   The comparison result signal S2 of the comparison circuit 402 is connected to the first input of the AND circuit 403. The data change point detection result signal S3 generated by the input data change point detection circuit 4 is connected to the WFLG input of the change point information table 2 via the EN input of the write clock control circuit 6 and the retiming DFF11. The external input write control signal WR_EN is connected to the EN input of the DFFs 401-1 to 401-8 with a holding function of the input data change detection circuit 4 and the second input of the AND circuit 403, and is also connected to the retiming DFF10. The The WR_EN signal S4 retimed by the retiming DFF 10 is connected to the EN input of the write address counter 5, the WEN input of the change point information table 2, and the UP input of the FULL / EMPTY determination circuit 3. The count output Q of the write address counter 5 is connected to the 2-port RAM 1 and the WADD input of the change point information table 2, respectively.

外部入力の読み出し制御信号RD_ENは、リードアドレスカウンタ7のEN入力と変化点情報テーブル2のREN入力とリタイミングDFF12にそれぞれ接続される。DFF12によってリタイミングされたRD_EN信号S5は、FULL/EMPTY判定回路3のDOWN入力に接続される。またリードアドレスカウンタ7のカウント出力Qは変化点情報テーブル2のRADDに接続されるとともに、リタイミングDFF13−1〜13−8を介して2ポートRAM1のRADD入力に接続される。変化点情報テーブル2より読み出された変化点情報信号S6は、読み出しクロック制御回路8のEN入力に接続される。2ポートRAM1のWCLK入力とRCLK入力には、それぞれ書き込みクロック制御回路6のCLKOUT出力と読み出しクロック制御回路8のCLKOUT出力が接続される。また2ポートRAM1のDOUT出力は、外部出力端子DOUTに接続される。FULL/EMPTY判定回路3は、アップダウンカウンタ3−1、デコーダ3−2及びNOR回路3−3から構成され、アップダウンカウンタ3−1のUP入力にはDFF10によってリタイミングされたWR_EN信号S3が、DOWN入力にはDFF12によってリタイミングされたRD_EN信号S5がそれぞれ接続される。アップダウンカウンタ3−1のカウント出力Qはデコーダ3−2の入力に接続される。デコーダ3−2のデコード結果(EMPTY,FULL信号)は、外部に出力されるとともに、NOR3−3を介してアップダウンカウンタ3−1のEN入力に接続される。   The externally input read control signal RD_EN is connected to the EN input of the read address counter 7, the REN input of the change point information table 2, and the retiming DFF 12. The RD_EN signal S5 retimed by the DFF 12 is connected to the DOWN input of the FULL / EMPTY determination circuit 3. The count output Q of the read address counter 7 is connected to the RADD of the change point information table 2 and also connected to the RADD input of the 2-port RAM 1 via the retiming DFFs 13-1 to 13-8. The change point information signal S6 read from the change point information table 2 is connected to the EN input of the read clock control circuit 8. The CLKOUT output of the write clock control circuit 6 and the CLKOUT output of the read clock control circuit 8 are connected to the WCLK input and RCLK input of the 2-port RAM 1, respectively. The DOUT output of the 2-port RAM 1 is connected to the external output terminal DOUT. The FULL / EMPTY determination circuit 3 includes an up / down counter 3-1, a decoder 3-2, and a NOR circuit 3-3. The WR_EN signal S3 retimed by the DFF 10 is supplied to the UP input of the up / down counter 3-1. The RD_EN signal S5 retimed by the DFF 12 is connected to the DOWN input. The count output Q of the up / down counter 3-1 is connected to the input of the decoder 3-2. The decoding result (EMPTY, FULL signal) of the decoder 3-2 is output to the outside and connected to the EN input of the up / down counter 3-1 through the NOR3-3.

図4は、図3の書き込みクロック制御回路6と読み出しクロック制御回路8の具体的構成を示す回路図である。両クロック制御回路はDFF601とインバータ602と論理和(OR)回路603とにより構成され、入力ENが論理値1の場合は入力CLKINに入力されるクロックがCLKOUTに出力され、入力ENが論理値「0」の場合は論理値「1」がCLKOUTに出力される。従って図3における2ポートRAM1の書き込みクロックと読み出しクロックには、それぞれデータ変化点検出回路S3と変化点テーブル参照結果S6とが論理値「1」の場合のみクロックが供給される。   FIG. 4 is a circuit diagram showing a specific configuration of the write clock control circuit 6 and the read clock control circuit 8 of FIG. Both clock control circuits are composed of a DFF 601, an inverter 602, and a logical sum (OR) circuit 603, and when the input EN is a logical value 1, the clock input to the input CLKIN is output to CLKOUT, and the input EN is a logical value “ In the case of “0”, a logical value “1” is output to CLKOUT. Therefore, the clock is supplied to the write clock and the read clock of the 2-port RAM 1 in FIG. 3 only when the data change point detection circuit S3 and the change point table reference result S6 are logical values “1”, respectively.

図5は、図3の変化点検出回路4で使用される比較回路402の具体的構成を示す回路図である。比較回路402は排他的論理和(EXOR)402−1〜402−8と8入力論理和(OR)回路402−9から構成される。そして出力Yには、入力AとBのデータ値が不一致の場合に論理値「1」が、一致の場合に論理値「0」が出力される。従って図3におけるデータ変化点検出情報S3は、入力データ信号DINに変化が現れた場合は論理値「1」が、変化が無い場合は論理値「0」がそれぞれ出力される。   FIG. 5 is a circuit diagram showing a specific configuration of the comparison circuit 402 used in the change point detection circuit 4 of FIG. The comparison circuit 402 includes exclusive OR (EXOR) 402-1 to 402-8 and an 8-input OR (OR) circuit 402-9. In the output Y, a logical value “1” is output when the data values of the inputs A and B do not match, and a logical value “0” is output when they match. Therefore, the data change point detection information S3 in FIG. 3 outputs a logical value “1” when a change appears in the input data signal DIN, and a logical value “0” when there is no change.

図6は、図3における変化点情報テーブル2の具体的構成を示す回路図である。変化点情報テーブル2はデコーダ201と、AND回路202−1〜202−256と、保持機能付きDFF203−1〜203−256のD入力にWFLG信号が接続され、保持機能付きDFF203−1〜203−256のEN入力には、AND回路202−1〜202−256を介してWADD信号のデコード結果が接続される。また、AND回路202−1〜202−256の各WEN入力が論理値1の場合において、保持機能付きDFF203−1〜203−256の中からWADD信号の値と1対1に対応するDFFが選択され、WFLG信号より入力される変化点情報が格納される。また、保持機能付きDFF203−1〜203−256のQ出力は、セレクタ204とAND回路205を介してRFLG信号として出力される。これによりREN信号が論理値「1」の場合において、RADD信号の値と1対1に対応するDFFが選択され、変化点情報の読み出しが行われる。   FIG. 6 is a circuit diagram showing a specific configuration of the change point information table 2 in FIG. The change point information table 2 includes a decoder 201, AND circuits 202-1 to 202-256, and DFFs 203-1 to 203-256 with holding function connected to D inputs of the WFLG signal, and DFFs 203-1 to 203- with holding function. The decoding result of the WADD signal is connected to the EN input of 256 via the AND circuits 202-1 to 202-256. Also, when each WEN input of the AND circuits 202-1 to 202-256 is a logical value 1, a DFF corresponding to the value of the WADD signal is selected from the DFFs 203-1 to 203-256 with a holding function. The change point information input from the WFLG signal is stored. Further, the Q outputs of the DFFs 203-1 to 203-256 with a holding function are output as RFLG signals via the selector 204 and the AND circuit 205. As a result, when the REN signal has a logical value “1”, the DFF corresponding to the RADD signal value on a one-to-one basis is selected, and the change point information is read out.

続いて、本実施例の動作について、図7及び図8のタイミングチャートを参照して説明する。   Next, the operation of this embodiment will be described with reference to the timing charts of FIGS.

時刻0において、リセット信号(論理値「0」)が入力端子RSTを介して入力されると、ライトアドレスカウンタ5、リードアドレスカウンタ7、アップダウンカウンタ3−1の各カウント値と変化点情報テーブル2の各DFFの値は全て「0」に初期化される。   When a reset signal (logic value “0”) is input via the input terminal RST at time 0, the count values and change point information tables of the write address counter 5, the read address counter 7, and the up / down counter 3-1. The value of each DFF of 2 is initialized to “0”.

書き込み側の処理において、時刻2〜9の間に入力端子DINに対しタイムチャートに示すような変化点を持つデータD1〜D8と書き込み要求(WR_EN=論理値「1」)が8ワード分入力されると、入力データ変化点検出回路4によって生成される変化点検出結果信号S3は、時刻2〜3、7〜9で論理値「1」(入力データに「変化あり」)となる。ライトアドレスカウンタ5は、リタイミングされたWR_EN信号が論理値「1」をとる間(8クロックサイクルの間)カウントアップを行い、2ポートRAM1と変化点情報テーブル2の書き込みアドレス信号を生成する。   In the processing on the writing side, data D1 to D8 having a change point as shown in the time chart and a write request (WR_EN = logical value “1”) are input into the input terminal DIN for 8 words between times 2 and 9. Then, the change point detection result signal S3 generated by the input data change point detection circuit 4 becomes a logical value “1” (input data “changed”) at times 2-3 and 7-9. The write address counter 5 counts up while the retimed WR_EN signal takes a logical value “1” (for 8 clock cycles), and generates a write address signal for the 2-port RAM 1 and the change point information table 2.

書き込みクロック制御回路6は、データ変化点検出結果信号S3をもとに時刻3〜4、8〜10でのみ2ポートRAM1への書き込みクロックの供給を行う。従って2ポートRAMに格納されるデータは、D1〜D2とD6〜D8(2ポートRAM1:DIN波形の↓印箇所のデータ)のみとなる。また、その時の書き込みアドレスは0〜1と5〜7である。変化点情報テーブル2には、時刻3〜4、8〜10において2ポートRAM1に対して書き込み行われたアドレスと同一のテーブルアドレスに対して変化点有り(格納データ有り)を示す論理値「1」が書き込まれる。時刻5〜7では変化点無し(格納データ無し)を示す論理値「0」が書き込まれる。   The write clock control circuit 6 supplies the write clock to the 2-port RAM 1 only at times 3 to 4 and 8 to 10 based on the data change point detection result signal S3. Therefore, the data stored in the 2-port RAM is only D1-D2 and D6-D8 (2-port RAM 1: data at the ↓ mark portion of the DIN waveform). The write addresses at that time are 0 to 1 and 5 to 7. The change point information table 2 includes a logical value “1” indicating that there is a change point (with stored data) for the same table address as the address written to the 2-port RAM 1 at times 3 to 4 and 8 to 10. "Is written. At times 5 to 7, a logical value “0” indicating no change point (no stored data) is written.

一方、読み出し側処理において、読み出し要求(RD_EN=論理値「1」)が8ワード分(時刻5〜12)入力されると、リードアドレスカウンタ7はRD_EN信号が論理値「1」の間(8クロックサイクルの間)にカウントアップを行い、変化点情報テーブル2と2ポートRAM1の読み出しアドレス信号を生成する。読み出しクロック制御回路8は、変化点情報テーブル2より参照される2ポートRAM1のアドレス毎のデータ格納情報(論理値「1」の場合、格納データ有り)をもとに、時刻6〜7、11〜13でのみ読み出しクロックを2ポートRAM1に供給する。従って、2ポートRAM1から読み出されるデータは、D1〜D2とD6〜D8(2ポートRAM1:DOUT波形の↓印箇所のデータ)のみとなる。但し、時刻9〜11で出力するD3〜D5のデータ(D2と同一値の連続データ箇所)については、2ポートRAM1から読み出しを行わない代わりに、2ポートRAM1においてD2読み出し後のクロック停止と同時にD2の値が保持されるため、出力を得ることができる。   On the other hand, when a read request (RD_EN = logical value “1”) is input for 8 words (time 5 to 12) in the read-side process, the read address counter 7 has the RD_EN signal between the logical value “1” (8 During the clock cycle), the change point information table 2 and the read address signal of the 2-port RAM 1 are generated. The read clock control circuit 8 uses the data storage information for each address of the 2-port RAM 1 referenced from the change point information table 2 (there is storage data in the case of the logical value “1”) at times 6 to 7, 11. The read clock is supplied to the 2-port RAM 1 only at .about.13. Therefore, the data read from the 2-port RAM 1 is only D1 to D2 and D6 to D8 (2-port RAM1: data at the ↓ mark portion of the DOUT waveform). However, D3 to D5 data (continuous data portions having the same value as D2) output at times 9 to 11 are not read from the 2-port RAM 1, but at the same time as the clock stop after reading D2 in the 2-port RAM 1. Since the value of D2 is held, an output can be obtained.

本発明のFIFOメモリ制御装置の第一実施形態を示すブロック図である。It is a block diagram which shows 1st embodiment of the FIFO memory control apparatus of this invention. 本発明の第二実施形態を示すブロック図である。It is a block diagram which shows 2nd embodiment of this invention. 第一実施形態をさらに具体的な構成を示す詳細回路構成図である。FIG. 3 is a detailed circuit configuration diagram showing a more specific configuration of the first embodiment. 本発明における書き込みクロック制御回路及び読み出しクロック制御回路の具体的構成を示す詳細回路構成図である。It is a detailed circuit block diagram which shows the specific structure of the write clock control circuit and read clock control circuit in this invention. 比較回路の具体的構成を示す詳細回路構成図である。It is a detailed circuit block diagram which shows the specific structure of a comparison circuit. 変化点情報テーブルの具体的構成を示す詳細回路構成図である。It is a detailed circuit block diagram which shows the specific structure of a change point information table. 第一実施形態における書き込み側処理の動作を示すタイミングチャートである。It is a timing chart which shows the operation | movement of the write side process in 1st embodiment. 第一実施形態における読み出し側処理及びFULL・EMPTY判定の動作を示すタイミングチャートである。It is a timing chart which shows the operation | movement of the reading side process and FULL / EMPTY determination in 1st embodiment. 従来のFIFOメモリ制御装置の具体的構成を示す詳細回路構成図である。It is a detailed circuit block diagram which shows the specific structure of the conventional FIFO memory control apparatus.

符号の説明Explanation of symbols

1 2ポートRAM
2 変化点情報テーブル
3 FULL/EMPTY判定回路
4 入力データ変化点検出回路
5 ライトアドレスカウンタ
6 書き込みクロック制御回路
7 リードアドレスカウンタ
8 読み出しクロック制御回路
9 DFF
10 DFF
11 DFF
12 DFF
13 DFF
21 ホストデータバス
22 ATA/ATPIデータレジスタ
23 リードコントロール部
24 ライトコントロール部
25 FIFO
26 FIFO内の分割エリア
27 データ一致検出部
28 FIFOコントロール部
29 エリアレジスタ
30 内部データバス
1 2-port RAM
2 Change point information table 3 FULL / EMPTY determination circuit 4 Input data change point detection circuit 5 Write address counter 6 Write clock control circuit 7 Read address counter 8 Read clock control circuit 9 DFF
10 DFF
11 DFF
12 DFF
13 DFF
21 Host Data Bus 22 ATA / ATPI Data Register 23 Read Control Unit 24 Write Control Unit 25 FIFO
26 Divided area in FIFO 27 Data match detection unit 28 FIFO control unit 29 Area register 30 Internal data bus

Claims (3)

外部からの書き込み要求信号に応じて入力データを複数ポートを有する書き込み可能なメモリに順次格納し、読み出し要求信号に応じて前記複数ポートを有する書き込み可能なメモリに格納された順序で読み出すFIFOメモリにおいて、
前記入力データの変化点を検出し変化点情報を生成する変化点検出手段と、前記変化点検出手段より与えられる前記変化点情報を基に前記複数ポートを有する書き込み可能なメモリの書き込みクロック供給/停止制御を行う書き込みクロック制御手段と、前記変化点情報を記憶する変化点情報記憶手段と、前記複数ポートを有する書き込み可能なメモリ及び前記変化点情報記憶手段に与える書き込みアドレスを、前記書き込み要求信号が入力されている間、順次インクリメントして出力する書き込みアドレス生成手段と、前記複数ポートを有する書き込み可能なメモリ及び前記変化点情報記憶手段に与える読み出しアドレスを、前記読み出し要求信号が入力されている間、順次インクリメントして出力する読み出しアドレス生成手段と、前記変化点情報記憶手段から出力された変化点情報を元に前記複数ポートを有する書き込み可能なメモリの読み出しクロックの供給/停止制御を行う読み出しクロック制御手段と、前記書き込み要求信号及び前記読み出し要求信号に基づいて前記複数ポートを有する書き込み可能なメモリの格納データ量を監視するデータ量監視手段とにより構成されることを特徴とするFIFOメモリ制御装置。
In a FIFO memory in which input data is sequentially stored in a writable memory having a plurality of ports in accordance with a write request signal from the outside, and read in the order stored in the writable memory having the plurality of ports in response to a read request signal ,
Change point detection means for detecting a change point of the input data and generating change point information, and supply of a write clock for a writable memory having the plurality of ports based on the change point information given from the change point detection means Write clock control means for performing stop control, change point information storage means for storing the change point information, a writable memory having the plurality of ports, and a write address given to the change point information storage means, the write request signal The read request signal is inputted to the write address generating means for sequentially incrementing and outputting, the writable memory having the plurality of ports, and the read address to be given to the change point information storage means. Read address generating means for sequentially incrementing and outputting, and Read clock control means for controlling supply / stop of the read clock of the writable memory having the plurality of ports based on the change point information output from the conversion point information storage means, and the write request signal and the read request signal A FIFO memory control device comprising: a data amount monitoring means for monitoring a storage data amount of a writable memory having the plurality of ports based on the data.
前記書き込み要求信号が書き込み要求を示し、かつ前記入力データが変化した場合にのみ、変化後に到来する新たな入力データを、前記複数ポートを有する書き込み可能なメモリの前記書き込みアドレス生成手段が示すアドレスに対して書き込み、前記読み出し要求信号が読み出し要求を示し、かつ前記入力データが書き込まれたか否かを前記読み出しアドレス生成手段が示すアドレス毎に前記変化点情報記憶手段を参照・確認し、書き込みが行われたアドレスに対してのみ該複数ポートを有する書き込み可能なメモリからデータを読み出すことを特徴とする、請求項1記載のFIFOメモリ制御回路。 Only when the write request signal indicates a write request and the input data changes, new input data that arrives after the change is sent to the address indicated by the write address generation means of the writable memory having the plurality of ports. and writing, the read request signal indicates a read request, and the point information storage means referenced and checks whether the input data is written into each address indicated by the read address generating means, the write row against 2. The FIFO memory control circuit according to claim 1, wherein data is read from a writable memory having the plurality of ports only for a specified address. 前記複数ポートを有する書き込み可能なメモリに対して、書き込みが行われない場合は前記書き込みクロック制御手段が書き込みクロックを停止し、読み出しが行われない場合は前記読み出しクロック制御手段が読み出しクロックを停止することを特徴とする、請求項1あるいは2に記載のFIFOメモリ制御装置。 When writing is not performed on the writable memory having the plurality of ports, the writing clock control unit stops the writing clock, and when reading is not performed, the reading clock control unit stops the reading clock. The FIFO memory control device according to claim 1 or 2, wherein
JP2003380423A 2003-11-10 2003-11-10 FIFO memory control apparatus and method Expired - Fee Related JP4511819B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003380423A JP4511819B2 (en) 2003-11-10 2003-11-10 FIFO memory control apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003380423A JP4511819B2 (en) 2003-11-10 2003-11-10 FIFO memory control apparatus and method

Publications (2)

Publication Number Publication Date
JP2005141696A JP2005141696A (en) 2005-06-02
JP4511819B2 true JP4511819B2 (en) 2010-07-28

Family

ID=34690154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003380423A Expired - Fee Related JP4511819B2 (en) 2003-11-10 2003-11-10 FIFO memory control apparatus and method

Country Status (1)

Country Link
JP (1) JP4511819B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58106635A (en) * 1981-12-21 1983-06-25 Nec Corp Storage device
JPS5935260A (en) * 1982-08-24 1984-02-25 Nec Corp Data compressing and writing device
JPH0218613A (en) * 1988-07-07 1990-01-22 Nec Corp Storing form control system
JPH06309863A (en) * 1993-04-20 1994-11-04 Mitsubishi Electric Corp Fifo memory circuit
JP2003036145A (en) * 2001-07-24 2003-02-07 Sharp Corp Data transfer controller for fifo memory

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58106635A (en) * 1981-12-21 1983-06-25 Nec Corp Storage device
JPS5935260A (en) * 1982-08-24 1984-02-25 Nec Corp Data compressing and writing device
JPH0218613A (en) * 1988-07-07 1990-01-22 Nec Corp Storing form control system
JPH06309863A (en) * 1993-04-20 1994-11-04 Mitsubishi Electric Corp Fifo memory circuit
JP2003036145A (en) * 2001-07-24 2003-02-07 Sharp Corp Data transfer controller for fifo memory

Also Published As

Publication number Publication date
JP2005141696A (en) 2005-06-02

Similar Documents

Publication Publication Date Title
JP4550439B2 (en) ECC controller
US7921245B2 (en) Memory system and device with serialized data transfer
US7889578B2 (en) Single-strobe operation of memory devices
EP1402340B1 (en) First-in, first-out memory system and method thereof
US6802036B2 (en) High-speed first-in-first-out buffer
JPH0845277A (en) Semiconductor memory
US9741406B2 (en) Semiconductor memory and memory system
US20020071332A1 (en) Semiconductor memory device and data processing system having semiconductor memory device
CN101493759B (en) Address control method of random capacity asynchronous first-in/first-out memory
US7443762B2 (en) Synchronization circuit for a write operation on a semiconductor memory
JP4511819B2 (en) FIFO memory control apparatus and method
US7392406B2 (en) Circuit and method for generating clock signals for clocking digital signal processor and memory
US7228367B2 (en) Direct memory access controller for carrying out data transfer by determining whether or not burst access can be utilized in an external bus and access control method thereof
JP5499131B2 (en) Dual port memory and method thereof
US6175518B1 (en) Remote register hierarchy accessible using a serial data line
JP3305975B2 (en) Address counter circuit and semiconductor memory device
JP4549073B2 (en) Memory control circuit
JPH10340596A (en) Data storage device and semiconductor memory
JPH0556598B2 (en)
JP2005174090A (en) Data transfer circuit
EP1067555B1 (en) Memory controller and an information processing apparatus having such a memory controller
JPH0676581A (en) Synchronous type static memory
EP2587485A1 (en) A dual-port memory and a method thereof
JPH05334184A (en) Writing buffer circuit
JPH11259358A (en) Memory access system

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050401

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061012

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070129

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080618

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20090515

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100126

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100225

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100413

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100507

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees