JPH04195440A - Semiconductor memory suitable for frame buffer and graphic processor using the same - Google Patents

Semiconductor memory suitable for frame buffer and graphic processor using the same

Info

Publication number
JPH04195440A
JPH04195440A JP2322864A JP32286490A JPH04195440A JP H04195440 A JPH04195440 A JP H04195440A JP 2322864 A JP2322864 A JP 2322864A JP 32286490 A JP32286490 A JP 32286490A JP H04195440 A JPH04195440 A JP H04195440A
Authority
JP
Japan
Prior art keywords
data
semiconductor memory
memory
shift
transfer
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
JP2322864A
Other languages
Japanese (ja)
Inventor
Akihiro Katsura
晃洋 桂
Makoto Fujita
良 藤田
Kazuyoshi Koga
和義 古賀
Yasushi Fukunaga
泰 福永
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2322864A priority Critical patent/JPH04195440A/en
Publication of JPH04195440A publication Critical patent/JPH04195440A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dram (AREA)

Abstract

PURPOSE:To transfer area data at a high speed by providing a shift means, which can shift data read out from a memory element by arbitrary bits, and a mask means which can write only prescribed bits on the memory element. CONSTITUTION:A shift means 105 which can shift data by arbitrary bits and mask means 101 and 108 which can write only prescribed bits on the memory element are incorporated in a semiconductor memory. Data read out from a memory cell 100 in parallel is shifted in the shift means by arbitrary bits and is written only in prescribed write bit positions of the transfer destination. Thus, the area data transfer processing in a frame buffer is executed at a high speed.

Description

【発明の詳細な説明】[Detailed description of the invention]

〔産業上の利用分野〕 本発明は所定の領域の画像データを別の領域に高速に転
送可能でフレームバッファに適した半導体メモリ及びそ
れを用いた図形処理装置に関する。 〔従来の技術〕 表示画面の各画素に対応した情報を記憶するフレームバ
ッファ内で、所定の領域のデータを別の領域に転送する
機能は、BITBLT (Bit BlockTran
ster)機能と呼ばれ図形処理の基本機能として高速
性が要求されている。この機能を実現するものとして、
例えば特開昭60−172085号公報に開示がある。 同公知技術は専用プロセッサを用いて高速処理する手法
を与えているが、画素単位で処理を進めており速度は必
ずしも十分ではない。 一方、半導体メモリの動向に着目すると、画像用デュア
ルポートメモリ (ビデオ出力用シフト機能内蔵メモリ
)に代表されるような論理機能付メモリが注目されてお
り、例えばr1M世代の仕様が固まった画像用デュアル
・ボート・メモリ」日経エレクトロニクスNn431.
pp、115〜1−30に開示がある。同引例によれば
、行単位あるいはブロック単位でのデータをクリアする
機能として、フラッシュ・ライトとブロック・ライトに
ついて開示があるが、領域データの高速転送を可能にす
るような手法に関しては何ら開示はない。 〔発明が解決しようとする課題〕 」1記の従来技術では、フレームバッファ内での領域デ
ータの転送を十分高速に実行し得ないという問題があっ
た。 本発明の目的は、領域データの転送処理を高速に実行可
能な半導体メモリを提供することにある。 また、本発明の別の目的は、上記半導体メモリを用いて
高速に領域データ転送可能な図形処理装置を提供するこ
とにある。 さらに、本発明の別の目的は、上記半導体メモリへの内
蔵に適した小型のシフト手段を提供することにある。 〔課題を解決するための手段〕 上記目的を達成するために、任意ビットのシフト可能な
シフト手段と、所定ビットにのみメモリ素子への書込み
可能なマスク手段とを、半導体メモリに内蔵した。 また、上記別の目的を達成するために、」1記半導体メ
モリを適用したフレームバッファメモリと、それを制御
して領域データの転送を行わしめるプロセッサ手段とを
用いて図形処理装置を構成するようにした。 さらに、上記別の目的を達成するために、複数のシフト
手段を直列に組合せて任意ビットのシフト可能なシフト
手段を得るようにした。 〔作用〕 上記の半導体メモリでは、メモリ素子から並列に読出し
たデータを上記シフト手段にて任意ビットシフトした後
、転送先の所定の書込みビット位置にのみ書込むように
制御する。 また、上記の構成になる図形処理装置では、前記フレー
ムバッファメモリに対し1行ごとの転送を繰返し行わせ
るように制御することによって所定の領域データの転送
を行わせるようにしている。 さらに、複数のシフト手段の組合せによって任意のビッ
トのシフトを行なわしめている。 〔実施例〕 以下、図面を用いて本発明の実施例を詳細に説明する。 第1図は本発明の一実施例を示すもので、半導体メモリ
10は、メモリセル1oO,マスクレジスタ101.デ
ータレジスタ1o2.バレルシフタ103.演算器10
4.シフトレジスタ1o5゜RA (行アドレス)デコ
ーダ106.CA (列アドレス)レジスタ1o7.マ
スク制御回路108゜演算器109.セレクタ110.
演算モードレジスタ111.タイミング制御回路112
、を内蔵している。メモリセル100は2048ビット
×2048ビットの合計4Mビット分の情報を記憶する
。このメモリ素子は2048x2048の画面1面分あ
るいは、204.8 x 1024の画面2面分、ある
いは、1024x1024の画面4面分、等種々の構成
にて使用し得るが、以下の説明では2048X2048
の1面分として使われる場合を想定して説明する。マス
クレジスタ101は、1行(2048ビット)内のどの
ビット位置に書込みを行なうかを制御する情報を記憶す
る。 データレジスタ102は1行分のデータを記憶する20
48ビットのレジスタであり、メモリから読み出された
データあるいは次に書込まれるデータを一時記憶する。 バレルシフタ103は、データレジスタ内の1行分のデ
ータを受け取り、0〜2047ビットの範囲の任意ビッ
ト数分だけデータをシフト(ローテート)する能力を持
つ。演算器104は、データレジスタ102の内容とバ
レルシフタ103の内容との間の演算を行なうもので、
ビットごとの論理演算あるいは、複数ビットのグループ
ごとの算術演算などの機能を持つ。シフトレジスタ1.
05は表示用に出力されるデータの1行分を記憶するも
ので、S C(Shift C1ock)クロックを受
けて順次シリアル出力する。論理構成上は2048ビッ
トのシフトレジスタあるいは2048ビットのデータレ
ジスタとセレクタの組合せで実現される。RAデコーダ
106は11ビットのA、、 10− A O(Add
ress)端子を介して送られる行及び列アドレスの時
分割信号から行アドレスを取出しデコードして、メモリ
素子の1行を選択する。CAレジスタ107は、あるア
クセスサイクルのAIO〜AO端子上の列アドレスを次
のアクセスサイクルまで一時記憶する。マスク制御回路
108は、Al0−AO端子から供給される列アドレス
とCAレジスタ107に記憶された以前の列アドレス情
報を用いて書込みマスク情報を生成しマスクレジスタ1
01に送出する。演算器109は、CAレジスタ107
に記憶された以前の列アドレス情報とAIO〜AO端子
から供給される列アドレス情報との演算を行ないバレル
シフタに供給するシフト量を算出する。セレクタ110
は、データレジスタ102と外部データ端子D3〜Do
(Data)の間のデータ選択を行なうもので。 データ読出し時にはデータレジスタ2048ビットから
4ビットを選択する。選択情報は、マスク制御回路10
8にて列アドレスの下位2ビットを除く上位9ビットを
デコードすることにより得られる。外部からの書込み時
には、この9ビットのデコート情報はマスクレジスタ1
01に送られ所定の4ビットに対して選択的に書込みが
行われる。 演算モードレジスタ111はD3〜Do端子を介して書
込まれる演算モードを記憶するものである。 タイミング制御回路112は外部からの制御信号を受け
て内部の動作に必要なタイミング信号を生成する。外部
から与えられるタイミング信号としては、RA S (
Row Address 5trobe) 、 CS 
(chip(Data  Transterloutp
ut Enable)、S F、、S F。 (special Function) 、がある。こ
こで、SFl。 SFoは特殊アクセスを制御するもので、特に書込み時
の動作としては、語単位(4ビット)書込み、ビット単
位書込み4折半位(2048ビット)書込み、及び演算
モード書込み、の4通りを選択する情報として供給され
る。 第2図は、本発明の実施例としての図形処理装置の構成
概要を示したもので、システムプロセッサ1.システム
メモリ2.レンダリングプロセッサ3.フレームバッフ
ァ4.Zバッファ5.ビデオ制御回路68表示装置7)
から成る。システムプロセッサ1は図形処理装置全体の
制御を司るもので、システムメモリ2上に記憶されたプ
ログラムやデータを用いて処理を進める。グラフィック
ス処理に係る座標変換処理やクリッピング処理も本プロ
セッサで実行する。レンダリングプロセッサ3はシステ
ムプロセッサ1からの制御命令を受けて、フレームバッ
ファ」−に直線や塗りつぶし図形などの種々の図形を発
生する処理を実行する。 また3次元図形の陰面消去処理を実行する際には2バツ
フア5を参照した処理を進める。フレームバッファ4は
表示画面の画素に対応する情報を記憶するものであり、
本発明に係るBITBLT機能内蔵の半導体メモリを用
いて構成される。Zバッファ5は、3次元図形における
各画素データの一番前面にある図形の2座標値を記憶す
るもので、陰面消去処理に用いられる。ビデオ制御回路
6はフレームバッファ4から読み出された情報から色変
換等の処理を得て表示装置7に供給するビデオ信号を生
成する。本実施例では表示装置7は表示画面への表示を
行なうものであるが、印刷装置への出力を行なう場合に
も同様の構成となる。 第3図は、第1図の実施例における半導体メモリの動作
を説明するもので、メモリ素子の1行内の所定部分を転
送する場合を示している。すなわち、転送元のデータ領
域は行アドレスRA sとその領域の先頭位置が列アド
レスCA sで特定され、転送先領域は行アドレスRA
oと列アドレスCAD1及びCAo2を用いて定義され
る。 第4図はその動作タイムチャートを示す。第3図に示す
動作を完結するためにメモリは3回のアクセスサイクル
すなわち、転送先行の読出し、転送先行の読出し及び転
送先行への書込みを要する。 まず、読出しサイクルは一般の外部データ端子への読出
しと共通の動作であり、行アドレスで指定される1行の
データをデータレジスタ102に読出すと同時に、バレ
ルシフタ102では直前のデータレジスタ102の内容
のシフト処理が行なわれる。さらに演算器104では直
前のデータレジスタ102の出力と直前のバレルシフタ
103の出力との間の演算が実行される。第1の読出し
サイクルで行アドレスRAsからの1行分のデータを読
出し、第2の読出しサイクルでは行アドレスRAoから
のデータ読出しが実行される。このとき第1の読出しサ
イクルの指定された列アドレスCA sはCAレジスタ
107に一時記憶されており、減算器109では第2の
読出しサイクルで指定される列アドレスCA、 o 、
とCAレジスタ107に記憶された列アドレスCAsの
減算が行なわれ、バレルシフタ103ではこの減算結果
に相当するビット数分のデータシフトが行なわれる。次
いで第3のサイクルが始まると、演算器104では直前
のデータレジスタ102の内容とバレルシフタ103の
内容の間で演算モードレジスタ111で指定される演算
が実行される。この第3のサイクルは行書込みサイクル
として指定されており、1行内のマスクレジスタ101
で指定されるビット位置への書込みが行なわれる。マス
クレジスタ101には、第2のサイクルで指定されてC
Aレジスタ107に記憶されたCAosと第3のサイク
ルで指定される列アドレスCA D 2とを用いて、C
Ao+からCAo2に至る部分にのみ111 IIが他
の部分には′O″が生成される。以上3サイクルの動作
により、第3図に示す転送動作が実行される。 すなわち、第2図の構成になる図形処理装置においては
、レンダリングプロセッサ3においてフレームバッファ
4に対し上記の3サイクルを発生させるように制御する
のみで非常に高速なデータ転送が可能になる。 第5図は、バレルシフタ103の構成例を示す。 すなわち、1024ビットシフタ201−.512ビッ
トシフタ202.・・、4ピッ1−シフタ203゜2ビ
ットシフタ204,1ビットシフタ205)の合計10
段シフタを直列に接続している。各シフタは、シフト量
レジスタ200からの信号にて制御されており、それぞ
れシフトを行なうかそのまま通過するかを制御する。シ
フト量レジスタ200に記憶したシフト量の各ビットの
情報はそれぞれ各シフトを制御する信号となっている。 こうして入力データは順次シフト量の各ビットの重みに
応じたシフト操作を経て出力される結果、所定ビット数
のシフトが行われることになる。一般にnビットのバレ
ルシフタを構成するには02個のスイッチング素子が必
要となるが、本実施例の方式では高々nXlog、nの
スイッチング素子で構成でき小型になる。すなわち20
48ビットのドレルシフタの場合には従来方式では約4
00万個の素子が必要となるのに対し本方式では約22
000個の′索子で済む。直列に素子を組合せるため従
来方式より低速ではあるが、半導体素子内部で構成する
ため十分高速である。また、従来方式との速度及び素子
数の差を埋める中間的な手法として本実施例では11段
の直列構成としているが、このうちの複数シフタの機能
をまとめて並列な論理構成とすることもできる。すなわ
ち、例えば2ビット及び1ビットのシフタの組合せを代
替するものとしては、0,1,2.3ビットのシフト機
能を持つものを置けば良い。 第6図は、本発明の別の実施例を示すもので。 小型の論理構成を与えるものである。図では第1図と異
なる部分を中心に示している。バレルシフタ103とデ
ータレジスタ102の間にセレクタ300を設け、バレ
ルシフタ103及び演算器104を128ビットと少な
くしたものである。 セレクタ300はマスク制御回路108から供給される
列アドレスの一部のビットを用いて動作する。本実施例
では一度に128ビットまでのデー夕処理しか行なえな
いため第1図の実施例より低速であるが論理規模十分/
hさくなり実現が容易である。半導体メモリ内部で12
8ビットの並列処理を行なうため、外部のプロセッサで
処理する従来方式よりは十分高速である。 第7図はさらに別の実施例を示す。半導体メモリ4oは
マスクレジスタに発生するマスクビット位置の左端と右
端を定義する左位置レジスタ、右位置レジスタ、及びバ
レルシフタのシフト量を記憶するシフト量レジスタを有
する。これらのレジスタには、演算モードレジスタ11
1と同様に外部データ端子り、〜D、を介してデータを
セットするようにしている。マスク発生回路403は、
左位置レジスタ及び右位置レジスタに記憶された情報か
らマスク情報を生成する。また本実施例ではビット単位
の位置情報(左位置、右位置、シフト量)はデータ端子
経由で与えるため、アドレス端子A、〜A、からはワー
ド(4ビット)単位のアドレスを供給するようにしてい
る。CAデコーダ400はこのうちの列アドレスをデコ
ードしてセレクタ110及び他の制御レジスタを制御す
る。 本実施例では各制御レジスタはメモリと同様のアドレス
空間にマツピングされており、RS(Registe 
5elect)信号を用いてメモリあるいは制御レジス
タのいずれかを切換える。 第8図は、そのアドレスマツピングを示したものである
。アドレス空間は、1Mワード(1ワードは4ビット)
のメモリ空間と1Mワードの制御レジスタ空間から成る
。制御レジスタ空間には、左位置レジスタ401.右位
置レジスタ402゜シフト量レジスタ200.演算モー
ドレジスタ111がマツピングされており、それぞれ、
RS信号及びアドレス情報を用いてアクセスされる。 このように第7図の実施例では、アドレスをワード単位
で供給するため従来型のメモリと互換が取り易く、また
、制御レジスタをアドレス空間にマツピングしたためソ
フトウェアによるレジスタアクセスが容易になるという
効果がある。 第9図はさらに別の実施例を示す。本実施例の半導体メ
モリ50は転送制御部500を有するところに特徴があ
る。転送制御部500は転送元アドレス(SA)501
.転送先アドレス(DA)502、転送サイズ(SX、
5Y)503.転送命令レジスタ504演算モードレジ
スタ505を内蔵し、所定の領域データを転送する制御
を行なうものである。第10図はその機能を示すもので
、転送元領域はSA、SX、SYで定義され、転送先は
DAで特定される。ここでSA、DAは行及び列アドレ
スを合成したアドレスである。上記のレジスタはアドレ
ス空間にマツピングさ九でおり外部からのアクセスが可
能である。転送命令レジスタ504に転送命令が書込ま
れると、SAで指定される行のデータがDAで指定され
る行に転送され、次いで次の行へと移り、繰返し所定の
領域データの転送が終了するまで続けられる。すなわち
、この転送は転送制御部500からタイミング制御回路
112に対し順次所定のメモリアクセスを行なわせるよ
うに動作する結果可能となるものである。また、動作中
は外部に対しB S Y (Busy)端子から動作中
を示す信号を出力する。転送制御命令としては、アドレ
スを昇順に更新するもののほか、アドレスを降順に更新
するものなど各種ある。このように本実施例によれば、
1つの命令を発行するだけで容易に矩形領域データ転送
が可能になる。また1本実施例を適用する図形処理装置
においては、プロセッサは上記領域を発行するのみで、
高速の転送処理がメモリ内部で実行される。 次に別の実施例として、第2図のZバッファ5に好適な
Z比較機能を内蔵する半導体メモリについて述べる。第
11図はその構成概要を示す半導体メモリ60は、メモ
リ部600.アドレス制御回路6011バッファ602
.比較器603.タイミング制御回路604から成る。 メモリ部600は512X512X16ビットの情報を
記憶するメモリセルアレイと周辺のバッファ、レジスタ
等を含む部分である。アドレス制御回路601では、行
及び列アドレスの分離及びデコードを行なう。 バッファ602はデータの双方向バッファであり、外部
及びメモリ側のデータ端子の方向制御、接続。 切断の制御を行なう。比較器603は、外部から供給さ
れる書込みデータとメモリからの読出しデータを比較す
る。タイミング制御回路604は各部のタイミング信号
を発生するものであり、特に本発明に係る機能として、
比較器603の出力を受けてメモリへの書込みを制御す
ると共に書込み制御信号(WEOUT)を外部に出力す
ることである。ある画素位置へのZ比較書込みを行なお
うとすると、まず当該アドレスから2値が読出され、比
較器603にて書込みデータとの比較が行なわれ、書込
みZ値がメモリ上のZ値よりも前面にあるか否かにより
書込みが制御される。 第12図は、フレームバッファ及び2バツフアの構成を
示すもので、1くプレーン701.Gプレーン702.
BプL/−:/703.ZプL/−ン704から成る。 ここで2プレーン704には第11図の半導体メモリが
適用されている。3次元図形発生の一過程としである画
素への書込み登行なう場合、各プレーンには同時に書込
みが行なわれようとするが、2プレーン704の半導体
メモリ内部ではZ値比較が行なわれ、その結果により1
IEO1,lT倍信号生成される。この信号はR,G、
Bの各プレーンの書込みを制御する信号として機能して
いる。このように本実施例によれば、3次元のZ値比較
機能をメモリに内蔵した結果、高速処理が可能となると
共に外部回路が不要になり図形処理装置を小型化できる
。 〔発明の効果〕 以上詳細に説明したように、本発明によれば、BITB
LT機能の内蔵メモリにより高速に領域データ転送を実
行できる。また、前記の半導体メモリを適用した図形処
理装置では、プロセッサの処理が容易になる。さらに、
新たなシフト方式により、任意ビットのシフト可能なバ
レルシフタを小型に実現できる。 4)
[Industrial Application Field] The present invention relates to a semiconductor memory that can transfer image data in a predetermined area to another area at high speed and is suitable for a frame buffer, and a graphic processing device using the same. [Prior Art] The function of transferring data in a predetermined area to another area within a frame buffer that stores information corresponding to each pixel on a display screen is called BITBLT (Bit Block Tran).
ster) function, and high speed is required as a basic function of graphic processing. To achieve this function,
For example, it is disclosed in Japanese Patent Application Laid-Open No. 172085/1985. Although this known technique provides a method for high-speed processing using a dedicated processor, processing is performed pixel by pixel, and the speed is not necessarily sufficient. On the other hand, looking at trends in semiconductor memory, memory with logic functions, such as dual-port memory for images (memory with a built-in shift function for video output), is attracting attention. "Dual Boat Memory" Nikkei Electronics Nn431.
The disclosure is in pp. 115-1-30. According to the same cited example, flash write and block write are disclosed as functions for clearing data in rows or blocks, but there is no disclosure regarding a method that enables high-speed transfer of area data. do not have. [Problems to be Solved by the Invention] The prior art described in item 1 has a problem in that it is not possible to transfer area data within the frame buffer at a sufficiently high speed. An object of the present invention is to provide a semiconductor memory that can perform area data transfer processing at high speed. Another object of the present invention is to provide a graphic processing device that can transfer area data at high speed using the semiconductor memory described above. Furthermore, another object of the present invention is to provide a small-sized shift means suitable for being built into the semiconductor memory. [Means for Solving the Problems] In order to achieve the above object, a semiconductor memory is provided with a shift means capable of shifting arbitrary bits and a mask means capable of writing only predetermined bits into a memory element. In addition, in order to achieve the above-mentioned other object, a graphic processing device is constructed using a frame buffer memory to which the semiconductor memory described in 1. is applied, and processor means that controls the frame buffer memory and transfers area data. I made it. Furthermore, in order to achieve the above-mentioned other object, a plurality of shift means are combined in series to obtain a shift means capable of shifting arbitrary bits. [Operation] In the semiconductor memory described above, after the data read out in parallel from the memory element is shifted by arbitrary bits by the shift means, the data is controlled to be written only to a predetermined write bit position of the transfer destination. Further, in the graphic processing apparatus having the above configuration, data in a predetermined area is transferred by controlling the frame buffer memory to repeatedly transfer data row by row. Further, arbitrary bits can be shifted by combining a plurality of shifting means. [Example] Hereinafter, an example of the present invention will be described in detail using the drawings. FIG. 1 shows an embodiment of the present invention, in which a semiconductor memory 10 includes a memory cell 1oO, a mask register 101. Data register 1o2. Barrel shifter 103. Arithmetic unit 10
4. Shift register 1o5°RA (row address) decoder 106. CA (column address) register 1o7. Mask control circuit 108° arithmetic unit 109. Selector 110.
Operation mode register 111. Timing control circuit 112
, is built-in. The memory cell 100 stores information for a total of 4M bits (2048 bits×2048 bits). This memory element can be used in various configurations, such as one 2048 x 2048 screen, two 204.8 x 1024 screens, or four 1024 x 1024 screens, but in the following explanation, it is used for 2048 x 2048 screens.
The explanation will be based on the assumption that it will be used as one page of . Mask register 101 stores information that controls which bit position within one row (2048 bits) is written. The data register 102 stores data for one line 20
A 48-bit register that temporarily stores data read from memory or data to be written next. Barrel shifter 103 has the ability to receive one row of data in the data register and shift (rotate) the data by an arbitrary number of bits in the range of 0 to 2047 bits. The arithmetic unit 104 performs an operation between the contents of the data register 102 and the contents of the barrel shifter 103.
It has functions such as logical operations for each bit and arithmetic operations for each group of multiple bits. Shift register 1.
05 stores one line of data to be output for display, and sequentially outputs it serially in response to an SC (Shift C1ock) clock. In terms of logical configuration, it is realized by a 2048-bit shift register or a combination of a 2048-bit data register and a selector. The RA decoder 106 inputs 11 bits A, , 10-A O (Add
A row address is taken out from a time-division signal of row and column addresses sent through the (res) terminal and decoded to select one row of the memory element. The CA register 107 temporarily stores the column address on the AIO to AO terminals in a certain access cycle until the next access cycle. The mask control circuit 108 generates write mask information using the column address supplied from the Al0-AO terminal and the previous column address information stored in the CA register 107, and writes the mask register 1.
Send to 01. The arithmetic unit 109 has a CA register 107
The shift amount to be supplied to the barrel shifter is calculated by calculating the previous column address information stored in the column address information and the column address information supplied from the AIO to AO terminals. selector 110
is the data register 102 and external data terminals D3 to Do.
This is used to select data between (Data). When reading data, 4 bits are selected from 2048 bits of the data register. The selection information is transmitted to the mask control circuit 10.
8, by decoding the upper 9 bits of the column address excluding the lower 2 bits. When writing from outside, this 9-bit decoding information is stored in mask register 1.
01, and selective writing is performed on predetermined 4 bits. The calculation mode register 111 stores the calculation mode written through the D3 to Do terminals. Timing control circuit 112 receives external control signals and generates timing signals necessary for internal operations. As a timing signal given from the outside, RAS (
Row Address 5trobe), CS
(chip(Data Transteroutp
ut Enable), S F,, S F. (Special Function). Here, SFl. SFo controls special access, and in particular provides information for selecting four types of write operations: word-by-word (4-bit) writing, bit-by-bit writing (2048 bits), and operation mode writing. Supplied as. FIG. 2 shows an outline of the configuration of a graphic processing device as an embodiment of the present invention, in which a system processor 1. System memory 2. Rendering processor 3. Frame buffer 4. Z buffer 5. Video control circuit 68 display device 7)
Consists of. The system processor 1 is responsible for controlling the entire graphic processing device, and uses programs and data stored in the system memory 2 to proceed with processing. This processor also executes coordinate transformation processing and clipping processing related to graphics processing. The rendering processor 3 receives control instructions from the system processor 1 and executes processing for generating various figures such as straight lines and filled figures in the frame buffer. Further, when executing the hidden surface erasing process of the three-dimensional figure, the process is performed with reference to the two-buffer 5. The frame buffer 4 stores information corresponding to pixels on the display screen,
It is constructed using a semiconductor memory with a built-in BITBLT function according to the present invention. The Z buffer 5 stores two coordinate values of the figure at the forefront of each pixel data in a three-dimensional figure, and is used for hidden surface erasing processing. The video control circuit 6 obtains processing such as color conversion from the information read out from the frame buffer 4 and generates a video signal to be supplied to the display device 7. In this embodiment, the display device 7 performs display on a display screen, but the same configuration is used when outputting to a printing device. FIG. 3 explains the operation of the semiconductor memory in the embodiment of FIG. 1, and shows a case where a predetermined portion within one row of memory elements is transferred. That is, the transfer source data area is specified by the row address RA s and the start position of the area is specified by the column address CA s, and the transfer destination area is specified by the row address RA s.
o and column addresses CAD1 and CAo2. FIG. 4 shows its operation time chart. To complete the operation shown in FIG. 3, the memory requires three access cycles: read the transfer predetermined, read the transfer predetermined, and write the transfer predetermined. First, a read cycle is an operation common to reading to a general external data terminal, and at the same time one row of data specified by a row address is read to the data register 102, the barrel shifter 102 reads the contents of the previous data register 102. Shift processing is performed. Furthermore, the arithmetic unit 104 performs an operation between the output of the immediately preceding data register 102 and the immediately preceding output of the barrel shifter 103. In the first read cycle, data for one row is read from row address RAs, and in the second read cycle, data is read from row address RAo. At this time, the column address CA s specified in the first read cycle is temporarily stored in the CA register 107, and the subtracter 109 calculates the column address CA, o , specified in the second read cycle.
and the column address CAs stored in the CA register 107 are subtracted, and the barrel shifter 103 shifts data by the number of bits corresponding to the result of this subtraction. Next, when the third cycle begins, the arithmetic unit 104 executes the arithmetic operation specified by the arithmetic mode register 111 between the contents of the immediately preceding data register 102 and the contents of the barrel shifter 103. This third cycle is designated as a row write cycle, and the mask register 101 in one row
Writing is performed to the bit position specified by . The mask register 101 contains the C data specified in the second cycle.
Using the CAos stored in the A register 107 and the column address CA D 2 specified in the third cycle, the C
111 II is generated only in the portion from Ao+ to CAo2, and 'O'' is generated in the other portions. Through the above three-cycle operation, the transfer operation shown in FIG. 3 is executed. That is, the configuration shown in FIG. In the graphics processing device that becomes An example is shown: 1024-bit shifter 201-.512-bit shifter 202..., 4-pitch 1-shifter 203.
Stage shifters are connected in series. Each shifter is controlled by a signal from the shift amount register 200, and controls whether to perform a shift or pass through as is. The information of each bit of the shift amount stored in the shift amount register 200 serves as a signal for controlling each shift. In this way, the input data is sequentially output through a shift operation according to the weight of each bit of the shift amount, resulting in a shift of a predetermined number of bits. Generally, 02 switching elements are required to construct an n-bit barrel shifter, but in the system of this embodiment, it can be constructed with at most nXlog, n switching elements, resulting in a small size. i.e. 20
In the case of a 48-bit Dorell shifter, the conventional method uses approximately 4
This method requires approximately 22 million elements, whereas this method requires approximately 22 million elements.
000 'chords are enough. Although it is slower than conventional methods because it combines elements in series, it is sufficiently fast because it is constructed inside a semiconductor element. In addition, as an intermediate method to fill the difference in speed and number of elements with the conventional method, this example uses an 11-stage series configuration, but it is also possible to combine the functions of multiple shifters and create a parallel logic configuration. can. That is, for example, as an alternative to the combination of 2-bit and 1-bit shifters, one having a 0-, 1-, and 2.3-bit shift function may be used. FIG. 6 shows another embodiment of the invention. It provides a compact logical configuration. The figure mainly shows parts that are different from FIG. 1. A selector 300 is provided between the barrel shifter 103 and the data register 102, and the barrel shifter 103 and arithmetic unit 104 are reduced to 128 bits. The selector 300 operates using some bits of the column address supplied from the mask control circuit 108. This embodiment can only process up to 128 bits of data at a time, so it is slower than the embodiment shown in FIG. 1, but the logical scale is sufficient.
h and is easy to realize. 12 inside the semiconductor memory
Since it performs 8-bit parallel processing, it is sufficiently faster than the conventional method in which processing is performed using an external processor. FIG. 7 shows yet another embodiment. The semiconductor memory 4o has a left position register and a right position register that define the left and right ends of mask bit positions generated in the mask register, and a shift amount register that stores the shift amount of the barrel shifter. These registers include operation mode register 11.
Similarly to 1, data is set via external data terminals ~D. The mask generation circuit 403 is
Mask information is generated from information stored in the left position register and the right position register. Furthermore, in this embodiment, position information in bit units (left position, right position, shift amount) is provided via the data terminal, so addresses in word (4 bits) units are supplied from address terminals A, ~A. ing. CA decoder 400 decodes the column address and controls selector 110 and other control registers. In this embodiment, each control register is mapped to the same address space as memory, and the RS (Register
5elect) signal is used to switch either the memory or the control register. FIG. 8 shows the address mapping. Address space is 1M words (1 word is 4 bits)
It consists of a memory space of 1M words and a control register space of 1M words. The control register space includes a left position register 401. Right position register 402° shift amount register 200. The calculation mode registers 111 are mapped, respectively.
It is accessed using the RS signal and address information. In this way, the embodiment shown in FIG. 7 has the advantage that it is easily compatible with conventional memories because addresses are supplied in word units, and that register access by software is facilitated because the control registers are mapped to the address space. be. FIG. 9 shows yet another embodiment. The semiconductor memory 50 of this embodiment is characterized in that it includes a transfer control section 500. The transfer control unit 500 uses the transfer source address (SA) 501
.. Transfer destination address (DA) 502, transfer size (SX,
5Y)503. It incorporates a transfer command register 504 and an operation mode register 505 to control the transfer of data in a predetermined area. FIG. 10 shows its function, where the transfer source area is defined by SA, SX, and SY, and the transfer destination is specified by DA. Here, SA and DA are addresses that are a combination of row and column addresses. The above registers are mapped to the address space and can be accessed from outside. When a transfer command is written to the transfer command register 504, the data in the row designated by SA is transferred to the row designated by DA, and then the process moves to the next row, repeatedly completing the transfer of data in a predetermined area. It can be continued until That is, this transfer is possible as a result of the transfer control unit 500 operating the timing control circuit 112 to sequentially perform predetermined memory access. Further, during operation, a signal indicating that the device is in operation is outputted from the B S Y (Busy) terminal to the outside. There are various transfer control commands, including those that update addresses in ascending order and those that update addresses in descending order. As described above, according to this embodiment,
Rectangular area data transfer is easily possible by issuing one command. In addition, in a graphic processing device to which this embodiment is applied, the processor only issues the above area,
High-speed transfer processing is performed inside memory. Next, as another embodiment, a semiconductor memory incorporating a Z comparison function suitable for the Z buffer 5 of FIG. 2 will be described. FIG. 11 shows the outline of the configuration of the semiconductor memory 60. The semiconductor memory 60 includes a memory section 600. Address control circuit 6011 buffer 602
.. Comparator 603. It consists of a timing control circuit 604. The memory section 600 includes a memory cell array that stores 512×512×16 bits of information, peripheral buffers, registers, and the like. Address control circuit 601 separates and decodes row and column addresses. The buffer 602 is a bidirectional data buffer, and controls and connects the data terminals on the external and memory sides. Controls cutting. Comparator 603 compares externally supplied write data and read data from memory. The timing control circuit 604 generates timing signals for each part, and in particular has the following functions according to the present invention:
It receives the output of the comparator 603, controls writing to the memory, and outputs a write control signal (WEOUT) to the outside. When attempting to write a Z comparison to a certain pixel position, first two values are read from the address, and a comparison with the write data is performed in the comparator 603. Writing is controlled depending on whether the FIG. 12 shows the configuration of a frame buffer and two buffers, one plane 701. G plane 702.
Bpl/-:/703. It consists of a Z plane 704. Here, the semiconductor memory shown in FIG. 11 is applied to the 2-plane 704. When writing to a certain pixel as part of the process of three-dimensional figure generation, writing is attempted to be done to each plane at the same time, but a Z value comparison is performed inside the semiconductor memory of the two planes 704, and based on the result, 1
IEO1, 1T times signal is generated. This signal is R, G,
It functions as a signal to control writing of each plane of B. As described above, according to this embodiment, as a result of incorporating the three-dimensional Z-value comparison function into the memory, high-speed processing becomes possible, and an external circuit is not required, making it possible to downsize the graphic processing device. [Effects of the Invention] As explained in detail above, according to the present invention, BITB
The built-in memory with LT function enables high-speed area data transfer. Further, in a graphic processing device to which the semiconductor memory described above is applied, processing by the processor becomes easier. moreover,
The new shift method enables the realization of a compact barrel shifter that can shift arbitrary bits. 4)

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

第1図は1実施例のブロック図、第2図は図形処理装置
のブロック図、第3図、第4図は実施例に対する説明図
、第5図は別の実施例としてバレルシフタの構成図、第
6図はさらに別の実施例のブロック図、第7図、第8図
はさらに別の実施例とその説明図、第9図、第10図は
さらに別の実施例とその説明図、第1−1図、第12図
はさらに別の実施例のブロック図である。 1.01・・マスクレジスタ、103・・・バレルシフ
タ、104・・・演算器。
FIG. 1 is a block diagram of one embodiment, FIG. 2 is a block diagram of a graphic processing device, FIGS. 3 and 4 are explanatory diagrams of the embodiment, and FIG. 5 is a configuration diagram of a barrel shifter as another embodiment. FIG. 6 is a block diagram of yet another embodiment, FIGS. 7 and 8 are yet another embodiment and its explanatory diagram, and FIGS. 9 and 10 are still another embodiment and its explanatory diagram. 1-1 and FIG. 12 are block diagrams of still other embodiments. 1.01...Mask register, 103...Barrel shifter, 104... Arithmetic unit.

Claims (1)

【特許請求の範囲】 1)m行n列のメモリ素子に対してdビットの外部デー
タ端子を介してアクセス可能な半導体メモリにおいて、 前記メモリ素子から読出されたデータをs(s>d)ビ
ット以内の任意ビットシフト可能なシフト手段と、 該シフト手段の出力データのうちの所定のビット(単数
あるいは複数)のみ前記メモリ素子に書込み可能とする
マスク手段と、 を有することを特徴とする半導体メモリ。 2)s=nとなる特許請求の範囲第1項記載の半導体メ
モリ。 3)前記特許請求の範囲第1項または第2項記載におい
て、 前記シフト手段の出力データと前記メモリ素子からの読
出しデータとの間の演算手段を有し、該演算結果を前記
メモリ素子に書込むようにしたことを特徴とする半導体
メモリ。 4)前記特許請求の範囲第1項または第2項または第3
項記載において、 行アドレスと列アドレスとを時分割で受け取るアドレス
端子と、 前のアクセスサイクルの列アドレスの一時記憶手段と、 を有することを特徴とする半導体メモリ。 5)前記特許請求の範囲第4項記載において、あるアク
セスサイクルの列アドレスと前記一時記憶手段に記憶さ
れた前の列アドレスとを用いて前記マスク手段を制御す
ることを特徴とする半導体メモリ。 6)前記特許請求の範囲第4項記載において、あるアク
セスサイクルの列アドレスと前記一時記憶手段に記憶さ
れた前の列アドレスとの減算を行なう減算器を有し、 前記減算器の出力を前記シフト手段のシフト量として供
給することを特徴とする半導体メモリ。 7)前記特許請求の範囲第1項または第2項または第3
項記載において、 前記マスクレジスタを制御する情報として左位置及び右
位置を記憶するマスク位置記憶手段を有し、 前記データ端子を介して該マスク位置記憶手段にデータ
を置数することを特徴とする半導体メモリ。 8)前記特許請求の範囲第1項または第2項または第3
項記載において、 前記シフト手段のシフト量を一時記憶するシフト量記憶
手段を有し、 前記データ端子を介して該シフト量記憶手段にデータを
置数することを特徴とする半導体メモリ。 9)前記特許請求の範囲第3項記載において、前記演算
手段を制御する情報を記憶する演算モード記憶手段を有
し、 前記データ端子を介して該演算モード記憶手段にデータ
を置数することを特徴とする半導体メモリ。 10)前記特許請求の範囲第1項または第2項または第
3項記載において、 転送元領域の位置と転送先領域の位置と転送領域の大き
さをそれぞれ記憶する手段を含み、前記メモリ素子への
アクセスを繰り返して前記領域データの転送を行ない得
るべく制御する転送制御手段を有することを特徴とする
半導体メモリ。 11)前記特許請求の範囲第10項記載において、前記
転送制御手段内の記憶手段に対しては、前記データ端子
を介してデータを置数することを特徴とする半導体メモ
リ。 12)前記特許請求の範囲第7項から第11項の何れか
において、 アドレス情報をメモリもしくは制御レジスタに切換える
信号端子を有し、 複数語にまたがる制御レジスタのいずれかはアドレス情
報を用いて選択しアクセスするようにしたことを特徴と
する半導体メモリ。 13)前記特許請求の範囲第1項から第12項の何れか
において、 前記シフト手段は複数のシフト手段を直列に接続して構
成したことを特徴とする半導体メモリ。 14)メモリ素子のある行データをシフトして別の行に
転送する手段を含む半導体メモリを用いて構成されるフ
レームバッファメモリと、 該フレームバッファメモリをアクセスして図形情報を発
生するプロセッサ手段と、 前記フレームバッファメモリの内容を順次読出して出力
する出力手段と、 を有し、 前記プロセッサ手段にて領域データの転送情報を管理し
、前記フレームバッファメモリに対し1行ごとの転送を
繰返し行わせることによって所定の領域データの転送を
行わせることを特徴とする図形処理装置。 15)2^1(i=0、1、2、・・・、m−1)の数
を複数の部分に分け、それぞれの部分に含まれる数のビ
ット数について選択的にシフト可能なシフト手段を直列
に接続して成る2n−1ビット以内の任意ビットシフト
可能なデータシフト手段。 16)2^0、2^1、2^2、・・・2^m^−^1
ビットのシフト手段を直列に接続して成る特許請求の範
囲第15項記載のデータシフト手段。 17)外部からの書込みデータとメモリ素子からの読出
しデータを比較する比較手段を有し、上記比較結果にて
外部からのデータの書込みを制御することを特徴とする
半導体メモリ。
[Claims] 1) In a semiconductor memory in which a memory element arranged in m rows and n columns can be accessed via a d-bit external data terminal, the data read from the memory element is divided into s (s>d) bits. A semiconductor memory comprising: a shift means capable of shifting any bit within the range; and a mask means capable of writing only a predetermined bit (single or plural) of the output data of the shift means into the memory element. . 2) The semiconductor memory according to claim 1, wherein s=n. 3) The device according to claim 1 or 2, further comprising an arithmetic means for calculating between the output data of the shifting means and the read data from the memory element, and writing the arithmetic result to the memory element. 1. A semiconductor memory characterized by being made to have a large memory capacity. 4) Claim 1 or 2 or 3
2. A semiconductor memory according to item 1, comprising: an address terminal that receives a row address and a column address in a time-sharing manner; and temporary storage means for a column address of a previous access cycle. 5) The semiconductor memory according to claim 4, wherein the masking means is controlled using a column address of a certain access cycle and a previous column address stored in the temporary storage means. 6) The method according to claim 4, further comprising a subtracter for subtracting a column address of a certain access cycle from a previous column address stored in the temporary storage means, and the output of the subtracter is used as the A semiconductor memory characterized in that the amount is supplied as a shift amount to a shift means. 7) Claim 1 or 2 or 3
In the above description, the mask register has a mask position storage means for storing a left position and a right position as information for controlling the mask register, and data is stored in the mask position storage means via the data terminal. semiconductor memory. 8) Claim 1 or 2 or 3
The semiconductor memory according to item 1, further comprising shift amount storage means for temporarily storing the shift amount of the shift means, and data is stored in the shift amount storage means via the data terminal. 9) In claim 3, the method further comprises a calculation mode storage means for storing information for controlling the calculation means, and data is stored in the calculation mode storage means via the data terminal. Features of semiconductor memory. 10) The method according to claim 1, 2, or 3, further comprising means for respectively storing the position of the transfer source area, the position of the transfer destination area, and the size of the transfer area, and storing the transfer area in the memory element. 1. A semiconductor memory comprising transfer control means for controlling the area data to be transferred by repeatedly accessing the area data. 11) The semiconductor memory according to claim 10, wherein data is stored in the storage means in the transfer control means via the data terminal. 12) In any one of claims 7 to 11, the device has a signal terminal for switching address information to a memory or a control register, and one of the control registers spanning multiple words is selected using the address information. A semiconductor memory characterized in that it can be accessed. 13) The semiconductor memory according to any one of claims 1 to 12, wherein the shift means is configured by connecting a plurality of shift means in series. 14) A frame buffer memory configured using a semiconductor memory including means for shifting data in one row of memory elements and transferring it to another row; and processor means for accessing the frame buffer memory and generating graphic information. , output means for sequentially reading and outputting the contents of the frame buffer memory, the processor means managing area data transfer information and causing the frame buffer memory to repeatedly transfer line by line. A graphic processing device characterized in that data in a predetermined area is transferred by transferring data in a predetermined area. 15) Shifting means that divides the number 2^1 (i=0, 1, 2, ..., m-1) into multiple parts and can selectively shift the number of bits included in each part. A data shift means capable of shifting arbitrary bits within 2n-1 bits, which is formed by connecting these in series. 16) 2^0, 2^1, 2^2, ...2^m^-^1
16. The data shifting means according to claim 15, comprising bit shifting means connected in series. 17) A semiconductor memory comprising a comparison means for comparing data written from the outside with data read from a memory element, and controlling writing of data from the outside based on the comparison result.
JP2322864A 1990-11-28 1990-11-28 Semiconductor memory suitable for frame buffer and graphic processor using the same Pending JPH04195440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2322864A JPH04195440A (en) 1990-11-28 1990-11-28 Semiconductor memory suitable for frame buffer and graphic processor using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2322864A JPH04195440A (en) 1990-11-28 1990-11-28 Semiconductor memory suitable for frame buffer and graphic processor using the same

Publications (1)

Publication Number Publication Date
JPH04195440A true JPH04195440A (en) 1992-07-15

Family

ID=18148463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2322864A Pending JPH04195440A (en) 1990-11-28 1990-11-28 Semiconductor memory suitable for frame buffer and graphic processor using the same

Country Status (1)

Country Link
JP (1) JPH04195440A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010044786A (en) * 1994-01-21 2010-02-25 Renesas Technology Corp Semiconductor integrated circuit device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010044786A (en) * 1994-01-21 2010-02-25 Renesas Technology Corp Semiconductor integrated circuit device

Similar Documents

Publication Publication Date Title
US5001672A (en) Video ram with external select of active serial access register
EP0197412B1 (en) Variable access frame buffer memory
KR970011222B1 (en) Method and apparatus for arranging access of vram to provide accelerated writing of vertical lines to an output display
US5680361A (en) Method and apparatus for writing to memory components
EP0398510B1 (en) Video random access memory
JPH01111279A (en) Reading/writing memory having multiplex train selection mode
JP3181112B2 (en) Flexible graphic interface circuit and method with large endian and small endian modes
EP0279693B1 (en) Multi-plane video ram
JPH0375873B2 (en)
JP2593060B2 (en) Dynamic random access memory, dynamic random access memory access method and system
JPS61267148A (en) Memory circuit
US5257237A (en) SAM data selection on dual-ported DRAM devices
JPH09198862A (en) Semiconductor memory
JPH04195440A (en) Semiconductor memory suitable for frame buffer and graphic processor using the same
JP3550510B2 (en) Dynamic random access memory device, data transfer system and data writing method
JP2735058B2 (en) Video display memory
JP2003068072A (en) Frame memory circuit
JPH0544680B2 (en)
JP2000172242A (en) Image display control device
US5812829A (en) Image display control system and memory control capable of freely forming display images in various desired display modes
JPH08202324A (en) Picture data storage controller
SU1709385A1 (en) Video signal generator
JP2710926B2 (en) Semiconductor memory
JPH0695272B2 (en) Image display device
JPH03183097A (en) Semiconductor memory device