JPH03217956A - Data writing control system - Google Patents

Data writing control system

Info

Publication number
JPH03217956A
JPH03217956A JP1337390A JP1337390A JPH03217956A JP H03217956 A JPH03217956 A JP H03217956A JP 1337390 A JP1337390 A JP 1337390A JP 1337390 A JP1337390 A JP 1337390A JP H03217956 A JPH03217956 A JP H03217956A
Authority
JP
Japan
Prior art keywords
data
write
local memory
address
input
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
JP1337390A
Other languages
Japanese (ja)
Inventor
Kazuyasu Nonomura
野々村 一泰
Takahito Noda
野田 敬人
Yuji Kamisaka
神阪 裕士
Toru Watabe
徹 渡部
Takumi Maruyama
拓巳 丸山
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1337390A priority Critical patent/JPH03217956A/en
Publication of JPH03217956A publication Critical patent/JPH03217956A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To write data into a local memory in a single cycle by performing the division of the data received via a data bus into local memories and the generation of write addresses to those local memories corresponding to each data within a single cycle. CONSTITUTION:The data received via a data bus 2 are divided into the write data units by a data dividing circuit 6 within the single unit access time. These write data units are applied to the data write input of the corresponding local memories 41-4n via the corresponding write data unit input circuits 81-8n respec tively. Meanwhile the write addresses are supplied to the write address inputs of the memories 41-4n from a write address generating circuit 10 within the single unit access time. Then the write data units are written into the memories 41-4n.

Description

【発明の詳細な説明】 〔目 次〕 〔概要〕 〔産業上の利用分野〕 〔従来の技術〕 〔発明が解決しようとする課題〕 〔課題を解決する手段〕 〔実施例〕 本発明の一実施例を示す図(第2図) [発明の効果] [概 要] 外部データバス等から、そのデータ幅と異なるデータア
クセス幅のローカルメモリへデータを直接転送し得るデ
ータバスからのデータ書き込み制御方式に関し、 データバスの転送速度と同一速度でデータをローカルメ
モリなどへ転送することを目的とし、データバスのデー
タ幅と所定の値だけ小さい同一の書き込みデータ単位の
複数個のローカルメモリへ、データバスからのデータを
書き込むディジタルデータ処理システムにおいて、分割
制御信号に応答してデータバスからのデータを複数個の
ローカルメモリのデータ書き込み入力の各々へ1単位ア
クセスタイム内に分割するデータ分割回路と、入力制御
信号に応答してデータ分割回路の出力を対応メモリのデ
ータ書き込み入力へ接続する書き込みデータ単位入力回
路と、複数個のローカルメモリの各々のアドレス入力へ
接続され、書き込みアクセスでの分割に応じて決まる各
ローカルメモリの書き込みアドレスを対応アドレス入力
へl単位アクセスタイム内に出力する書き込みアドレス
発生回路と、書き込みアクセスに応答して分割制御信号
及び入力制御信号を出力する書き込み入力制御回路とを
設けて構成した。
[Detailed Description of the Invention] [Table of Contents] [Overview] [Industrial Application Fields] [Prior Art] [Problems to be Solved by the Invention] [Means for Solving the Problems] [Examples] Parts of the Present Invention Diagram showing an embodiment (Figure 2) [Effects of the invention] [Overview] Data write control from a data bus that can directly transfer data from an external data bus, etc. to a local memory with a data access width different from the data width of the external data bus. The purpose of this method is to transfer data to a local memory, etc. at the same speed as the data bus transfer speed. In a digital data processing system that writes data from a bus, a data division circuit divides data from the data bus into each of data write inputs of a plurality of local memories within one unit access time in response to a division control signal; a write data unit input circuit that connects the output of the data division circuit to the data write input of the corresponding memory in response to an input control signal; and a write data unit input circuit that connects the output of the data division circuit to the data write input of the corresponding memory; a write address generation circuit that outputs a write address of each local memory determined by the input address to a corresponding address input within l unit access time, and a write input control circuit that outputs a division control signal and an input control signal in response to a write access. It was composed of

〔産業上の利用分野〕[Industrial application field]

本発明は、外部データバス等から、そのデータ幅と異な
るデータアクセス幅のローカルメモリへデータを直接転
送し得るデータ書き込み制御方式に関する。
The present invention relates to a data write control method that allows data to be directly transferred from an external data bus or the like to a local memory having a data access width different from the data width.

データ処理システムにおいては、そこで処理されるデー
タをデータバスを介してその所要構成要素間で転送して
必要なデータ処理を行なうようにしている。そして、デ
ータ処理速度に対する高速化要求は、そのデータ処理に
係わる各構成要素の動作速度等の高速化要求となって現
れている。データバスもその動作速度等の高速化要求の
対象となっている。データバスに対する高速化要求は、
そのプロセッサの外部データバスのデータ幅への拡張要
求である。
In a data processing system, data to be processed therein is transferred between required components via a data bus to perform necessary data processing. The demand for higher data processing speeds has manifested itself in demands for faster operating speeds of each component involved in data processing. Data buses are also subject to demands for higher operating speeds. The demand for faster data buses is
This is a request to expand the data width of the external data bus of the processor.

この外部データバスのデータ幅の拡張に、プロセッサ内
のバス幅も合わせてしまうと、そのハードウェア量が増
大するばかりでなく、プロセッサにおける基本演算速度
の低下を招来する。その兼ね合いを図る手段として、外
部データバスのデータ幅と、内部データバスのデータ幅
とを異ならしめてシステム内のデータ転送系を構築して
いる。
If the data width of the external data bus is expanded to match the bus width within the processor, not only will the amount of hardware increase, but the basic calculation speed of the processor will decrease. As a means of achieving this balance, a data transfer system within the system is constructed by making the data width of the external data bus and the data width of the internal data bus different.

現在、標準的に用いられているデータバスは、4バイト
程度である。
The data bus currently in standard use is about 4 bytes.

〔従来の技術〕[Conventional technology]

前述のように、システム内の外部データバスのデータ幅
と、内部データバスのデータ幅とを異ならしめる場合に
おける外部データバスと、内部データバスとの間に読み
出しバッファを設けてデータの相互乗り入れを行なって
、前記データ幅の差異を吸収させるようにしている。前
記外部データバスには、メモリなどが接続され、前記内
部データバスには、レジスタ、ローカルメモリなどが接
続される。
As mentioned above, when the data width of the external data bus and the data width of the internal data bus in the system are different, a read buffer is provided between the external data bus and the internal data bus to allow data to be transferred to each other. This is done to absorb the difference in data width. A memory or the like is connected to the external data bus, and a register, a local memory, or the like is connected to the internal data bus.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

外部データバスと、内部データバスとの間に読み出しバ
ッファを設けるシステム構成にすると、外部データを一
旦読み出しバッファにセットした後に、そのデータを内
部データバス幅に分けて内部メモリなどへ転送しなけれ
ばならない。又、内部メモリなどからの外部データバス
への転送においても、外部データバス幅のデータを読み
出しバッファにセットした後に、そこからデータを読み
出さねばならない。そのため、外部データバスの転送速
度の向上は図れるが、データ転送命令自体の処理速度の
向上は殆ど見られない。
When a system configuration is configured in which a read buffer is provided between the external data bus and the internal data bus, it is necessary to set the external data in the read buffer and then divide the data into internal data bus widths and transfer them to internal memory, etc. No. Furthermore, in transferring data from an internal memory or the like to an external data bus, it is necessary to set data corresponding to the width of the external data bus in a read buffer and then read the data from there. Therefore, although the transfer speed of the external data bus can be improved, there is almost no improvement in the processing speed of the data transfer command itself.

本発明は、斯かる問題点に鑑みて創作されたもので、デ
ータバスの転送速度と同一速度でデータを内部メモリな
どへ転送し得るデータ書き込み制御方式を捉供すること
をその目的とする。
The present invention was created in view of such problems, and an object of the present invention is to provide a data write control method that can transfer data to an internal memory or the like at the same speed as the data bus transfer speed.

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

第1図は本発明の原理ブロック図を示す。この図に示す
ように、本発明は、データバス2のデー?幅と所定の値
だけ小さい同一の書き込みデータ単位の複数個のローカ
ルメモリ4=  (i=1.2,・・・,n)へ、前記
データバス2からのデータを書き込むディジタルデータ
処理システムに次の構成要素を設けて構成される。その
構成要素は、分割制御信号に応答して前記データバス2
からのデータを前記複数個のローカルメモリ4iのデー
タ書き込み入力の各々へ1単位アクセスタイム内に分割
するデータ分割回路6と、入力制御信号に応答して前記
データ分割回路6の出力を対応メモリのデータ書き込み
入力へ接続する書き込みデータ単位入力回路8■と、前
記複数個のローカルメモリ4iの各々・のアドレス入力
へ接続され、書き込みアクセスでの前記分割に応じて決
まる各ローカルメモリの書き込みアドレスを対応アドレ
ス入力へ前記1単位アクセスタイム内に出力する書き込
みアドレス発生回路10と、前記書き込みアクセスに応
答して前記分割制御信号及び入力制御信号を出力する書
き込み入力制御回路12である。
FIG. 1 shows a block diagram of the principle of the present invention. As shown in this figure, the present invention provides data on the data bus 2. Next, the digital data processing system writes data from the data bus 2 to a plurality of local memories 4 = (i = 1.2, . . . , n) of the same write data unit whose width is smaller by a predetermined value. It is configured by providing the following components. The components are configured to divide the data bus 2 in response to a split control signal.
a data division circuit 6 that divides data from the data into each of the data write inputs of the plurality of local memories 4i within one unit access time; A write data unit input circuit 8■ is connected to the data write input, and is connected to the address input of each of the plurality of local memories 4i, and corresponds to the write address of each local memory determined according to the division in write access. These are a write address generation circuit 10 that outputs an output to the address input within the one unit access time, and a write input control circuit 12 that outputs the division control signal and the input control signal in response to the write access.

〔作 用] データバス2から転送されて来てデータ分割回路6へ入
力されたデータは、該データ分割回路6で1単位アクセ
スタイム内に書き込みデータ単位の各々に分割される。
[Operation] Data transferred from the data bus 2 and input to the data division circuit 6 is divided into write data units within one unit access time by the data division circuit 6.

分割された書き込みデータ単位の一部、又は全部にダミ
ーピットを含んでもよい。その各書き込みデータ単位は
、対応する書き込みデータ単位入力回路8、を経てそれ
対応のローカルメモリのデータ書き込み入力へ与えられ
る。
Dummy pits may be included in some or all of the divided write data units. Each write data unit is applied to the data write input of its corresponding local memory via a corresponding write data unit input circuit 8.

その各ローカルメモリの書き込みアドレス入力へは、書
き込みアドレス発生回路10から書き込みアドレスが前
記1単位アクセスタイム内に供給されて来るので、その
書き込みアドレスで指定される当該ローカルメモリの記
憶位置に該ローカルメモリのデータ書き込み入力へ入力
されて来た前記書き込みデータ単位は書き込まれる。
Since a write address is supplied from the write address generation circuit 10 to the write address input of each local memory within the one unit access time, the storage location of the local memory specified by the write address is stored in the local memory. The write data unit input to the data write input of is written.

従って、データバス2のデータ幅と異なる書き込みデー
タ単位のローカルメモリの各々に、データバス2を経て
転送されて来たデータは、ディジタルデータ処理システ
ム内のソフトウエア制御系によるソフト的逐一の制御を
要することなしに、前記1単位アクセスタイム内に書き
込むことが出来る。
Therefore, the data transferred via data bus 2 to each local memory in write data units different from the data width of data bus 2 is subject to software control one by one by the software control system in the digital data processing system. Writing can be performed within the one unit access time without any need.

〔実施例] 第2図は本発明の一実施例を示す。この実施例は、コン
ピュータシステムにおける実施例であり、ローカルメモ
リの数をnとし、ローカルメモリアドレスの下位ビット
の数をNで表すと、fog. n一Nとする関係でコン
ピュータシステムを構成する場合のメモリ数を2で、l
og.2=N=1とする場合についての実施例である。
[Example] FIG. 2 shows an example of the present invention. This embodiment is an embodiment in a computer system, where the number of local memories is n, and the number of lower bits of the local memory address is represented by N, fog. When configuring a computer system with the relationship n - N, the number of memories is 2, l
og. This is an example for the case where 2=N=1.

その外部データバス20はシフタ22に接続されるが、
外部データバス20には、例えばメモリ等(図示せず)
が接続される。シフタ22は、内部データバス24を介
してマルチプレクサ30の一方入力へ、又内部データバ
ス26を介してマルチプレクサ32の一方入力へ接続さ
れている。シフタ22には、そのシフト制御信号が制御
部34から与えられる。
The external data bus 20 is connected to a shifter 22,
The external data bus 20 includes, for example, a memory (not shown), etc.
is connected. Shifter 22 is connected to one input of multiplexer 30 via internal data bus 24 and to one input of multiplexer 32 via internal data bus 26. The shift control signal is given to the shifter 22 from the control section 34 .

?、マルチプレクサ30及び32の他方入力にはALU
3 6の出力が内部データバス28を介して供給される
。マルチプレクサ30の出力は、ローカルメモリ4Iの
書き込みデータ入力へ与えられ、マルチプレクサ32の
出力は、ローカルメモリ42の書き込みデータ入力へ与
えられる。ローカルメモリ41、及びローカルメモリ4
■の出力はマルチブレクサ46を経てALU36へ供給
される。
? , the other input of multiplexers 30 and 32 has an ALU
36 outputs are provided via internal data bus 28. The output of multiplexer 30 is applied to the write data input of local memory 4I, and the output of multiplexer 32 is applied to the write data input of local memory 42. Local memory 41 and local memory 4
The output of (2) is supplied to the ALU 36 via the multiplexer 46.

ローカルメモリアドレスセット域40の上位ビットアド
レス出力は、ローカルメモリ4■の書き込みアドレス入
力へ直接供給されるが、ローカルメモリ4Iの書き込み
アドレス入力へは+1加算回路42を経たもの、又はそ
のままのものがマルチプレクサ44を経て供給される。
The upper bit address output of the local memory address set area 40 is directly supplied to the write address input of the local memory 4■, but the output of the upper bit address of the local memory 4I is supplied through the +1 addition circuit 42 or as is. It is supplied via multiplexer 44.

ローカルメモリアドレスセット域40のLSBセット域
52は、前記シフト制御信号として、直接、又はインバ
ータ54を介してシフタ22へ供給される。オア回路5
6を経たデータセント指示信号セット域4日及びインバ
ータ54の出力は、書き込み信号セント域50の出力の
有無に従ってアンド回路60を?してローカルメモリ4
Iへ供給され、オア回路58を経たLSBセット域52
及びデータセット指示信号セット域48の出力は、書き
込み信号セット域50の出力の有無に従ってアンド回路
62を介してローカルメモリ4■へ供給される。
The LSB set area 52 of the local memory address set area 40 is supplied to the shifter 22 directly or via an inverter 54 as the shift control signal. OR circuit 5
6 and the output of the inverter 54 are output from the AND circuit 60 according to the presence or absence of the output of the write signal cent area 50. local memory 4
LSB set area 52 supplied to I and passed through OR circuit 58
The output of the data set instruction signal set area 48 is supplied to the local memory 42 via an AND circuit 62 depending on whether or not there is an output of the write signal set area 50.

第2図において、外部データバス20は、第1図のデー
タバス2に対応し、ローカルメモリ4I,4■は、第1
図のローカルメモリ4iに対応する。
In FIG. 2, the external data bus 20 corresponds to the data bus 2 in FIG.
This corresponds to the local memory 4i in the figure.

シフタ22は、第1図のデータ分割回路に対応する。マ
ルチブレクサ30.32は、第1図の書き込みデータ入
力回路8iに対応する。制御部34、ローカルメモリア
ドレスセント域40、LSBセット域52、+1加算回
路42、マルチプレクサ44は、第1図の書き込みアド
レス発生回路10に対応する。LSBセット域52、イ
ンバータ52、データセット指示信号セット域48は、
第1図の書き込み入力制御回路12に対応する。
Shifter 22 corresponds to the data division circuit shown in FIG. The multiplexer 30, 32 corresponds to the write data input circuit 8i in FIG. The control section 34, local memory address sent area 40, LSB set area 52, +1 addition circuit 42, and multiplexer 44 correspond to the write address generation circuit 10 in FIG. The LSB set area 52, inverter 52, and data set instruction signal set area 48 are as follows:
This corresponds to the write input control circuit 12 in FIG.

前述システム構成における異データバス間データ転送動
作を以下に説明する。
The data transfer operation between different data buses in the above system configuration will be explained below.

先ス、コンピュータシステムにおける動作にお?て、内
部メモリ間のデータ読み出しが必要になった場合の動作
を説明する。
First, what about operations in computer systems? Next, we will explain the operation when it becomes necessary to read data between internal memories.

そのローカルメモリ41及びローカルメモリ4■からの
データ読み出し命令は、制御部34の制御によって命令
レジスタ38ヘセットされる。その命令レジスタ38の
ローカルメモリアドレスセット域40にはローカルメモ
リアドレスが、又データセット指示信号セット域48及
び書き込み信号セット域50には、P =W=“0′゛
がセットされる。W=“′0”であるから、アンド回路
60及びアンド回路62からの信号は、いずれも“′0
″となり、ローカルメモリ41及びローカルメモリ4■
は、いずれも読み出し動作となる。そして、この読み出
しにおけるローカルメモリアドレスのLSBが、0の値
であるときには、そのローカルメモリアドレスのうちの
LSBを除いたアドレス(エントリアドレス)が、LS
Bセット域52 (当J亥ローカルメモリアドレスのL
SB、即ち0)及びデータセット指示信号セット域48
(P、又はp)の出力によって制御されるマルチブレク
サ44を?てローカルメモリ4iのアドレス入力へ供給
されるのに対して、ローカルメモリアドレスのLSBが
、0の値であるときには、そのローカルメモリアドレス
のうちのLSBを除いたアドレスが、直接ローカルメモ
リ4■のアドレス入力へ供給される。従って、いずれの
場合にも、ローカルメモU4i、又はローカルメモリ4
2の、前記データ読み出し命令で指定されるエントリア
ドレス(前記ローカルメモリアドレスのうちのLSBを
除いたアドレス)のデータが、ローカルメモリ41、又
はローカルメモリ4■から読み出され、LSBセット域
52の出力によって制御されるマルチプレクサ46を介
してALU3 6へ入力される。
The data read commands from the local memory 41 and the local memory 42 are set in the command register 38 under the control of the control section 34. A local memory address is set in the local memory address set area 40 of the instruction register 38, and P=W="0'" is set in the data set instruction signal set area 48 and write signal set area 50.W= Since the signal is "'0", both the signals from the AND circuit 60 and the AND circuit 62 are "'0".
″, local memory 41 and local memory 4■
Both are read operations. Then, when the LSB of the local memory address in this read is a value of 0, the address (entry address) excluding the LSB of the local memory address is the LSB.
B set area 52 (L of the local memory address
SB (i.e. 0) and data set instruction signal set area 48
The multiplexer 44 controlled by the output of (P or p)? On the other hand, when the LSB of the local memory address has a value of 0, the address excluding the LSB of the local memory address is directly supplied to the address input of the local memory 4i. Provided to address input. Therefore, in any case, local memo U4i or local memory 4
2, the data at the entry address (the address excluding the LSB of the local memory address) specified by the data read command is read from the local memory 41 or the local memory 4■, and is stored in the LSB set area 52. It is input to the ALU 36 via a multiplexer 46 controlled by the output.

次に、コンピュータシステムにおける動作において、A
LU3 6からの内部メモリへのデータ書き込みが必要
になった場合の動作を説明する。
Next, in operation in the computer system, A
The operation when it becomes necessary to write data from LU36 to the internal memory will be explained.

そのローカルメモリ4i及びローカルメモリ4■からの
データ書き込み命令は、制御部34の制御によって命令
レジスタ38ヘセットされる。その命令レジスタ38の
ローカルメモリアドレスセッ?域40にはローカルメモ
リアドレスが、又データセット指示信号セット域48及
び書き込み信号セット域50には、P=“Q II 、
W == I“1′”がセットされる。W=“1”′で
あるから、アンド回路60及びアンド回路62からの信
号は、いずれも゛1゛となり、ローカルメモリ4i及び
ローカルメモリ4■は、いずれも書き込み動作となる。
The data write commands from the local memory 4i and local memory 42 are set in the command register 38 under the control of the control section 34. Is the local memory address set for that instruction register 38? The area 40 contains the local memory address, and the data set instruction signal set area 48 and write signal set area 50 contain P="Q II,
W == I "1'" is set. Since W="1"', the signals from the AND circuit 60 and the AND circuit 62 both become "1", and both the local memory 4i and the local memory 42 perform a write operation.

そして、この書き込みにおけるローカルメモリアドレス
のLSBが、0の値であるときには、そのローカルメモ
リアドレスのうちのLSBを除いたアドレスが、LSB
セット域52 (当該ローカルメモリアドレスのLSB
、即ち0)及びデータセット指示信号セット域48(P
、又はp)の出力によって制御されるマルチブレクサ4
4を経てローカルメモリ4iのアドレス入力へ供給され
るのに対して、ローカルメモリアドレスのLSBが、0
の値であるときには、そのローカルメモリアドレスのう
ちのLSBを除いたアドレスが、直接ローカルメモリ4
■のアドレス入力へ供給される。従って、いずれの場合
にも、ALU3 6からデータセント指示信号セット域
48の出力で制御されるマルチプレクサ30およびマル
チプレクサ32を介してALU36から与えられる書き
込みデータは、ローカルメモリ4i、又はローカルメモ
リ42の、前記データ書き込み命令で指定されるエント
リアドレス(前記ローカルメモリアドレスのうちのLS
Bを除いたアドレス)で指定されるローカルメモリ4i
、又はローカルメモリ42へ書き込まれる。
Then, when the LSB of the local memory address in this write is a value of 0, the address excluding the LSB of the local memory address is the LSB.
Set area 52 (LSB of the local memory address
, that is, 0) and data set instruction signal set area 48 (P
, or p)
4 to the address input of the local memory 4i, whereas the LSB of the local memory address is 0.
, the address excluding the LSB of the local memory address is directly stored in the local memory 4.
Supplied to the address input of ■. Therefore, in any case, the write data given from the ALU 36 via the multiplexer 30 and the multiplexer 32 controlled by the output of the data center instruction signal set area 48 is sent to the local memory 4i or the local memory 42. Entry address specified by the data write command (LS of the local memory addresses)
Local memory 4i specified by address (excluding address B)
, or written to local memory 42.

コンピュータシステムにおける動作において、前述のよ
うな内部メモリへのデータの書き込み、又は内部メモリ
へのデータの読み出しのほかに、外部メモリと、・ロー
カルメモリとの間のデータ転送が必要になった場合の動
作を説明する。
In the operation of a computer system, in addition to writing data to or reading data from internal memory as described above, there is a need to transfer data between external memory and local memory. Explain the operation.

先ず、外部メモリから外部データバス20を経テローカ
ルメモリへデータを書き込む動作について説明する。こ
のデータ書き込み動作においては、そのデータ書き込み
命令が、制御部34の制御によって命令レジスタ38ヘ
セットされる。その命令レジスタ38のローカルメモリ
アドレスセット?40にはローカルメモリアドレスが、
又データセット指示信号セット域48及び書き込み信号
セット域50には、P=W=’“1゛゜がセッ卜される
が、ローカルメモリアドレスセット域40にセットされ
る書き込みアドレス(ローカルメモリのアドレス)は、
前記データ書き込み命令によってローカルメモリ4I及
びローカルメモリ4■へ書き込もうとする書き込みデー
タのうちの、ローカルメモリへのアクセス単位で最初に
書き込まれるデータ単位(例えば、4バイト)のための
アドレス(先頭アドレス)である。W=”1”であるか
ら、アンド回路60及びアンド回路62からの信号は、
いずれも“′1″となり、ローカルメモリ4l及びロー
カルメモリ4■は、いずれも書き込み動作となる。そし
て、この書き込みにおけるローカルメモリアドレスのL
SBが、0の値であるときには、シフタ22において外
部データバス20を経て転送されて来た32ビットのデ
ータのうちの、上位16ビノトが内部データバス24を
経て、さらにデータセット指示信号セット域48の出力
によっ?制御されるマルチブレクサ30を経てローカル
メモリ4iへ供給され、又前記32ビットのデータのう
ちの、下位16ビットは内部データバス26を経て、さ
らにデータセット指示信号セット域48の出力によって
制御されるマルチプレクサ32を経てローカルメモリ4
tへ供給される。このときに、ローカルメモリ4I及び
ローカルメモリ4■へ供給されるアドレスは、次のアド
レスである。即ち、前記ローカルメモリアドレスのうち
のLSBを除いたアドレスが、LSBセット域52(当
該ローカルメモリアドレスのLSB=0、即ちa=’“
0”)及びデータセット指示信号セット域48(P=’
“1゛゜)の出力によって制御されるマルチブレクサ4
4を経てローカルメモリ4iのアドレス入力へ、そのま
ま供給されるし、又前記ローカルメモリアドレスのうち
のLSBを除いたアドレスは、直接ローカルメモリ4■
のアドレス入力へ供給されるので、前述のようにして、
ローカルメモリ4iの書き込みデータ入力へ入力されて
来た前記上位16ビットは、前記ローカルメモ?41の
アドレス入力へ供給されたエントリアドレスで指定され
るデータ書き込み位置に書き込まれ、又ローカルメモリ
4■の書き込みデータ入力へ入力されて来た前記下位1
6ビットは、前記ローカルメモリ4■のアドレス入力へ
供給されたエントリアドレスで指定されるデータ書き込
み位置に書き込まれる。
First, the operation of writing data from the external memory to the local memory via the external data bus 20 will be described. In this data write operation, the data write command is set in the command register 38 under the control of the control unit 34. The local memory address set for that instruction register 38? 40 has a local memory address,
Furthermore, P=W='“1゛゜ is set in the data set instruction signal set area 48 and the write signal set area 50, but the write address (local memory address) set in the local memory address set area 40 is teeth,
Address (starting address) for the first data unit (for example, 4 bytes) written in the unit of access to the local memory, of the write data to be written to the local memory 4I and local memory 4■ by the data write command. It is. Since W="1", the signals from the AND circuit 60 and the AND circuit 62 are
Both become "'1", and both the local memory 4l and the local memory 42 perform write operations. Then, L of the local memory address in this write is
When SB has a value of 0, the upper 16 bits of the 32-bit data transferred via the external data bus 20 in the shifter 22 are transferred via the internal data bus 24, and are further transferred to the data set instruction signal set area. By the output of 48? The lower 16 bits of the 32-bit data are supplied to the local memory 4i via the controlled multiplexer 30, and the lower 16 bits are supplied via the internal data bus 26 to the multiplexer controlled by the output of the data set instruction signal set area 48. Local memory 4 via 32
supplied to t. At this time, the addresses supplied to the local memory 4I and the local memory 4■ are the following addresses. That is, the address excluding the LSB of the local memory address is set in the LSB set area 52 (LSB of the local memory address=0, that is, a='"
0'') and data set instruction signal set area 48 (P='
Multiplexer 4 controlled by the output of “1゛゜)
4 to the address input of the local memory 4i, and the address excluding the LSB of the local memory address is directly supplied to the local memory 4i.
is fed to the address input of
The upper 16 bits input to the write data input of the local memory 4i are the local memory 4i? The lower 1 data is written to the data write position specified by the entry address supplied to the address input of 41, and is also input to the write data input of local memory 4.
The 6 bits are written to the data write position specified by the entry address supplied to the address input of the local memory 4.

また、データセット指示信号セット域48及び書き込み
信号セット域50には、P=W=“1゛がセットされて
いる条件の下で、ローカルメモリアドレスのLSBが、
1の値(a=“l′゛)であるときには、a=“1゛の
信号に応答するシフタ22は、16ビットのサーキュラ
シフトを外部データバス20からの32ビットのデータ
に対して与えるので、32ビットのデータのうちの、上
位16ビットが内部データバス26を経て、さらにデー
タセソト指示信号セント域48の出力によって制御され
るマルチプレクサ32を経てローカルメモリ42へ供給
され、又前記32ビントのデータのうちの、下位16ビ
ノトは内部データバス2?を経て、さらにデータセット
指示信号セット域48の出力によって制御されるマルチ
プレクサ30を経てローカルメモリ4iへ供給される。
In addition, under the condition that P=W="1" is set in the data set instruction signal set area 48 and the write signal set area 50, the LSB of the local memory address is
When the value of a is 1 (a = "l'"), the shifter 22 that responds to the signal of a = "1" applies a 16-bit circular shift to the 32-bit data from the external data bus 20. , the upper 16 bits of the 32-bit data are supplied to the local memory 42 via the internal data bus 26 and further via the multiplexer 32 controlled by the output of the data sesoto instruction signal sent area 48, and the 32-bit data Of these, the lower 16 bits are internal data bus 2? The signal is further supplied to the local memory 4i via a multiplexer 30 controlled by the output of the data set instruction signal set area 48.

このときに、ローカルメモリ41及びローカルメモリ4
■へ供給されるアドレスは、次のアドレスである。その
ローカルメモリアドレスのうちのLSBを除いたアドレ
ス(以下、上位アドレスビットと言う。)が、ローカル
メモリアドレスのLSB=1、即ちa= 11 1 1
1の場合と同様に、直接ローカルメモリ4■のアドレス
入力へ供給されるのに対して、ローカルメモリ4Iのア
ドレス入力には、+1加算回路42からマルチプレクサ
44を経て上位アドレスビット+1が供給される。従っ
て、前述のようにして、ローカルメモリ4iの書き込み
データ入力へ入力されて来た前記下位16ビットは、前
記ローカルメモリ4iのアドレス入力へ供給されたエン
トリアドレスで指定されるデータ書き込み位置に書き込
まれ、又ローカルメモリ42の書き込みデータ入力へ入
力されて来た前記上位16ビットは、前記ローカルメモ
リ4■のアド?ス入力へ供給されたエントリアドレスで
指定されるデータ書き込み位置に書き込まれる。
At this time, the local memory 41 and the local memory 4
The address supplied to (2) is the next address. The address excluding the LSB of the local memory address (hereinafter referred to as the upper address bit) is the LSB of the local memory address = 1, that is, a = 11 1 1
As in case 1, the upper address bit +1 is supplied directly to the address input of local memory 4■, whereas the upper address bit +1 is supplied from the +1 addition circuit 42 via the multiplexer 44 to the address input of local memory 4I. . Therefore, as described above, the lower 16 bits input to the write data input of the local memory 4i are written to the data write position specified by the entry address supplied to the address input of the local memory 4i. , and the upper 16 bits input to the write data input of the local memory 42 are the address of the local memory 4? The data is written to the write location specified by the entry address supplied to the input.

前述のようにして、ローカルメモリ41、及び口−カル
メモリ4■へ書き込まれたデータを外部データバス20
を経て図示しない外部メモリへ読み出す読み出し回路系
は、本発明の要旨には直接関係のない技術的事項である
ため、第2図には、図示してないが、この読み出し回路
系の構成は、各種回路構成を採り得る。例えば、ALU
36の2出力データの各々を一旦、格別に2個のバッフ
ァレジスタ(図示せず)に書き込んだ後に、該両バッフ
ァレジスタのデータを外部データバス20へ乗せるハー
ドウェア処理を介して外部メモリへ読み出すことが出来
る。
As described above, the data written to the local memory 41 and local memory 4 is transferred to the external data bus 20.
Although the readout circuit system that reads data to an external memory (not shown) through the above is not shown in FIG. 2 because it is a technical matter that is not directly related to the gist of the present invention, the configuration of this readout circuit system is as follows. Various circuit configurations are possible. For example, ALU
After each of the 36 two output data is once written into two buffer registers (not shown), the data in both buffer registers is read out to the external memory via hardware processing to be transferred to the external data bus 20. I can do it.

なお、前記実施例においては、ローカルメモリ2個を用
いる例を説明したが、外部データバス20のデータ幅及
び/又はローカルメモリへのアクセス単位の変更の有無
を問わず、ローカルメモリの数と、ローカルメモリアド
レスの、前記数に対して用いられる下位ビットの数との
関係を予め決められた数関係とするシステム構成の場合
への本発明の拡張性は、少しも失われない。具体的には
、前述したように、12ogzn=Nとする前記数関係
である。その場合に、シフタ22、+1加算回路42、
マルチプレクサ44、マルチプレクサ30、マルチプレ
クサ32及びマルチプレクサ46の各動作を前記拡張に
応じた各動作へ拡張し得るようにその回路構成の変更を
要することは、言うまでもない。この場合における各メ
モリと、そのエントリアドレスとの関係は、次の表に示
すようになる。
In the above embodiment, an example in which two local memories are used has been described, but regardless of whether or not the data width of the external data bus 20 and/or the access unit to the local memory is changed, the number of local memories and The extensibility of the present invention to the case of a system configuration in which the relationship between the local memory address and the number of lower bits used for the number is a predetermined numerical relationship is not lost in the slightest. Specifically, as described above, the numerical relationship is 12ogzn=N. In that case, the shifter 22, +1 addition circuit 42,
It goes without saying that the circuit configurations of the multiplexers 44, 30, 32, and 46 must be changed so that their operations can be expanded to correspond to the expansion described above. The relationship between each memory and its entry address in this case is as shown in the following table.

又、外部データバス20を経て入力されたデータの前述
のような書き込みデータ単位への区分けと、その分けら
れた各書き込みデータ単位の書き込みアドレスとの関係
が、当該データについてその書き込みと読み出しとの間
に、一定しているならば、該関係が前述のような関係で
なくてもよい。
Furthermore, the relationship between the division of data input via the external data bus 20 into write data units as described above and the write address of each divided write data unit determines the relationship between writing and reading of the data. The relationship does not have to be as described above as long as it is constant between the two.

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

以上述べたところから明らかなように本発明によれば、
データバスからのデータの各ローカルメモリへの分割と
、それらデータの対応するローカルメモリへの書き込み
アドレスの発生とを1サイクル内に行なうようにしたの
で、前記データのローカルメモリへの書き込みを1サイ
クルで達成することが出来る。この書き込みに要するC
PU負担の軽減が図れる。
As is clear from the above description, according to the present invention,
Since the division of data from the data bus into each local memory and the generation of a write address to the corresponding local memory for these data are performed within one cycle, writing of the data to the local memory is performed in one cycle. It can be achieved with. C required for this writing
The burden on PU can be reduced.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例を示す図である。 第1図及び第2図において、 2はデータバス(外部データバス20)、4iはローカ
ルメモリ、 6はデータ分割回路(シフタ22)、 8、は書き込みデータ単位入力回路(内部データバス2
4i26、マルチプレクサ30.32)、10は書き込
みアドレス発生回路(制御部34、ローカルメモリアド
レスセット域40、LSBセット域52、+1加算回路
42、マルチプレクサ44)である。 12は書き込み入力制御回路(LSBセット域52、イ
ンバータ52、データセット指示信号セット域48)で
ある。 4九哨≦θ月り14牝工里プ’ov7図第l図
FIG. 1 is a block diagram of the principle of the present invention, and FIG. 2 is a diagram showing an embodiment of the present invention. 1 and 2, 2 is a data bus (external data bus 20), 4i is a local memory, 6 is a data division circuit (shifter 22), and 8 is a write data unit input circuit (internal data bus 2).
4i26, multiplexers 30, 32), 10 is a write address generation circuit (control unit 34, local memory address set area 40, LSB set area 52, +1 addition circuit 42, multiplexer 44). 12 is a write input control circuit (LSB set area 52, inverter 52, data set instruction signal set area 48). 49 posts ≦ θ month ri 14 women's village pu'ov 7 figure 1

Claims (1)

【特許請求の範囲】[Claims] (1)データバス(2)のデータ幅と所定の値だけ小さ
い同一の書き込みデータ単位の複数個のローカルメモリ
(4_i)(i=1、2、・・・、n)へ、前記データ
バス(2)からのデータを書き込むディジタルデータ処
理システムにおいて、分割制御信号に応答して前記デー
タバス(2)からのデータを前記複数個のローカルメモ
リ(4_i)のデータ書き込み入力の各々へ1単位アク
セスタイム内に分割するデータ分割回路(6)と、入力
制御信号に応答して前記データ分割回路(6)の出力を
対応メモリのデータ書き込み入力へ接続する書き込みデ
ータ単位入力回路(8_i)と、前記複数個のローカル
メモリ(4_i)の各々のアドレス入力へ接続され、書
き込みアクセスでの前記分割に応じて決まる各ローカル
メモリの書き込みアドレスを対応アドレス入力へ前記1
単位アクセスタイム内に出力する書き込みアドレス発生
回路(10)と、 前記書き込みアクセスに応答して前記分割制御信号及び
入力制御信号を出力する書き込み入力制御回路(12)
とを設けたことを特徴とするデータバスからのデータ書
き込み制御方式。
(1) The data bus (2) is sent to a plurality of local memories (4_i) (i=1, 2, . . . , n) in which the same write data unit is smaller by a predetermined value than the data width of the data bus (2). 2), the digital data processing system writes data from the data bus (2) to each of the data write inputs of the plurality of local memories (4_i) in response to a division control signal by one unit of access time. a write data unit input circuit (8_i) that connects the output of the data division circuit (6) to the data write input of the corresponding memory in response to an input control signal; is connected to the address input of each of the local memories (4_i), and the write address of each local memory determined according to the division in write access is connected to the corresponding address input of the 1
a write address generation circuit (10) that outputs within a unit access time; and a write input control circuit (12) that outputs the division control signal and input control signal in response to the write access.
A data writing control method from a data bus, characterized in that it is provided with:
JP1337390A 1990-01-23 1990-01-23 Data writing control system Pending JPH03217956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1337390A JPH03217956A (en) 1990-01-23 1990-01-23 Data writing control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1337390A JPH03217956A (en) 1990-01-23 1990-01-23 Data writing control system

Publications (1)

Publication Number Publication Date
JPH03217956A true JPH03217956A (en) 1991-09-25

Family

ID=11831294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1337390A Pending JPH03217956A (en) 1990-01-23 1990-01-23 Data writing control system

Country Status (1)

Country Link
JP (1) JPH03217956A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61217859A (en) * 1985-03-25 1986-09-27 Fujitsu Ltd Data transfer system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61217859A (en) * 1985-03-25 1986-09-27 Fujitsu Ltd Data transfer system

Similar Documents

Publication Publication Date Title
US7404066B2 (en) Active memory command engine and method
JPS59154564A (en) Programmable controller
US4835684A (en) Microcomputer capable of transferring data from one location to another within a memory without an intermediary data bus
US5757685A (en) Data processing system capable of processing long word data
US6912626B1 (en) Method and apparatus for connecting a massively parallel processor array to a memory array in a bit serial manner
JPS6143345A (en) Memory device
JPH03217956A (en) Data writing control system
EP0334131A2 (en) Data processor performing operation on data having length shorter than one-word length
JPH0444136A (en) Memory access controller
JPH07182849A (en) FIFO memory
JPH04181454A (en) Data access controller
JPS60134956A (en) Information processing system
JP2821176B2 (en) Information processing device
JPH11328010A (en) Digital signal processor
JPS6011969A (en) Memory device with logical arithmetic means
JPH0589026A (en) Processor, memory and data processor
JPS63172341A (en) Electronic calculator
JPS63217460A (en) Buffer control circuit
JPH08314797A (en) Memory access system
JPH0381880A (en) Method for generating pixel mask and graphic processor
JPH07105079A (en) Memory management method
JPH04225453A (en) data processing equipment
JPH01233515A (en) information processing equipment
JPS63201810A (en) Time system of information processing system
JPS61226881A (en) Image data processor