JPH0277935A - Line buffer memory - Google Patents

Line buffer memory

Info

Publication number
JPH0277935A
JPH0277935A JP23094388A JP23094388A JPH0277935A JP H0277935 A JPH0277935 A JP H0277935A JP 23094388 A JP23094388 A JP 23094388A JP 23094388 A JP23094388 A JP 23094388A JP H0277935 A JPH0277935 A JP H0277935A
Authority
JP
Japan
Prior art keywords
ram
read
address
toggle
state
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
JP23094388A
Other languages
Japanese (ja)
Inventor
Yukio Miyazaki
行雄 宮崎
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP23094388A priority Critical patent/JPH0277935A/en
Publication of JPH0277935A publication Critical patent/JPH0277935A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the simultaneous performance of both reading and writing actions for improvement of the time conversion efficiency and at the same time to facilitate an editing job by using two memories of the toggle constitution, an address setting register, a read counter, etc. CONSTITUTION:A RAM(A) 8 and a RAM(B) 9 perform the toggle actions and either one of these two RAMs is set in read state while the other is kept in a write mode. Then the action switching timing, i.e., an address is previously set at an address setting register 12 so that the RAM 8 or RAM 9 is changed to a read state from a write state and vice versa. Thus an interruption signal is generated when the switch timing is set via a read counter 11 and a comparator 13. Then a toggle signal is requested to a controller, and the controller produces a toggle signal 6. Thus the memory actions are switched between both RAM 8 and RAM 9. As a result, both reading and writing actions can be performed at one time for improvement of the time conversion efficiency. Furthermore a data editing job is facilitated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、データの時間変換(Aの周波数−Bの周波
数)を効率良く行うと共に、データの編集が容易なライ
ンバッファメモリに関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] This invention relates to a line buffer memory that efficiently performs time conversion of data (frequency of A - frequency of B) and that allows easy data editing. .

〔従来の技術〕[Conventional technology]

第3図は従来の、例えばマイクロコンピュータ(以下マ
イコンと称する)で作成された画像を画像表示機器に一
定のリズムで表示する場合等に必要となる、データの時
間変換を行う装置の一般的な構成の一例を示す図であり
、一般的にデュアルポートRAMと呼ばれるものを示し
ている0図中、1は入力信号を接続する入力端子、2は
時間変換された出力信号が出力される出力端子、4は時
間変換前のリズムとなる入力データをRAM17に書込
むための書込みクロック(例えばマイコンのCPU、M
PU等のコントローラのライトクロック)を印加する端
子、5は変換後に必要とされるリズム(例えば上記マイ
コンの周辺機器である画像表示機器のリズ÷)となる読
出しクロックを印加する端子である。又、第4図は第3
図の装置の動作を説明するためのタイミング図であり、
100はRAM17に格納されたデータである。
Figure 3 shows a conventional device that performs time conversion of data, which is necessary when displaying an image created by a microcomputer (hereinafter referred to as microcomputer) on an image display device at a constant rhythm. This is a diagram showing an example of the configuration, and shows what is generally called a dual port RAM.In the diagram, 1 is an input terminal to which an input signal is connected, and 2 is an output terminal to which a time-converted output signal is output. , 4 is a write clock (for example, a microcontroller's CPU, M
Terminal 5 is a terminal that applies a read clock that is the rhythm required after conversion (for example, the rhythm of an image display device that is a peripheral device of the microcomputer ÷). Also, Figure 4 shows the 3rd
FIG. 2 is a timing diagram for explaining the operation of the device shown in FIG.
100 is data stored in the RAM 17.

次に、第3図の装置においてJ例えば1kHzの周波数
で生成されたデータを2kHzに変換する場合について
、その動作を説明する。
Next, the operation of the apparatus shown in FIG. 3 when data generated at a frequency of, for example, 1 kHz is converted to 2 kHz will be described.

まず、第4図(a)に示すように、1kHzの書込みク
ロックを書込みクロック入力端子4に印加し、書込みデ
ータを入力端子1に印加すると、1kHzの周期に同期
してRAM17の0番地から順に書込みデータが格納さ
れる0図では、0番地から3番地まで、4bitのデー
タ“0110″が格納されて行く例を示している。
First, as shown in FIG. 4(a), when a 1 kHz write clock is applied to the write clock input terminal 4 and write data is applied to the input terminal 1, data is sequentially written from address 0 of the RAM 17 in synchronization with a 1 kHz cycle. 0, where write data is stored, shows an example in which 4-bit data "0110" is stored from address 0 to address 3.

一方、第4図中)に示すように、読出し時は、2kHz
の読出しクロックを読出しクロック端子5に印加すると
、RAM17に格納されたデータが2kHzの周期に同
期してRAMの0番地から順に読出されて行く。図では
、0番地から3番地まで、4bitのデータ“0110
″が順に読出されて行く例を示している。
On the other hand, as shown in Figure 4), during readout, the frequency is 2kHz.
When the read clock is applied to the read clock terminal 5, the data stored in the RAM 17 is sequentially read out from address 0 of the RAM in synchronization with a 2 kHz cycle. In the figure, from address 0 to address 3, 4-bit data “0110
'' is read out in order.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のデータの時間変換を行う装置は以上のように構成
されているので、読出し時に書込みを同時に行うと、読
出しているデータを破壊する恐れがあるため、読出しと
書込みはシーケンシャル(書込み一読出し一書込み−)
に行う必要があり、読出し、書込みを同時に行えないた
めに時間変換の効率が悪くなるといった問題点があった
Conventional devices that perform time conversion of data are configured as described above, so if writing is performed at the same time as reading, the data being read may be destroyed, so reading and writing are performed sequentially (one write, one read, one Write-)
There is a problem in that the efficiency of time conversion deteriorates because reading and writing cannot be performed simultaneously.

この発明は、上記の問題点を解決すべくなされたもので
、読出しと書込みとが同時に行え、時間変換を効率良く
行えると共にデータの編集の行い易いラインバッファメ
モリを得ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and aims to provide a line buffer memory in which reading and writing can be performed simultaneously, time conversion can be performed efficiently, and data can be easily edited.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るラインバッファメモリは、A。 The line buffer memory according to the present invention is A.

82つのメモリ領域を用い、A (B)が書込み状態の
時B (A)が読出し状態となるトグル方式を採用し、
アドレス設定用のレジスタにあらかじめ2つのメモリ動
作の切換え(A (B)が書込み状態から読出し状態、
 B (A)が読出し状態から書込み状態)のタイミン
グ(アドレス)を設定しておき、読出し状態にあるメモ
リB (A)から情報が読出され設定したアドレスまで
情報が読出された時に、トグル信号を要求するための割
込み信号を発生するようにしたものである。
Using 82 memory areas, a toggle method is adopted in which when A (B) is in the write state, B (A) is in the read state,
There are two memory operation switches in advance in the address setting register (A (B) is from the write state to the read state,
Set the timing (address) for B (A) to change from the read state to the write state, and when information is read from memory B (A) in the read state to the set address, a toggle signal is activated. It is designed to generate an interrupt signal for making a request.

〔作用〕[Effect]

この発明においては、A、82つのメモリ領域を用い、
A (B)が書込み状態の時B (A)が読出し状態と
なるように設定し、トグル動作させるタイミングはアド
レス設定レジスタにあらかじめ設定しておき、そのタイ
ミングになった時にCPU、MPU等のコントローラに
割込み信号を発生して、トグル動作するタイミングをC
PU又はMPU等のコントローラに知らせることにより
、このコントローラからトグル信号が発生されて上記ト
グル動作が行われ、読出し、書込みを同時に行うことが
可能となる。
In this invention, A uses 82 memory areas,
When A (B) is in the write state, B (A) is set to be in the read state, and the timing for the toggle operation is set in advance in the address setting register, and when the timing is reached, the controller such as the CPU, MPU, etc. Generates an interrupt signal to set the timing of toggle operation.
By notifying a controller such as a PU or MPU, this controller generates a toggle signal and performs the toggle operation, making it possible to perform reading and writing at the same time.

〔実施例〕〔Example〕

第1図は本発明の一実施例によるラインバッファメモリ
を示す構成図であり、図において、1は入力信号を接続
する入力端子、2は時間変換された出力信号が出力され
る出力端子、3はCPU。
FIG. 1 is a configuration diagram showing a line buffer memory according to an embodiment of the present invention. In the figure, 1 is an input terminal to which an input signal is connected, 2 is an output terminal to which a time-converted output signal is output, and 3 is an output terminal to which a time-converted output signal is output. is CPU.

MPU等のコントローラにトグル信号を要求するための
割込み信号を出力する割込み端子、4は時間変換前のリ
ズムとなる入力データをRAMに書込むための書込みク
ロック(例えばマイコンのCPU、MPU等のコントロ
ーラのライトクロック)を印加する端子、5は変換後に
必要とされるリズム(例えば上記マイコンの周辺機器で
ある画像表示機器のリズム)となる読出しクロックを印
加する端子、6はRAMの状態を変更するためのトグル
信号を印加するトグル端子、7は読出しの範囲を設定す
るためのアドレス設定端子、8はRAM(A) 、9は
RAM (B) 、10は書込み時のRAMアドレスを
示すライトカウンタ、11は読出し時のRAMアドレス
を示すリードカウンタ、12は読出しの範囲を記憶する
ためのアドレス設定レジスタ、13はリードカウンタ1
1の値とアドレス設定レジスタ12の値とを比較し一致
した時に割込み信号を発生するコンパレータ、14は入
力信号1をRAM (A)8又はRAM (B)9に振
り分けるセレクタ、15は書込みクロック4又は読出し
クロック5をRAM (A)8又はRAM(B) 9に
振り分けるセレクタ、16はRAM (A)8又はRA
M (B)9の何れのデータを出力するかを決定するセ
レクタである。
An interrupt terminal outputs an interrupt signal to request a toggle signal from a controller such as an MPU, and 4 is a write clock (for example, a controller such as a microcontroller's CPU or MPU) for writing the input data that becomes the rhythm before time conversion into the RAM. 5 is a terminal that applies a read clock that becomes the rhythm required after conversion (for example, the rhythm of an image display device that is a peripheral device of the microcomputer mentioned above), 6 is a terminal that applies a read clock that changes the state of the RAM. 7 is an address setting terminal for setting the read range, 8 is RAM (A), 9 is RAM (B), 10 is a write counter that indicates the RAM address at the time of writing, 11 is a read counter that indicates the RAM address at the time of reading, 12 is an address setting register for storing the reading range, and 13 is a read counter 1.
A comparator that compares the value of 1 with the value of the address setting register 12 and generates an interrupt signal when they match; 14 is a selector that distributes input signal 1 to RAM (A) 8 or RAM (B) 9; 15 is a write clock 4 Or a selector that distributes the read clock 5 to RAM (A) 8 or RAM (B) 9, 16 is RAM (A) 8 or RAM
This is a selector that determines which data of M(B)9 is to be output.

第2図は第1図の装置の動作を説明するためのタイミン
グチャートであり、101.102はそれぞれRAM 
(A)、  (B)に格納されたデータである。この図
では簡単化のため、RAM (A)。
FIG. 2 is a timing chart for explaining the operation of the device in FIG. 1, and 101 and 102 are RAM
This is the data stored in (A) and (B). In this figure, for simplicity, RAM (A) is used.

(B)の書込みを4bit、読出しを3 bitとし、
書込みと読出しのクロック周波数は同じとして示してい
る。
(B) Writing is 4 bits, reading is 3 bits,
The writing and reading clock frequencies are shown as being the same.

最初、RAM (A)が書込み状態に設定され、入力端
子1に入力された“0110”の情報が書込みクロック
4に同期してRAM (A)の0番地から3番地に書込
まれる(第2図(a))、その時、RAM (B)は読
出し状態に設定され読出しクロック5に同期してRAM
 (B)の1番地から3番地に書かれていた情報“10
0”が出力端子2に出力される。この例では、アドレス
設定レジスタ12にはスタートアドレス1番地、ストッ
プアドレス3番地が設定されており、リードカウンタ1
1が3番地の“3″を選択した時にコンパレータ13は
割込み信号3を発生し、CPU、MPU等のコントロー
ラにトグル信号を要求する。コントローラはそれを受け
てトグル信号6を発生する(同図(bl)。
First, RAM (A) is set to the write state, and the information “0110” input to input terminal 1 is written to addresses 0 to 3 of RAM (A) in synchronization with write clock 4 (second (a)), at that time, RAM (B) is set to the read state and the RAM (B) is read out in synchronization with the read clock 5.
The information written in addresses 1 to 3 of (B) “10
0" is output to output terminal 2. In this example, start address 1 and stop address 3 are set in address setting register 12, and read counter 1
When 1 selects "3" at address 3, the comparator 13 generates an interrupt signal 3 and requests a toggle signal from a controller such as the CPU or MPU. In response to this, the controller generates a toggle signal 6 ((bl) in the same figure).

トグル信号6によりRAM (A)が読出し状態になり
、先程RAM (A)の0番地から3番地に書かれた情
報“0110”の内、アドレス設定レジスタ12に設定
されている1番地から3番地までの情報@110”が読
出しクロック5に同期して出力端子2に出力され、3番
地まで読出した時に先程と同様に割込み信号3を発生す
る(同図(C))。
The toggle signal 6 puts the RAM (A) into the read state, and among the information "0110" previously written in addresses 0 to 3 of RAM (A), addresses 1 to 3 set in the address setting register 12 are read. The information @110'' up to address 3 is output to output terminal 2 in synchronization with read clock 5, and when address 3 is read out, interrupt signal 3 is generated as before ((C) in the same figure).

なお、RAM (B)はその時書込み状態にあり、この
例では“0011″の情報が書込まれている(同図(d
))。
Note that RAM (B) is in a writing state at that time, and in this example, information “0011” is written (see (d) in the same figure).
)).

このような装置では、読出し、書込みを同時に行っても
データを破壊する恐れがなく、時間変換を効率良く行え
、又、データの編集が行い易い。
In such a device, there is no risk of data destruction even when reading and writing are performed simultaneously, time conversion can be performed efficiently, and data can be easily edited.

なお、上記実施例ではRAM (A)、RAM (B)
はそれぞれ1 bit幅のデータメモリ領域として説明
したが、これは複数bit幅(例えばI BYTII!
TE= 8bit )のデータメモリ領域であっても良
く、又、これらはグイナミソクRAMであってもスタテ
ィックRAMであっても良い。
In addition, in the above embodiment, RAM (A), RAM (B)
have been described as data memory areas each having a width of 1 bit, but this is a data memory area having a width of multiple bits (for example, I BYTII!).
It may be a data memory area (TE=8 bits), or it may be a RAM or a static RAM.

又、上記実施例では書込みを“L”→“H”のクロック
、読出しを“H″→1L”のクロックに同期して行い、
又、書込みクロック4と読出しクロック5とを同一周波
数とした場合を示したが、これらのクロックの選定は自
由であり、どちらのクロックが速くても問題なく使用で
きる。
Further, in the above embodiment, writing is performed in synchronization with the "L" → "H" clock, and reading is performed in synchronization with the "H" → "1L" clock.
Further, although the case where the write clock 4 and the read clock 5 have the same frequency has been shown, these clocks can be freely selected, and whichever clock is faster can be used without any problem.

さらに、上記実施例ではアドレス設定レジスタ12に読
出しのスタートアドレスとストップアドレスの両方を設
定し、リードカウンタ値がストップアドレスに来た時に
割込み信号3を発生する場合について説明したが、この
アドレス設定は何れか一方のみの指定でも問題はないし
、スタートアドレスにリードカウンタ値が来た時に割込
み信号3を出す等、自由に設定して問題はない。
Furthermore, in the embodiment described above, both the start address and stop address for reading are set in the address setting register 12, and the interrupt signal 3 is generated when the read counter value reaches the stop address. There is no problem in specifying only one of them, and there is no problem in setting it freely, such as outputting interrupt signal 3 when the read counter value reaches the start address.

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

以上のように、本発明に係るラインバッファメモリによ
れば、2つのメモリをトグル構成とし、読出しエリアを
レジスタに設定することにより必要範囲のみの読出しを
行い、必要エリアの読出し完了後に、コントローラにト
グル信号を要求する割込み信号を発生するようにしたの
で、編集が行い易く、又、時間変換を効率良く行える効
果がある。
As described above, according to the line buffer memory according to the present invention, the two memories have a toggle configuration, and by setting the readout area in the register, only the necessary range is read out, and after the readout of the necessary area is completed, the controller Since an interrupt signal requesting a toggle signal is generated, editing is easy and time conversion can be performed efficiently.

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

第1図はこの発明の一実施例によるラインバッファメモ
リを示す構成図、第2図はその動作を説明するためのタ
イミング図、第3図は従来のデュアルポートRAMを示
す構成図、第4図はその動作を説明するためのタイミン
グ図である。 3は割込み端子、4は書込みクロック端子、5は読出し
クロック端子、6はトグル端子、8はRAM (A) 
、9はRAM CB) 、12はアドレス設定レジスタ
、13はコンパレータ。 なお、図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a configuration diagram showing a line buffer memory according to an embodiment of the present invention, FIG. 2 is a timing diagram for explaining its operation, FIG. 3 is a configuration diagram showing a conventional dual port RAM, and FIG. 4 is a timing diagram for explaining the operation. 3 is an interrupt terminal, 4 is a write clock terminal, 5 is a read clock terminal, 6 is a toggle terminal, 8 is a RAM (A)
, 9 is RAM CB), 12 is an address setting register, and 13 is a comparator. In addition, in the figures, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] (1)データの時間変換を行うラインバッファメモリに
おいて、 一方が書込み状態の時、他方が読出し状態に設定される
2つのメモリ領域と、 上記2つのメモリ領域の状態を切換えるべきアドレスを
設定するためのレジスタと、 読出し状態にあるメモリ領域から上記レジスタの設定値
まで情報が読出された時に、上記切換えを行うためのト
グル信号を要求するための割込み信号を発生する手段と
を備えたことを特徴とするラインバッファメモリ。
(1) In a line buffer memory that performs time conversion of data, two memory areas are set in which one is set to a write state and the other is set to a read state, and the address at which the state of the above two memory areas should be switched is set. and means for generating an interrupt signal for requesting a toggle signal for performing the switching when information is read from the memory area in the read state to the set value of the register. and line buffer memory.
JP23094388A 1988-09-14 1988-09-14 Line buffer memory Pending JPH0277935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23094388A JPH0277935A (en) 1988-09-14 1988-09-14 Line buffer memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23094388A JPH0277935A (en) 1988-09-14 1988-09-14 Line buffer memory

Publications (1)

Publication Number Publication Date
JPH0277935A true JPH0277935A (en) 1990-03-19

Family

ID=16915739

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23094388A Pending JPH0277935A (en) 1988-09-14 1988-09-14 Line buffer memory

Country Status (1)

Country Link
JP (1) JPH0277935A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60193044A (en) * 1984-03-14 1985-10-01 Nec Corp Data buffer device
JPS6116377A (en) * 1984-07-02 1986-01-24 Ricoh Co Ltd Memory scanner
JPS63206872A (en) * 1987-02-24 1988-08-26 Agency Of Ind Science & Technol Picture memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60193044A (en) * 1984-03-14 1985-10-01 Nec Corp Data buffer device
JPS6116377A (en) * 1984-07-02 1986-01-24 Ricoh Co Ltd Memory scanner
JPS63206872A (en) * 1987-02-24 1988-08-26 Agency Of Ind Science & Technol Picture memory

Similar Documents

Publication Publication Date Title
JPH0277935A (en) Line buffer memory
JP2000187983A (en) Memory device
JPH0277934A (en) Line buffer memory
JPH01273132A (en) Microprocessor
JPH11110965A (en) Control method for synchronizing type random access memory and its device, synchronizing type random access memory device having it
JP2607561Y2 (en) Semiconductor memory test equipment
JPH05197612A (en) Data access circuit
JPH0610392Y2 (en) Display control circuit
JPS62145339A (en) Interleaving type storage device
JPH0635742A (en) Microcomputer device
JPH0314145A (en) Memory access circuit
JPH11133121A (en) Serial pattern generating device
JPH06259264A (en) Clock control circuit
JPH01307998A (en) Dram controller
JPH0224748A (en) Address switching circuit
JPH01269140A (en) Memory extending circuit
JPS62171059A (en) Storage device
JPH0527944A (en) Data writing/transmitting device
JPH01120684A (en) Graphics plotting device
JPH0316084A (en) Control circuit for random access memory
JPS61241859A (en) Data transfering equipment
JPH04307687A (en) Memory storage circuit
JPS61267990A (en) Memory device
JPH07281944A (en) Image memory control method
JPH08237084A (en) Timing signal generating circuit