JPS63231548A - Writing system for data - Google Patents

Writing system for data

Info

Publication number
JPS63231548A
JPS63231548A JP62063704A JP6370487A JPS63231548A JP S63231548 A JPS63231548 A JP S63231548A JP 62063704 A JP62063704 A JP 62063704A JP 6370487 A JP6370487 A JP 6370487A JP S63231548 A JPS63231548 A JP S63231548A
Authority
JP
Japan
Prior art keywords
data
address
written
memory
bits
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
JP62063704A
Other languages
Japanese (ja)
Inventor
Tomohisa Kobiyama
小桧山 智久
Masayuki Yoshida
正幸 吉田
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 JP62063704A priority Critical patent/JPS63231548A/en
Publication of JPS63231548A publication Critical patent/JPS63231548A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a cheap and highly speedy writing circuit by providing one latch means of one word length to hold the previously written data and a shifter means to input the number of bits for two words and output the number of the bits for one word. CONSTITUTION:When the data of one word are written to an address (n), only the part written in (n) is written into a memory 6 and the part written in n+1 is simultaneously held to a latch means 3. Next, when the data of one word over addresses n+1 and n+2 are written into the address n+1, the part written in the n+1 of the data and the part (this just comes to be the data of one word length when both are joined.) written in the address n+1 of the data before one time held at a previous latch are written into the address n+1 of the memory 6 and the part written in the address n+2 is held at the latch means 3 in the same way as the previous one. By repeating the action, the data over an address boundary can be written to a continuous address without increasing the redundant memory writing cycle.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はコンビエータのメそりのアドレス境界にまたが
る内容を書き換える処理に好適なメモリのアクセス方法
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory access method suitable for rewriting contents spanning address boundaries of a mesori of a combinator.

〔従来の技術〕[Conventional technology]

コンビエータ(以下CPUと記す)のメモリの読み書き
は、一般に読み誉きしたいメモリのアドレスをアドレス
バスな介してメモリに与え、データバスを介してCPU
内のレジスタの内容をメモリに書き、またメモリの内容
をCPU内レジスタに読むという手段をとる。データバ
スはCPUに固有の幅をもち、通常8 、16 、52
ビツト等で構成されてい゛る。このデータバス幅のビッ
ト数をもつデータはワードと呼ばれ、メモリのアクセス
はワード単位またはバイト(8ビツト)単位で行われる
。メモリもワードまたはバイト単位でアドレス付けされ
メモリの読み書きは、従来、アドレス付けされたワード
またはバイト単位で行われていた。従って相隣るアドレ
スの境界にまたがるワードまたはバイト単位の読み畳き
を行うには、相隣るアドレスの各アドレスごとに内容を
読み書きし、2つのアドレスの内容をビット処理により
ワードまたはバイトにまとめるソフト処理を必要とした
To read and write memory in a combinator (hereinafter referred to as CPU), generally, the address of the memory to be read is given to the memory via an address bus, and then the CPU sends the address via a data bus.
This method involves writing the contents of registers within the CPU to memory, and reading the contents of memory to registers within the CPU. The data bus has a width specific to the CPU, typically 8, 16, 52
It is made up of bits, etc. Data having the number of bits equal to this data bus width is called a word, and memory access is performed in units of words or bytes (8 bits). Memory is also addressed in words or bytes, and memory reading and writing have traditionally been performed in addressed words or bytes. Therefore, in order to read and fold words or bytes across the boundaries of adjacent addresses, read and write the contents for each adjacent address, and combine the contents of the two addresses into words or bytes by bit processing. Required soft processing.

このソフト処理を不要とするため、特開昭55−112
644号公報に示される技術が提案されている。
In order to eliminate the need for this software processing,
A technique disclosed in Japanese Patent No. 644 has been proposed.

第2図は前記公報に記載された従来方式である。FIG. 2 shows the conventional system described in the above publication.

11はCPUのアドレスバス、2はデータバス、35は
シフタ回路、6はメモリである。レジスタ50にはシフ
タ35のシフト量と、書き込み制御線4とゲート63を
用いてどのメモリ6にデータををき込むかを示す制御情
報がCPUによって書き込まれる。この方式の特徴は、
2つの番地1例えばルとル+1番地にまたがるデータを
シフタ55で適切なビット位置にずらし、レジスタ30
0制御情報とゲート33により外番地と外+1番地に2
回に分けて書き込むことである。これを第5図で説明す
る。BとCは現在のル番地とル+1番地のメモリ6の内
容である。これにAのデータを図の位置に誓き込むもの
とする。レジスタ60には書き込み制御情報1Dがあら
かじめ書かれており、これとシフタ35に対し1書き込
みデータAをA′のようにシフトする情報も合わせて簀
かれている。このとぎ1番地に誉き込みを行うとB′の
ようにル番地の5ビット分が書きかわる。次に誉き込み
制御情報1Dは図示していない方法により、自動的にD
′のように切りかわるため、ル+1番地に誉き込みを行
うとD′のように5ビット分のデータが畳きかわる。こ
のように2回のメモリライトサイクルによってアドレス
の境界にまたがったデータな誉き込むのが前記公報の方
法である。しかしこの方法では1つのワードな蕾き込む
ために必ず2回のメモリライトサイクルを必要とする。
11 is a CPU address bus, 2 is a data bus, 35 is a shifter circuit, and 6 is a memory. Control information indicating the shift amount of the shifter 35 and which memory 6 to write data into using the write control line 4 and gate 63 is written into the register 50 by the CPU. The characteristics of this method are
The data spanning two addresses 1, for example, RU and RU+1, is shifted to an appropriate bit position by the shifter 55, and the data is transferred to the register 30.
0 control information and gate 33 to the outside address and outside +1 address.
This should be written in parts. This will be explained with reference to FIG. B and C are the contents of the memory 6 at the current addresses 1 and 1+1. Assume that the data of A is inserted into this at the position shown in the figure. Write control information 1D is written in advance in the register 60, and information for shifting one write data A to the shifter 35 as A' is also stored therein. When writing to this first address, 5 bits of the first address are rewritten as shown in B'. Next, the compliment control information 1D is automatically transferred to D by a method not shown.
Since the data changes as shown in D', when the data is written to address 1+1, 5 bits of data is changed as shown in D'. In this way, the method disclosed in the above-mentioned publication reads data that spans the address boundary by performing two memory write cycles. However, this method always requires two memory write cycles to load one word.

これを1回のメモリライトサイクルのみで実現する方法
が特開昭58−111169号公報に記載されている。
A method for realizing this with only one memory write cycle is described in Japanese Patent Application Laid-Open No. 111169/1983.

第4図は同公報による回路である。同図において14は
常に@1”というアドレス情報を出力する定数メモリ、
13は加算器で。
FIG. 4 shows a circuit according to the same publication. In the same figure, 14 is a constant memory that always outputs address information "@1".
13 is an adder.

図示していないCPUのアドレスバス11のアドレスバ
スルに1を加え、1llI&−アドレス情@ル+1をア
ドレスバス15に出力する。17はアドレス選択制御情
報を保持するラッチであり、ラッテ17への査込みは制
御@19によって行われる。ラッチ17の出力はアドレ
ス選択制御縁20を介してマルチプレクサ16に入力さ
れる。ラッチ17にラッチされているデータが、例えば
上位3ビツトが1.下位5ビツトが0であったとすると
、メモリ6のデータの下位5ビツトに対応するメモリチ
ップへは、マルチプレクサ16によってアドレスバス1
2を介してアドレスバス11のアドレス情報ルが与えら
れ、上位3ビツトに対応するメモリチップへはアドレス
バス15のアドレス情報1+1が与えられる。従ってC
PU内レジスタの1バイトのデータをメモリアドレス外
にストアする処理をさせると、実際には、下位5ビツト
はメモリアドレス外の下位5ビツトにストアされるが、
上位3ビツトはメモリアドレス外+1の上位5ビツトに
ストアされる。その際メモリアドレス外の上位5ビツト
、ル+1の下位5ビツトは影響を受けず、上記処理前の
値を保持する。すなわち、相隣るメモリアドレスの境界
にまたがりたデータバス間のビット群を1回のメモリラ
イトサイクルによって書き込めたわけである。
1 is added to the address bus of the address bus 11 of the CPU (not shown), and 1llI&-address information +1 is output to the address bus 15. Reference numeral 17 denotes a latch that holds address selection control information, and input to the latch 17 is performed by control@19. The output of latch 17 is input to multiplexer 16 via address selection control edge 20. For example, if the data latched in the latch 17 is 1. If the lower 5 bits are 0, the multiplexer 16 transfers the address bus 1 to the memory chip corresponding to the lower 5 bits of the data in the memory 6.
The address information of the address bus 11 is applied via the address bus 2, and the address information 1+1 of the address bus 15 is applied to the memory chip corresponding to the upper three bits. Therefore C
When 1 byte of data in a register in the PU is stored outside the memory address, the lower 5 bits are actually stored in the lower 5 bits outside the memory address.
The upper 3 bits are stored in the upper 5 bits of +1 outside the memory address. At this time, the upper 5 bits outside the memory address and the lower 5 bits of the address +1 are not affected and retain the values before the above processing. In other words, a group of bits between data buses spanning boundaries between adjacent memory addresses can be written in one memory write cycle.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は次の点で問題があった。まず特開昭55
−112644 g公報の方法では1ワードの畳き込み
に2回のメモリライトサイクルが必要である。このため
特開昭58−111169号公報の方法に比べて最低で
も2倍の処理時間がかかる点が問題である。これに対し
、特開昭58−111169号公報の方法は、アドレス
の境界にまたがるデータでも境界に収まるデータでも書
き込み時間に差がないものの、メモリ6の各チップごと
に別々のマルチプレクサ16を設ける必要がある。第4
図ではデータバス2を8ビツトとしたが、このようなア
ドレス境界にまたがるデータの誉き込みを必要とする用
途、例えばディスプレイ装置におけるビットマツプメモ
リシステムにおいては、高速な描画処理を行うためにデ
ータバス2を16ビツト以上とすることが多い。いまメ
モリ6に256にビットのダイナミックメモリ(例えば
日立製gx 50256Pなど)を用いたとすると、メ
モリ6への各アドレス@12はそれぞれ9本となり、デ
ータバス2が8ビツトの場合でもアドレス@12の合計
本数は72本、16ビツトの場合には144本となって
しまう。従ってゲートアレイなどのLSI化手法を用い
てマルチプレクサ16や加算器13などを部品化しよう
としてもパッケージの端子数が多すぎて、実用化は離し
い。
The above conventional technology has the following problems. First, JP-A-55
The method disclosed in Publication No. 112644g requires two memory write cycles for convolution of one word. Therefore, the problem is that it takes at least twice as much processing time as the method disclosed in JP-A-58-111169. On the other hand, the method disclosed in Japanese Patent Application Laid-Open No. 58-111169 has no difference in writing time for data that straddles the address boundary or data that falls within the boundary, but it is necessary to provide a separate multiplexer 16 for each chip of the memory 6. There is. Fourth
In the figure, the data bus 2 is 8 bits, but in applications that require the loading of data across such address boundaries, such as bitmap memory systems in display devices, the data bus 2 is 8 bits in order to perform high-speed drawing processing. Bus 2 is often set to 16 bits or more. If we use a 256-bit dynamic memory (such as Hitachi GX 50256P) for memory 6, there will be 9 addresses for each address @12 to memory 6, and even if data bus 2 is 8 bits, the address @12 will be The total number is 72, or 144 in the case of 16 bits. Therefore, even if an attempt is made to make the multiplexer 16, adder 13, etc. into components using an LSI technique such as a gate array, the number of terminals in the package is too large, making it difficult to put them into practical use.

またこのLSI化が可能であってもアドレス線12の配
線本数が多いために、実装技術が間組となってくる。つ
まり特開昭58−111169号の方法は、書き込み処
理速度の点では優れ℃いるが、実現する上で実装上の配
慮がされていたかりた。
Further, even if this LSI implementation is possible, since the number of address lines 12 is large, the mounting technology is difficult to assemble. In other words, the method disclosed in Japanese Patent Application Laid-Open No. 58-111169 is superior in terms of write processing speed, but consideration must have been given to implementation.

本発明の目的は1両者の問題点を除いた。つまり簀き込
み処理時間は特開vifA5B −111169号と同
じにでき、また実装上は特開昭55−112644号と
同様にメモリ6に供給するアドレスバス11を共通化で
きる。アドレス境界にまたがりたデータの書き込み方式
を提案することにある。
The purpose of the present invention is to eliminate both problems. In other words, the categorization processing time can be made the same as in Japanese Patent Application Laid-open No. vifA5B-111169, and in terms of implementation, the address bus 11 for supplying to the memory 6 can be shared as in Japanese Patent Application Laid-Open No. 55-112644. The purpose of this paper is to propose a method for writing data across address boundaries.

〔問題点を解決するための手段〕[Means for solving problems]

従来の方式はアドレスの境界にまたがるデータの曹き込
み処理を1ワ一ド単位で完結させようとしていた。とこ
ろがアドレス境界にまたがってデータを誉き込む用途の
場合、例えばディスプレイ装置におけるビットマツプメ
モリの任意の位置に画像データな査き込むような応用で
は、データの査き込みは、一般に連続したアドレス領域
に対して連続して複数ワード分桁われる。
The conventional method attempts to complete the processing of data that spans address boundaries in units of one word. However, in applications where data is read across address boundaries, for example image data is read into an arbitrary position in the bitmap memory of a display device, data is generally read into a continuous address area. Multiple words are digitized consecutively.

この、連続したアドレス領域に連続し′C簀き込みが行
われるという性質を利用し、前回書き込んだデータを保
持する1ワード長のラッチ手段1個と、2ワ一ド分のビ
ット数を入力して1ワ一ド分のビット数を出力するシフ
タ手段を設けることにより、上記目的は達成される。
Taking advantage of this property that 'C' storage is performed continuously in consecutive address areas, input one word-long latch means to hold the previously written data and the number of bits equivalent to two words. The above object can be achieved by providing a shifter means for outputting the number of bits for one word.

〔作用〕[Effect]

ある1ワード長のデータをアドレスの境界にまたがって
蕾き込もうとした場合、その1ワードのデータはアドレ
ス謁に膏かれる部分とアドレス謁+1に書かれる部分の
2つに分割できる1本発明では、アドレス謁に対して1
ワードのデータな臀きこむと1%にをかれる部分のみが
メモリに書き込1れ、rk+1に誓かれ石部分は、同時
にラッチ手段に保持される。つぎにアドレス謁+1とル
+2にまたがる1ワードのデータを、アドレス謁+1に
書きこむと、データの1+1に書かれる部分と前回ラッ
チに保持されていた1回前のデータのアドレス謁+1に
書かれる部分(これは両方合せるとちょうど1ワード長
のデータとなる)がメモリのアドレス謁+1に書き込ま
れ、アドレスか+2に書かれる部分は、前回と同様にラ
ッチ手段に保持される0以上の動作をくり返すことによ
り。
When an attempt is made to write data of one word length across an address boundary, the one word of data can be divided into two parts: a part to be written to the address boundary and a part to be written to the address boundary +1. Then, 1 for the address audience.
When the data of the word is written, only the 1% portion is written to the memory, and the stone portion corresponding to rk+1 is held in the latch means at the same time. Next, when writing one word of data spanning addresses +1 and +2 to address +1, the part written to 1+1 of the data and the previous data held in the latch last time are written to address +1. The part that is written (this is exactly one word long data when both are combined) is written to address +1 of the memory, and the part written to address +2 is held in the latch means as before. By repeating.

連続したアドレスに、アドレス境界にまたがるデータを
冗長なメモリ書込みサイクルを増やすことなく書き込む
ことができる。
Data spanning address boundaries can be written to consecutive addresses without increasing redundant memory write cycles.

〔実施例〕〔Example〕

以下、本発明の実施例を、図を用いて説明する。。 Embodiments of the present invention will be described below with reference to the drawings. .

第1図は本発明の一実施例である。6はメモリ素子、1
1は図示していないCPUのアドレスバス、2はデータ
バス(パス幅を6ビツトとする)、3は書き込みデータ
を保持するαビット長のラッチ。
FIG. 1 shows an embodiment of the present invention. 6 is a memory element, 1
1 is a CPU address bus (not shown), 2 is a data bus (the path width is 6 bits), and 3 is an α-bit length latch for holding write data.

55はラッテ5の出力8(αビット)とデータバス2(
αビット)を入力とする(入力H2aビット)シフタ(
シフタ350出力9はαビット)である。
55 is the output 8 (α bit) of the ratte 5 and the data bus 2 (
α bit) as input (input H2a bit) shifter (
Shifter 350 output 9 is the α bit).

30はシフタ35のシフト量を保持するレジスタ(点臆
より上の部分)と畳き込みを1ビット単位℃制御する情
報を保持するレジスタ(点縁の下の部分)であり、55
はゲート、4はメモリ60書き込み制御信号である。
30 is a register that holds the shift amount of the shifter 35 (above the dot edge) and a register (a part below the dot edge) that holds information for controlling convolution in 1-bit units;
is a gate, and 4 is a memory 60 write control signal.

第5図、第6図はシフタ350入力と出力の関係の一例
である。ここではバス20幅を8ビツトとして説明する
。シフタ35の入力はデータ/(ス2(8ビツト)とラ
ッチ3の出力8(8ビツト)の計16ビツトであり、第
5図のような並びで入力される。ここではLSbit(
鰻下位ビット)はaO。
5 and 6 are examples of the relationship between the input and output of the shifter 350. Here, the width of the bus 20 will be explained as 8 bits. The input to the shifter 35 is a total of 16 bits, consisting of the data/(S bit 2 (8 bits) and the output 8 (8 bits) of the latch 3, and is inputted in the arrangement shown in FIG. 5. Here, the LS bit (
The lower bit) is aO.

MSbit(最上位ビット)はb7としている。シフタ
65の出力9は同図のようにCOから07までの8ビツ
トであり、LSbitはcO,MsbitはC7とする
The MSbit (most significant bit) is set to b7. As shown in the figure, the output 9 of the shifter 65 is 8 bits from CO to 07, with the LS bit being cO and the Msbit being C7.

第6図は制御縁51を介してシフタ35に与えるシフト
量と出力(CO〜ay)の関係図である。同図で斜縁で
囲んだ部分はラッチ5の信号、すなわち1回面にメモリ
6に誉き込みデータとして与えられた奄のを示す。
FIG. 6 is a diagram showing the relationship between the shift amount applied to the shifter 35 via the control edge 51 and the output (CO~ay). In the same figure, the area surrounded by a diagonal edge indicates the signal of the latch 5, that is, the signal that is given to the memory 6 as data on the first page.

次に第7図(,4) 、 (B)を用いて動作の説明を
する。
Next, the operation will be explained using FIGS. 7(, 4) and (B).

同図(B)はメモリ6をディスプレイ装置のグラフィッ
ク表示メモリ(ビットマツプメモリ)とした例であり、
これにグラフィックバタン「B16」を査き込むことを
考える。縦嶽αはメモリ6のワード(この例では8ビツ
ト)境界を示し、アドレスは向って左から水平方向に1
v地ずつ増えてゆき。
Figure (B) is an example in which the memory 6 is used as a graphic display memory (bitmap memory) of a display device.
I am thinking of adding a graphic button "B16" to this. The vertical axis α indicates the word (in this example, 8 bits) boundary of memory 6, and the address is 1 horizontally from the left.
It increases one by one.

図示していない右端まで到達すると1列下にさがり、再
び左端から右方向に番地が増加するものとする。同図(
、()の60はメモリ6に書き込もうとするパターンを
記憶したパターンメモリであり、この例では水平方向に
4ワード(4バイト)分のデータが垂直方向に11列分
ある。パターンメモリ60はメモリ6の一部であっても
よいし、第1図に図示していない箇所に存在する他のメ
モリであってもよい。同図(A)のバタンメモリ60は
、ここでは上から下にアドレスが1ずつ増加するものと
する。
When it reaches the right end (not shown), it moves down one column, and the addresses increase again from the left end to the right. Same figure (
, 60 in parentheses is a pattern memory that stores a pattern to be written into the memory 6, and in this example, there are 4 words (4 bytes) of data in the horizontal direction and 11 columns in the vertical direction. Pattern memory 60 may be part of memory 6 or may be another memory located at a location not shown in FIG. In the button memory 60 shown in FIG. 6A, it is assumed here that the addresses increase by 1 from the top to the bottom.

また(i、j)の値はメモリ6へ書き込む場所を示す。Further, the value of (i, j) indicates the location to be written to the memory 6.

同図(B)のようにこの例ではバタンメモリ60のデー
タをメモリ6上で右側に3ビツトシフトして誉き込む。
In this example, the data in the button memory 60 is shifted to the right on the memory 6 by 3 bits as shown in FIG. 6B.

これは、第6図のシフト量が6(白い矢印)の場合に相
当する。
This corresponds to the case where the shift amount in FIG. 6 is 6 (white arrow).

第8図は第7図の簀き込みを実現するためのレジスタ3
0の設定の説明図である。レジスタ50のうち、シフタ
35のシフト量を設定するレジスタ501には、上記説
明のように“3′という値を設定する。
Figure 8 shows register 3 for realizing the sorting in Figure 7.
It is an explanatory diagram of setting of 0. Of the registers 50, the value "3' is set in the register 501 for setting the shift amount of the shifter 35, as described above.

第7図(、f)のデータは、上から711に同図(B)
の番=1のノ°=1から4まで、次に1=2のノ゛=1
から4まで、という順番で書きこんでゆく。誉ぎ込みは
3徳類に分けることができる。はじめは■の領域である
。ここでは第8図のレジスタ30の簀ぎ込みマスク60
2に■の値を誉いてからデータを転送する。すると(i
 * j ) = (’ 、’ )のデータは第6図の
白い矢印のようにシフトされ、第8図のゲート53によ
って右側の5ビツト分が書かれる。またメモリ6に書か
れると同時にラッテ3にも第7図(,4)の(1,1)
のデータが保持される(第1図)。
The data in Figure 7 (, f) is shown in Figure 7 (B) from the top to 711.
Number = 1 = 1 to 4, then 1 = 2 = 1
Write them in order from 4 to 4. Honor can be divided into three virtues. The first area is ■. Here, the storage mask 60 of the register 30 in FIG.
After setting the value of ■ to 2, transfer the data. Then (i
The data of *j)=(',') is shifted as indicated by the white arrow in FIG. 6, and the five bits on the right are written by the gate 53 in FIG. Also, at the same time as it is written to memory 6, (1, 1) of Fig. 7 (, 4) is also written to Latte 3.
data is held (Fig. 1).

次にメモリ6の■の領域である。ここでは第8図めレジ
スタ6oの畳き込みマスク302′は■のように設定す
る。これは畳き込みマスク回路がない場合と同じ状態で
ある。ここで第7図(、()の(1,2)のデータを転
送すると、第6図の白(、矢印のように前回転送した(
1.1)の畳き残した3ビツトと今回転送した(1.2
)の5ビツトがメモリ6に膏き込まれる。またそれと同
時に(1,2)のデータはラッチ5に保持される。以下
、■の領域は単にデータを転送するだけで書き込めが行
われる。この間、レジスタ類のh設定等の作業は不要で
ある1から、データの転送はCPUの連続転送命令やD
MA転送などで高速に行うことができる。最後は■の領
域である。ここでは第8図の書き込みマスク502Nは
■のように設定する。すると第6図のg+巌で囲まれた
部分、つまり前回ラッテ3に保持されたデータのみが選
択される。このためメモリ6にはダミーの書き込みを行
うだけで誉き残した5ビツトが書き込まれる。以下i 
=2 、5・・−・・と同様の方法によりメモリ6にバ
タンを転送することができる。このように本発明によれ
ばアドレス境界にまたがるデータの書き込みは、はじめ
と終わりつまり■、■の部分を除いてアドレス境界にま
たがらない通常のデータ転送と同じ処理手順、同じ処理
速度で実現可能である。ここで第7図では■の領域は5
ワードとして説明しているが、実際の応用では50ワ一
ド以上となることも多い。すなわち■と■の部分はそれ
ぞれ1ワードずつであるからデータの書き込みに要する
時間の大部分は■の領域で占められる。本実施例ではゲ
ート33を中心とした書込みマスク回路を設けであるが
、このマスク回路を省略したとしても、大きな領域のデ
ータ書き込みを行う場合には処理時間は殆んど変わらな
い。逆に第7図のような小領域のデータを数多く転送す
る場合にはこのマスク回路が処理時間を低減する。これ
が本実施例特有の効果である。
Next is the area (■) of the memory 6. Here, the convolution mask 302' of the register 6o in FIG. 8 is set as shown in (■). This is the same situation as when there is no convolution mask circuit. Now, if you transfer the data (1, 2) in Figure 7 (, (),
The remaining 3 bits from 1.1) and the 3 bits transferred this time (1.2)
) are injected into the memory 6. At the same time, the data (1, 2) is held in the latch 5. Hereinafter, writing to the area (■) is performed simply by transferring data. During this time, there is no need to perform any work such as setting h of registers.Data transfer is performed using the CPU's continuous transfer command or D
This can be done at high speed using MA transfer or the like. The last area is ■. Here, the write mask 502N in FIG. 8 is set as shown in (■). Then, only the part surrounded by g+Iwao in FIG. 6, that is, the data held in Latte 3 last time, is selected. Therefore, the remaining 5 bits are written into the memory 6 by simply performing dummy writing. Below i
The button can be transferred to the memory 6 using a method similar to =2, 5, . . . . In this way, according to the present invention, data writing that spans address boundaries can be achieved using the same processing procedure and same processing speed as normal data transfer that does not span address boundaries, except for the beginning and end, that is, the parts marked ■ and ■. It is. Here, in Figure 7, the area marked ■ is 5
Although it is explained as a word, in actual applications it is often 50 words or more. That is, since the areas ``■'' and ``■'' each have one word, most of the time required for writing data is occupied by the area ``■''. In this embodiment, a write mask circuit centered around the gate 33 is provided, but even if this mask circuit is omitted, the processing time will hardly change when data is written in a large area. On the other hand, when transferring a large number of small area data as shown in FIG. 7, this mask circuit reduces the processing time. This is an effect unique to this embodiment.

第9図は本発明の第2の実施例である。第1図の第1の
実施例と異るのはCPUのデータバス2のかわりにメモ
リ6からの読み出しデータバス36を入力とする第2の
ラッチ57を設け、その出力をラッテ3とシフタ35の
入力データバス2′とした点である。図示していない外
部の制御手段(ここではそれらを総称してCPUと記す
)がアドレスバス11で番地を指定してメモリ6を読み
出すと、結果は第2のラッチ37に保持される。次にc
PUがアドレスバス11で番地を指定し、メモリ6に書
き込みを行うと、第2のラッテ37とラッテ3のデータ
がシフタ35を通ってメモリ6に書き込まれる。メモリ
6にデータが書き込まれると同時に第2のラッチ37の
内容はラッチ3に保持される。これが第2の実施例に示
す第9図の回路動作である。第10図は第2の実施例の
応用を示す説明図である。ここでは、メモリ6をビット
マツプメモリとし、領域61のバタンデータを領域65
のようなメモリ6のワード境界αにまたがる位置に転送
することを考える。
FIG. 9 shows a second embodiment of the invention. The difference from the first embodiment shown in FIG. 1 is that a second latch 57 which inputs the read data bus 36 from the memory 6 is provided instead of the data bus 2 of the CPU, and its output is sent to the latch 3 and shifter 35. This is the point where the input data bus 2' is set as the input data bus 2'. When an external control means (not shown) (herein collectively referred to as CPU) specifies an address on the address bus 11 and reads out the memory 6, the result is held in the second latch 37. Then c
When the PU specifies an address on the address bus 11 and writes into the memory 6, the data of the second latte 37 and the latte 3 are written to the memory 6 through the shifter 35. At the same time that data is written to the memory 6, the contents of the second latch 37 are held in the latch 3. This is the circuit operation of FIG. 9 shown in the second embodiment. FIG. 10 is an explanatory diagram showing an application of the second embodiment. Here, memory 6 is used as a bitmap memory, and the button data in area 61 is stored in area 65.
Consider transferring to a location across the word boundary α of the memory 6 such as .

このような応用はディスプレイ装置のマルチウィンドウ
処理ではごく一般に行われるものである。
Such applications are very common in multi-window processing for display devices.

回路の動作は第1の実施例と基本的に変わらないので第
2の実施例特有のデータの流れを示す。いま領域61の
はじめのデータはすでに1回前の処理で点線62のよう
にラッチ3に保持されているものとする。CPUが領域
61の次のワードを読み出すと実線63のように読み出
t、たデータは第2のラッテ57に保持される。次にC
PUが領域650次の位置に書き込むと第2のラッテ3
7のデータは実線64のように流れ、ラッチ3に保持さ
れていたデータと共に7フタ35により適切な位置にシ
フトされて領域65に書き込まれる。この書き込みと同
時にラッチ3の内容は第2のラッチ57の内容に書きか
わり、次のデータ転送に備える。あとは第2のラッチ3
7をデータが通ること以外は第1の実施例で説明した動
作と同じである。
Since the operation of the circuit is basically the same as that of the first embodiment, a data flow specific to the second embodiment will be shown. It is assumed that the first data in the area 61 has already been held in the latch 3 as indicated by a dotted line 62 in the previous process. When the CPU reads the next word in the area 61, the read data is held in the second ratte 57 as shown by a solid line 63. Next, C
When PU writes to area 650 next position, second latte 3
The data No. 7 flows as shown by a solid line 64, and is shifted to an appropriate position by the No. 7 lid 35 together with the data held in the latch 3 and written into the area 65. At the same time as this writing, the contents of the latch 3 are replaced with the contents of the second latch 57 in preparation for the next data transfer. Now the second latch 3
The operation is the same as that described in the first embodiment except that the data passes through 7.

ディスプレイ装置では多色表示や多階調表示をするため
に、ビットマツプメモリ(ここではメ七り6)を複数組
持つことが多い。例えば第11図のようにメモリ6を1
組持った場合には1画素あたり2個の色または階調の表
現が可能である。第2の実施例の回路38を同図のよう
に!組、メモリ6に対応させて持てば、メモリ60組数
に無関係に第10図のような処理を同じ処理時間で行う
ことができる。これはもし第2のラッチ37がなければ
、CPUは1回、メモリ6の各組ごとに領域の転送を行
なわねばならないためで、メモリ60組数によらず処理
時間を一定にできるというのは本笑施例特有の効果であ
る。
Display devices often have a plurality of bitmap memories (memories 6 in this case) in order to perform multi-color display or multi-gradation display. For example, as shown in Figure 11, memory 6 is
When used in combination, it is possible to express two colors or gradations per pixel. The circuit 38 of the second embodiment is as shown in the same figure! If the memory sets and memories 6 are provided in correspondence with each other, the processing shown in FIG. 10 can be performed in the same processing time regardless of the number of memory sets (60). This is because if the second latch 37 were not provided, the CPU would have to transfer the area once for each set of memories 6, so the processing time could be kept constant regardless of the number of 60 sets of memories. This is an effect unique to this embodiment.

以上の説明では1ワードを8ビツトとしてきたが、これ
は何ビット(例えば16ビツトや32ビツト)であっ【
も構わない。また、シフタの動作は逆方向にシフトして
も、両方向にシフトしても構わない。これらは本発明の
本質を何ら変えるものではない。
In the above explanation, one word has been assumed to be 8 bits, but how many bits (for example, 16 bits or 32 bits) is this?
I don't mind. Moreover, the operation of the shifter may be shifted in the opposite direction or in both directions. These do not change the essence of the present invention.

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

本発明によれば書き込み処理時間を特開昭58−111
169号公報と同程度にできる(書き込むデータの数を
肩とすると同公報の方式では馬回、特開昭55−112
644号公報の方式では2鶏回、本発明の方式では准+
1回のメモリ6への書き込みサイクルが必要。通常の用
途では寓>1)、また、特開昭55−1i2644号公
報のようにメモリ6へのアドレスバス11を共通化でき
、同公報の回路と比べてもシフタ35の入力数を2倍に
し、データのラッチ5を増加する程度で実現でき1本発
明の主要部分はLSI化にも適した構成となっているた
め、経済的にも安価に高速書き込み回路ができる効果が
ある。
According to the present invention, the write processing time is
It is possible to achieve the same level as that of Publication No. 169 (if the number of data to be written is taken as a shoulder), the method of this publication is
The method of Publication No. 644 has 2 chickens, and the method of the present invention has 2 chickens.
One write cycle to memory 6 is required. In normal use, the address bus 11 to the memory 6 can be shared as in JP-A-55-1i2644, and the number of inputs to the shifter 35 can be doubled compared to the circuit in the same publication. This can be realized by increasing the number of data latches 5. Since the main part of the present invention has a configuration suitable for LSI implementation, it is economically possible to create a high-speed write circuit at low cost.

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

第1図は本発明の第一の実施例を示す図、第2図と第4
図は従来例を説明するための図、第3図はアドレス境界
にまたがるデータの書き込みの説明図、第5図、第6図
、第7図、第8図は第一の実施例の説明図、第9図は本
発明の第2の実施例を示す図、第10図と第11図は第
二の実施例の説明図である。 5・・・・・−・−・・ラッチ 35・・・・・・・・・シフタ 6・・・・・・・・・・・・メモリ 11・・軸・・…アドレスバス 2・・・・・−・・・・・データバス 4・・・・・・・・−・・書き込み制御信号代理人 弁
理士 小 川 勝 男 篤  2 図 不 3 口 罵 4回 第 5 図 第 L  図
FIG. 1 is a diagram showing a first embodiment of the present invention, FIG. 2 and FIG.
The figure is a diagram for explaining the conventional example, Figure 3 is a diagram for explaining writing of data across address boundaries, and Figures 5, 6, 7, and 8 are diagrams for explaining the first embodiment. , FIG. 9 is a diagram showing a second embodiment of the present invention, and FIGS. 10 and 11 are explanatory diagrams of the second embodiment. 5...Latch 35...Shifter 6...Memory 11...Axis...Address bus 2...・・・-・・・・・・Data bus 4・・・・・・・・・・・・・・・Write control signal Agent Patent attorney Masaru Ogawa 2 Unillustrated 3 Verbal abuse 4 times Figure 5 Figure L

Claims (1)

【特許請求の範囲】 1、n(nは自然数)ビットのデータ入力をもつメモリ
システムにおいて、少くともnビットのラッチ手段と、
2nビットを入力とし、nビットを出力とするシフタ手
段を備え、前記ラッチ手段には前記メモリシステムに書
き込むデータを与えるnビットのデータバスが接続され
、前記シフタ手段の入力には前記ラッチ手段の出力と前
記データバスが接続され、前記シフタ手段の出力は前記
メモリシステムのデータ入力に接続され、前記ラッチ手
段は1回前に前記メモリシステムに書き込みを行ったと
きの前記データバス上の情報を保持することを特徴とす
るデータの書き込み方式。 2、前記メモリシステムはそのデータ出力に接続された
第2のラッチ手段を有し、該第2のラッチ手段の出力が
上記データ入力であることを特徴とする特許請求の範囲
第1項記載のデータの書き込み方式。
[Claims] A memory system having a data input of 1, n (n is a natural number) bits, comprising at least n bits of latch means;
Shifter means having 2n bits as input and n bits as output is provided, the latch means is connected to an n-bit data bus that provides data to be written into the memory system, and the input of the shifter means is connected to the latch means. An output of the shifter means is connected to a data input of the memory system, and the latch means stores information on the data bus when writing to the memory system is performed one time. A data writing method characterized by data retention. 2. The memory system has a second latch means connected to its data output, and the output of the second latch means is the data input. Data writing method.
JP62063704A 1987-03-20 1987-03-20 Writing system for data Pending JPS63231548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62063704A JPS63231548A (en) 1987-03-20 1987-03-20 Writing system for data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62063704A JPS63231548A (en) 1987-03-20 1987-03-20 Writing system for data

Publications (1)

Publication Number Publication Date
JPS63231548A true JPS63231548A (en) 1988-09-27

Family

ID=13237029

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62063704A Pending JPS63231548A (en) 1987-03-20 1987-03-20 Writing system for data

Country Status (1)

Country Link
JP (1) JPS63231548A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5353403A (en) * 1991-03-22 1994-10-04 Hitachi Chubu Software, Ltd. Graphic display processing apparatus and method for improving the speed and efficiency of a window system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6162980A (en) * 1984-09-05 1986-03-31 Hitachi Ltd Picture memory peripheral lsi

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6162980A (en) * 1984-09-05 1986-03-31 Hitachi Ltd Picture memory peripheral lsi

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5353403A (en) * 1991-03-22 1994-10-04 Hitachi Chubu Software, Ltd. Graphic display processing apparatus and method for improving the speed and efficiency of a window system

Similar Documents

Publication Publication Date Title
JPS60200287A (en) Memory unit
GB2149157A (en) High-speed frame buffer refresh apparatus and method
JPH077260B2 (en) Image data rotation processing apparatus and method thereof
JPS63163937A (en) Memory controller
JPH058835B2 (en)
JPS63231548A (en) Writing system for data
JPS6334795A (en) Semiconductor storage device
JPS5821272B2 (en) Moji pattern hatsei sochi
JPH0259943A (en) Memory device with operational function
JP2502530B2 (en) Printer
KR950009076B1 (en) Dual port memory and control method
JPS62299892A (en) Access system for character generator memory
JPS5947394B2 (en) Variable length two-dimensional register
JP2769384B2 (en) Arithmetic control IC and information processing device
JPS61296385A (en) Memory
JPH0346833B2 (en)
JPS61120260A (en) Access device for sequential data memory circuit
JPH0619737B2 (en) Memory access device
JPS59151371A (en) Semiconductor memory element
JPH02105264A (en) Memory device for processing graphic data
JPH06131519A (en) Ic card
JPS59162587A (en) Image display
JPS62236195A (en) Memory device
JPH0381880A (en) Method for generating pixel mask and graphic processor
JPS6175444A (en) Register file integrated circuit