JPS61273790A - Memory circuit - Google Patents

Memory circuit

Info

Publication number
JPS61273790A
JPS61273790A JP60117348A JP11734885A JPS61273790A JP S61273790 A JPS61273790 A JP S61273790A JP 60117348 A JP60117348 A JP 60117348A JP 11734885 A JP11734885 A JP 11734885A JP S61273790 A JPS61273790 A JP S61273790A
Authority
JP
Japan
Prior art keywords
mode
count
ram
lifo
fifo
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
JP60117348A
Other languages
Japanese (ja)
Inventor
Akira Miura
明 三浦
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP60117348A priority Critical patent/JPS61273790A/en
Publication of JPS61273790A publication Critical patent/JPS61273790A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a memory circuit which has both FIFO and LIFO functions by instructing the 2nd RAM to be read when the 1st RAM is instructed to be written, and to be written when the 1st RAM is instructed to be read. CONSTITUTION:A count mode control part 6 inputs an FIFO/LIFO specifying signal 10 and outputs a count mode specifying signal 14 which specifies a count-up or count-down mode. The output of the counter 1 is use as a RAM address 16 to read or write the address of a RAM 3 or 4; and the RAMs 3 and 4 are controlled by a switching part 2 so that when one RAM is in write mode, the other is in write mode. Thus, PCM data 11 inputted to the RAMs 3 and 4 are written in the RAMs 3 and 4 temporarily, then readout again, and outputted as PCM data 20. Consequently, both FIFO and LIFO functions are provided and easily switched.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、マイクロコンピュータ等に用いられる記憶回
路に関し、特に1ビツトのFIFO−LIFO指定信号
に応じて、最初に読んだ情報を読み出し時に最初に出力
するF I F O(First−InFirst−O
ut Memory )及び最後に読み込んだ情報を読
み出し時に最初に出力するL I F O(La5t(
nFirst−Out Memory )にもなりうる
、一種のバッファ記憶回路に関する。
Detailed Description of the Invention (Industrial Application Field) The present invention relates to a memory circuit used in a microcomputer, etc., and in particular, the present invention relates to a memory circuit used in a microcomputer, etc. F I F O (First-InFirst-O
ut Memory ) and L I F O (La5t(
It relates to a type of buffer storage circuit that can also be a nFirst-Out Memory.

(従来の技術) 従来のこの種の記憶回路としては、FIFOのみの回路
又はLIFOのみの回路があり、これらの回路は既にマ
イクロフンピユータ周辺の回路に使用されている0例え
ば、FIFOはマイクロコンピュータが外部機器からの
データを読み込む場合よく用いられる。また、LIFO
はマイクロコンピュータのスタックメモリに使用されて
いる。
(Prior Art) Conventional memory circuits of this type include FIFO-only circuits and LIFO-only circuits, and these circuits have already been used in circuits around microcomputer computers. is often used when reading data from an external device. Also, LIFO
is used in the stack memory of microcomputers.

(発明が解決しようとする問題点) しかし、これらの回路は単一機能を持つにとどまってい
るから、FIFO及びLIFOの両機能を時分割で切り
換えて働かせたい場合は、両方のメモリを持ちさらにそ
の切り換えのための回路を備える必要がある。また、現
在市販されているFIFO,LIFOは、容量がかなり
小さいから、容量を大きくしようとするとかなりのスペ
ースが必要となり、回路全体の小型化が困難になるとい
う欠点があった。
(Problem to be solved by the invention) However, since these circuits only have a single function, if you want to switch between the FIFO and LIFO functions in a time-sharing manner, it is necessary to have both memories and It is necessary to provide a circuit for this switching. Furthermore, FIFOs and LIFOs currently available on the market have a rather small capacity, so increasing the capacity requires a considerable amount of space, making it difficult to miniaturize the entire circuit.

そこで、本発明の目的は、FIFO及びLIFOのどち
らの機能をも備える記憶回路の提供にある。
Therefore, an object of the present invention is to provide a memory circuit having both FIFO and LIFO functions.

(問題点を解決するための手段) 前述の問題点を解決するために本発明が提供する記憶回
路は、FIFO−LIFO指定信号を受けワードクロッ
クに同期してカウントモード指定信号を出力するカウン
トモード制御部と、ビットクロックを計数して計数値を
RAMアドレスとして出カスるカウンタと、このカウン
タに初期値のロードを指示する回路と、前記RAMアド
レスに書き込み又はそのRAMアドレスから読み出す第
1及び第2のRAMと、前記第1及び第2のRAMに書
き込み又は読み出しを指示するRAM動作モード切換部
とからなり、前記カウントモード指定信号は、前記FI
FO・LIFO指定信号がFIFOを指定するときはカ
ウントア・ノブモードになり、前記FIFO−LIFO
指定信号がLIFOを指定するときは前記ワードクロ・
ンクに同期してカウントアツプモード及びカウントダウ
ンモードに交互になり、前記ロード指示回路は前記カウ
ントアツプモードであって前記ワードクロックを受けた
ときに前記初期値のロードを指示し、前記カウンタは、
前記カウントアツプモードのときは前記ビットクロック
ごとに前記計数値を増し、前記カウントダウンモードの
ときは前記ビットクロックごとに前記計数値を減じ、前
記RAM動作モード切換部は、前記第1のRAMに書き
込みを指示したときは前記第2のRAMに読み出しを指
示し、前記第1のRAMに読み出しを指示したときは前
記第2のRAMに書き込みを指示することを特徴とする
(Means for Solving the Problems) In order to solve the above-mentioned problems, the storage circuit provided by the present invention has a count mode in which it receives a FIFO-LIFO designation signal and outputs a count mode designation signal in synchronization with a word clock. a control unit, a counter that counts bit clocks and outputs the counted value as a RAM address, a circuit that instructs this counter to load an initial value, and first and second circuits that write to or read from the RAM address. 2 RAM, and a RAM operation mode switching unit that instructs writing or reading to the first and second RAMs, and the count mode designation signal is
When the FO/LIFO designation signal specifies FIFO, the counter/knob mode is entered, and the FIFO-LIFO
When the specified signal specifies LIFO, the word clock
The counter alternates between a count-up mode and a count-down mode in synchronization with the count-up mode, and the load instruction circuit instructs to load the initial value when receiving the word clock while in the count-up mode, and the counter
When in the count-up mode, the count value is increased for each bit clock, and when in the count-down mode, the count value is decreased for each bit clock, and the RAM operation mode switching section writes data to the first RAM. The second RAM is instructed to read, and when the first RAM is instructed to read, the second RAM is instructed to write.

(実施例) 次に本発明の実施例について図面を参照して説明する。(Example) Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のブロック図であって、1は
カウンタ、2はRAM動作モード切換部、3及び4はR
AM、5は論理積回路、6はカウントモード制御部であ
る。
FIG. 1 is a block diagram of an embodiment of the present invention, in which 1 is a counter, 2 is a RAM operation mode switching section, and 3 and 4 are R
AM, 5 is an AND circuit, and 6 is a count mode control section.

これを動作するには、カウントモード制御部6が本回路
の使用モードを指定する1ビツトのFIFO・LIFO
の指定信号10を入力し、カウンタ1のカウントアツプ
・カウントダウンのモードを指定するカウントモード指
定信号14を出力する。カウンタ1にはその他にビット
クロック12、ロード(LOAD)パルス15及びカウ
ンタ初期値9が入力される。カウンタ1はロードパルス
15が入力された時にカウンタ初期値9を入力する。こ
のロードパルス15はカウントモード指定信号14とワ
ードクロック13との論理積によりつくられる。カウン
タ1の出力は、RAMアドレス16となりRAM3又は
4の書き込み及び読み出しのアドレスとなる。RAM3
及び4は、一方が書き込みモードの場合もう一方は読み
出しモードになるように、ワードクロック13を入力し
ている切換部2によって制御される。切換部2はRAM
制御信号17及び18を出力して、RAM3及び4をそ
れぞれ制御し、それらRAMを書き込みモード又は読み
出しモードに設定する。これらの動作により、RAM3
.4に入力されたPCMデータ11はこれらRAMに一
旦書き込まれた後再び読み出されてPCM出力データ2
0として出力されることになる。
To operate this, the count mode control unit 6 inputs a 1-bit FIFO/LIFO that specifies the usage mode of this circuit.
It inputs a designation signal 10 for the counter 1 and outputs a count mode designation signal 14 that designates the count-up/countdown mode of the counter 1. In addition, a bit clock 12, a load (LOAD) pulse 15, and a counter initial value 9 are input to the counter 1. The counter 1 inputs the counter initial value 9 when the load pulse 15 is input. This load pulse 15 is generated by ANDing the count mode designation signal 14 and the word clock 13. The output of the counter 1 becomes the RAM address 16, which becomes the write and read address of the RAM 3 or 4. RAM3
and 4 are controlled by the switching unit 2 to which the word clock 13 is input so that when one is in the write mode, the other is in the read mode. Switching unit 2 is RAM
Control signals 17 and 18 are output to control RAMs 3 and 4, respectively, and set them in write mode or read mode. Due to these operations, RAM3
.. The PCM data 11 inputted to 4 is once written to these RAMs and then read out again to become PCM output data 2.
It will be output as 0.

以上の動作を次に第2図のタイミング図を参照してより
詳しく説明する。第2図は第1実施例のタイミング図の
一例であり、このタイミング図は(1)入力信号部、(
2)FIFOモードタイミング部及び(3)LIFOモ
ードタイミング部に分けて描いである。(1)の入力信
号部には、PCM入力データ11、それに同期したピッ
トクロック12及びワードクロック13がある。
The above operation will now be explained in more detail with reference to the timing diagram of FIG. FIG. 2 is an example of a timing diagram of the first embodiment, and this timing diagram includes (1) input signal section, (
The diagram is divided into 2) FIFO mode timing section and (3) LIFO mode timing section. The input signal section (1) includes PCM input data 11, a pit clock 12 and a word clock 13 synchronized therewith.

(2)のFIFOモードタイミング部では、FIFO−
LIFO指定侶号10がFIFOを指定している場合の
状態が表現してあり、カウンタ1のモードが常にアップ
モードに設定されており、書き込みモードでも読み出し
モードでも、RAMアドレス16は同じになっているこ
とがわかる。一方、(3)のLIFOモードタイミング
部では、FIFO−LIFO指定信号10がLIFOを
指定している場合の状態が表現してあり、カウンタ1の
モードはアップモードの後にダウンモードに切り換わる
。さらに、書き込みモードの最後のRAMアドレスが、
読み出しモードでは最初のRAMアドレスになるから、
PCM出力データ20はワード単位でデータが反転され
ることになる。
In the FIFO mode timing section (2), the FIFO-
The state is shown when LIFO specifier number 10 specifies FIFO, the mode of counter 1 is always set to up mode, and RAM address 16 is the same in write mode and read mode. I know that there is. On the other hand, in the LIFO mode timing section (3), a state is expressed when the FIFO-LIFO designation signal 10 designates LIFO, and the mode of the counter 1 is switched to the down mode after the up mode. Furthermore, the last RAM address in write mode is
In read mode, it will be the first RAM address, so
The PCM output data 20 is inverted word by word.

以上のようなカウンタ1の制御動作により、本実施例は
FIFO又はLIFOどちらにもなりうる特徴を持つ。
Due to the control operation of the counter 1 as described above, this embodiment has the feature that it can be used as either FIFO or LIFO.

(発明の効果) 以上説明したように、本発明によれば、FIFOとLI
FOとの両者の機能を備え、これらの機能が容易に切や
換えられる記憶回路を提供できる。しかもRAMは任意
の存置に設定できるから、大容量のF I FO/L 
I FO記憶回路が安価に実現できる。
(Effects of the Invention) As explained above, according to the present invention, FIFO and LI
It is possible to provide a memory circuit that has both the functions of FO and can easily switch between these functions. Moreover, since the RAM can be set to any location, a large capacity FIFO/L
An IFO storage circuit can be realized at low cost.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図実施例の動作を示すタミング図である。 1・・・カウンタ、2・−RA M動作モード切換部、
3.4・・・RAM、5・・・論理積回路、6・・・カ
ウントモード制御部。 代理人弁理士  本 庄 伸 介 δ r)  M に ・−−切 さ 匡
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 3 is a timing diagram showing the operation of the illustrated embodiment. 1...Counter, 2.-RAM operation mode switching section,
3.4...RAM, 5...AND circuit, 6...Count mode control unit. Representative Patent Attorney Shinsuke Honjo δr)

Claims (1)

【特許請求の範囲】[Claims]  FIFO・LIFO指定信号を受けワードクロックに
同期してカウントモード指定信号を出力するカウントモ
ード制御部と、ビットクロックを計数して計数値をRA
Mアドレスとして出力するカウンタと、このカウンタに
初期値のロードを指示する回路と、前記RAMアドレス
に書き込み又はそのRAMアドレスから読み出す第1及
び第2のRAMと、前記第1及び第2のRAMに書き込
み又は読み出しを指示するRAM動作モード切換部とか
らなり、前記カウントモード指定信号は、前記FIFO
・LIFO指定信号がFIFOを指定するときはカウン
トアップモードになり、前記FIFO・LIFO指定信
号がLIFOを指定するときは前記ワードクロックに同
期してカウントアップモード及びカウントダウンモード
に交互になり、前記ロード指示回路は前記カウントアッ
プモードであって前記ワードクロックを受けたときに前
記初期値のロードを指示し、前記カウンタは、前記カウ
ントアップモードのときは前記ビットクロックごとに前
記計数値を増し、前記カウントダウンモードのときは前
記ビットクロックごとに前記計数値を減じ、前記RAM
動作モード切換部は、前記第1のRAMに書き込みを指
示したときは前記第2のRAMに読み出しを指示し、前
記第1のRAMに読み出しを指示したときは前記第2の
RAMに書き込みを指示することを特徴とする記憶回路
A count mode control section that receives FIFO/LIFO designation signals and outputs a count mode designation signal in synchronization with the word clock, and a count mode control section that counts bit clocks and outputs count values from RA.
a counter that outputs an M address; a circuit that instructs this counter to load an initial value; first and second RAM that writes to or reads from the RAM address; a RAM operation mode switching unit that instructs writing or reading, and the count mode designation signal is
- When the LIFO designation signal designates FIFO, the mode is set to count up, and when the FIFO/LIFO designation signal designates LIFO, the mode is alternately switched to count up mode and countdown mode in synchronization with the word clock, and the load The instruction circuit instructs to load the initial value when the instruction circuit is in the count-up mode and receives the word clock, and the counter increments the count value every bit clock when in the count-up mode, and When in countdown mode, the count value is subtracted every bit clock, and the RAM is
The operation mode switching unit instructs the second RAM to read when the first RAM is instructed to write, and instructs the second RAM to write when the first RAM is instructed to read. A memory circuit characterized by:
JP60117348A 1985-05-29 1985-05-29 Memory circuit Pending JPS61273790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60117348A JPS61273790A (en) 1985-05-29 1985-05-29 Memory circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60117348A JPS61273790A (en) 1985-05-29 1985-05-29 Memory circuit

Publications (1)

Publication Number Publication Date
JPS61273790A true JPS61273790A (en) 1986-12-04

Family

ID=14709467

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60117348A Pending JPS61273790A (en) 1985-05-29 1985-05-29 Memory circuit

Country Status (1)

Country Link
JP (1) JPS61273790A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5422888A (en) * 1991-08-22 1995-06-06 Siemens Aktiengesellschaft Method for multiplexing cells intended for a plurality of receivers onto a transmission line connected to the receivers

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5755463A (en) * 1980-09-19 1982-04-02 Hitachi Ltd First-in first-out storage device and processor including it
JPS5933687A (en) * 1982-08-19 1984-02-23 Meidensha Electric Mfg Co Ltd Storage device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5755463A (en) * 1980-09-19 1982-04-02 Hitachi Ltd First-in first-out storage device and processor including it
JPS5933687A (en) * 1982-08-19 1984-02-23 Meidensha Electric Mfg Co Ltd Storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5422888A (en) * 1991-08-22 1995-06-06 Siemens Aktiengesellschaft Method for multiplexing cells intended for a plurality of receivers onto a transmission line connected to the receivers

Similar Documents

Publication Publication Date Title
EP0031950A2 (en) Memory device
EP0217479A2 (en) Information processing unit
JPS61273790A (en) Memory circuit
JPS6334795A (en) Semiconductor storage device
JP2692444B2 (en) Timer device
US5577005A (en) Circuit for using chip information
SU1339653A1 (en) Memory
JPH0750856B2 (en) Delay circuit
SU1176382A1 (en) Buffer storage
KR890004805Y1 (en) Digital data order conversion circuits of cd-rom driver
JPS62125589A (en) Semiconductor integrated circuit
SU1024984A1 (en) Buffer storage
SU1376074A1 (en) Device for programmed delay of information
SU1026163A1 (en) Information writing/readout control device
SU1252759A1 (en) Device for programmed control
JPH02152088A (en) Bidirectional fifo memory
JPH0290795A (en) Time divisional switch control system
JPH082756Y2 (en) Image processing device
SU1481854A1 (en) Dynamic memory
JPS5845117B2 (en) Memory protection method
JPS6236933A (en) Frame phase correction circuit
JPS59140793A (en) Time-division switch circuit
JPH0542756B2 (en)
JPH01143097A (en) Read only memory
JPH03132999A (en) Register circuit