Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0664527B2 - Memory control circuit - Google Patents
[go: Go Back, main page]

JPH0664527B2 - Memory control circuit - Google Patents

Memory control circuit

Info

Publication number
JPH0664527B2
JPH0664527B2 JP63197511A JP19751188A JPH0664527B2 JP H0664527 B2 JPH0664527 B2 JP H0664527B2 JP 63197511 A JP63197511 A JP 63197511A JP 19751188 A JP19751188 A JP 19751188A JP H0664527 B2 JPH0664527 B2 JP H0664527B2
Authority
JP
Japan
Prior art keywords
plane
data
output
bit
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.)
Expired - Lifetime
Application number
JP63197511A
Other languages
Japanese (ja)
Other versions
JPH0245825A (en
Inventor
茂 飯田
辰之 大浜
政志 八幡
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP63197511A priority Critical patent/JPH0664527B2/en
Publication of JPH0245825A publication Critical patent/JPH0245825A/en
Publication of JPH0664527B2 publication Critical patent/JPH0664527B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明は、ディスプレイ装置におけるグラフィックメモ
リの如く、複数のメモリプレーンを備えたメモリシステ
ムにおいて、データの読出しを制御するメモリ制御回路
に関する。
TECHNICAL FIELD The present invention relates to a memory control circuit for controlling data reading in a memory system including a plurality of memory planes such as a graphic memory in a display device.

(ロ)従来の技術 グラフィックディスプレイでは、例えば、特開昭59−
84295号公報に開示されているようにグラフィック
メモリが通常R,G,B,Iの複数のメモリプレーンで
構成され、各メモリプレーンは共通にデータバスに接続
されている。そして、これら複数のメモリプレーンは、
CPUの異なるアドレス空間上にマッピングされ、CP
Uのリード要求に対しては唯一のメモリプレーンからの
データがデータバスに読出される。
(B) Prior art In the graphic display, for example, Japanese Patent Laid-Open No. 59-
As disclosed in Japanese Patent No. 84295, the graphic memory is usually composed of a plurality of R, G, B, and I memory planes, and each memory plane is commonly connected to a data bus. And these multiple memory planes
Mapped on different address space of CPU, CP
For a U read request, data from the only memory plane is read onto the data bus.

(ハ)発明が解決しようとする課題 複数のメモリプレーンが共通にデータバスに接続されて
いるシステムにおいて、従来と異なりこれら複数のメモ
リプレーンをCPUの同一アドレス空間上にマッピング
すると、CPUから全プレーンに対し、同一データを同
時に書込むことが可能となる。ところが、複数プレーン
からの同時読出しを行うとデータバス上でデータの衝突
が起こるため、読出しの際は、必ず唯一のプレーンを指
定しなければならない。
(C) Problem to be Solved by the Invention In a system in which a plurality of memory planes are commonly connected to a data bus, unlike the conventional case, if these memory planes are mapped in the same address space of the CPU, all the planes are transferred from the CPU. However, it is possible to write the same data at the same time. However, when reading from multiple planes at the same time, data collision occurs on the data bus. Therefore, only one plane must be designated when reading.

そこで、各プレーンに各々対応するビットを有し、該ビ
ットのオンオフによりプレーンの選択を行うプレーン選
択データをレジスタに記憶し、このデータ内容に応じて
メモリプレーンからの読出しをコントロールすることが
考えられる。しかしながら、レジスタへのセットはソフ
トウェアにより行うことになり、このソフトウェアが複
数ビットがオンのプレーン選択データを、誤ってレジス
タにセットしてしまうと、データバスでのデータの衝突
は全く避けられない。
Therefore, it is conceivable to have a bit corresponding to each plane, store plane selection data for selecting a plane by turning the bit on and off, and control the reading from the memory plane according to the content of this data. . However, the setting to the register is performed by software, and if this software mistakenly sets the plane selection data in which a plurality of bits are on to the register, the data collision on the data bus cannot be avoided.

(ニ)課題を解決するための手段 本発明は、データバスに接続され同時読出し可能な複数
のメモリプレーンと、該複数のメモリプレーンに各々対
応するビットを有し、該ビットのオンオフによりプレー
ンの選択を行うプレーン選択データが記憶されるプレー
ンレジスタと、該プレーン選択データに応じて前記複数
メモリプレーンからのデータの読出しをコントロールす
るコントロール回路とを備えたメモリ制御回路におい
て、前記プレーンレジスタから入力される前記プレーン
選択データの複数のオンビットの中から、予め定められ
た優先順位に応じて唯一のオンビットを選択出力するプ
ライオリティ回路を、前記プレーンレジスタとコントロ
ール回路との間に挿入して、上記課題を解決するもので
ある。
(D) Means for Solving the Problem The present invention has a plurality of memory planes connected to a data bus and capable of simultaneous reading, and bits corresponding to the plurality of memory planes. A plane register that stores plane selection data for selection and a control circuit that controls reading of data from the plurality of memory planes according to the plane selection data are input from the plane register. Inserting a priority circuit for selecting and outputting only one on-bit according to a predetermined priority from a plurality of on-bits of the plane selection data between the plane register and the control circuit, It solves the problem.

(ホ)作用 本発明では、ソフトウェアのミスにより、プレーンレジ
スタに誤って複数のプレーンを選択するプレーン選択デ
ータがセットされても、プライオリティ回路によってコ
ントロール回路へは、唯一のプレーンのみを選択するプ
レーン選択データが入力されることとなり、データバス
上でのデータの衝突は防止される。
(E) Action In the present invention, even if plane selection data for selecting a plurality of planes is erroneously set in the plane register due to a software error, the priority circuit selects only one plane for the control circuit. Since data is input, data collision on the data bus is prevented.

(ヘ)実施例 第1図は、本発明の実施例を示すブロック図であり、
(1)は16ビットのCPU、(2)はI,R,G,Bに対す
る4つのプレーン(2a)(2b)(2c)(2d)より成り、全プレー
ンが第5図に示すように、CPU(1)の同一アドレス空
間上にマッピングされたグラフィックメモリ、(3)はア
ドレスバスABUS、(4)〜(8)は16ビットのデータバ
スDBUS、(9)はCPU(1)からのアドレス及びリード
コマンドCMDに応じてリードリクエスト信号RDRE
Q及びストローブ信号STBA〜STBCを出力するデ
コーダ、(10)は指定された4ビットの色データCCI,
CCR,CCG,CCBをセットするための色レジス
タ、(11)は比較リードモードとノーマルリードモードと
のモード切替を指定するモードデータが記憶されるモー
ドレジスタ、(12)は選択すべきプレーンを示すプレーン
選択データPEI,PER,PEG,PEBを記憶する
ためのプレーンレジスタ、(13)はリードリクエスト信号
RDREQ及びモードデータCMP/▲▼に応じ
て、信号RAS、信号CAS、アウトプットイネーブル
信号OEI,OER,OEG,OEB,ラッチパルスR
DLAT、クリア信号RRCLR、タイミング信号IG
/▲▼及びIR/▲▼を出力するシーケンサ回
路である。尚、本実施例では、グラフィックメモリ(2)
はデュアルポートDRAMで構成されている。
(F) Embodiment FIG. 1 is a block diagram showing an embodiment of the present invention.
(1) is a 16-bit CPU, (2) is composed of four planes (2a) (2b) (2c) (2d) for I, R, G, B, and all planes are as shown in FIG. Graphic memory mapped on the same address space of CPU (1), (3) address bus ABUS, (4)-(8) 16-bit data bus DBUS, (9) address from CPU (1) And a read request signal RDRE according to the read command CMD
A decoder for outputting Q and strobe signals STBA to STBC, (10) is designated 4-bit color data CCI,
Color register for setting CCR, CCG, CCB, (11) indicates a mode register for storing mode data designating mode switching between comparison read mode and normal read mode, and (12) indicates a plane to be selected. A plane register for storing plane selection data PEI, PER, PEG, PEB, (13) is a signal RAS, a signal CAS, and an output enable signal OEI, OER according to the read request signal RDREQ and the mode data CMP / ▲ ▼. , OEG, OEB, latch pulse R
DLAT, clear signal RRCLR, timing signal IG
A sequencer circuit that outputs / ▲ ▼ and IR / ▲ ▼. In this embodiment, the graphic memory (2)
Is composed of a dual port DRAM.

又、第1図において、(14)はリードリクエスト信号RD
REQ及びモードデータCMP/▲▼に応じて、
ノーマルリード時、プレーン選択データPEI,PE
R,PEG,PEBの複数のオンビット「1」の中か
ら、予め定められた優先順位に従って唯一のオンビット
を選択出力し、比較リード時は入力プレーン選択データ
をそのまま出力するプレーンプライオリティ回路、(15)
は第1入力端子に入力される色レジスタ(10)の4ビット
出力を、A,B端子に入力されるタイミング信号IG/
▲▼,IR/▲▼に応じてセレクトし信号CM
PEとして出力すると共に、第2入力端子に入力される
プレーンプライオリティ回路(14)の4ビット出力を同様
にタイミング信号に応じてセレクトし信号PEとして出
力するセレクタ、(16)は信号CASを4ビット出力XP
EI,XPER,XPEG,XPEBでマスクし、マス
クした信号CASI,CASR,CASG,CASBを
対応するプレーンに各々送出すると共に、モードデータ
CMP/▲▼に応じ、比較リードモード時、入力
信号CMPEを出力信号CMPENとしてそのまま出力
し、且つ、信号PEによりラッチパルスRDLATをマ
スクし、マスクしたラッチパルスRDLTを送出し、ノ
ーマルリードモード時、「0」レベルの信号を出力信号
CMPENとして出力し、且つ、ラッチパルスRDLA
TをラッチパルスRDLTとしてそのまま出力するコン
トロール回路である。
Further, in FIG. 1, (14) is a read request signal RD.
Depending on REQ and mode data CMP / ▲ ▼
During normal read, plane selection data PEI, PE
A plane priority circuit that selectively outputs only one on-bit from a plurality of on-bits “1” of R, PEG, and PEB according to a predetermined priority order, and outputs the input plane selection data as it is during comparison read, ( 15)
Is the 4-bit output of the color register (10) input to the first input terminal and the timing signal IG /
Select signal CM according to ▲ ▼, IR / ▲ ▼
A selector that outputs as a PE and also selects the 4-bit output of the plane priority circuit (14) input to the second input terminal according to a timing signal and outputs as a signal PE. (16) is a 4-bit signal CAS. Output XP
It masks with EI, XPER, XPEG, XPEB, sends the masked signals CASI, CASR, CASG, CASB to the corresponding planes respectively, and outputs the input signal CMPE in the comparison read mode according to the mode data CMP / ▲ ▼. The signal CMPEN is output as it is, the latch pulse RDLAT is masked by the signal PE, the masked latch pulse RDLT is transmitted, and in the normal read mode, a signal of "0" level is output as the output signal CMPEN and the latch Pulse RDLA
The control circuit outputs T as it is as a latch pulse RDLT.

更に、(17)及び(18)は双方向バッファ、(1900)(1901)〜
(1915)はデータバス(5)及び(6)に読出される16ビット
並列データの各ビット出力VR0,VR1,……,VR
15を各々一端に入力し、他端にコントロール回路(16)
からの信号CMPENを入力するエクスクルーシブOR
ゲート(EX−ORゲート)、(2000)(2001)〜(2015)は
一端にEX−ORゲートの出力C0,C1,……,C1
5を各々入力するORゲート、(2100)(2101)〜(2115)は
自己の出力をORゲート(2000)(2001)〜(2015)の他端に
各々入力し、このORゲートの出力I0,I1,……,
I15をラッチパルスRDLTに応じてラッチするラッ
チ回路であり、これらラッチ回路はクリア信号RRCL
Rによりその内容がクリアされる。
Further, (17) and (18) are bidirectional buffers, (1900) (1901) ~
(1915) is each bit output VR0, VR1, ..., VR of 16-bit parallel data read to the data buses (5) and (6).
Input 15 at each end and control circuit (16) at the other end
Exclusive OR for inputting signal CMPEN from
The gates (EX-OR gates), (2000) (2001) to (2015) have outputs C0, C1, ..., C1 of the EX-OR gates at one end.
The OR gates (2100), (2101) to (2115) each input 5 inputs their own outputs to the other ends of the OR gates (2000) (2001) to (2015), and the outputs I0, I1, ...,
I15 is a latch circuit that latches in response to a latch pulse RDLT, and these latch circuits have a clear signal RRCL.
The contents are cleared by R.

以下、本実施例の動作を、第2図及び第3図のタイミン
グチャートを参照しながら説明する。
The operation of this embodiment will be described below with reference to the timing charts of FIGS. 2 and 3.

先ず、第2図に示す比較リード動作について説明する。First, the comparative read operation shown in FIG. 2 will be described.

CPU(1)からデータバスDBUSを介して、モードレ
ジスタ(11)にモードデータCMP/▲▼として比
較リードモードを示す「1」をセットし、色レジスタ(1
0)に指定色の色データCCI〜CCBを、そして、プレ
ーンレジスタ(12)にプレーン選択データPEI〜PEB
をセットする。例えば、全4プレーンのうちI,R,B
の3プレーンを選択する場合は、第2図(ア)(イ)に示すよ
うに、(PEI,PER,PEG,PEB)として、
(1,1,0,1)をセットする。これらデータのセッ
ト後、グラフィックメモリ(2)のアドレスを指定し、C
PU(1)からリードコマンドCMDを発すると、デコー
ダ(9)からリードリクエスト信号RDREQがシーケン
サ回路(13)に出力される。
From the CPU (1) through the data bus DBUS, "1" indicating the comparison read mode is set as the mode data CMP / ▲ ▼ in the mode register (11), and the color register (1
The color data CCI to CCB of the specified color is stored in (0) and the plane selection data PEI to PEB is stored in the plane register (12).
Set. For example, I, R, B of all 4 planes
When selecting three planes, as shown in FIG. 2 (A) (A), as (PEI, PER, PEG, PEB),
Set (1,1,0,1). After setting these data, specify the address of the graphic memory (2) and
When a read command CMD is issued from PU (1), a read request signal RDREQ is output from the decoder (9) to the sequencer circuit (13).

すると、シーケンサ回路(13)は、このリクエスト信号R
DREQ及び「1」レベルのモードデータCMP/▲
▼に応じて、第2図(カ)に示す信号RASを全プレ
ーン(2a)〜(2d)に共通に出力し、第2図(キ)に示す信号
CASをコントロール回路(16)へ出力する。更に、第2
図(コ),(サ),(シ),(ス)に示すように、対応する各プレー
ンに、所定の順序で時分割にアウトプットイネーブル信
号OEB,OEG,OER,OEIを各々出力し、この
信号に同期して、2ビットのタイミング信号(IG/▲
▼,IR/▲▼)を、第2図(ソ)(タ)に示すよう
に、(0,0)(1,0)(0,1)(1,1)と所定の順序で順次変化させ
て出力する。更に、シーケンサ回路(13)は、アウトプッ
トイネーブル信号の時分割なタイミングに合わせて、ラ
ッチパルスRDLATを第2図(ニ)の如く4回出力す
る。
Then, the sequencer circuit (13) outputs the request signal R
DREQ and "1" level mode data CMP / ▲
According to ▼, the signal RAS shown in FIG. 2 (F) is output commonly to all the planes (2a) to (2d), and the signal CAS shown in FIG. 2 (K) is output to the control circuit (16). . Furthermore, the second
As shown in the figures (U), (S), (S), and (S), the output enable signals OEB, OEG, OER, and OEI are output to the corresponding planes in a predetermined order in a time division manner. In synchronization with this signal, a 2-bit timing signal (IG / ▲
▼, IR / ▲ ▼) are sequentially changed in a predetermined order as (0,0) (1,0) (0,1) (1,1) as shown in Fig. 2 (SO) (TA). And output. Further, the sequencer circuit (13) outputs the latch pulse RDLAT four times as shown in FIG. 2 (d) in accordance with the time-divisional timing of the output enable signal.

又、コントロール回路(14)は、信号CASをプレーンプ
ライオリティ回路(14)の出力XPEI,XPER,XP
EG,XPEBで各々マスクし、マスクしたCAS信号
CASI,CASR,CASG,CASBを各々対応す
るプレーンに送出する。
Further, the control circuit (14) outputs the signal CAS to the outputs XPEI, XPER, XP of the plane priority circuit (14).
The masked CAS signals CASI, CASR, CASG, and CASB are masked by EG and XPEB, respectively, and sent to the corresponding planes.

従って、CAS信号がアクティブな最高4つのプレーン
からB,G,R,Iの順にプレーン毎に、同一位置の1
6画素のデータが、時分割にデータバス(5)及び(6)にV
0〜15及びVR0〜15として読出される。例え
ば、上述の例のように、プレーン選択データによりB,
R,Iの3プレーンが選択されたときは、第2図(セ)に
示すように、B,R,Iの各プレーンの並列16ビット
データが、第1,第3,第4の時分割なタイミングで読
出される。
Therefore, from the maximum four planes in which the CAS signal is active, B, G, R, and I are sequentially arranged in the order of 1 in each plane.
Data of 6 pixels is V on the data buses (5) and (6) in time division.
It is read as D 0-15 and VR 0-15 . For example, as in the above example, B,
When the three planes of R and I are selected, the parallel 16-bit data of each plane of B, R, and I is divided into the first, third, and fourth time divisions, as shown in FIG. It is read at various timings.

一方、セレクタ(15)では、タイミング信号(IG/▲
▼,IR/▲▼)が(0,0)(1,0)(0,1)(1,1)と変化
する際、第2図(チ)に示すように第1出力CMPEN
に、プレーンB,G,R,Iに各々対応する色データC
CB,CCG,CCR,CCIが1ビットづつ時分割に
順に読出されるので、EX−ORゲート(1900)〜(1915)
では、CCBとBプレーンからの並列16ビットデー
タ、CCGとGプレーンからの並列16ビットデータ、
CCRとRプレーンからの並列16ビットデータ、CC
IとIプレーンからの並列16ビットデータとが、各々
時分割に一致検出されることとなる。具体的には、EX
−ORゲート(1900)〜(1915)の出力は、入力されるデー
タが一致すれば「0」、不一致であれば「1」となり、
これら各ビットの一致結果はORゲート(2000)〜(2015)
を介してラッチ回路(2100)〜(2115)に各々保持される。
On the other hand, in the selector (15), the timing signal (IG / ▲
When ▼, IR / ▲ ▼) changes to (0,0) (1,0) (0,1) (1,1), the first output CMPEN as shown in FIG.
, Color data C corresponding to planes B, G, R, and I, respectively.
Since CB, CCG, CCR, and CCI are sequentially read one bit at a time, the EX-OR gates (1900) to (1915).
Then, parallel 16-bit data from CCB and B plane, parallel 16-bit data from CCG and G plane,
Parallel 16-bit data from CCR and R plane, CC
I and the parallel 16-bit data from the I plane will be detected in a time-sharing manner. Specifically, EX
-The outputs of the OR gates (1900) to (1915) are "0" when the input data match, and "1" when they do not match,
The match result of each of these bits is OR gate (2000)-(2015)
It is held in each of the latch circuits (2100) to (2115) via.

即ち、ラッチ回路(2100)〜(2115)には、全プレーンに関
する4回の一致検出前に、信号RRCLR(第2図
(テ))が入力されて、その内容がクリアされ、クリア
後、先ず、CCBとBプレーンデータとの一致検出結果
が、1個目のラッチパルスRDLTに応じてラッチされ
る。ラッチされた内容が一致を示す「0」であれば、C
CGとGプレーンデータとの一致検出結果が、2個目の
ラッチパルスRDLTに応じてラッチされ、以下、ラッ
チ結果が「0」である限り、3個目及び4個目のラッチ
パルスRDLTに応じて、CCRとRプレーンデータと
の一致検出結果及びCCIとIプレーンデータとの一致
検出結果が順次ラッチされる。ところが、ラッチ回路(2
100)〜(2115)には、各々自己の出力を前段のORゲート
を介してフィードバックするフィードバックループが接
続されているので、4回の一致検出のうち1回でも不一
致を示す「1」がラッチされると、その不一致結果
「1」は、その後の一致検出結果にかかわらず、ラッチ
回路に保持されたままとなる。
That is, the latch circuits (2100) to (2115) receive the signal RRCLR (see FIG. 2) before four coincidence detections for all planes.
(TE)) is input to clear the content, and after clearing, the result of matching detection between CCB and B plane data is first latched in response to the first latch pulse RDLT. If the latched content is "0" indicating a match, C
The coincidence detection result between the CG and the G plane data is latched according to the second latch pulse RDLT, and hereinafter, as long as the latch result is “0”, according to the third and fourth latch pulse RDLT. Then, the match detection result between CCR and R plane data and the match detection result between CCI and I plane data are sequentially latched. However, the latch circuit (2
100) to (2115) are connected to the feedback loops that feed back their own outputs via the OR gates in the previous stage, so that "1" indicating a mismatch even at least once in the four match detections is latched. Then, the mismatch result "1" remains held in the latch circuit regardless of the subsequent match detection result.

つまり、16画素分のラッチ回路(2100)〜(2115)には、
各画素の色が指定色であるとき「0」が、そして、指定
色でないとき「1」が保持される。
In other words, in the latch circuits (2100) to (2115) for 16 pixels,
"0" is held when the color of each pixel is the designated color, and "1" is held when it is not the designated color.

依って、CPU(1)には、1回のリードコマンドに対す
る応答として、ラッチ回路(2100)〜(2115)から16画素
分の色判定結果が取込まれることとなる。
Therefore, the CPU (1) receives the color determination result for 16 pixels from the latch circuits (2100) to (2115) as a response to one read command.

ところで、上述の如く、セレクタ(15)では、タイミング
信号(IG/▲▼,IR/▲▼)が(0,0)(1,0)
(0,1)(1,1)と変化する際、第2出力PEに、プレーン選
択データXPEB,XPEG,XPER,XPEIが順
次読出され、この出力により、コントロール回路(16)で
はシーケンサ回路(13)からのラッチパルスRDLATを
マスクする。従って、マスク後のラッチパルスRDLT
においては、非選択プレーンに対応するパルスの送出は
禁止され、非選択プレーンの一致検出結果はラッチ回路
(2100)〜(2115)にラッチされなくなる。
By the way, as described above, in the selector (15), the timing signals (IG / ▲ ▼, IR / ▲ ▼) are (0,0) (1,0)
When it changes from (0,1) to (1,1), the plane selection data XPEB, XPEG, XPER, and XPEI are sequentially read to the second output PE, and this output causes the sequencer circuit (13) in the control circuit (16). ) Masking the latch pulse RDLAT. Therefore, the masked latch pulse RDLT
In the above, sending of the pulse corresponding to the non-selected plane is prohibited, and the match detection result of the non-selected plane is the latch circuit.
It will not be latched by (2100) to (2115).

例えば、プレーン選択データ(PEB,PEG,PE
R,PEI)が、上述の例の如く(1,0,1,1)であるとき
は、出力PEは第2図(ヌ)となり、第2図(ネ)に示すよう
にラッチパルスRDLTの2個目のパルスは送出されな
くなり、従って、ラッチ回路(2100)〜(2115)には非選択
プレーンGを除くプレーンB,R,Iの3プレーンの一
致検出結果が保持される。
For example, plane selection data (PEB, PEG, PE
R, PEI) is (1,0,1,1) as in the above example, the output PE is as shown in FIG. 2 (n), and the latch pulse RDLT of the latch pulse RDLT is as shown in FIG. 2 (ne). The second pulse is no longer transmitted, and therefore the latch circuits (2100) to (2115) hold the coincidence detection results of the three planes B, R, and I except the non-selected plane G.

尚、第2図(ツ)は、n番目の画素のB,R,I3プレー
ンのデータのうち、Rプレーン(2b)のデータが、色デー
タのRプレーンビットCCRと異なる例を示すもので、
n番目のラッチ回路の出力RDnは、ラッチパルスRD
LTの3個目のパルスに応じて、不一致を示す「1」と
なる。
Incidentally, FIG. 2 (T) shows an example in which the data of the R plane (2b) among the data of the B, R, and I3 planes of the nth pixel is different from the R plane bit CCR of the color data.
The output RDn of the nth latch circuit is the latch pulse RD.
In response to the third pulse of LT, it becomes "1" indicating a mismatch.

以上、画素の色判定を行う実施例について説明したが、
画素の濃淡判定も全く同様に行える。
In the above, the embodiment for performing the pixel color determination has been described.
The pixel density determination can be performed in the same manner.

次に、第3図に示すノーマルリード動作について説明す
る。
Next, the normal read operation shown in FIG. 3 will be described.

CPU(1)からデータバスDBUSを介して、モードレ
ジスタ(11)にモードデータCMP/▲▼として、
ノーマルリードモードを示す「0」をセットし、プレー
ンレジスタ(12)に所望の1プレーンを選択するプレーン
選択データをセットする。このセット後、グラフィック
メモリ(2)のアドレスを指定し、CPU(1)からリードコ
マンドCMDを発すると、デコーダ(9)からは比較リー
ドモード時と同様、リードリクエスト信号RDREQが
シーケンサ回路(13)に出力される。
From the CPU (1) via the data bus DBUS to the mode register (11) as mode data CMP / ▲ ▼,
"0" indicating the normal read mode is set, and plane selection data for selecting a desired one plane is set in the plane register (12). After this setting, when the address of the graphic memory (2) is designated and the read command CMD is issued from the CPU (1), the read request signal RDREQ is sent from the decoder (9) to the sequencer circuit (13) as in the comparison read mode. Is output to.

ところが、このノーマルリードモードにおいては、シー
ケンサ回路(13)は、第3図(カ)(キ)に示すように、比較リ
ード時より短かいパルス幅のRAS,CAS信号を発生
し、又、第3図(コ)に示すように各プレーン(2a)〜(2d)
には、同一タイミングでアウトプットイネーブル信号O
EI〜OEBを送出する。更に、このモードでは、第3
図(チ)に示すようにラッチパルスRDLATを1パルス
のみ出力し、タイミング信号IG/▲▼,IR/▲
▼は出力しない。
However, in this normal read mode, the sequencer circuit (13) generates RAS and CAS signals having a pulse width shorter than that in the comparison read, as shown in FIG. Each plane (2a) ~ (2d) as shown in Fig. 3 (U)
Output enable signal O at the same timing.
Send EI to OEB. Furthermore, in this mode, the third
As shown in the figure (h), only one pulse of the latch pulse RDLAT is output and the timing signals IG / ▲ ▼, IR / ▲
▼ is not output.

又、コントロール回路(16)では、リード時と同様、信号
CASをプレーン選択データXPEI〜XPEBでマス
クし、マスクした各CAS信号CASI〜CASBを各
々対応するプレーンに送出する。
Further, in the control circuit (16), the signal CAS is masked with the plane selection data XPEI to XPEB, and the masked CAS signals CASI to CASB are sent to the corresponding planes, as in the case of reading.

従って、グラフィックメモリ(2)からは所望の1プレー
ンのみから並列データが読出され、非選択プレーンから
のデータの読出しは行われない。そして、読出された並
列データは、データバス(5),双方向バッファ(17),デ
ータバス(6)を介して、各ビット出力が比較リード時と
同様EX−ORゲート(1900)〜(1915)に入力されるが、
これらゲートの他端には、レベル「0」に固定された信
号CMPENが入力されるので、EX−ORゲートの出
力には、グラフィックメモリ(2)の所望の1プレーンか
ら読出された並列データがそのまま出力されることとな
る。
Therefore, parallel data is read from the graphic memory (2) from only one desired plane, and data is not read from the non-selected plane. Then, the read parallel data passes through the data bus (5), the bidirectional buffer (17), and the data bus (6), and each bit output is the EX-OR gates (1900) to (1915) as in the comparison read. ), But
Since the signal CMPEN fixed at the level "0" is input to the other ends of these gates, the parallel data read from the desired one plane of the graphic memory (2) is output to the output of the EX-OR gate. It will be output as is.

又、ラッチ回路(2100)〜(2115)は、クリア信号RRCL
Rによるクリア後、唯一のラッチパルスRDLTのみに
応じて、EX−ORゲート(1900)〜(1915)の各出力をラ
ッチするので、結果として1プレーンから読出された並
列データがそのままラッチ回路(2100)〜(2115)にラッチ
される。
Also, the latch circuits (2100) to (2115) use the clear signal RRCL.
After clearing by R, each output of the EX-OR gates (1900) to (1915) is latched according to only one latch pulse RDLT, and as a result, the parallel data read from one plane is directly stored in the latch circuit (2100). ) To (2115).

依って、このモードでは、通常のリード時と全く同様、
リードコマンドに対する応答としてCPU(1)には、選
択した1プレーンからの並列データがそのまま取込まれ
る。
Therefore, in this mode, just like a normal read,
As a response to the read command, the CPU (1) takes in the parallel data from the selected one plane as it is.

例えば、プレーン選択データ(PEI,PER,PE
G,PEB)として(1,0,0,0)をプレーンレジスタ(12)
にセットした場合、EX−ORゲート(1900)〜(1915),
ORゲート(2000)〜(2015),ラッチ回路(2100)〜(2115)
の出力には、第3図(サ),(ス),(ソ)に示すように、いず
れも1プレーン(2a)からの並列データが出力される。
For example, plane selection data (PEI, PER, PE
(1,0,0,0) as a G, PEB) plane register (12)
When set to, EX-OR gates (1900) to (1915),
OR gate (2000) ~ (2015), latch circuit (2100) ~ (2115)
As shown in FIGS. 3 (a), 3 (b), and 3 (d), the parallel data from one plane (2a) is output to the output of FIG.

ところで、プレーンプライオリティ回路(14)は、具体的
には、第4図に示すように、リードリクエスト信号RD
REQとモードデータCMP/▲▼の反転信号を
入力するANDゲート(22)と、このANDゲート(22)の
出力G0を一端に共通に入力し、他端にプレーンレジス
タ(12)からの出力PEI,PER,PEG,PEBを各
々入力するNANDゲート(23),(24),(25)と、PER
と出力G1を入力するANDゲート(26)と、PEGと出
力G1,G2を入力するANDゲート(27)と、PEBと出
力G1,G2,G3を入力するANDゲート(28)とより構
成されている。
By the way, specifically, the plane priority circuit (14), as shown in FIG.
An AND gate (22) for inputting REQ and an inverted signal of the mode data CMP / ▲ ▼, and an output G 0 of this AND gate (22) are commonly input to one end and an output from the plane register (12) to the other end. NAND gates (23), (24) and (25) for inputting PEI, PER, PEG and PEB respectively, and PER
And an output G 1 are inputted into the AND gate (26), PEG and outputs G 1 and G 2 are inputted into an AND gate (27), and PEB and outputs G 1 , G 2 and G 3 are inputted into an AND gate (28 ) And.

従って、PEIが「1」(オン)であればXPER,X
PEG,XPEBが「0」(オフ)に固定され、以下同
時に、PERが「1」であればXPEG及びXPEB
が、そして、PEGが「1」であればXPEBが「0」
に固定される。つまり、PEI,PER,PEG,PE
Bの優先順位に従って、入力される4ビットのうち唯一
のオンビットを選択出力する。依って、例えば、第3図
(ア)(イ)に示すように、プレーン選択データ(PEI,P
ER,PEG,PEB)として、誤って(1,0,0,1)がセ
ットされてしまった場合でも、プレーンプライオリティ
回路(14)により、優先順位の高いPEIのみがオンビッ
トとして出力されるので、データバス(5)には第3図(サ)
の如く1プレーンからの並列データのみが読出されるこ
ととなり、データバス(5)上での衝突は回避される。
Therefore, if PEI is "1" (on), XPER, X
If PEG and XPEB are fixed to "0" (off) and PER is "1" at the same time, XPEG and XPEB
However, if PEG is "1", XPEB is "0".
Fixed to. That is, PEI, PER, PEG, PE
According to the priority order of B, only one ON bit of the four input bits is selected and output. Therefore, for example, FIG.
As shown in (a) and (b), plane selection data (PEI, P
Even if (1,0,0,1) is mistakenly set as (ER, PEG, PEB), the plane priority circuit (14) outputs only the PEI having the higher priority as an on-bit. , The data bus (5) is shown in FIG.
As described above, only the parallel data from one plane is read, and the collision on the data bus (5) is avoided.

(ト)発明の効果 本発明に依れば、ソフトウェアによりプレーンレジスタ
に誤ったデータのセットが為されても、データバス上で
のデータの衝突を確実に防止することができるようにな
り、信頼性の高いシステムを構築できる。
(G) Effect of the Invention According to the present invention, even if erroneous data is set in the plane register by software, it is possible to reliably prevent data collision on the data bus, and to improve reliability. A highly reliable system can be built.

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

第1図は本発明の実施例の構成を示すブロック図、第2
図は実施例における比較リード動作時のタイミングチャ
ート、第3図は実施例におけるノーマルリード動作時の
タイミングチャート、第4図はプレーンプライオリティ
回路の具体回路図、第5図はグラフィックメモリのメモ
リマップである。 (1)…CPU、(2)(2a)〜(2d)…グラフィックメモリ、
(4)〜(8)…データバス、(10)…色レジスタ、(11)…モー
ドレジスタ、(12)…プレーンレジスタ、(13)…シーケン
サ回路、(14)…プレーンプライオリティ回路、(15)…セ
レクタ、(16)…コントロール回路、(1900)〜(1915)…E
X−ORゲート、(2000)〜(2015)…ORゲート、(2100)
〜(2115)…ラッチ回路、(22)(26)〜(28)…ANDゲー
ト、(23)〜(25)…NANDゲート。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG.
FIG. 4 is a timing chart of the comparative read operation in the embodiment, FIG. 3 is a timing chart of the normal read operation in the embodiment, FIG. 4 is a concrete circuit diagram of the plane priority circuit, and FIG. 5 is a memory map of the graphic memory. is there. (1) ... CPU, (2) (2a) to (2d) ... graphic memory,
(4) to (8) ... Data bus, (10) ... Color register, (11) ... Mode register, (12) ... Plane register, (13) ... Sequencer circuit, (14) ... Plane priority circuit, (15) … Selector, (16)… Control circuit, (1900) to (1915)… E
X-OR gate, (2000)-(2015) ... OR gate, (2100)
-(2115) ... Latch circuit, (22) (26)-(28) ... AND gate, (23)-(25) ... NAND gate.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】データバスに接続されCPUの同一アドレ
ス空間上にマッピングされた複数のメモリプレーンと、
該複数のメモリプレーンに各々対応するビットを有し、
該ビットのオンオフによりプレーンの選択を行うプレー
ン選択データが記憶されるプレーンレジスタと、該プレ
ーン選択データに応じて前記複数メモリプレーンからの
データの読出しをコントロールするコントロール回路と
を備えたメモリ制御回路において、前記プレーンレジス
タから入力される前記プレーン選択データの複数のオン
ビットの中から、予め定められた優先順位に応じて唯一
のオンビットを選択出力するプライオリティ回路を、前
記プレーンレジスタとコントロール回路との間に挿入し
たことを特徴とするメモリ制御回路。
1. A plurality of memory planes connected to a data bus and mapped on the same address space of a CPU,
Each having a bit corresponding to each of the plurality of memory planes,
A memory control circuit including a plane register that stores plane selection data for selecting a plane by turning the bit on and off, and a control circuit that controls reading of data from the plurality of memory planes according to the plane selection data. , A priority circuit that selects and outputs only one on-bit from a plurality of on-bits of the plane selection data input from the plane register in accordance with a predetermined priority order. A memory control circuit characterized by being inserted between them.
JP63197511A 1988-08-08 1988-08-08 Memory control circuit Expired - Lifetime JPH0664527B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63197511A JPH0664527B2 (en) 1988-08-08 1988-08-08 Memory control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63197511A JPH0664527B2 (en) 1988-08-08 1988-08-08 Memory control circuit

Publications (2)

Publication Number Publication Date
JPH0245825A JPH0245825A (en) 1990-02-15
JPH0664527B2 true JPH0664527B2 (en) 1994-08-22

Family

ID=16375688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63197511A Expired - Lifetime JPH0664527B2 (en) 1988-08-08 1988-08-08 Memory control circuit

Country Status (1)

Country Link
JP (1) JPH0664527B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61267792A (en) * 1985-05-13 1986-11-27 株式会社ピーエフユー Memory reading system

Also Published As

Publication number Publication date
JPH0245825A (en) 1990-02-15

Similar Documents

Publication Publication Date Title
US4873666A (en) Message FIFO buffer controller
US4873667A (en) FIFO buffer controller
CA1152212A (en) Main storage configuration control system
EP0156316A2 (en) Memory device with data access control
JPH0746507B2 (en) Dual port read / write memory
US5293623A (en) Random access memory based buffer memory and associated method utilizing pipelined look-ahead reading
US5497478A (en) Memory access system and method modifying a memory interleaving scheme so that data can be read in any sequence without inserting wait cycles
US4958346A (en) Memory testing device
KR910003382B1 (en) Semiconductor memory device with register
JPH0245277B2 (en)
US5146572A (en) Multiple data format interface
KR950014901B1 (en) Address decoder which variably selects multiple rows and/or columns and semiconductor memory device using same
US4992979A (en) Memory structure for nonsequential storage of block bytes in multi bit chips
EP0415433B1 (en) Main memory control system
US4479180A (en) Digital memory system utilizing fast and slow address dependent access cycles
US5218688A (en) Data processing system with memory-access priority control
JPH0664527B2 (en) Memory control circuit
US4575815A (en) Data storage unit
EP0383891B1 (en) Pipelined address check bit stack controller
US5394364A (en) High-speed memory readout circuit using a single set of data buffers
JP3201423B2 (en) Memory test equipment
JP2639972B2 (en) Graphic display device
US5542063A (en) Digital data processing system with facility for changing individual bits
EP0217348B1 (en) Memory connected state detecting circuit
JPH077265B2 (en) Graphic display device