JPH0797814B2 - Memory controller - Google Patents

Memory controller

Info

Publication number
JPH0797814B2
JPH0797814B2 JP61057273A JP5727386A JPH0797814B2 JP H0797814 B2 JPH0797814 B2 JP H0797814B2 JP 61057273 A JP61057273 A JP 61057273A JP 5727386 A JP5727386 A JP 5727386A JP H0797814 B2 JPH0797814 B2 JP H0797814B2
Authority
JP
Japan
Prior art keywords
memory
data
input
data bus
switching
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
JP61057273A
Other languages
Japanese (ja)
Other versions
JPS62214769A (en
Inventor
等 堀江
Original Assignee
松下電送株式会社
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 松下電送株式会社 filed Critical 松下電送株式会社
Priority to JP61057273A priority Critical patent/JPH0797814B2/en
Publication of JPS62214769A publication Critical patent/JPS62214769A/en
Publication of JPH0797814B2 publication Critical patent/JPH0797814B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Storing Facsimile Image Data (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、複数個のメモリから成るメモリバンクを備え
た通信装置、特にカラーファクシミリ等に使用して好適
なメモリ制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication device having a memory bank composed of a plurality of memories, and more particularly to a memory control device suitable for use in a color facsimile or the like.

従来の技術 従来のこの種のメモリ制御装置の一例を第6図に示す。2. Description of the Related Art FIG. 6 shows an example of a conventional memory control device of this type.

第6図はカラーファクシミリに適用された従来のメモリ
装置の概略構成を示すもので、この装置は、複数のダイ
ナミックメモリ(DRAM)、例えばRメモリ1、Gメモリ
2及びBメモリ3を備えたメモリバンクと、そのリフレ
ッシュ制御部4と、前記R,G,Bメモリ1,2,3のリード/ラ
イトを制御するリード/ライト制御部5と、前記R,G,B
メモリ1,2,3の入出力データバス6,7,8を切替えるための
セレクタ9等を備えて成り、前記リード/ライト制御部
5とセレクタ9に、マイクロプロセッサ(CPU)(CPUバ
ス10)からのメモリ選択制御信号11を入力して、CPUの
ソフトウェア処理(CPUのプログラム実行)によって前
記R,G,Bメモリ1,2,3を切替える構成になっている。
FIG. 6 shows a schematic structure of a conventional memory device applied to a color facsimile. This device is a memory including a plurality of dynamic memories (DRAM), for example, R memory 1, G memory 2 and B memory 3. A bank, a refresh control unit 4 for the bank, a read / write control unit 5 for controlling the read / write of the R, G, B memories 1, 2, 3 and the R, G, B
The read / write control section 5 and the selector 9 are provided with a microprocessor (CPU) (CPU bus 10), which comprises a selector 9 for switching the input / output data buses 6, 7, 8 of the memories 1, 2, 3 The memory selection control signal 11 is input to switch the R, G, B memories 1, 2 and 3 by software processing of the CPU (program execution of the CPU).

発明が解決しようとする問題点 このように、従来のメモリ制御装置では、メモリバンク
の各メモリの切換処理をCPUのプログラムで実行してい
るために、必然的に、メモリ切換時に数μsのメモリ切
換処理時間が必要となる。第7図は、このことを図示し
たものである。
Problems to be Solved by the Invention As described above, in the conventional memory control device, since the switching process of each memory of the memory bank is executed by the program of the CPU, the memory of several μs is inevitable when the memory is switched. Switching processing time is required. FIG. 7 illustrates this.

従ってこの種の従来のメモリ制御装置には、メモリ出力
データをセレクタ入出力データバス12(第6図参照)を
介して高速の通信制御部(図示せず)にDMA転送する場
合に、各メモリ出力データの切れ目で転送処理時間が長
くなるという問題があった。
Therefore, in this type of conventional memory control device, when the memory output data is DMA-transferred to the high-speed communication control unit (not shown) via the selector input / output data bus 12 (see FIG. 6), each memory There is a problem that the transfer processing time becomes long due to a break in the output data.

また、その問題を解決するためには、メモリ(セレクタ
入出力データバス12)からのデータの転送先である通信
制御部で、転送処理時間の変動を吸収するためのバッフ
ァメモリを用意する必要がある。それがため、回路規模
が増大するといった問題が発生する。
Further, in order to solve the problem, it is necessary to prepare a buffer memory for absorbing the fluctuation of the transfer processing time in the communication control unit which is the transfer destination of the data from the memory (selector input / output data bus 12). is there. Therefore, there arises a problem that the circuit scale increases.

本発明は、上述の問題点に鑑みてなされたもので、回路
規模を増大させることなく、メモリバンクの各メモリを
ハードウェア処理で高速に切替えることができるメモリ
制御装置を提供することを目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a memory control device that can switch each memory of a memory bank at high speed by hardware processing without increasing the circuit scale. To do.

問題点を解決するための手段 本発明は上述の問題点を解決するため、固有パターンが
周期的に書込まれたメモリを同一アドレス空間上に複数
個配設して成るメモリバンクと、その複数個のメモリの
入出力データバスを切替えるセレクタと、前記各メモリ
内に書込まれた固有パターンを検出するパターン検出部
と、前記メモリの転送アドレスと転送語数を含む参照ブ
ロックの集合から成る参照テーブルを備えたダイレクト
・メモリ・アクセス・コントローラ(DMAC)と、前記パ
ターン検出部からのパターン検出信号により前記セレク
タの入出力データバスの選択状態を変化せしめてメモリ
切替えを行う手段と、そのメモリ切替えと同期して前記
DMACの参照テーブルの参照ブロックを更新せしめる手段
とを備え、ハードウェア処理で前記パターン検出信号に
よる各メモリの切替えを行うようにしたものである。
Means for Solving the Problems In order to solve the above problems, the present invention provides a memory bank in which a plurality of memories in which unique patterns are periodically written are arranged in the same address space, and a plurality of the memory banks. Selector for switching the input / output data bus of each memory, a pattern detection unit for detecting a unique pattern written in each memory, and a reference table composed of a set of reference blocks including a transfer address and a transfer word number of the memory. A direct memory access controller (DMAC), a means for switching the memory by changing the selection state of the input / output data bus of the selector by a pattern detection signal from the pattern detection unit, and the memory switching In sync with the above
A means for updating the reference block of the reference table of the DMAC is provided, and each memory is switched by the pattern detection signal by hardware processing.

作用 本発明は、上述の構成によって複数個のメモリがハード
ウェア処理で切替えられるため、従来のように各メモリ
を切替えるためのソフトウェアの処理時間を必要としな
い。従ってソフトウェアの処理時間の変動を吸収するた
めのバッファメモリも不要となる。このため、回路規模
を増大させることなく、データ転送の高速化を実現する
ことができる。
Action The present invention does not require software processing time for switching each memory as in the conventional case, because a plurality of memories are switched by hardware processing with the above configuration. Therefore, the buffer memory for absorbing the fluctuation of the processing time of software is not required. Therefore, speeding up of data transfer can be realized without increasing the circuit scale.

実施例 第1図は本発明に係るメモリ制御装置の一実施例を示す
概略構成ブロック図で、この実施例では、カラーファク
シミリへの適用例を示したものである。
Embodiment FIG. 1 is a schematic block diagram showing an embodiment of a memory control device according to the present invention. In this embodiment, an application example to a color facsimile is shown.

第1図においては、21はRメモリ(DRAM)、22はGメモ
リ(DRAM)、23はBメモリ(DRAM)で、これらR,G,Bメ
モリ21,22,23は同一アドレス空間上に配設され、一般に
は、複数個配設されるメモリバンクを構成している。
尚、以下の説明において、単にメモリと称した場合に
は、前記各R,G,Bメモリ21,22,23を含めた意味である。
In FIG. 1, 21 is an R memory (DRAM), 22 is a G memory (DRAM), and 23 is a B memory (DRAM). These R, G, B memories 21, 22, 23 are arranged in the same address space. In general, a plurality of memory banks are provided.
In the following description, when simply referred to as a memory, it means that the R, G, B memories 21, 22 and 23 are included.

24は前記Bメモリ23の入出力データバス(以下、Bデー
タバスという)、25は前記Gメモリ22の入出力データバ
ス(以下、Gデータバスという)、26は前記Rメモリ21
の入出力データバス(以下、Rデータバスという)、27
はこれら各データバス24,25,26(各々16ビット)を前記
メモリ内のデータ及びメモリに書込まれたデータ(後述
する)に基づいて選択切替えするセレクタ、28はそのセ
レクタ27の入出力データバスである。
24 is an input / output data bus of the B memory 23 (hereinafter referred to as B data bus), 25 is an input / output data bus of the G memory 22 (hereinafter referred to as G data bus), and 26 is the R memory 21.
I / O data bus (hereinafter referred to as R data bus), 27
Is a selector for selectively switching these data buses 24, 25, 26 (16 bits each) based on the data in the memory and the data (described later) written in the memory, and 28 is the input / output data of the selector 27 It's a bus.

29はメモリ内に書込まれたメモリ切替パターン(以下、
固有パターンという。詳細は後述する。)を検出するた
めのパターン検出部、30はその検出部29の出力信号で、
前記セレクタ27とメモリのリード/ライト制御部31への
入力信号になる。
29 is a memory switching pattern written in the memory (hereinafter,
It is called a unique pattern. Details will be described later. ) Is a pattern detection unit, 30 is an output signal of the detection unit 29,
It becomes an input signal to the selector 27 and the read / write controller 31 of the memory.

32はRメモリ21のリード/ライト制御信号(RWE)、33
はGメモリ22のリード/ライト制御信号(GWE)、34は
Bメモリ23のリード/ライト制御信号(BWE)、35はラ
イトネーブル信号(WE)で、WE35はコントロールバス36
から出力される。
32 is a read / write control signal (RWE) of the R memory 21, 33
Is a read / write control signal (GWE) of the G memory 22, 34 is a read / write control signal (BWE) of the B memory 23, 35 is a write enable signal (WE), and WE35 is a control bus 36.
Is output from.

37はメモリのリフレッシュ制御部、38はメモリにメモリ
アドレスを入力するアドレスバス、39,40はメモリをア
クセスするための制御信号(RAS,CAS)、41はアドレス
バス、42はROM,RAMから成る記憶部、43はマイクロプロ
セッサ(CPU)、44はダイレクト・メモリ・アクセス・
コントローラ(DMAC)、45はデータバスである。
37 is a memory refresh control unit, 38 is an address bus for inputting a memory address to the memory, 39 and 40 are control signals (RAS, CAS) for accessing the memory, 41 is an address bus, and 42 is a ROM and RAM. Storage unit, 43 is a microprocessor (CPU), 44 is direct memory access
The controller (DMAC) 45 is a data bus.

第2図は同一のメモリアドレスa1空間上に配設された前
記Rメモリ21、Gメモリ22及びBメモリ23のそれぞれ内
部データの割当て(構造)を示したものである。
FIG. 2 shows allocation (structure) of internal data to each of the R memory 21, G memory 22 and B memory 23 arranged on the same memory address a1 space.

各R,G,Bメモリ21,22,23の内部には、メモリ切替えのた
めのパターン、所謂固有パターン21a,21b,22a,22b,23a,
23bが周期的に、つまり所定のアドレス毎にメモリ内デ
ータに対して書込まれている。
Inside each R, G, B memory 21, 22, 23, a pattern for memory switching, so-called unique pattern 21a, 21b, 22a, 22b, 23a,
23b is written periodically in the memory data, that is, every predetermined address.

この実施例では、各ライン(第1ライン、第2ライン・
・・)毎に、各R,G,Bメモリ21,22,23の内部データ(R
成分第1ライン画データ、R成分第2ライン画データ、
G成分第1ライン画データ,・・・)に対してその最後
の部分に固有パターン21a,21b,・・・を書込んでいる。
In this embodiment, each line (first line, second line,
..) internal data (R) of each R, G, B memory 21, 22, 23 for each
Component first line image data, R component second line image data,
The unique patterns 21a, 21b, ... Are written in the last portion of the G component first line image data ,.

第3図は前記メモリの切替タイミングを示すタイムチャ
ートで、同図中、46は前記メモリ内に書込まれた固有パ
ターンの検出を指示するパターン検出部29内のパターン
検出信号で、この信号46はパターン検出部29の出力信号
30に対応している。47〜49はメモリの入出力データバス
24〜26のどのデータバスを選択するかを指示する制御信
号で、47はRメモリ21を選択することを指示するセレク
ト信号、48はGメモリ22を選択することを指示するセレ
クト信号、49はBメモリ23を選択することを指示するセ
レクト信号である。
FIG. 3 is a time chart showing the switching timing of the memory. In FIG. 3, 46 is a pattern detection signal in the pattern detection unit 29 for instructing the detection of the unique pattern written in the memory. Is the output signal of the pattern detection unit 29
Corresponds to 30. 47 to 49 are memory input / output data buses
A control signal for instructing which data bus of 24 to 26 is selected, 47 is a select signal instructing to select the R memory 21, 48 is a select signal instructing to select the G memory 22, and 49 is a select signal. This is a select signal for instructing to select the B memory 23.

前記セレクト信号47中の斜線部分は、その区間で前記パ
ターン検出信号46によりRメモリ21の入出力データバス
24が選択されていることを示している。同様に、前記セ
レクト信号48中の斜線部分は、Gメモリ22の入出力デー
タバス25が、また前記セレクト信号49中の斜線部分はB
メモリ23の入出力データバス26が、それぞれ選択されて
いることを示している。
The shaded portion in the select signal 47 is the input / output data bus of the R memory 21 in the section by the pattern detection signal 46.
Shows that 24 is selected. Similarly, the shaded portion in the select signal 48 is the input / output data bus 25 of the G memory 22, and the shaded portion in the select signal 49 is B.
The input / output data buses 26 of the memory 23 are shown to be selected.

要するに、メモリからデータを読出す場合は、パターン
検出部29からのパターン検出信号46によってメモリの入
出力データバス24〜26の選択状態が前記各斜線部分の区
間で変化する。つまり、ハードウェア処理によってパタ
ーン検出によるメモリ切替えが行われる。
In short, when data is read from the memory, the selection state of the input / output data buses 24 to 26 of the memory is changed by the pattern detection signal 46 from the pattern detection unit 29 in each of the shaded areas. That is, memory switching is performed by pattern detection by hardware processing.

50はメモリからのデータ(第1ラインのデータA1,A2,A
3、第2ラインのデータB1,・・・)の転送と、その時に
DMAC44が参照する参照テーブル(以下、リンクアレイ・
テーブルという)51(第4図参照)との対応関係を示し
たものである。
50 is data from the memory (first line data A1, A2, A
3, the transfer of the second line data B1, ...) and at that time
The reference table referenced by the DMAC44 (hereinafter referred to as the link array
The table 51 shows the correspondence with 51 (see FIG. 4).

前記リンクアレイ・テーブル51はDMAC44内に設けられて
いて、そのDMAC44又はCPU43がメモリをアクセスしてデ
ータ転送を行なう時に参照するもので、第4図に示すよ
うに、第1ラインのデータA1,A2,A3、に対応した参照ブ
ロックA1,A2,A3と、第2ラインのデータB1,B2,B3に対応
した参照ブロックB1,B2,B3といった具合に、各ラインの
データの数に対応した参照ブロックを各ライン毎に集合
せしめて、これらを連設したものから成る。
The link array table 51 is provided in the DMAC 44, and is referred to when the DMAC 44 or the CPU 43 accesses the memory to transfer data. As shown in FIG. 4, the first line data A1, References corresponding to the number of data of each line, such as reference blocks A1, A2, A3 corresponding to A2, A3 and reference blocks B1, B2, B3 corresponding to data B1, B2, B3 of the second line. Blocks are grouped for each line, and they are connected in series.

前記各参照ブロックA1,A2,・・・の内部構造は、第4図
に示す如く、メモリアドレス(メモリの転送アドレス)
と、転送ワード数(転送語数)と、リンクアドレスとか
ら成る。
As shown in FIG. 4, the internal structure of each of the reference blocks A1, A2, ... Is a memory address (memory transfer address).
And a transfer word number (transfer word number) and a link address.

前記メモリアドレスはDMAC44がデータ転送を開始するア
ドレスであり、転送ワード数は前記メモリアドレスから
何ワード転送するかを示すもので、所定のアドレス、つ
まりメモリ内に書込まれた固有パターンの周期に対応す
るように設定される。また、前記リンクアドレスは例え
ば参照ブロックA1の転送を終了した後どのテーブルの参
照ブロックを参照すべきかを示すポインタである。
The memory address is an address at which the DMAC 44 starts data transfer, the transfer word number indicates how many words are transferred from the memory address, and at a predetermined address, that is, a cycle of the unique pattern written in the memory. Set to correspond. The link address is, for example, a pointer indicating which reference block of the table should be referred to after the transfer of the reference block A1 is completed.

ここに参照ブロックA1〜A3のメモリアドレスには同一の
メモリアドレスa1が書かれている。つまり、参照ブロッ
ク例えばA(A=A1,A2,A3)に書込まれたメモリアドレ
ス(例えばa1)は、連続するn個の参照ブロック(例え
ばA1,A2,A3)に対して同一であって、メモリアドレスが
同一となる参照ブロックがメモリの数だけ連続して参照
されるようになっている。
Here, the same memory address a1 is written in the memory addresses of the reference blocks A1 to A3. That is, the memory address (for example, a1) written in the reference block, for example, A (A = A1, A2, A3) is the same for n consecutive reference blocks (for example, A1, A2, A3). , Reference blocks having the same memory address are continuously referred to by the number of memories.

第5図はこの実施例におけるカラーファクシミリ内での
本発明に係るメモリ制御装置の位置付けを示したもので
ある。同図中、60はカラースキャナ、61はカラープリン
タ、62は発明に係るメモリ制御装置(第1図参照)、63
は通信制御部、64〜66はカラースキャナ60からメモリに
書込まれるR,G,Bデータ信号、67〜69はメモリからカラ
ープリンタ61へのR,G,Bデータ信号、70はメモリ制御部6
2への入出力データ信号、71は回線への入出力データ信
号である。回線上ではその信号71はR,G,B1ライン毎に伝
送される。
FIG. 5 shows the position of the memory control device according to the present invention in the color facsimile in this embodiment. In the figure, 60 is a color scanner, 61 is a color printer, 62 is a memory control device according to the invention (see FIG. 1), 63
Is a communication control unit, 64 to 66 are R, G, B data signals written in the memory from the color scanner 60, 67 to 69 are R, G, B data signals from the memory to the color printer 61, and 70 is a memory control unit 6
Input / output data signal to 2 and input / output data signal 71 to the line. On the line, the signal 71 is transmitted for each R, G, B1 line.

次に以上のように構成されたメモリ制御装置(第1図〜
第4図参照)について、以下その動作を説明する。
Next, the memory control device configured as described above (see FIG. 1 to FIG.
The operation will be described below (see FIG. 4).

先ずRメモリ21、Gメモリ22、Bメモリ23からデータを
読出す場合はDMAC44からメモリアドレスがアドレスバス
41に出力され、ライトイネーブル35は“H"レベルとな
る。この時リード/ライト制御部31の出力RWE32,GWE33,
BWE34も全て“H"レベルとなる。すなわち全てのメモリ
に対して読出し状態となりRデータバス26、Gデータバ
ス25、Bデータバス24上にアドレスバス38からのメモリ
アドレスのデータが読出される。
First, when reading data from the R memory 21, G memory 22, and B memory 23, the memory address is transferred from the DMAC 44 to the address bus.
It is output to 41, and the write enable 35 becomes "H" level. At this time, the output of the read / write controller 31 RWE32, GWE33,
All of BWE34 are also at "H" level. That is, all the memories are in the read state, and the data of the memory address is read from the address bus 38 onto the R data bus 26, the G data bus 25, and the B data bus 24.

パターン検出部29の出力信号30(パターン検出信号46)
は、初期設定としてRメモリ21を選択する。従ってセレ
クタ27の入出力データバス28にはRデータバス26のデー
タが出力する。
Output signal 30 of pattern detection unit 29 (pattern detection signal 46)
Selects the R memory 21 as the initial setting. Therefore, the data of the R data bus 26 is output to the input / output data bus 28 of the selector 27.

DMAC44は第4図のリンクアレイ・テーブル51に書かれた
転送ワード数だけの転送が終了するまで、読出すメモリ
アドレスを更新しながら、転送動作を続ける。
The DMAC 44 continues the transfer operation while updating the memory address to be read until the transfer of the number of transfer words written in the link array table 51 of FIG. 4 is completed.

一方、メモリ内に書込まれた固有パターン(第2図参
照)が読出されるまではメモリの選択状態は変化せずR
メモリ21が選択された状態で、そのデータが前記データ
バス28上に出力される。前記固有パターンが読出される
と第3図のパターン検出信号46が検出部29の内部で発生
し、第3図のセレクト信号47,48に示すようにセレクタ2
7出力がRメモリ21からGメモリ23に変化する。つま
り、パターン検出部29からのパターン検出信号46により
メモリの入出力データバス24〜26の選択状態が変化する
(この場合、Gデータバス25を選択した状態となってい
る。) 同時にDMAC44はリンクアレイ・テーブル51の参照ブロッ
クA1の参照を終了し、次の参照ブロックA2を参照して転
送を続行する。つまり、DMAC44はリンクアレイ・テーブ
ル51の参照ブロックの更新を行いながらデータ転送を実
行する。
On the other hand, the selection state of the memory does not change until the unique pattern written in the memory (see FIG. 2) is read out.
With the memory 21 selected, the data is output onto the data bus 28. When the peculiar pattern is read out, the pattern detection signal 46 of FIG. 3 is generated inside the detection unit 29, and the selector 2 is selected as shown by the select signals 47 and 48 of FIG.
7 output changes from R memory 21 to G memory 23. That is, the selection state of the memory input / output data buses 24 to 26 is changed by the pattern detection signal 46 from the pattern detection section 29 (in this case, the G data bus 25 is selected). At the same time, the DMAC 44 is linked. The reference of the reference block A1 of the array table 51 is ended, the next reference block A2 is referred to, and the transfer is continued. That is, the DMAC 44 executes data transfer while updating the reference block of the link array table 51.

更新された参照ブロックA2とメモリアドレスは前記参照
ブロックA1と同様のメモリアドレスa1であるため再度、
同一のアドレス空間から転送を始める。
Since the updated reference block A2 and memory address are the same memory address a1 as the reference block A1, again,
Transfer starts from the same address space.

この時、セレクタ27はGデータバス25の選択状態となっ
ているため、Rデータバス26、Gデータバス25、Bデー
タバス24のうちGデータバス24上のデータだけが、セレ
クタ27の入出力データバス28上に出力される。
At this time, since the selector 27 is in the selected state of the G data bus 25, only the data on the G data bus 24 of the R data bus 26, the G data bus 25, and the B data bus 24 is input / output to / from the selector 27. It is output on the data bus 28.

この動作を続けメモリ内に書込まれた固有パターンを検
出すると第3図のセレクト信号48,49に示すようにGメ
モリ22からBメモリ23にセレクタ27の選択状態が変化す
る。
When this operation is continued and the peculiar pattern written in the memory is detected, the selection state of the selector 27 is changed from the G memory 22 to the B memory 23 as shown by the selection signals 48 and 49 in FIG.

これを繰り返すことにより、R,G,Bメモリ21〜23のデー
タは1ライン毎にセレクタ27の入出力データバス28上に
出力される。
By repeating this, the data in the R, G, B memories 21 to 23 are output line by line on the input / output data bus 28 of the selector 27.

この間CPU43は、メモリ切替えのためのプログラム処理
を行なわない。つまり、ハードウェアの処理で、メモリ
内に書込まれた固有パターンの検出によるメモリ切替え
を実行している。それと同期してDMAC44のリンクアレイ
・テーブル51もソフトウェア処理により切替わる。
During this time, the CPU 43 does not perform the program processing for memory switching. That is, in the processing of the hardware, the memory switching is executed by detecting the unique pattern written in the memory. In synchronization with this, the link array table 51 of the DMAC 44 is also switched by software processing.

次にメモリへの書込み動作について説明する。メモリ書
込み時、入力データはセレクタ27の入出力データバス28
から入力される。そのデータバス28上の入力データはパ
ターン検出部29の出力信号30(パターン検出信号46)に
基づいてどのメモリデータバス24〜26に乗せるかが決定
される。
Next, the write operation to the memory will be described. When writing to memory, input data is input / output data bus 28 of selector 27
Input from. The input data on the data bus 28 is determined based on the output signal 30 (pattern detection signal 46) of the pattern detection unit 29, which memory data bus 24-26 is to be loaded.

ここで、パターン検出部29の出力信号30は初期設定とし
てRデータバス26を選択しているものとする。このメモ
リ選択信号30は、リード/ライト制御部31にも入力され
ていて、ここで、書込むメモリに対応した制御信号RWE3
2,GRE33,BRE34のうち何れかが“L"レベルになる。
Here, it is assumed that the output signal 30 of the pattern detection unit 29 selects the R data bus 26 as an initial setting. The memory selection signal 30 is also input to the read / write control unit 31, where the control signal RWE3 corresponding to the memory to be written is supplied.
Any of 2, GRE33, BRE34 goes to "L" level.

最初はRメモリ21が選択されているのでRWE32が“L"レ
ベルとなり、他は“H"レベルとなる。従ってRメモリ21
に対しては書込み状態、他のG,Bメモリ22,23に対しては
読出し状態となる。
Since the R memory 21 is initially selected, the RWE 32 is at "L" level, and the others are at "H" level. Therefore, R memory 21
Is in the write state, and the other G, B memories 22 and 23 are in the read state.

この場合、メモリへの書込みは前述した読出しの場合と
同様、第4図のリンクアレイ・テーブル51を参照して行
われる。
In this case, writing to the memory is performed by referring to the link array table 51 in FIG. 4 as in the case of the above-mentioned reading.

パターン検出部29で固有パターンを検出すると、その固
有パターンをメモリに書込んだ後、セレクタ27の選択状
態がRメモリ選択状態からGメモリ選択状態に変わり、
リンクアレイ・テーブル51の参照ブロックもA1からA2に
変わる。
When the pattern detection unit 29 detects the unique pattern, the unique pattern is written in the memory, and then the selection state of the selector 27 is changed from the R memory selection state to the G memory selection state.
The reference block of the link array table 51 also changes from A1 to A2.

つまり固有パターンがメモリに書込まれると、ハードウ
ェア処理によりセレクタ27のメモリデータバス24〜26の
選択状態が変化しメモリ切替えが実行される。と同時に
DMAC44のリンクアレイ・テーブル51の参照ブロックもソ
フトウェア処理により切替え更新される。
That is, when the peculiar pattern is written in the memory, the selection state of the memory data buses 24-26 of the selector 27 is changed by the hardware processing and the memory switching is executed. At the same time
The reference block of the link array table 51 of the DMAC 44 is also switched and updated by software processing.

この状態下においてセレクタ27からのデータがGメモリ
23に書込まれる。尚、ソフトウェア処理によるリンクア
レイ・テーブル51の切替えとハードウェア処理によるメ
モリデータバス24〜26の切替動作は同期せしめられてい
る。
In this state, the data from the selector 27 is the G memory.
Written on 23. The switching of the link array table 51 by software processing and the switching operation of the memory data buses 24-26 by hardware processing are synchronized.

以上の動作を繰り返し実行することにより、メモリへの
書込みが行われる。その書込みがなされたメモリの内部
は、第2図に示すようなデータ構造となる。
Writing to the memory is performed by repeatedly executing the above operation. The inside of the written memory has a data structure as shown in FIG.

上述したように、メモリへの書込み動作時においても、
読出し時と同様に、CPU43はメモリ切替えのためのプロ
グラム処理を実行していない。
As described above, even when writing to the memory,
Similar to the reading, the CPU 43 is not executing the program processing for memory switching.

発明の効果 以上の説明から明らかなように、本発明はメモリバンク
の入出力データバスを、メモリ内のデータ及びメモリ内
に書込まれた固有パターンに基づいて切替えるようにし
たので、従来のようにメモリを切替えるためのソフトウ
ェア処理が不要となり、回路規模を増大させることなく
データ転送処理の高速化を実現し得るという効果を有す
るものである。
EFFECTS OF THE INVENTION As is apparent from the above description, the present invention switches the input / output data bus of the memory bank based on the data in the memory and the unique pattern written in the memory. Moreover, there is no need for software processing for switching the memory, and the speed of data transfer processing can be increased without increasing the circuit scale.

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

第1図は本発明に係るメモリ制御装置の一実施例を示す
概略構成ブロック図、第2図はメモリ内部のデータ構造
の一例を示すデータ割当図、第3図はメモリの切替タイ
ミング図、第4図はリンクアレイ・テーブル(参照テー
ブル)の構造図、第5図は本発明が適用されたカラーフ
ァクシミリの概略構成を示すブロック図、第6図は従来
のメモリ制御装置の概略構成を示すブロック図、第7図
はメモリ切換の処理時間を説明するための概念図であ
る。 21……Rメモリ、22……Gメモリ、23……Bメモリ、21
a,21b,22a,22b,23a,23b……固有パターン(メモリ切換
パターン)、24……Bメモリの入出力データバス(Bデ
ータバス)、25……Gメモリの入出力データバス(Gデ
ータバス)、26……Rメモリの入出力データバス(Rデ
ータバス)、27……セレクタ、29……パターン検出部、
31……リード/ライト制御部、44……ダイレクト・メモ
リ・アクセス・コントローラ(DMAC)、51……リンクア
レイ・テーブル(参照テーブル)、a1……メモリアドレ
ス(メモリの転送アドレス)。
FIG. 1 is a schematic configuration block diagram showing an embodiment of a memory control device according to the present invention, FIG. 2 is a data allocation diagram showing an example of a data structure inside the memory, FIG. 3 is a memory switching timing diagram, FIG. FIG. 4 is a structural diagram of a link array table (reference table), FIG. 5 is a block diagram showing a schematic structure of a color facsimile to which the present invention is applied, and FIG. 6 is a block showing a schematic structure of a conventional memory controller. FIG. 7 and FIG. 7 are conceptual diagrams for explaining the processing time of memory switching. 21 …… R memory, 22 …… G memory, 23 …… B memory, 21
a, 21b, 22a, 22b, 23a, 23b …… Specific pattern (memory switching pattern), 24 …… B memory input / output data bus (B data bus), 25 …… G memory input / output data bus (G data) Bus), 26 ... R memory input / output data bus (R data bus), 27 ... selector, 29 ... pattern detection unit,
31 ... Read / write control block, 44 ... Direct memory access controller (DMAC), 51 ... Link array table (reference table), a1 ... Memory address (memory transfer address).

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】固有パターンが周期的に書込まれたメモリ
を同一アドレス空間上に複数個配設して成るメモリと、
この複数個のメモリの入出力データバスを切替えるセレ
クタと、前記各メモリ内に書込まれた固有パターンを検
出するパターン検出部と、前記メモリの転送アドレスと
転送語数を含む参照ブロックの集合から成る参照テーブ
ルを備えたダイレクト・メモリ・アクセス・コントロー
ラ(DMAC)と、前記パターン検出部からのパターン検出
信号により前記セレクタの入出力データバスの選択状態
を変化せしめてメモリ切替えを行なうと共に、そのメモ
リ切替えと同期して前記DMACの参照テーブルの参照ブロ
ックを更新せしめる制御手段とを備えたことを特徴とす
るメモリ制御装置。
1. A memory comprising a plurality of memories in which a unique pattern is periodically written and arranged in the same address space,
It comprises a selector for switching the input / output data buses of the plurality of memories, a pattern detection unit for detecting the unique pattern written in each memory, and a set of reference blocks including the transfer address and the transfer word number of the memory. Direct memory access controller (DMAC) equipped with a look-up table and memory switching by changing the selection state of the input / output data bus of the selector according to the pattern detection signal from the pattern detection unit. And a control unit for updating the reference block of the DMAC reference table in synchronization with the memory control device.
JP61057273A 1986-03-14 1986-03-14 Memory controller Expired - Fee Related JPH0797814B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61057273A JPH0797814B2 (en) 1986-03-14 1986-03-14 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61057273A JPH0797814B2 (en) 1986-03-14 1986-03-14 Memory controller

Publications (2)

Publication Number Publication Date
JPS62214769A JPS62214769A (en) 1987-09-21
JPH0797814B2 true JPH0797814B2 (en) 1995-10-18

Family

ID=13050921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61057273A Expired - Fee Related JPH0797814B2 (en) 1986-03-14 1986-03-14 Memory controller

Country Status (1)

Country Link
JP (1) JPH0797814B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58221561A (en) * 1982-06-17 1983-12-23 Matsushita Giken Kk Data type converter for color picture
JPS6062276A (en) * 1983-09-14 1985-04-10 Hitachi Ltd Full-color printer control circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58221561A (en) * 1982-06-17 1983-12-23 Matsushita Giken Kk Data type converter for color picture
JPS6062276A (en) * 1983-09-14 1985-04-10 Hitachi Ltd Full-color printer control circuit

Also Published As

Publication number Publication date
JPS62214769A (en) 1987-09-21

Similar Documents

Publication Publication Date Title
EP0226950B1 (en) Memory access control circuit
JP4071930B2 (en) Synchronous DRAM
JPH0797814B2 (en) Memory controller
JPH08129881A (en) Sdram controller
JPH0140432B2 (en)
JP2552366B2 (en) Bit block transfer controller
JPH01177662A (en) Storage device
JPH04106793A (en) Memory interface circuit
JPH05241939A (en) Access controller for dram
JPH03134750A (en) Dma data transfer device
JPS63163938A (en) Dynamic ram controller
JPH06103026A (en) Memory system
JP2000011645A (en) Semiconductor storage
JPH04153984A (en) Method for controlling dynamic memory
JPH05282858A (en) Semiconductor memory device
JPS6336346A (en) Bank switching circuit
JPH0672910B2 (en) Test pattern memory circuit
JPH03147593A (en) Bit block transfer device
JPH0261749A (en) Data transfer device
JPH04312143A (en) Memory device
JPH03134751A (en) Dma data transfer device
JPS63646A (en) Control circuit for memory access waiting
JPH02188856A (en) Memory access circuit
JPH03259491A (en) Memory controller
JPH03255551A (en) Storage device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees