JPH05325539A - Memory control circuit and initializing method therefor - Google Patents

Memory control circuit and initializing method therefor

Info

Publication number
JPH05325539A
JPH05325539A JP4132146A JP13214692A JPH05325539A JP H05325539 A JPH05325539 A JP H05325539A JP 4132146 A JP4132146 A JP 4132146A JP 13214692 A JP13214692 A JP 13214692A JP H05325539 A JPH05325539 A JP H05325539A
Authority
JP
Japan
Prior art keywords
address
memory
fifo
data
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.)
Pending
Application number
JP4132146A
Other languages
Japanese (ja)
Inventor
Hiroshi Yokota
博史 横田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4132146A priority Critical patent/JPH05325539A/en
Publication of JPH05325539A publication Critical patent/JPH05325539A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To effectively uitilize a memory address space by forming the chain of each FIFO memory circuit with a reading out address register as a starting point and a writing address register a finishing point. CONSTITUTION:One FIFO memory is constituted of writing address registers WAR 111 to 113 and reading address registers RAR 121 to 123. Data is stored in a common memory 101. When a writing FIFO specified signal is inputted to a WAR selector 110, it is written in an address NA indicated by an idle address FIFO 103 by a next address memory 102. Then, an address where data is first entered is indicated by the RAR and an address where the last written data is stored is indicated by the WAR, and constituting the chain of addresses. At the time of initialization, the content of the FIFO 103 and the value of a counter 104 are cleared and a counter output is outputted as an unused address NA. Thus, the effective utilization of the memory is realized.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、1つのメモリを共通利
用して複数のFIFO回路を構成するためのメモリ制御
回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory control circuit for commonly using one memory to form a plurality of FIFO circuits.

【0002】[0002]

【従来の技術】1つのメモリから複数のFIFO回路を
構成するためのメモリ制御回路の例として、特願平3−
3448がある。
2. Description of the Related Art As an example of a memory control circuit for forming a plurality of FIFO circuits from one memory, Japanese Patent Application No.
There are 3448.

【0003】図5に従来のメモリ制御回路を、図6に従
来のメモリ制御回路で用いる次アドレスメモリと共通メ
モリの構成を示す。図7は、アドレスチェーンを説明す
るための図である。以下、図5〜図7を用いて、共通メ
モリとメモリ制御回路から構成される従来のFIFO回
路の動作を説明する。
FIG. 5 shows a conventional memory control circuit, and FIG. 6 shows a configuration of a next address memory and a common memory used in the conventional memory control circuit. FIG. 7 is a diagram for explaining the address chain. The operation of the conventional FIFO circuit including the common memory and the memory control circuit will be described below with reference to FIGS.

【0004】まず書き込み動作を説明する。書き込みア
ドレスレジスタ(WAR)511〜514のうちで、デ
ータを書き込むFIFO回路を指定するHDによって指
定されたものが、WARセレクタ502によって選ば
れ、WARセレクタから書き込みアドレスWAとして出
力される。それと同時に、空アドレスFIFO505か
ら出力される未使用アドレスを、WARセレクタ502
によって選ばれた書き込みアドレスレジスタに書き込
む。このとき、未使用アドレスNAoは、次アドレスと
して制御回路5から次アドレスメモリ30(図6)にも
書き込まれる。この動作によって、図7に示すように、
各書き込みアドレスレジスタWAR511〜514に
は、次にデータを書き込むべきアドレスが格納され、次
アドレスメモリ30にも次アドレスが書き込まれ、デー
タがメモリに書き込まれるたびにアドレスのチェーンが
更新される仕組みになっている。読みだし側から見れ
ば、1つのデータをメモリから読み出すと、同時にその
アドレスから次に読みだすべきデータのアドレス(次ア
ドレス)を読み出すことができるようになっている。
First, the write operation will be described. Of the write address registers (WAR) 511 to 514, the one designated by the HD designating the FIFO circuit for writing the data is selected by the WAR selector 502 and output from the WAR selector as the write address WA. At the same time, the unused address output from the empty address FIFO 505 is set to the WAR selector 502.
Write to the write address register selected by. At this time, the unused address NAo is also written from the control circuit 5 to the next address memory 30 (FIG. 6) as the next address. By this operation, as shown in FIG.
Each write address register WAR511 to 514 stores an address at which data is to be written next, the next address is also written to the next address memory 30, and the address chain is updated every time data is written to the memory. Is becoming From the reading side, when one data is read from the memory, the address of the data to be read next (next address) can be read at the same time from that address.

【0005】次に、読み出し動作を説明する。読み出し
アドレスレジスタ(RAR)531〜534の出力のう
ちで、CNT信号によって示される次読み出しデータが
入っているFIFO回路に対応するRAR出力が、RA
Rセレクタ503によって選ばれる。そして、読み出し
アドレスRAとして制御回路5から出力される、そのア
ドレスからデータが読み出される。このとき同時に、R
ARデコーダ504は、CNTの指示に基づきゲート5
41〜544を開き、次に読み出すべきデータに対応す
るRARに、NAiから入力する次アドレスメモリ30
から読み出された次アドレスを書き込む。この動作によ
り、メモリからデータを読み出すたびに、次に読み出す
べきデータのアドレスをRARに格納することができ
る。RARセレクタ503から読み出しアドレスが出力
されると、そのアドレスのデータは読み出されて、その
アドレスが未使用になる。未使用になったアドレスは、
空アドレスFIFO505に書き込まれ、再び書き込み
アドレスとして使われる。
Next, the read operation will be described. Of the outputs of the read address registers (RAR) 531 to 534, the RAR output corresponding to the FIFO circuit containing the next read data indicated by the CNT signal is RA
Selected by the R selector 503. Then, the data is read from the address output from the control circuit 5 as the read address RA. At the same time, R
The AR decoder 504 uses the gate 5 based on the instruction from the CNT.
Next address memory 30 which opens 41 to 544 and inputs from NAi to the RAR corresponding to the data to be read next
Write the next address read from. By this operation, every time data is read from the memory, the address of the data to be read next can be stored in the RAR. When the read address is output from the RAR selector 503, the data at that address is read and the address becomes unused. The unused address is
It is written in the empty address FIFO 505 and used again as a write address.

【0006】FIFO回路に対応するWARとRARの
番号は、FIFOに読み出すべきデータがない場合には
一致する。読み出すべきデータがある場合には不一致と
なる。不一致検出回路(UM)551〜554は、UM
セレクタ506を通して読み出しデータの有無を知らせ
る。そして、読み出すべきデータが入っていないFIF
O回路からデータを読み出すような場合には、データが
無い旨を知らせると同時に、RAR値を変更できないよ
うに制御する。
The WAR and RAR numbers corresponding to the FIFO circuit match when there is no data to be read in the FIFO. If there is data to be read, they will not match. The mismatch detection circuits (UM) 551 to 554 are UM
The presence of read data is notified through the selector 506. And a FIFO that does not contain data to be read
When data is read from the O circuit, the fact that there is no data is notified and the RAR value is controlled so that it cannot be changed.

【0007】図6は、次アドレスメモリ30と共通メモ
リ(31〜35)の構成を示す。メモリの入力WAに
は、書き込みアドレスが入力され、2ポートRAM30
1に書き込むべきデータのアドレスを与える。メモリの
入力RAには、読み出しアドレスが入力し、2ポートR
AM301に読み出すべきデータのアドレスが与えられ
る。入力WAとRAには、その入力の有効性を示すビッ
トがそれぞれ付属しており、そのビットが有効性を示さ
なければ、書き込み動作、あるいは読み出し動作を行わ
ない。
FIG. 6 shows the configuration of the next address memory 30 and the common memory (31 to 35). The write address is input to the input WA of the memory, and the 2-port RAM 30
1 gives the address of the data to be written. The read address is input to the input RA of the memory and the 2-port R
The address of the data to be read is given to the AM 301. A bit indicating the validity of the input is attached to each of the inputs WA and RA. If the bit does not indicate the validity, the write operation or the read operation is not performed.

【0008】[0008]

【発明が解決しようとする課題】従来のメモリ制御回路
を用いてFIFO回路を構成すると以下のような問題点
があった。
When the FIFO circuit is constructed by using the conventional memory control circuit, there are the following problems.

【0009】書き込みアドレスレジスタは、構成するF
IFO回路の数だけ存在する。そして、次書き込みアド
レスをそれぞれ保持している。これでは、メモリの有効
利用の点から考えると、次のような問題点がある。
The write address register is composed of F
There are as many IFO circuits as there are. The next write address is held respectively. This has the following problems in terms of effective use of memory.

【0010】例えば、共通メモリとして512個のデー
タを格納できる容量を持っていたとし、その共通メモリ
を用いて32個のFIFO回路を構成する場合を例にす
る。すると、512個のうち32個のアドレスは、次に
データが到着した時にそのデータを格納するために予約
されており、データが書き込まれないにもかかわらず書
き込みアドレスレジスタに保持されたままである。すな
わち512個データを収容する容量があるにも関わら
ず、実際に使用できる容量は480(=(512−3
2))となってしまい、メモリの有効利用がはかれてい
ないことになる。
For example, assume that the common memory has a capacity capable of storing 512 pieces of data and that 32 FIFO circuits are formed using the common memory. Then, 32 addresses out of 512 are reserved for storing the data when the data arrives next time, and are retained in the write address register even though the data is not written. That is, although there is a capacity to store 512 pieces of data, the capacity that can actually be used is 480 (= (512-3
2)), which means that the memory is not effectively used.

【0011】次に初期時の問題点について記す。従来例
の書き込みアドレス管理方法では、初期化終了時にも、
書き込みレジスタには、次にデータを書き込むアドレス
が格納されていなければならない。そこで、例えば、F
IFO番号に対応する番号をレジスタ初期値とするなど
して、初期化時に書き込みアドレスレジスタに固有の値
を持たせなくてはならない。同じメモリ制御回路を用い
ていると、構成するFIFO回路の数が変わった場合
に、用いないFIFOメモリ回路に対しても、アドレス
値を割当ることになる。すると、初期化時に割当てた初
期アドレス値が[制御回路により構成できるFIFO数
の最大値−実際必要数]個だけ無駄になってしまい、ア
ドレス空間の有効利用ができないことになる。
Next, the problems at the initial stage will be described. In the conventional write address management method, even when initialization is completed,
The write register must store an address to write data next. So, for example, F
The write address register must have a unique value at the time of initialization, for example, by making the number corresponding to the IFO number the register initial value. If the same memory control circuit is used, when the number of FIFO circuits to be configured changes, the address value is assigned to the unused FIFO memory circuit. Then, the initial address value assigned at the time of initialization is wasted by [the maximum value of the number of FIFOs that can be configured by the control circuit-the actual required number], and the address space cannot be effectively used.

【0012】また、空アドレスFIFOに、初期化時に
使用しなかったアドレスを格納する回路が必要になる。
Further, the empty address FIFO requires a circuit for storing an address which is not used at initialization.

【0013】本発明は、上記の問題点を解消し、メモリ
アドレス空間の有効利用をはかることができるメモリ制
御回路を提供することを目的とする。
It is an object of the present invention to solve the above problems and to provide a memory control circuit capable of effectively utilizing a memory address space.

【0014】[0014]

【課題を解決するための手段】1つの共通メモリに対す
る書き込みと読みだしを制御し、複数のFIFO(Firs
t In First Out)メモリ回路を構成するために、構成す
るFIFOメモリ回路に対応した2種類のレジスタの組
(書き込みアドレスレジスタと読み出しアドレスレジス
タ)と、共通メモリの使用していない空きアドレスを格
納する空きアドレスFIFOと、前記レジスタの組を用
いてFIFOメモリ回路数のアドレスのチェーンを形成
するためのアドレスメモリとから成るメモリ制御回路で
あって、データを前記FIFOメモリ回路に書き込むと
きは、空きアドレスFIFOから出力されるアドレス値
を、データを書き込むFIFOメモリ回路に対応する書
き込みアドレスレジスタが示していたアドレスのアドレ
スメモリに対してと書き込みアドレスレジスタに対して
とにそれぞれ書き込み、同時に共通メモリに対してデー
タを前記空きアドレスFIFOから出力されるアドレス
に書き込み、データを前記FIFOメモリ回路から読み
出すときは、そのデータが読み出されるFIFOメモリ
回路に対応する読み出しアドレスレジスタから読み出し
アドレスを共通メモリとアドレスメモリとに対して出力
し、空きアドレスFIFOは該読み出しアドレスを入力
し、同時に共通メモリにデータを書き込み、一方アドレ
スメモリから読み出される次アドレスを読み出しアドレ
スレジスタに書き込むことにより、アドレスメモリと書
き込みアドレスレジスタと読み出しアドレスレジスタを
使って、読み出しアドレスレジスタを始点とし書き込み
アドレスレジスタを終点とするアドレスチェーンを構成
する。
[Means for Solving the Problems] Writing and reading to and from one common memory is controlled, and a plurality of FIFOs (Firs) are controlled.
t In First Out) Stores a set of two types of registers (write address register and read address register) corresponding to the FIFO memory circuit to be configured and a free address not used in the common memory to configure the memory circuit. A memory control circuit comprising an empty address FIFO and an address memory for forming a chain of addresses of the number of FIFO memory circuits using a set of the registers, wherein when writing data to the FIFO memory circuit, the empty address FIFO The address value output from the FIFO is written to the address memory of the address indicated by the write address register corresponding to the FIFO memory circuit for writing data and to the write address register, and simultaneously to the common memory. Data is the free address When writing to an address output from the IFO and reading data from the FIFO memory circuit, the read address is output from the read address register corresponding to the FIFO memory circuit from which the data is read to the common memory and the address memory, The vacant address FIFO inputs the read address, simultaneously writes data to the common memory, and writes the next address read from the address memory to the read address register, thereby using the address memory, the write address register, and the read address register. An address chain is constructed with the read address register as the starting point and the write address register as the ending point.

【0015】[0015]

【作用】前記した回路構成とアドレスチェーン構成方法
によって、次に書き込むデータのアドレスを集中管理す
る。集中管理によって、使用しないにもかかわらず予約
されたメモリ空間をなくすことができる。
The address of the data to be written next is centrally managed by the circuit configuration and the address chain configuration method described above. Centralized management can eliminate reserved memory space even though it is not used.

【0016】初期化時にカウンタ出力を空きアドレスと
して用いることにより、空きアドレスメモリの初期化を
簡単にすると同時に、構成するFIFOメモリ数に依存
しなくてメモリ空間を有効利用することができる。
By using the counter output as an empty address at the time of initialization, initialization of the empty address memory can be simplified, and at the same time, the memory space can be effectively used without depending on the number of FIFO memories to be configured.

【0017】[0017]

【実施例】図1は本実施例のメモリ制御回路を用いたF
IFOメモリ回路の構成を、図2〜図4は本実施例の動
作を説明する説明図を、それぞれ示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an F using the memory control circuit of this embodiment.
2 to 4 are explanatory views for explaining the operation of the present embodiment, respectively.

【0018】図1において、101はデータを格納する
共通メモリ、102はアドレスチェーンをつくるための
アドレスメモリ、103は未使用アドレスを格納する空
アドレスFIFO、104は初期化時に書き込みアドレ
スを発生するカウンタ、111〜113はFIFOメモ
リ回路に対応する書き込みアドレスレジスタ(WA
R)、110は書き込みFIFO指定信号を入力してW
ARを制御する書き込みアドレスレジスタ(WAR)セ
レクタ、121〜123はFIFOメモリ回路に対応す
る読み出しアドレスレジスタ(RAR)、120は読み
出しFIFO指定信号を入力してRARを制御する読み
出しアドレスレジスタ(RAR)セレクタである。構成
するFIFOメモリ回路の数だけWARとRARのレジ
スタの組が存在する。
In FIG. 1, 101 is a common memory for storing data, 102 is an address memory for forming an address chain, 103 is an empty address FIFO for storing unused addresses, and 104 is a counter for generating a write address at initialization. , 111 to 113 are write address registers (WA) corresponding to the FIFO memory circuit.
R) and 110 input the write FIFO designating signal to W
A write address register (WAR) selector that controls AR, 121 to 123 are read address registers (RAR) corresponding to the FIFO memory circuit, and 120 is a read address register (RAR) selector that inputs a read FIFO designating signal and controls RAR. Is. There are as many WAR and RAR register pairs as there are FIFO memory circuits.

【0019】以下、図1〜図4を用いてメモリ制御回路
の動作を説明する。まず図2を利用して、アドレスメモ
リ102と書き込みアドレスレジスタ(WAR)と読み
出しアドレスレジスタ(RAR)とを用いてアドレスチ
ェーンの作り方を説明する。
The operation of the memory control circuit will be described below with reference to FIGS. First, a method of forming an address chain using the address memory 102, the write address register (WAR) and the read address register (RAR) will be described with reference to FIG.

【0020】1つのFIFOメモリは、1組のWARと
RARとアドレスメモリ102から構成する。データは
共通メモリ101に格納される。
One FIFO memory is composed of one set of WAR, RAR and address memory 102. The data is stored in the common memory 101.

【0021】RARは、最初にデータが入ったアドレス
を指している。図2では、RARは01番地を指してい
る。共通メモリの01番地にはデータ(#1)が入って
いる。一方、アドレスメモリ102の01番地には、デ
ータ#1の次データ(データ#2)が格納されているア
ドレスの番地(03)が格納されている。次アドレスメ
モリの03番地には、05が入っている。WARには、
最後に書き込まれたデータ(#3)が格納されているア
ドレス(05番地)を指している。このように、RAR
とWARの組合せに毎のアドレスのチェーンを構成して
いる。
RAR points to the address in which the data first entered. In FIG. 2, RAR indicates address 01. Data (# 1) is stored in address 01 of the common memory. On the other hand, the address 01 of the address memory 102 stores the address (03) of the address where the next data (data # 2) of the data # 1 is stored. 05 is stored in the address 03 of the next address memory. For WAR,
It indicates the address (address 05) where the last written data (# 3) is stored. Thus, RAR
And a WAR are combined to form a chain of addresses.

【0022】次に、データを書き込む場合の動作を図3
を用いて説明する。データを書き込む場合には、次デー
タ(#4)は空きアドレスFIFO103が指し示すア
ドレスNAに書き込むことになる。同時に、WARが指
していたアドレスメモリのアドレスのデータをNA(図
2中では07)に書換え、WAR自身も07番地を指し
示すようにNAを設定する。この動作によって、05番
地から07番地へチェーンが延びることになる。
Next, the operation for writing data will be described with reference to FIG.
Will be explained. When writing data, the next data (# 4) is written to the address NA indicated by the empty address FIFO 103. At the same time, the address data of the address memory pointed to by WAR is rewritten to NA (07 in FIG. 2), and NA is set so that WAR itself also points to address 07. By this operation, the chain extends from the address 05 to the address 07.

【0023】続いて、データを読み出す場合の動作を図
4を用いて説明する。データを読み出す場合には、RA
Rが示す共通メモリのアドレスからデータ(#1)を読
み出す。データ#1を読み出した後は、RARが指し示
していたアドレスメモリのアドレスのデータ(03)を
RARに設定する。
Next, the operation for reading data will be described with reference to FIG. When reading data, RA
The data (# 1) is read from the address of the common memory indicated by R. After reading the data # 1, the address data (03) of the address memory pointed to by the RAR is set in the RAR.

【0024】以下に、上述した方式を実現するハード構
成を図1を用いて説明する。書き込みデータは、そのデ
ータを書き込むFIFOメモリ回路を示す信号(書き込
みFIFO指定信号)と共に到着する。書き込みFIF
O指定信号はWARセレクタ110に入力され、書き込
みデータがどのFIFOに書き込むかを解析する。書き
込みFIFOに対して、WARセレクタ110は、空き
アドレスNAを対応する書き込みアドレスレジスタ(W
AR)に対して書き込む。同時に、NAをWARが示し
ていたアドレスメモリ102のアドレスに書き込み、ま
たNAが示すアドレスに書き込みデータを書き込む。ア
ドレスチェーンの作り方は、図2〜図4を使って上述し
た通りである。
A hardware configuration for realizing the above method will be described below with reference to FIG. The write data arrives together with a signal (write FIFO designating signal) indicating the FIFO memory circuit to write the data. Write FIF
The O designation signal is input to the WAR selector 110 and analyzes which FIFO the write data is written into. For the write FIFO, the WAR selector 110 assigns the empty address NA to the corresponding write address register (W
AR). At the same time, NA is written in the address of the address memory 102 indicated by WAR, and write data is written in the address indicated by NA. The method of creating the address chain is as described above with reference to FIGS.

【0025】一方、データの読み出し時には、どのFI
FOメモリ回路からデータを読み出すかを指示する信号
(読み出しFIFO指定信号)を入力すると、それに対
応するFIFOメモリ回路からデータを読み出す。読み
出しFIFO指定信号を入力したRARセレクタ120
は、どのFIFOメモリ回路からデータを読み出すかを
解析し、対応する読み出しアドレスレジスタ(RAR)
に対して選択信号を出力する。選択されたRARは、R
ARが格納していたアドレス値を共通メモリ101に対
して出力する。共通メモリ101ではRARから指示さ
れたアドレスないのデータを読み出しデータとして出力
する。同時に、RARが出力するアドレス値が示すアド
レスメモリ102の内のデータは、RARに格納され、
アドレスチェーンの開始点を新たに設定する。また、R
ARが出力していたアドレス値からは、読み出しデータ
が出力されたから未使用アドレスになってしまう。そこ
で、この未使用になったアドレス値は空きアドレスFI
FO103に格納される。
On the other hand, when reading data, which FI
When a signal instructing whether to read data from the FO memory circuit (read FIFO specifying signal) is input, the data is read from the corresponding FIFO memory circuit. RAR selector 120 to which read FIFO designation signal is input
Analyzes from which FIFO memory circuit the data is read, and the corresponding read address register (RAR)
The selection signal is output to. The selected RAR is R
The address value stored in the AR is output to the common memory 101. In the common memory 101, the data at the address not designated by the RAR is output as read data. At the same time, the data in the address memory 102 indicated by the address value output by the RAR is stored in the RAR,
Set a new starting point for the address chain. Also, R
Since the read data is output from the address value output by the AR, it becomes an unused address. Therefore, this unused address value is the free address FI.
It is stored in the FO 103.

【0026】以上の、書き込み動作と読み出し動作によ
ってFIFOメモリ回路を構成する。FIFOメモリ回
路に1つのデータが格納されている場合には、RARと
WARが同じ値を示すことになる。さらに、データが1
つ読み出され、対応するFIFOメモリ回路の格納デー
タ数が0になると、両レジスタ(WARとRAR)に
は、どのアドレスをも示さない記号を格納する。この
「どのアドレスをも示さない記号」として、例えば
「0」を用いる。WARとRARに格納されている値が
0以外であれば、それはアドレス値を示すことになり、
0であれば、それはアドレス0を示すのではなく、それ
に対応するFIFOメモリ回路にデータが1つも入って
いないことを示す。
A FIFO memory circuit is constituted by the above write operation and read operation. When one data is stored in the FIFO memory circuit, RAR and WAR have the same value. Furthermore, the data is 1
When the data is read out one by one and the number of data stored in the corresponding FIFO memory circuit becomes 0, both registers (WAR and RAR) store a symbol that does not indicate any address. For example, "0" is used as the "symbol that does not indicate any address". If the value stored in WAR and RAR is non-zero, it indicates an address value,
If it is 0, it does not indicate address 0, but that there is no data in the corresponding FIFO memory circuit.

【0027】共通メモリによって構成するFIFOメモ
リ回路の数だけのWARとRARのレジスタ組が存在す
るわけであるが、本実施例では、各FIFOメモリ回路
それぞれに次に書き込むデータを格納するアドレスを準
備するのではなく、空きアドレス出力であるNA値を1
つのアドレスとして準備する。
Although there are as many WAR and RAR register sets as there are FIFO memory circuits configured by the common memory, in this embodiment, each FIFO memory circuit is provided with an address for storing the data to be written next. Instead, set the NA value that is an empty address output to 1
Prepare as one address.

【0028】次に、共通メモリを用いて複数のFIFO
メモリ回路を構成する回路の初期化方法について説明す
る。
Next, using a common memory, a plurality of FIFOs are used.
A method of initializing a circuit included in the memory circuit will be described.

【0029】初期化後には、共通メモリ101には1つ
もデータが書き込まれていない状態になる。そのため
に、各レジスタ組(WARとRAR)は、すべて、デー
タが1つも格納されていないことを示す記号が設定され
る。その後、データが到着して書き込みアドレスを発生
する場合の動作を次に説明する。普段は空きアドレスF
IFO103から出力される未使用アドレスNAを用い
てアドレスチェーンを構成していく。しかし、初期化時
には、まず空きアドレスFIFO103の内容と、カウ
ンタ104の値をクリアする。そして、データが到着し
て未使用アドレスNAが必要になれば、カウンタ104
出力を未使用アドレスNAとして出力する。NAは、1
から始まって、共通メモリの容量できまる全FIFOメ
モリ回路によって格納できるデータ数まで、カウンタ1
04によって出力される。その後は、空きアドレスFI
FO103出力をNAとして用いる。
After initialization, no data is written in the common memory 101. Therefore, each register set (WAR and RAR) is set with a symbol indicating that no data is stored. After that, the operation when data arrives and a write address is generated will be described below. Free address F usually
The unused address NA output from the IFO 103 is used to form an address chain. However, at the time of initialization, first, the contents of the free address FIFO 103 and the value of the counter 104 are cleared. When the data arrives and the unused address NA is needed, the counter 104
The output is output as an unused address NA. NA is 1
Counter 1 to the number of data items that can be stored by all the FIFO memory circuits, which starts with the capacity of the common memory.
Output by 04. After that, the vacant address FI
The FO103 output is used as NA.

【0030】[0030]

【発明の効果】以上説明したように、本発明によれば、
次にデータを書き込むアドレスを全てのFIFO回路で
共通して保持することによって、メモリの有効利用をは
かることができる。また構成するFIFOの個数に依存
しない初期化動作ができ、メモリの有効利用ができ、そ
の実用効果は大きい。
As described above, according to the present invention,
Next, by holding the address to write the data in common in all the FIFO circuits, the memory can be effectively used. Further, the initialization operation independent of the number of configured FIFOs can be performed, the memory can be effectively used, and its practical effect is great.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施例の動作を説明するメモリ制御回
路とその周辺回路の構成図
FIG. 1 is a configuration diagram of a memory control circuit and its peripheral circuits for explaining the operation of an embodiment of the present invention.

【図2】本発明の実施例の動作を説明するためのアドレ
スチェーンを示す図
FIG. 2 is a diagram showing an address chain for explaining the operation of the embodiment of the present invention.

【図3】本発明の実施例の動作を説明するためのアドレ
スチェーンを示す図
FIG. 3 is a diagram showing an address chain for explaining the operation of the embodiment of the present invention.

【図4】本発明の実施例の動作を説明するためのアドレ
スチェーンを示す図
FIG. 4 is a diagram showing an address chain for explaining the operation of the embodiment of the present invention.

【図5】従来のFIFOメモリ回路の構成図FIG. 5 is a configuration diagram of a conventional FIFO memory circuit.

【図6】従来のFIFOメモリ回路の構成図FIG. 6 is a configuration diagram of a conventional FIFO memory circuit.

【図7】従来のFIFOメモリ回路の動作を説明するた
めのアドレスチェーンを示す図
FIG. 7 is a diagram showing an address chain for explaining the operation of a conventional FIFO memory circuit.

【符号の説明】[Explanation of symbols]

101 共通メモリ 102 アドレスメモリ 103 空きアドレスFIFO 104 カウンタ 110 書き込みアドレスレジスタ(WAR)セレク 111〜113 書き込みアドレスレジスタ 120 読みだしアドレスレジスタ(RAR)セレクタ 121〜123 読みだしアドレスレジスタ 101 common memory 102 address memory 103 empty address FIFO 104 counter 110 write address register (WAR) select 111-113 write address register 120 read address register (RAR) selector 121-123 read address register

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】1つの共通メモリに対する書き込みと読み
だしを制御し、複数のFIFO(First In First Out)
メモリ回路を構成するためのメモリ制御回路において、 構成するFIFOメモリ回路に対応した2種類のレジス
タの組(書き込みアドレスレジスタと読み出しアドレス
レジスタ)と、 共通メモリの使用していない空きアドレスを格納する空
きアドレスFIFOと、 前記レジスタの組を用いてFIFOメモリ回路数のアド
レスのチェーンを形成するためのアドレスメモリとから
構成され、 データを前記FIFOメモリ回路に書き込むときは、 空きアドレスFIFOから出力されるアドレス値を、デ
ータを書き込むFIFOメモリ回路に対応する書き込み
アドレスレジスタが示していたアドレスのアドレスメモ
リに対してと書き込みアドレスレジスタに対してとにそ
れぞれ書き込み、同時に共通メモリに対してデータを前
記空きアドレスFIFOから出力されるアドレスに書き
込み、 データを前記FIFOメモリ回路から読み出すときは、 そのデータが読み出されるFIFOメモリ回路に対応す
る読み出しアドレスレジスタから読み出しアドレスを共
通メモリとアドレスメモリとに対して出力し、空きアド
レスFIFOは該読み出しアドレスを入力し、同時に共
通メモリにデータを書き込み、一方アドレスメモリから
読み出される次アドレスを読み出しアドレスレジスタに
書き込むことにより、 各FIFOメモリ回路に対応して、 読み出しアドレスレジスタに、上記共通メモリと上記ア
ドレスメモリにそれぞれ最初に読み出すべきデータと次
アドレスとが書き込まれているアドレスが格納されてい
て、 書き込みアドレスレジスタには、前回メモリに到着した
データを書き込んだメモリ上のアドレスが書き込まれて
いて、 アドレスメモリと書き込みアドレスレジスタと読み出し
アドレスレジスタを使って、読み出しアドレスレジスタ
を始点とし書き込みアドレスレジスタを終点とするFI
FOメモリ回路毎のチェーンを形成することを特徴とす
るメモリ制御回路。
1. A plurality of FIFOs (First In First Out) for controlling writing and reading in one common memory.
In the memory control circuit for composing the memory circuit, a set of two types of registers (write address register and read address register) corresponding to the composing FIFO memory circuit, and an empty space for storing an unused address in the common memory An address FIFO and an address memory for forming a chain of addresses of the number of FIFO memory circuits using the set of registers, and when writing data to the FIFO memory circuit, an address output from the empty address FIFO A value is written to the address memory of the address indicated by the write address register corresponding to the FIFO memory circuit for writing data and to the write address register, and at the same time, the data is written to the common memory at the empty address FI. When writing to an address output from O and reading data from the FIFO memory circuit, the read address is output from the read address register corresponding to the FIFO memory circuit from which the data is read to the common memory and the address memory, The vacant address FIFO inputs the read address, simultaneously writes data to the common memory, and writes the next address read from the address memory to the read address register, thereby corresponding to each FIFO memory circuit, to the read address register. The common memory and the address memory each store the address at which the data to be read first and the next address are stored, and the write address register stores the data that previously arrived at the memory. Have addresses on Li is written by using the address memory and the write address register and the read address register, and ending the write address register to starting the read address register FI
A memory control circuit characterized by forming a chain for each FO memory circuit.
【請求項2】請求項1のメモリ制御回路において、 メモリ制御回路の構成要素としてカウンタを追加し、前
記カウンタは共通メモリにデータが書き込まれる毎にカ
ウントアップし、 メモリ制御回路の初期化時に、空きアドレスFIFOの
内容量をクリアし、 初期化後のデータ書き込み時に、 共通メモリで構成できる全てのFIFOメモリ回路に保
持できるデータ数の合計数までのデータを書き込むまで
は、空きアドレスFIFOから出力されるアドレス値の
代わりに前記カウンタ出力値を用い、その後は空きアド
レス用FIFOメモリから出力されるアドレス値を用い
ることを特徴とするメモリ制御回路の初期化方法。
2. The memory control circuit according to claim 1, wherein a counter is added as a constituent element of the memory control circuit, and the counter counts up each time data is written in the common memory, and when the memory control circuit is initialized, The data is output from the empty address FIFO until the total amount of data that can be held in all the FIFO memory circuits that can be configured in the common memory is written at the time of writing the data after clearing the internal capacity of the empty address FIFO. A method for initializing a memory control circuit, wherein the counter output value is used in place of the address value to be read, and thereafter the address value output from the FIFO memory for empty addresses is used.
JP4132146A 1992-05-25 1992-05-25 Memory control circuit and initializing method therefor Pending JPH05325539A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4132146A JPH05325539A (en) 1992-05-25 1992-05-25 Memory control circuit and initializing method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4132146A JPH05325539A (en) 1992-05-25 1992-05-25 Memory control circuit and initializing method therefor

Publications (1)

Publication Number Publication Date
JPH05325539A true JPH05325539A (en) 1993-12-10

Family

ID=15074435

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4132146A Pending JPH05325539A (en) 1992-05-25 1992-05-25 Memory control circuit and initializing method therefor

Country Status (1)

Country Link
JP (1) JPH05325539A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6415416B1 (en) 1998-10-16 2002-07-02 Matsushita Electric Industrial Co., Ltd. Method for improving the efficiency of designing a system-on-chip integrated circuit device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6415416B1 (en) 1998-10-16 2002-07-02 Matsushita Electric Industrial Co., Ltd. Method for improving the efficiency of designing a system-on-chip integrated circuit device
US6886150B2 (en) 1998-10-16 2005-04-26 Matsushita Electric Industrial Co., Ltd. Method for designing integrated circuit device

Similar Documents

Publication Publication Date Title
EP0188059A1 (en) Semiconductor memory device having read-modify-write configuration
JPS60181942A (en) Memory control device
JPH05325539A (en) Memory control circuit and initializing method therefor
JPH06124231A (en) Semiconductor filing device
JPS6057593B2 (en) Character pattern processing method
JP2550868B2 (en) Communication control LSI
JPS62184696A (en) Nonvolatile semiconductor memory device
JPH03282602A (en) Sequencer circuit
JPS6148174B2 (en)
JP2854301B2 (en) Memory access circuit
JP2748404B2 (en) Binary data memory
JPH04321993A (en) Storage control device
JPS6373325A (en) Information processor
JPS586970B2 (en) ROM address sequence control method
JPH0736774A (en) Memory managing device
JPS62209792A (en) Fifo circuit
JPH0950398A (en) Memory device
JPS61292290A (en) First-in first-out memory device
JPH07325757A (en) Storage management device
JPS593641A (en) Microprogram controller
JPH09265381A (en) Data controller for time switch memory
JPH04190290A (en) Display device for information equipment
JPH03265046A (en) Data transfer circuit
JPH06318162A (en) Memory device
JPH0454632A (en) Arithmetic control ic and information processor