JPH0277934A - Line buffer memory - Google Patents

Line buffer memory

Info

Publication number
JPH0277934A
JPH0277934A JP23094288A JP23094288A JPH0277934A JP H0277934 A JPH0277934 A JP H0277934A JP 23094288 A JP23094288 A JP 23094288A JP 23094288 A JP23094288 A JP 23094288A JP H0277934 A JPH0277934 A JP H0277934A
Authority
JP
Japan
Prior art keywords
ram
write
read
toggle
actions
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
JP23094288A
Other languages
Japanese (ja)
Inventor
Yukio Miyazaki
行雄 宮崎
Michio Nakajima
中島 三智雄
Naoki Yamauchi
直樹 山内
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 JP23094288A priority Critical patent/JPH0277934A/en
Publication of JPH0277934A publication Critical patent/JPH0277934A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform both reading and writing actions at one time and to improve the time conversion efficiency by preparing two memory areas having the toggle actions and switching the memory actions via a write register, a read counter, a comparator, etc. CONSTITUTION:A RAM(A) 6 and a RAM(B) 7 are provided and the RAM 7(6) is set in a read state when the RAM 6(7) is kept in a write state. A write register 10 latches the final write address and this address is compared with the counted value of a read counter 9 kept in a read state by a comparator 11. When the coincidence of this comparison is obtained, an interruption signal 3 is generated and a toggle signal is requested to a controller. Thus the controller generates a toggle signal 20. Then a toggle action is carried out and the memory actions are switched between the RAM 6 and the RAM 7. As a result, the data is never destroyed despite the simultaneous performance of both reading and writing actions. Thus it is possible to perform both reading and writing actions at one time and to the time conversion efficiency.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、データの時間変換(Aの周波数−Bの周波
数)を効率良(行うためのラインバッファメモリに関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a line buffer memory for efficiently performing time conversion (frequency A - frequency B) of data.

〔従来の技術〕[Conventional technology]

第3図は従来の、例えばマイクロコンピュータ(以下マ
イコンと称する)で作成された画像を画像表示機器に一
定のリズムで表示する場合等に必要となる、データの時
間変換を行う装置の一般的な構成の一例を示す図であり
、−a的にデュアルボー)RAMと呼ばれるものを示し
ている0図中、1は入力信号を接続する入力端子、2は
時間変換された出力信号が出力される出力端子、4は時
間変換前のリズムとなる入力データをRAM16に書込
むための書込みクロック(例えばマイコンのCPU、M
PU等のコントローラのライドクロック)を印加する端
子、5は変換後に必要とされるリズム(例えば上記マイ
コンの周辺機器である画像表示機器のリズム)となる読
出しクロックを印加する端子である。又、第4図は第3
図の装置の動作を説明するためのタイミング図であり、
100はRAM16に格納されたデータである。
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 a configuration, and shows what is called a dual-baud RAM.In the diagram, 1 is an input terminal to which an input signal is connected, and 2 is a time-converted output signal. Output terminal 4 is a write clock (for example, the CPU of a microcomputer, M
A terminal 5 is a terminal for applying a read clock (a ride clock of a controller such as a PU), and a terminal 5 is a terminal for applying a read clock that is a rhythm required after conversion (for example, a 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 16.

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

まず、第4図(a)に示すように、1kHzの書込みク
ロックを書込みクロック入力端子4に印加し、書込みデ
ータを入力端子1に印加すると、1kHzの周期に同期
してRAM16の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 16 in synchronization with a 1 kHz cycle. Write data is stored. The figure shows an example in which 4-bit data "0110" is stored from address 0 to address 3.

一方、第4図(b)に示すように、読出し時は、2kH
zの読出しクロックを読出しクロック端子5に印加する
と、RAM16に格納されたデータが2kHzの周期に
同期してRAMの0番地から順に読出されて行く0図で
は、0番地から3番地まで、4bitのデータ“011
0″が順に読出されて行く例を示している。
On the other hand, as shown in FIG. 4(b), at the time of reading, 2kHz
When a read clock of Data “011
An example is shown in which 0'' are 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, there is a risk of destroying the data being read. Write-)
There is a problem that the efficiency of time conversion deteriorates because reading and writing cannot be performed at the same time.

この発明は、上記の問題点を解決すべ(なされたもので
、読出しと書込みとが同時に行え、時間変換を効率良く
行えるラインバッファメモリを得ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a line buffer memory that can perform reading and writing simultaneously and can perform time conversion efficiently.

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

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

B2つのメモリ領域を用い、A (B)が書込み状態の
時B (A)が読出し状態となるトグル方式を採用し、
2つのメモリ動作の切換え(A (B)が書込み状態か
ら読出し状M、B (A)が読出し状態から書込み状り
時に最終の書込みアドレスをレジスタにラッチし、読出
し状態にあるメモリB(A)の読出しカウンタ値とレジ
スタにラッチされている値とを比較し、一致した時に、
トグル信号を要求するための割込み信号を発生するよう
にしたものである。
B uses two memory areas and adopts a toggle method in which when A (B) is in the write state, B (A) is in the read state,
Switching of two memory operations (A (B) is in the read state from the write state M, B (A) is in the read state and latches the final write address in the register, and the memory B (A) is in the read state The read counter value of is compared with the value latched in the register, and when they match,
It is designed to generate an interrupt signal to request a toggle signal.

〔作用〕[Effect]

この発明においては、A、B2つのメモリ領域を用い、
A (B)が書込み状態の時B (A)が読出し状態と
なるように設定し、トグル動作させるタイミングを内部
で書込みアドレスから得て、そのタイミングになった時
にCPU、MPU等のコントローラに割込み信号を発生
して、トグル動作するタイミングをCPU又はMPU等
のコントローラに知らせることにより、このコントロー
ラからトグル信号が発生されて上記トグル動作が行われ
、読出し、書込みを同時に行うことが可能となる。
In this invention, two memory areas A and B are used,
When A (B) is in the write state, B (A) is set to be in the read state, the timing for the toggle operation is obtained internally from the write address, and when that timing is reached, an interrupt is issued to the controller such as the CPU or MPU. By generating a signal to notify a controller such as a CPU or MPU of the timing of toggle operation, the 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は時間変換前のリ
ズムとなる入力データをR’ A Mに書込むための書
込みクロック(例えばマイコンのCPU、MPU等のコ
ントローラのライトクロック)を印加する端子、5は変
換後に必要とされるリズム(例えば上記マイコンの周辺
機器である画像表示機器のリズム)となる読出しクロッ
クを印加する端子、6はRAM (A) 、7はRAM
 (B)、8は書込み時のRAMアドレスを示すライト
カウンタ、9は読出し時のRAMアドレスを示すリード
カウンタ、10はトグル時(2本のメモリ動作の切換え
時)に書込みの最終アドレスを保持するライトレジスタ
、11はリードカウンタ9とライトレジスタ10の値と
を比較し一致した時に割込み信号を発生するコンパレー
タ、12は入力信号1をRAM (A)6又はRAM 
(B)7に振り分けるセレクタ、13は書込みクロック
4又は読出しクロック5をRAM (A)6又はRAM
 CB)7に振り分けるセレクタ、14はRAM (A
)6又はRAM (B)7の何れのデータを出力するか
を決定するセレクタ、20はRAMの状態を変更するた
めのトグル信号を印加するトグル端子である。
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 microcomputer CPU, MPU 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), and 6 is a terminal that applies a read clock that is the rhythm of an image display device that is a peripheral device of the above-mentioned microcomputer. ), 7 is RAM
(B), 8 is a write counter that indicates the RAM address when writing, 9 is a read counter that indicates the RAM address when reading, and 10 holds the final write address during toggle (when switching between two memory operations). Write register, 11 is a comparator that compares the values of read counter 9 and write register 10 and generates an interrupt signal when they match, 12 is input signal 1 to RAM (A) 6 or RAM
(B) Selector that distributes write clock 4 or read clock 5 to RAM (A) 6 or RAM
CB) selector to allocate to 7, 14 is RAM (A
) 6 or RAM (B) 7, and 20 is a toggle terminal to which a toggle signal is applied to change the state of the RAM.

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

(B)の書込み又読出しのbit数は4bitとし、書
込みと読出しのクロック周波数は同じとして示している
In (B), the number of bits for writing or reading is 4 bits, and the clock frequency for writing and reading is the same.

最初、RAM (A)が書込み状態に設定され、入力端
子1に入力された“0110”の情報が書込みクロック
4に同期してRAM (A)の0番地から3番地に書込
まれる(第2図(a))。その時、RAM (B)は読
出し状態に設定され読出しクロック5に同期してRAM
 (B)の0番地から3番地に書かれていた情報“10
01”が出力端子2に出力される。この時、ライトレジ
スタ10には、3番地の3”がラッチされており、リー
ドカウンタ9が3番地の“3”を選択した時にコンパレ
ータ11は割込み信号3を発生し、CPU、MPU等の
コントローラにトグル信号を要求する。コントローラは
それを受けてトグル信号20を発生する(同図(b))
。このトグル信号20によりRAM (A)、  (B
)のメモリ動作が切換わる(トグル動作する)が、その
時ライトレジスタ10にはRAM (A)に書込んだデ
ータの最終アドレス3番地の3゛がランチされる。
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 Figure (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 0 to 3 of (B) “10
01" is output to the output terminal 2. At this time, 3" at address 3 is latched in the write register 10, and when the read counter 9 selects "3" at address 3, the comparator 11 outputs an interrupt signal. 3 and requests a toggle signal from a controller such as a CPU or MPU. In response, the controller generates a toggle signal 20 ((b) in the same figure).
. This toggle signal 20 causes RAM (A), (B
) is switched (toggled), but at that time, the write register 10 is loaded with the last address 3 of the data written in RAM (A).

トグル信号20によりRAM (A)が読出し状態にな
り、先程RAM (A)の0番地から3番地に書かれた
情報“0110”が読出しクロック5に同期して出力端
子2に出力される。この時、ライトレジスタ10には上
述のように“3″がラッチされており、リードカウンタ
9が3番地の3′を選択した時に、先程と同様に割込み
信号3を発生する(同図(C))。なお、RAM (B
)はその時書込み状態にあり、この例では“0011″
の情報が書込まれている(同図(d))。
The toggle signal 20 puts the RAM (A) into a read state, and the information "0110" previously written at addresses 0 to 3 of the RAM (A) is output to the output terminal 2 in synchronization with the read clock 5. At this time, "3" is latched in the write register 10 as described above, and when the read counter 9 selects address 3, 3', interrupt signal 3 is generated in the same way as before ((C) )). In addition, RAM (B
) is in the write state at that time, in this example “0011”
information is written ((d) in the same figure).

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

なお、上記実施例ではRAM (A>、RAM (B)
はそれぞれ1bit幅のデータメモリ領域として説明し
たが、これは複数bit幅(例えばI BYTE=8b
it)のデータメモリ領域であっても良く、又、これら
はダイナミックRAMであってもスタティックRAMで
あっても良い。
Note that in the above embodiment, RAM (A>, RAM (B)
has been explained as a data memory area with a width of 1 bit each, but this is a data memory area with a width of multiple bits (for example, I BYTE = 8b
It may be a data memory area of .it), and these may be dynamic RAM or static RAM.

又、上記実施例では書込みクロック4と読出しクロック
5とを同一周波数とした場合を示したが、これらのクロ
ックの選定は自由であり、どちらのクロックが速くても
問題なく使用できる。
Further, in the above embodiment, the write clock 4 and the read clock 5 have the same frequency, but these clocks can be freely selected, and whichever clock is faster can be used without problems.

〔発明の効果〕〔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, the timing for toggling operation is obtained from the write address, and when the timing comes, an interrupt is generated to request a toggle signal from the controller. Since the signal is generated, time conversion can be performed efficiently.

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

第1図はこの発明の一実施例によるラインバッファメモ
リを示す構成図、第2図はその動作を説明するためのタ
イミング図、第3図は従来のデュアルポートRAMを示
す構成図、第4図はその動作を説明するためのタイミン
グ図である。 3は割込み端子、4は書込みクロック端子、5は読出し
クロック端子、6はRAM (A) 、7はRAM (
B)、10はライトレジスタ、11はコンパレータ、2
0はトグル端子。 なお、図中、同一符号は同一、又は相当部分を示す。
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 RAM (A), 7 is a RAM (
B), 10 is a write register, 11 is a comparator, 2
0 is a toggle terminal. 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, there are two memory areas where one is set to a write state and the other is set to a read state, and the final write address is set when the state of the two memory areas is switched. When the register for latching matches the read counter value of the memory area in the read state and the value latched in the above register, an interrupt signal is generated to request a toggle signal for performing the above switching. A line buffer memory characterized by comprising means.
JP23094288A 1988-09-14 1988-09-14 Line buffer memory Pending JPH0277934A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=16915722

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH0277934A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05307523A (en) * 1991-08-23 1993-11-19 Eastman Kodak Co Queue base processing for handling proof request in direct digital color proofing system

Citations (1)

* 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

Patent Citations (1)

* 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05307523A (en) * 1991-08-23 1993-11-19 Eastman Kodak Co Queue base processing for handling proof request in direct digital color proofing system

Similar Documents

Publication Publication Date Title
JPS62149099A (en) Memory access controlling circuit
JPH0277934A (en) Line buffer memory
US6483753B1 (en) Endianess independent memory interface
JPH0192851A (en) Switching device for address space
JPH0277935A (en) Line buffer memory
JPH02212952A (en) Memory access control system
JPS62157934A (en) Memory address system
JPS6031040B2 (en) Integrated circuit device for memory
JPH05101650A (en) Refreshing method for dynamic memory
JPH0619737B2 (en) Memory access device
JPH01188962A (en) Electronic equipment
JPH026766A (en) Test pattern generator
JPH0567035A (en) Data alignment system for dma transfer
JPH0561769A (en) Memory access method
JPH1049437A (en) Dynamic ram controller
JPH05189305A (en) Memory control method
JPH0668540B2 (en) Semiconductor memory test equipment
JPH0855058A (en) Expanding method for memory area
JPH07123450A (en) Time division switch memory with block access function
JPS63251994A (en) Memory device
JPS63244389A (en) Semiconductor integrated circuit device
JPH04112251A (en) Microcomputer
JPH06161879A (en) Digital data processor
JPH01269140A (en) Memory extending circuit
JPS6398900A (en) Associative storage device