[go: up one dir, main page]

JPS63296157A - Information processor - Google Patents

Information processor

Info

Publication number
JPS63296157A
JPS63296157A JP12968087A JP12968087A JPS63296157A JP S63296157 A JPS63296157 A JP S63296157A JP 12968087 A JP12968087 A JP 12968087A JP 12968087 A JP12968087 A JP 12968087A JP S63296157 A JPS63296157 A JP S63296157A
Authority
JP
Japan
Prior art keywords
transfer
address
memory
width
bus
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
JP12968087A
Other languages
Japanese (ja)
Inventor
Kenzo Ina
伊奈 謙三
Yoshitsugu Yamanashi
山梨 能嗣
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP12968087A priority Critical patent/JPS63296157A/en
Publication of JPS63296157A publication Critical patent/JPS63296157A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To perform data transfer with transfer width larger than the actual transfer width of a transfer controller, by providing an address conversion means which shifts a memory address outputted by the transfer controller by a prescribed number of bits and outputs it to an address bus. CONSTITUTION:A memory managing unit (MMU)3 performs a processing to convert addressing via a logical address bus 2 by a microprocessor (MPU)1 to a physical address on a physical address bus 5. By the processing, not only a memory M1 for main storage, but memories M2-M7 for peripheral units can be controlled dynamically. And address incrementing width can be changed by shifting the output address of a controller (DMAC)37 for transfer control. In such a way, it is possible to perform transfer with two or more byte width by shifting and converting the address incrementing width of the DMAC37 even when the transfer width of the DMAC37 is as small as around 1 byte, and to perform the transfer between memories with high efficiency.

Description

【発明の詳細な説明】 本発明は情報処理装置、特にメモリ間の転送処理を行う
情報処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an information processing apparatus, and particularly to an information processing apparatus that performs transfer processing between memories.

[従来の技術] マイクロプロセッサおよびメモリなどから成る情報処理
システムは、文字1画像、その他各種のデジタル化され
た情報の処理に広く用いられている。
[Prior Art] Information processing systems comprising microprocessors, memories, and the like are widely used for processing single images of characters and various other types of digitized information.

マイクロプロセッサ(以下MPUという)のデータバス
幅、すなわち、プロセッサが一度に処理可能なデータ幅
は4ビツト、8ビツト、16ビツト、32ビツト・・・
と拡大されつつあり、一度に処理できるデータ量が増え
ることにより処理速度も大幅に改善されてきた。また、
データバス幅の拡大にともない、アドレスバス幅も拡大
され、これによりアクセス可能なメモリ容量も増大した
The data bus width of a microprocessor (hereinafter referred to as MPU), that is, the data width that the processor can process at one time is 4 bits, 8 bits, 16 bits, 32 bits, etc.
As the amount of data that can be processed at once increases, the processing speed has also been significantly improved. Also,
As the data bus width expanded, the address bus width also expanded, which increased the accessible memory capacity.

ところが、MPUとともに用いられる周辺回路(装置)
の制御用の入出カプロセッサ、あるいはDMA (ダイ
レクト番メモリ・アクセス)転送制御用のコントローラ
、DMACなどのICの進歩は必ずしもMPUと歩調が
揃ってはおらず、16、あるいは32ビツトプロセツサ
が主流になりつつある現在でもそれよりも小さなデータ
およびアドレスバス幅しか有していないものが用いられ
ている。
However, peripheral circuits (devices) used together with MPU
Advances in ICs such as input/output processors for control, controllers for DMA (direct memory access) transfer control, and DMAC have not necessarily kept pace with MPUs, and 16- or 32-bit processors are becoming mainstream. Some devices with smaller data and address bus widths are still in use today.

そこで、バス幅の大きなMPUと周辺の入出力用プロセ
ッサを同じシステム内で用いる場合1周辺のプロセッサ
側にバッファメモリを設けたり、MPU側で使用するバ
ス幅を周辺側に合せて使用するなどの方法が取られてい
る。
Therefore, when using an MPU with a large bus width and a peripheral input/output processor in the same system, it is recommended to set up a buffer memory on the peripheral processor side, or adjust the bus width used on the MPU side to match that of the peripheral side. A method is being taken.

バッファメモリを用いないとすると、PIO(プログラ
ブプル入出力ボート)などでは、MPU側に処理可能な
データ幅が8ビツトなどであり、MPU側よりも小さい
ことを示す信号を返し、これに応じてMPU側で適合し
たデータ幅を採用する制御方式を用いることが考えられ
る。
If a buffer memory is not used, a PIO (program pull input/output port) or the like will return a signal to the MPU indicating that the data width that can be processed is 8 bits, which is smaller than the MPU side, and the MPU will respond accordingly. It is conceivable to use a control method that adopts an adapted data width on the side.

[発明が解決しようとする問題点] しかし、周辺プロセッサに対するコマンド入力、あるい
はステータスリード処理ではこのような方法でも支障が
ないが、大量のデータ転送ではシステムバスの専有時間
が増大し、システムのオーバーヘッドが大きくなるとい
う問題を生じる。
[Problems to be Solved by the Invention] However, although this method does not pose any problems when inputting commands to peripheral processors or processing status reads, transferring a large amount of data increases the exclusive time of the system bus, causing system overhead. The problem arises that the

この点に鑑み、バッファメモリを用いてデータ転送を行
うようにし、転送時のみバス幅を拡大することが考えら
れる。ところが、この方式では面倒なアドレスデコード
処理が必要で、またバッファメモリのデータ幅が16ビ
ツト、32ビツトなどに固定されてしまうのでシステム
拡調性が阻害されるという問題がある。
In view of this point, it is conceivable to transfer data using a buffer memory and expand the bus width only during transfer. However, this method requires troublesome address decoding processing, and the data width of the buffer memory is fixed to 16 bits, 32 bits, etc., which hinders system expandability.

ここで、DMACに関して考えてみる。MPUよりもバ
ス幅の小さいDMACを用いると、MPUが直接データ
転送を行なった方が速い場合も考えられ、DMACを用
いる意味がないのでDMACを用いないようにするか、
どうしてもDMA転送が必要であれば処理能力が高いD
MACを新たに開発する必要があった。
Now let's think about DMAC. If you use a DMAC with a smaller bus width than the MPU, it may be faster for the MPU to transfer data directly, so there is no point in using the DMAC, so either do not use the DMAC, or
If DMA transfer is absolutely necessary, D with high processing power
It was necessary to develop a new MAC.

[問題点を解決するための手段] 以上の問題点を解決するために、本発明においては中央
処理装置と、メモリおよび中央処理装置を介さずメモリ
間の転送を行なわせる転送制御装置を含む情報処理装置
において、前記転送制御装置がメモリ転送を制御する際
に出力するメモリアドレスを所定ビット数シフトさせて
アドレスバスに出力するアドレス変換手段を設けた構成
を採用した。
[Means for Solving the Problems] In order to solve the above problems, the present invention provides information including a central processing unit, a memory, and a transfer control device that performs transfer between memories without going through the central processing unit. In the processing device, a configuration is adopted in which an address conversion means is provided for shifting the memory address outputted by the transfer control device by a predetermined number of bits and outputting it to the address bus when controlling memory transfer.

[作 用] 以上の構成によれば、転送制御手段の出力アドレスをシ
フトすることにより、アドレスインクリメント幅を変更
し、転送制御装置の実際の転送幅よりも大きな転送幅で
データ転送を行なえる。また、転送制御手段が7ドレツ
シング可能なメモリ領域を増大させることができる。
[Operation] According to the above configuration, by shifting the output address of the transfer control means, the address increment width can be changed and data transfer can be performed with a transfer width larger than the actual transfer width of the transfer control device. Furthermore, the memory area that can be dressed by the transfer control means can be increased by 7 times.

[実施例] 以下、図面に示す実施例に基づいて本発明の詳細な説明
する。
[Example] Hereinafter, the present invention will be described in detail based on the example shown in the drawings.

第1図は本発明を採用した情報処理装置の構成を示して
いる。ここでは各種のコンピュータシステム、あるいは
ワードプロセッサや画像処理装置など、コンピュータを
利用した情報処理装置に共通する構成が示されている。
FIG. 1 shows the configuration of an information processing apparatus employing the present invention. Here, configurations common to various computer systems or information processing devices using computers, such as word processors and image processing devices, are shown.

図において、符号Mlで示されていものはRAM素子な
どで構成された主記憶用のメモリである。符号M2〜M
7で示されるものは接続される各周辺装置用のバッファ
メモリとして用いられるメモリで、同じ< RAMなど
を用いて構成される。
In the figure, what is indicated by the symbol Ml is a main memory composed of a RAM element or the like. Code M2~M
The memory indicated by 7 is used as a buffer memory for each peripheral device connected, and is configured using the same RAM.

ここでメモリM2はハードディスク装置7およびフロッ
ピーディスク装置8のためのバッファ用メモリ、メモリ
M3はCRTディスプレイ10のためのバッファ用メモ
リ(VRAM)、 メモリM4はキーボード12および
マウスやデジタイザなどのポインティングデバイス13
のためのバッファ用メモリ、メモリM5はドツトプリン
タなどのイメージプリンタ15および画像読取り用のイ
メージスキャナ16のためのバッファ用メモリ、メモリ
M6はCD−ROM、CDIないしビデオディスクなど
の光学ディスク18のためのバッファ用メモリ、そして
メモリM7はこのシステムが接続されるローカルエリア
ネットワーク20との間で情報入出力を行なうためのバ
ッファ用メモリとして用いられる。
Here, memory M2 is a buffer memory for the hard disk device 7 and floppy disk device 8, memory M3 is a buffer memory (VRAM) for the CRT display 10, and memory M4 is a keyboard 12 and pointing device 13 such as a mouse or digitizer.
Memory M5 is a buffer memory for an image printer 15 such as a dot printer and an image scanner 16 for reading images, and memory M6 is a buffer memory for an optical disc 18 such as a CD-ROM, CDI or video disc. Buffer memory, and memory M7 is used as a buffer memory for inputting and outputting information with the local area network 20 to which this system is connected.

上記のメモリMl−M7は不図示のデータバスおよび物
理アドレスバス5によってMMU3に接続されている。
The memories M1-M7 mentioned above are connected to the MMU 3 by a data bus and a physical address bus 5 (not shown).

この物理アドレスバス5では、各メモリのメモリセルは
常時一定のアドレスに一対一に対応づけて扱われる。
In this physical address bus 5, memory cells of each memory are always handled in one-to-one correspondence with a fixed address.

MMU(メモリマネージングユニット)3は装4の主制
御部であるMPU1のファミリーチップあるいは用いる
MPUIあるいは使用するメモリ素子に応じて設計され
たカスタムチップやディスクリート回路などから構成さ
れる。MMU3とMPUIは論理アドレスバス2によっ
て接続されている。
The MMU (memory managing unit) 3 is composed of a family chip of the MPU 1, which is the main control unit of the device 4, a custom chip or discrete circuit designed according to the MPUI used, or the memory element used. MMU3 and MPUI are connected by logical address bus 2.

MMU3はMPU 1による論理アドレスバス2を介し
たアドレッシングを物理アドレスバス5上の物理アドレ
スに変換する処理を行なう、この処理によって、主記憶
用のメモリM1のみならず各周辺装置用のメモリM2〜
M7を動的に管理し、メモリ効率を向上させることがで
きる。
The MMU 3 performs a process of converting the addressing via the logical address bus 2 by the MPU 1 into a physical address on the physical address bus 5. Through this process, not only the memory M1 for the main memory but also the memories M2 for each peripheral device are converted.
M7 can be managed dynamically to improve memory efficiency.

MMU3の出力アドレスはアドレスマルチプレクサ35
を介して物理アドレスバス5に出力される。
The output address of MMU3 is the address multiplexer 35
is output to the physical address bus 5 via the physical address bus 5.

本実施例ではDMA転送を行なうため、MPU1よりも
バス幅が小さい既製のDMAC37が設けられている。
In this embodiment, in order to perform DMA transfer, a ready-made DMAC 37 having a bus width smaller than that of the MPU 1 is provided.

DMAC37は少なくともメモリMl−M7間でバイト
単位の転送を行なえるものとする。DMAC37はDM
A転送を行なう場合、MPUIのかわりにMMU3に接
続される。
It is assumed that the DMAC 37 can perform at least transfer in byte units between the memories M1 and M7. DMAC37 is DM
When performing A transfer, it is connected to MMU3 instead of MPUI.

アドレスバスをMPUIが制御するか、DMAC37が
制御するかのバス権を切り換えるため。
To switch the bus right between MPUI and DMAC37 controlling the address bus.

バスアービタ38が設けである。このバスアービタ38
はMMU33から入力される後述の1ビツトの信号PD
M2により制御される。バスアービタ38はバスの切り
換えを行なう他、MPUI。
A bus arbiter 38 is provided. This bus arbiter 38
is a 1-bit signal PD input from the MMU33, which will be described later.
Controlled by M2. The bus arbiter 38 performs bus switching as well as MPUI.

DMA C37に対して信号BMP 、BDMによりそ
れぞれバス権の有無を示す。
Signals BMP and BDM indicate the presence or absence of bus ownership for the DMA C37.

ここで、第2図にMMU3の構造を示す、第2図におい
て符号51はMPU1から論理アドレスバス2を介して
出力される論理アドレスデータを示している。CPUの
出力する論理アドレスは所定のビット長を有し、その上
位、中位および下位の所定の3つのブロックに分割され
る。ここで符号51Aは上位のセグメントデータ、51
Bはページデータおよび符号51Cはアドレスデータで
ある。
Here, the structure of the MMU 3 is shown in FIG. 2. In FIG. 2, reference numeral 51 indicates logical address data output from the MPU 1 via the logical address bus 2. The logical address output by the CPU has a predetermined bit length and is divided into three predetermined blocks: upper, middle, and lower. Here, the code 51A is upper segment data, 51
B is page data and 51C is address data.

セグメントデータ51A、ページデータ51Bはそれぞ
れアドレス変換のためのテーブルデータを格納したメモ
リから成るセグメントマツプ52、ページマツプ53に
入力されメモリの使用状況に応じて主記憶用のメモリM
1およびバッファ用メ干りM2〜M7をマツピングし、
アドレス用のレジスタ54〜56に管理情報および物理
アドレスバス5に出力する物理アドレス情報を出力する
Segment data 51A and page data 51B are input to segment map 52 and page map 53, respectively, which are composed of memories storing table data for address conversion, and are input to main memory memory M according to the usage status of the memory.
1 and buffer mesh M2 to M7,
Management information and physical address information to be output to the physical address bus 5 are output to address registers 54 to 56.

セグメントマツプ52の変換された出力データおよびペ
ージデータ51Bはページマツプ53に入力され、その
出力がレジスタ56に出力される物理アドレスの一部、
レジスタ54に出力されるDMA制御用のDMAタイプ
コード(PDM)およびレジスタ55に出力される管理
フラグ(Prot)となる、レジスタ56に出方される
物理アドレスは入力された論理アドレスのアドレスデー
タ51Cとページマツプ53から出力された変換された
アドレスデータから構成される。
The converted output data of the segment map 52 and the page data 51B are input to the page map 53, and the output is a part of the physical address output to the register 56.
The physical address output to the register 56, which becomes the DMA type code (PDM) for DMA control output to the register 54 and the management flag (Prot) output to the register 55, is the address data 51C of the input logical address. and the converted address data output from the page map 53.

ここで、レジスタ55の管理フラグはシステムで走行す
るプログラムの管理情報で、システムプログラムおよび
ユーザプログラムのいずれのデータであるかを識別する
ためのデータ、プログラム的に物理的メモリ空間をアク
セス可能か否かを知らせるエントリービット、あるいは
ユーザプログラムで物理空間をアクセスしたかどうかを
識別するためのアクセスビットなどから構成される。レ
ジスタ56に出力される物理アドレスはページマツプ5
3の出力と入力アドレスデータ51Cの論理和によって
形成される。
Here, the management flag of the register 55 is management information of the program running in the system, and is data for identifying whether the data is a system program or a user program, and whether or not the program can access the physical memory space. It consists of an entry bit that informs whether a physical space has been accessed by a user program, and an access bit that identifies whether a physical space has been accessed by a user program. The physical address output to the register 56 is the page map 5.
3 and the input address data 51C.

第3図は第2図においてレジスタ54〜56に出力され
るメモリアドレッシングのための管理情報および物理ア
ドレス情報を詳細に示している。
FIG. 3 shows in detail the management information and physical address information for memory addressing that are output to the registers 54 to 56 in FIG.

図において符号Protは前記の管理フラグで、5ビツ
トにより構成され、ビット5はエントリービット、ビッ
ト4およびビット3はプロチクジオンビット、ビット2
およびビットlはアクセスビットとなっている。
In the figure, the symbol Prot is the aforementioned management flag, which is composed of 5 bits, where bit 5 is the entry bit, bits 4 and 3 are the processing bits, and bit 2 is the entry bit.
and bit l is an access bit.

また、符号PDMで示されるDMAタイプコードはPO
M2 、PDMI 、FDMOの3ビツトにより構成さ
れる。最上位ビットPDM2はDMA転送を行なうかど
うかを示すもので、DMA転送の場合1にされる0MP
Uが直接転送を行なう場合はOにされる。この情報はバ
ス権を示すためバスアービタ38に直接入力される。
Also, the DMA type code indicated by the symbol PDM is PO
It is composed of 3 bits: M2, PDMI, and FDMO. The most significant bit PDM2 indicates whether or not to perform DMA transfer, and is set to 1 in the case of DMA transfer.
Set to O if U performs direct transfer. This information is input directly to bus arbiter 38 to indicate bus rights.

PDMI 、0の2ビツトは、DMA転送を行なう場合
のデータ幅、すなわちアドレスのインクリメント幅を決
定するためのものである。このデータはアドレスマルチ
プレクサ35に入力される。
The two bits PDMI, 0 are used to determine the data width when performing DMA transfer, that is, the address increment width. This data is input to address multiplexer 35.

アドレスマルチプレクサ35は第4図のように構成され
る0図示のように、上記のPDMI 、FDMOの2ビ
ツトはデコーダ201に入力される。デコーダ201は
PDMI 、FDMO17)OO〜11(10進の0〜
3)までの4つの状態に応じてO〜3の4つの出力のい
ずれかをハイレベルにする。この出力はアントゲ−)2
02゜203・・・を開閉する。
The address multiplexer 35 is configured as shown in FIG. The decoder 201 is PDMI, FDMO17)OO~11 (decimal 0~
Depending on the four states up to 3), one of the four outputs O to 3 is set to high level. This output is ant game)2
02゜203... opens and closes.

MMU3を介して入力されるピッ)Ao。Beep) Ao input via MMU3.

AI・・・から成るMPUIないしD’MAC37の出
力アドレスはこれらのアンドゲート202゜203・・
・によりシフトされる。すなわち、アントゲ−)202
.203・・・の出力は4本ずつまとめられ、オアゲー
)206,211,216・・・に入力される。オアゲ
ート206,211,216・・・の出力が変換された
出力アドレス(A”o。
The output address of MPUI or D'MAC37 consisting of AI... is determined by these AND gates 202, 203...
・Shifted by. That is, Antogame) 202
.. The outputs of 203, . The output address (A”o) where the outputs of the OR gates 206, 211, 216, etc. are converted.

A′l・・・)となる、入カビッ)Aoはオアゲート2
06.211,216から、AIはオアゲート211.
216,221から出力できるよう結線されている。そ
してデコーダ201の出力端子lがハイレベルの場合に
は入カビッ)AoはA′1として、AIはA′2して出
力される。すなわち、入力アドレスは1ビツト上位ヘシ
フトされる。同様にPDMO、PDMIによりデコーダ
201の出力端子2.3をハイレベルにすることにより
2ビツト、3ビツトのシフトを行なえる。
A'l...), enter Kabit) Ao is or gate 2
From 06.211,216, AI is ORGATE 211.
It is wired so that it can be output from 216 and 221. When the output terminal l of the decoder 201 is at a high level, Ao is outputted as A'1 and AI is outputted as A'2. That is, the input address is shifted upward by one bit. Similarly, a 2-bit or 3-bit shift can be performed by setting the output terminal 2.3 of the decoder 201 to a high level using PDMO or PDMI.

シフトされて残ったビットにはOが入るようにアントゲ
−) 203〜205 、209 、210 。
203-205, 209, 210 so that the remaining bits are filled with O's.

215の一方の入力にはローレベルが接続されている。One input of 215 is connected to a low level.

ここで、第5図を参照してDMA転送の際の上記構成に
よるアドレス変換につき説明する。第5図の出力アドレ
スの欄は、lバイト、2バイト、4バイト、8バイトの
それぞれの転送幅でメモリ間の転送を行なう場合インク
リメントされるアドレス(オフセット)を2進数で示し
ている。1バイト転送の場合にはメモリセルが1バイト
分ずつアクセスされるから、アドレスインクリメントは
(ワード)転送の場合にはメモリアドレスは1つ飛びに
なり、アドレスインクリメントは0゜10.100・・
・となる。
Here, address conversion using the above configuration during DMA transfer will be explained with reference to FIG. The output address column in FIG. 5 shows in binary numbers the addresses (offsets) that are incremented when transferring between memories with transfer widths of 1 byte, 2 bytes, 4 bytes, and 8 bytes. In the case of a 1-byte transfer, the memory cell is accessed 1 byte at a time, so in the case of a (word) transfer, the memory address jumps by one, and the address increment is 0°10.100...
・It becomes.

もし、DMACが1バイト転送を行なうものとすると、
アドレスインクリメントは6,1゜lO・・・となる。
If DMAC performs a 1-byte transfer,
The address increment is 6.1°lO...

ところがメモリ間で16ビツトデータバスを用いてワー
ド転送が可能であるとすれば、DMACから入力される
アドレスを0.10,100゜110・・・のように変
換してメモリアクセスを行なえば、DMACがバイト転
送を行なうよう動作している場合でもワード(16ビツ
ト)転送が可能になる。同様に入力アドレスを0 、1
000 、1100・・・のように変換すれば4バイト
(ロングワード:32ビツト)の転送が可能である。
However, if word transfer is possible between memories using a 16-bit data bus, if the address input from the DMAC is converted as 0.10, 100°110, etc., and memory access is performed, Word (16 bit) transfer is possible even when the DMAC is operating to perform byte transfer. Similarly, set the input address to 0, 1
By converting as 000, 1100, etc., it is possible to transfer 4 bytes (long word: 32 bits).

上記の変換は入力アドレスデータを1ビツトないし2ビ
ツトシフトすることにより可能である。
The above conversion is possible by shifting the input address data by 1 or 2 bits.

したがって、PDMI 、FDMOのパターンを図示の
ように変更することにより1、それぞれθピットル3ビ
ツトのシフトが可能であり、これによって1〜8バイト
幅の転送に対応したアドレッシングが可能になる。
Therefore, by changing the PDMI and FDMO patterns as shown, it is possible to shift 1 and 3 bits of θ pits, respectively, and thereby, addressing corresponding to 1 to 8 byte width transfers is possible.

アドレスマルチプレクサ35により上記のアドレス変換
処理を行なわせることにより、DMA C37が1バイ
ト転送幅のアドレスインクリメントを行なっている場合
でも、物理アドレス上では2バイト (ワード:16ビ
ツト)、4バイト(ロングワード:32ビツト)、8バ
イト(ダブルロングワード:64ビツト)IlIIの転
送が可能であり、MPU 1よりも性能の低いDMAC
チップを用いる場合でも高効率のメモリ間転送が可能で
ある。
By having the address multiplexer 35 perform the above address conversion processing, even when the DMA C37 is incrementing the address with a 1-byte transfer width, the physical address is 2 bytes (word: 16 bits) or 4 bytes (long word). : 32 bits), 8 bytes (double longword: 64 bits)
Highly efficient inter-memory transfer is possible even when using a chip.

第6図は、以上の全体構成における処理手順を示してい
る。以下、第6図を参照して全体構成におけるDMA転
送制御につき説明する。
FIG. 6 shows the processing procedure in the above overall configuration. DMA transfer control in the overall configuration will be described below with reference to FIG.

システムの電源が投入されると、まずステップStでは
MPUIが各部を初期化し、初期動作に必要なプログラ
ムをハードディスク7、フロッピーディスク8あるいは
不図示のROMなどからメモリMlにロードする。
When the system is powered on, first in step St, the MPUI initializes each section and loads programs necessary for initial operation from the hard disk 7, floppy disk 8, or ROM (not shown) into the memory M1.

ステップS2ではロードされたプログラムにしたがって
MMU3のマツピングが行なわれる。ここではバスに接
続された各周辺装置に関する個有の情報に基づき、DM
A転送の有無、DMA転送長、データ幅などが各周辺装
置各々につき設定される。これにより、以後論理アドレ
スの入力のみにより、第3図に示した管理フラグFre
t、DMAタイプコードPDMおよび物理アドレスが生
成され、各々のデバイスに適合した転送条件を設定でき
る。
In step S2, mapping of the MMU 3 is performed according to the loaded program. Based on unique information about each peripheral device connected to the bus, the DM
The presence or absence of A transfer, DMA transfer length, data width, etc. are set for each peripheral device. As a result, from now on, by only inputting the logical address, the management flag Fre shown in FIG.
t, a DMA type code PDM, and a physical address are generated, and transfer conditions suitable for each device can be set.

ステップS3ではDMA転送を行なうかどうかを判定す
る。DMA転送を行なう場合には、ステップS4でPD
M2がハイレベルとされ、バスアービタ3Bは制御信号
BDM、BMPによりMPUIをバスから離し、DMA
C37をバスに継ぐ。
In step S3, it is determined whether DMA transfer is to be performed. When performing DMA transfer, the PD
M2 is set to high level, and the bus arbiter 3B separates MPUI from the bus using control signals BDM and BMP, and disconnects the DMA.
Connect C37 to bus.

ステップS5では、周辺装置のバッファメモリに対する
転送幅に応じてPDMI 、FDMOの2ビツトが制御
される。これにより以後の転送幅、すなわち(および)
アドレスインクリメントが物理アドレスバス上でどのよ
うに行なわれるかが決定される。以後、PDMI 、F
DMOにしたがってアドレスマルチプレクサ35のシフ
ト幅が制御される。ステップS6では周辺装置側のプロ
セッサがPDMI 、FDMOのビットパターンを調べ
、どのような転送幅が選択されているかを認識する。
In step S5, two bits of PDMI and FDMO are controlled according to the transfer width of the peripheral device to the buffer memory. This allows the subsequent transfer width, i.e. (and)
It is determined how address increments are performed on the physical address bus. From now on, PDMI, F
The shift width of address multiplexer 35 is controlled according to DMO. In step S6, the processor on the peripheral device side examines the PDMI and FDMO bit patterns and recognizes what transfer width has been selected.

ステップS7で周辺装置からDMA転送の要求が入力さ
れると、ステップS8においてバス権がMPU 1から
DMAC37に移り、DMA転送が開始される。
When a request for DMA transfer is input from the peripheral device in step S7, bus ownership is transferred from MPU 1 to DMAC 37 in step S8, and DMA transfer is started.

DMAC37はバイト転送を行なうように動作するが、
実際のアドレスインクリメントはPDMl 、FDMO
の値に応じて第5図のように制御され、2パイトル8バ
イト幅の転送が実行される。
DMAC37 operates to perform byte transfer,
Actual address increment is PDML, FDMO
The transfer is controlled as shown in FIG. 5 according to the value of , and a 2-byte, 8-byte width transfer is executed.

ステップS9で転送終了が確認されると、ステップ51
0でバス権がMPUIに戻され、転送処理が終了する。
When the completion of transfer is confirmed in step S9, step 51
When the value is 0, the bus right is returned to MPUI, and the transfer process ends.

以上のように、本実施例によれば、DMAC37の転送
幅が1バイト程度で小さい場合でも、DMA C37の
アドレスインクリメント幅をシフトして変換することに
より、2バイト幅以上の転“送が可能であり、高効率な
メモリ間転送が可能であうという優れた効果を得られる
。また、アドレスデータを上位にシフトすることで、D
MACが裸でアクセスできる領域を大幅に拡大できると
いう利点を得られる0次に実例を示す。
As described above, according to this embodiment, even if the transfer width of the DMAC37 is as small as about 1 byte, by shifting and converting the address increment width of the DMA C37, it is possible to transfer a width of 2 bytes or more. , it is possible to achieve the excellent effect of enabling highly efficient memory-to-memory transfer.Also, by shifting the address data to the upper
A zero-order example will be presented that provides the advantage of greatly expanding the area that the MAC can access nakedly.

たとえば、第1図のシステムのデータバス幅が32ビツ
トであり、DMACにデータバス11g16ビツト、ア
ドレス出力24ビツトのものを用いるとすると、DMA
Cは従来方式では24ビツトアドレスの上限、即ち16
MB以上の領域にわたってアドレッシングを行なうこと
が不可能である。
For example, if the data bus width of the system shown in FIG.
C is the upper limit of a 24-bit address in the conventional system, that is, 16
It is impossible to perform addressing over an area larger than MB.

そこでMPU lがMMU3を介してPDM2〜PDM
Oの3ビツトをrlolJに設定することにより、アド
レスマルチプレクサ35を用いてDMAC37の出力ア
ドレスを1ビツトシフトして32ビツト幅の転送を行な
うことができる。これにより転送速度を倍にできるとと
もにアドレス可能な領域を倍増できる。
Therefore, MPU l connects PDM2 to PDM via MMU3.
By setting 3 bits of O to rlolJ, the output address of the DMAC 37 can be shifted by 1 bit using the address multiplexer 35 to perform a 32-bit width transfer. This allows the transfer speed to be doubled and the addressable area to be doubled.

以上の構成において、DMAタイプコードPDMにより
設定されるDMA転送幅はソフトウェア的に変更可能で
あるから、周辺装置に応じて設定変更を行なえるため、
柔軟性のあるシステムを構成することができる。
In the above configuration, the DMA transfer width set by the DMA type code PDM can be changed by software, so the setting can be changed depending on the peripheral device.
A flexible system can be configured.

[発明の効果] 以上から明らかなように1本発明によれば、中央処理装
置と、メモリおよび中央処理装置を介さずメモリ間の転
送を行なわせる転送制御装置を含む情報あ理装置におい
て、前記転送制御装置がメモリ転送を制御する際に出力
するメモリアドレスを所定ピット数シフトさせてアドレ
スバスに出力するアドレス変換手段を設けた構成を採用
しているので、転送制御装置の実際の転送幅よりも大き
な転送幅でデータ転送を行なえるとともに、転送制御手
段がアドレッシング可能なメモリ領域を増大させること
ができるため、メモリ転送の効率を増大させることがで
きる0本発明によれば、中央処理装置よりもバス幅の小
さい転送制御手段を用いる場合でも効率のよい転送制御
を行なえる。
[Effects of the Invention] As is clear from the above, according to the present invention, in an information processing device including a central processing unit, a memory, and a transfer control device that performs transfer between memories without going through the central processing unit, The memory address output by the transfer control device when controlling memory transfer is shifted by a predetermined number of pits and is outputted to the address bus. According to the present invention, the efficiency of memory transfer can be increased because data transfer can be performed with a large transfer width and the memory area that can be addressed by the transfer control means can be increased. Also, efficient transfer control can be performed even when using transfer control means with a small bus width.

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

第1図は本発明を採用した情報処理装置の構成を示した
ブロック図、第2図は第1図のMMUの構成を示したブ
ロック図、第3図はMMUの出力データを示した説明図
、第4図は第1図の7ドレスマルチプレクサの構成を示
した回路図、第5図はアドレス変換の様子を示した説′
明図、第6図は第1図の全体構成における動作を示した
フローチャート図である。 1・・・MPU 2・・・論理アドレスバス 3・・・MMU 35・・・アドレスマルチプレクサ 37・・・DMAC38・・・バスアービタMINM7
・・・メモリ 第3図 第4図 了Vし又イレクリノシトの1蛤e月口 第5図 偲王! 411@の70−+7− M6図 ト聾己
FIG. 1 is a block diagram showing the configuration of an information processing device adopting the present invention, FIG. 2 is a block diagram showing the configuration of the MMU in FIG. 1, and FIG. 3 is an explanatory diagram showing output data of the MMU. , Fig. 4 is a circuit diagram showing the configuration of the 7-dress multiplexer shown in Fig. 1, and Fig. 5 is a circuit diagram showing the state of address conversion.
6 is a flowchart showing the operation of the overall configuration of FIG. 1. 1...MPU 2...Logical address bus 3...MMU 35...Address multiplexer 37...DMAC38...Bus arbiter MINM7
...Memory Figure 3 Figure 4 Ryo V Shimata Irekuri no Shito's 1 Clam e Tsukiguchi Figure 5 Meiou! 411@70-+7- M6 figure to deaf self

Claims (1)

【特許請求の範囲】 1)中央処理装置と、メモリおよび中央処理装置を介さ
ずメモリ間の転送を行なわせる転送制御装置を含む情報
処理装置において、前記転送制御装置がメモリ転送を制
御する際に出力するメモリアドレスを所定ビット数シフ
トさせてアドレスバスに出力するアドレス変換手段を設
けたことを特徴とする情報処理装置。 2)前記アドレス変換手段のビットシフト幅を中央処理
装置により設定できるようにした特許請求の範囲第1項
に記載の情報処理装置。
[Scope of Claims] 1) In an information processing device including a central processing unit and a transfer control device that performs transfer between memories without going through the memory and the central processing unit, when the transfer control device controls memory transfer, An information processing device comprising an address converter that shifts an output memory address by a predetermined number of bits and outputs the shifted memory address to an address bus. 2) The information processing device according to claim 1, wherein the bit shift width of the address conversion means can be set by a central processing unit.
JP12968087A 1987-05-28 1987-05-28 Information processor Pending JPS63296157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12968087A JPS63296157A (en) 1987-05-28 1987-05-28 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12968087A JPS63296157A (en) 1987-05-28 1987-05-28 Information processor

Publications (1)

Publication Number Publication Date
JPS63296157A true JPS63296157A (en) 1988-12-02

Family

ID=15015517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12968087A Pending JPS63296157A (en) 1987-05-28 1987-05-28 Information processor

Country Status (1)

Country Link
JP (1) JPS63296157A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04167160A (en) * 1990-10-31 1992-06-15 Matsushita Electric Ind Co Ltd Information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04167160A (en) * 1990-10-31 1992-06-15 Matsushita Electric Ind Co Ltd Information processor

Similar Documents

Publication Publication Date Title
US4291371A (en) I/O Request interrupt mechanism
US4144562A (en) System and method for increasing microprocessor output data rate
JPH06175969A (en) Dma channel device and converter of dma channel
JPH04246745A (en) Memory access system
JP2845433B2 (en) Integrated circuit device
JPH0442699B2 (en)
US4344130A (en) Apparatus to execute DMA transfer between computing devices using a block move instruction
EP0301582B1 (en) Memory address generation apparatus
JPS63296158A (en) Information processor
JPS63296157A (en) Information processor
JPH0326864B2 (en)
JP3168845B2 (en) Digital signal processor
JP3127737B2 (en) Digital signal processor
JPS603049A (en) Bus interface apparatus
JPH04195563A (en) Controller for memory system
JPH09128324A (en) Device and method for controlling data transfer
JP2003186666A (en) Microcomputer and dma control circuit
JPH02195431A (en) Address operation control device
JPS63292355A (en) Control system for dma transfer
JPH0795315B2 (en) Data transfer control method
JPS63223934A (en) Storage device for micro-processor
JPS62293455A (en) Dma controller
JPS61267873A (en) Data processor
JPH02227761A (en) Data transfer controller and data processing system
JPH03266048A (en) Information processor