JPH02297653A - Information processor - Google Patents

Information processor

Info

Publication number
JPH02297653A
JPH02297653A JP11969889A JP11969889A JPH02297653A JP H02297653 A JPH02297653 A JP H02297653A JP 11969889 A JP11969889 A JP 11969889A JP 11969889 A JP11969889 A JP 11969889A JP H02297653 A JPH02297653 A JP H02297653A
Authority
JP
Japan
Prior art keywords
counter
processor
data transfer
data
address
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
JP11969889A
Other languages
Japanese (ja)
Inventor
Hideaki Fujimori
藤森 英明
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP11969889A priority Critical patent/JPH02297653A/en
Publication of JPH02297653A publication Critical patent/JPH02297653A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To improve a speed for transferring data by separately providing a hardware to detect the write cycle of a processor and to count the write cycle when the data are transferred. CONSTITUTION:An OR circuit 105 to detect the write cycle from a processor 101, a counter 103 to inform the processor 101 that the write cycle is counted up to a set value, a counter enable register 104, an address decoder 102 to access the counter 103 and counter enable register 104 from the processor 101 are provided as a hardware circuit. Thus, since the write cycle is detected and counted by the hardware separate from the processor 101 when the data are transferred, the speed is improved for transferring the data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理に利用する。本発明は情報処理に右け
るプロセッサなどによるデータ転送の高速化に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is used for information processing. The present invention relates to speeding up data transfer by a processor or the like involved in information processing.

〔概要〕〔overview〕

本発明はデータ転送処理を行うプロセッサを備えた情報
処理装置において、 データ転送時のプロセッサのライトサイクルを検出して
そのライトサイクルをカウントするハードウェアを別に
設けることにより、 データ転送を高速化できるようにしたものである。
In an information processing device equipped with a processor that performs data transfer processing, the present invention is capable of speeding up data transfer by separately providing hardware that detects write cycles of the processor during data transfer and counts the write cycles. This is what I did.

〔従来の技術〕[Conventional technology]

情報処理ではデータの転送は頻繁に行われ、データの転
送を高速化することは情報処理の性能を向上させること
につながる。
In information processing, data transfer is frequently performed, and speeding up data transfer leads to improved information processing performance.

従来、プロセッサなどによるデ−タ転送時理3図に示す
ような処理手順で行っていた。この処理手順はアドレス
レジスタAmの指しているアドレスからcount分の
データをアドレスレジスタAnの指しているアドレスへ
データ転送することを目的とするもので、まずAmの指
しているアドレスの内容をAnの指しているアドレスへ
データ転送し、そのあとAmの値とAnの値をインクリ
メントシ(ステップ201)、次にcountを1減ら
しくステップ201)、countが0でなければステ
ップ201へ戻り、countがOならばデータ転送が
終了しているので処理を終了する(ステップ203)。
Conventionally, data transfer by a processor or the like has been performed using a processing procedure as shown in Figure 3. The purpose of this processing procedure is to transfer count data from the address pointed to by address register Am to the address pointed to by address register An. First, the contents of the address pointed to by Am are transferred to the address pointed to by An. Transfer the data to the pointed address, then increment the value of Am and the value of An (step 201), and then reduce the count by 1 (step 201). If the count is not 0, return to step 201, and the count is If it is O, the data transfer has been completed, so the process ends (step 203).

(第4図中(Am)+の+はポストインクリメントを意
味する)。
(+ in (Am)+ in FIG. 4 means post-increment).

一般に、データの転送単位は1バイト、2バイト、ある
いは4バイトであり、転送単位によってインクリメント
する値は異なる。すなわち、1バイトならばインクリメ
ントする値は1であり、2バイトならば2.4バイトな
らば4である。
Generally, the data transfer unit is 1 byte, 2 bytes, or 4 bytes, and the incremented value differs depending on the transfer unit. That is, if it is 1 byte, the incremented value is 1, and if it is 2 bytes, it is 2.4 bytes, it is 4.

第4図はこの処理を概念的に示したもので、メモリ空間
を示しており、Amの指しているアドレスからcoun
t分のデータをAnの指しているアドレスへ転送するこ
とを示している。
Figure 4 conceptually shows this process, showing the memory space, starting from the address pointed to by Am and counting
This indicates that t worth of data is to be transferred to the address pointed to by An.

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

上述した従来のデータ転送では、データを転送するたび
にソフトウェアでカウントを1減らし終了条件を判定し
ているためにデータ転送を高速化できない欠点がある。
The above-described conventional data transfer has the disadvantage that data transfer cannot be made faster because the count is decremented by 1 each time data is transferred to determine the termination condition.

本発明はこのような欠点を除去するもので、データ転送
を高速化できる装置を提供することを目的とする。
The present invention aims to eliminate such drawbacks and to provide a device that can speed up data transfer.

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

本発明は、データ転送処理を実行するプロセッサを備え
た情報処理装置にふいて、前記プロセッサからのライト
サイクルを検出する手段と、この検出する手段により検
出されたライトサイクルを設定値までカウントしたとき
に前記プロセッサに通知するカウンタと、このカウンタ
をイネーブルにするカウンタイネーブルレジスタと、前
記カウンタおよび前記カウンタイネーブルレジスタを前
記プロセッサからアクセス可能にするアドレスデコーダ
とを上記プロセッサとは別にハードウェア回路として設
けたことを特徴とする。
The present invention provides an information processing device equipped with a processor that executes data transfer processing, a means for detecting write cycles from the processor, and a timer for counting the write cycles detected by the detecting means up to a set value. A counter that notifies the processor, a counter enable register that enables the counter, and an address decoder that makes the counter and the counter enable register accessible from the processor are provided as hardware circuits separately from the processor. It is characterized by

〔作用〕[Effect]

データ転送の処理では、カウンタにカウント数を設定し
、カウンタイネーブルレジスタに1を書き込み、カウン
タをイネーブルにする。その後ライトサイクルがあるた
びに一つずつカウントダウンする。次に転送元アドレス
から転送先アドレスにデータを転送し、両方のアドレス
値をインクリメントしこの処理を繰り返す。必要なデー
タ転送が行われて、さらにもう一度データ転送を行おう
としたときカウンタはアンダフローとなりプロセッサに
対してバスエラー信号を出力する。
In data transfer processing, a count number is set in the counter and 1 is written in the counter enable register to enable the counter. After that, each write cycle counts down by one. Next, data is transferred from the transfer source address to the transfer destination address, both address values are incremented, and this process is repeated. After the necessary data transfer has been performed, when another data transfer is attempted, the counter underflows and outputs a bus error signal to the processor.

バスエラー信号がプロセッサに送出されると、データ転
送は中断してバスエラー処理を実行する。
When a bus error signal is sent to the processor, data transfer is interrupted and bus error handling is performed.

このバスエラー処理では、真のバスエラーなのかカウン
タアンダフローによるものかが判断され、バスエラーで
あればバスエラー処理が行われ、カウンタアンダフロー
であればカウンタイネーブルレジスタをクリアしてデー
タ転送を行っていた処理へ制御を戻す。
In this bus error processing, it is determined whether it is a true bus error or a counter underflow. If it is a bus error, bus error processing is performed, and if it is a counter underflow, the counter enable register is cleared and data transfer is started. Return control to the processing that was being performed.

このようにデータ転送時のライトサイクルをプロセッサ
とは別のバードウ°エアで検出しかつライトサイクルを
カウントすることにより、データ転送を高速化すること
ができる。
In this way, by detecting write cycles during data transfer using hardware separate from the processor and counting the write cycles, it is possible to speed up data transfer.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。 Next, embodiments of the present invention will be described based on the drawings.

第1図は本発明実施例の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

本発明実施例は、データ転送処理を実行するプロセッサ
101を備えた情報処理装置に、プロセッサ101から
のライトサイクルを検出する論理和回路105と、この
論理和回路105により検出され通知されたライトサイ
クルを設定値までカウントしたときにプロセッサ101
に通知するカウンタ103と、このカウンタ103をイ
ネーブルにするカウンタイネーブルレジスタ104と、
カウンタ101およびカウンタイネーブルレジスタ10
4をプロセッサ101からアクセス可能にするアドレス
デコーダ102とをプロセッサ101 とは別にハード
ウェア回路として設ける。
In the embodiment of the present invention, an information processing apparatus equipped with a processor 101 that executes data transfer processing includes an OR circuit 105 that detects a write cycle from the processor 101, and a write cycle detected and notified by the OR circuit 105. The processor 101 counts up to the set value.
a counter 103 that notifies the user; a counter enable register 104 that enables the counter 103;
Counter 101 and counter enable register 10
An address decoder 102 that allows the processor 101 to access the address decoder 102 is provided as a hardware circuit separately from the processor 101.

カウンタ103はプロセッサ101のライトサイクルが
起こるたびにカウントダウンし、アンダフローするとカ
ウンタとしてディスエーブルとなる。
The counter 103 counts down every time a write cycle of the processor 101 occurs, and becomes disabled as a counter when it underflows.

フロセッサ101 はアドレスバス106.7’−タバ
ス107.0のときアドレスバスが有効となるアドレス
ストローブ信号線108、リードのとき1、ライトのと
き0を示すリード・ライト信号線109、およびプロセ
ッサ101へのアクノリッジ信号を送出するアクノリッ
ジ信号線などを含む制御線110に接続される。
The processor 101 is connected to an address strobe signal line 108 in which the address bus becomes valid when the address bus 106.7'-tabus 107.0 is active, a read/write signal line 109 that indicates 1 for read and 0 for write, and the processor 101. It is connected to a control line 110 including an acknowledge signal line for sending out an acknowledge signal.

7)’L/スデコータ102はアドレスバス106、ア
ドレスストローブ信号線108、制御線110に接続さ
れ、さらにプロセッサ101がカウンタイネーブルレジ
スタ104をアクセスするときに有効になるレジスタセ
レクト信号線111を介してカウンタイネーブルレジス
タ104に接続され、プロセッサ101がカウンタ10
3をアクセスするときに有効になるカウンタセレクト信
号線112を介してカウンタ103に接続される。
7) The L/S decoder 102 is connected to the address bus 106, the address strobe signal line 108, and the control line 110, and is further connected to the counter enable register 104 via the register select signal line 111, which is enabled when the processor 101 accesses the counter enable register 104. The processor 101 is connected to the enable register 104 and the counter 10
It is connected to the counter 103 via a counter select signal line 112 that becomes valid when accessing the counter 3.

カウンタ103 はデータバス107、リード・ライト
信号線109に接続され、さらにイネーブル信号線11
3を介してカウンタイネーブルレジスタ104に接続さ
れ、プロセッサのライトサイクル時0となりそれ以外の
ときは1となることによってカウンタ103へのクロッ
クを送る信号線114を介して論理和回路105に接続
され、プロセッサ101によって設定されたカウントを
越える(ダウンカウンタを想定しているために実際には
アンダフローする)とカウント分だけデータが転送され
、終了を通、知するためにプロセッサ101のバスエラ
ーへ出力する信号線(カウント分のデータ転送が終了し
たことを通知する信号線)115を介してプロセッサ1
01に接続される。
The counter 103 is connected to a data bus 107, a read/write signal line 109, and an enable signal line 11.
3 to the counter enable register 104, and is connected to the OR circuit 105 via a signal line 114 that becomes 0 during a write cycle of the processor and becomes 1 at other times to send a clock to the counter 103. When the count set by the processor 101 is exceeded (it actually underflows because it is assumed to be a down counter), data is transferred for the count, and is output to the bus error of the processor 101 to notify the end. The processor 1 is connected to the
Connected to 01.

カウンタイネーブルレジスタ104はデータバス107
、およびリード・ライト信号線109に接続され、論理
和回路105はアドレスストローブ信号線108、およ
びリード・ライト信号線109に接続される。
The counter enable register 104 is connected to the data bus 107.
, and read/write signal line 109, and OR circuit 105 is connected to address strobe signal line 108 and read/write signal line 109.

次に、このように構成された本発明実施例の動作につい
て説明する。その動作は従来例と同様第3図に示すよう
にアドレスレジスタAmの指しているアドレスからco
unt分のデータをアドレスレジスタAnの指している
アドレスへデータを転送する処理を行う。
Next, the operation of the embodiment of the present invention configured as described above will be explained. The operation is similar to the conventional example, as shown in FIG.
A process is performed to transfer the data for unt to the address pointed to by the address register An.

第2図(a)は本発明実施例のデータ転送の処理の流れ
を示す流れ図である。まず、カウンタ103にJラント
数を設定し、カウンタイネーブルレジスタ104に1を
書き込んでカウンタ103をイネーブルにする。以後カ
ウンタ103 はライトサイクルがあるたびに一つずつ
カウントダウンする(ステップ4G1)。
FIG. 2(a) is a flowchart showing the flow of data transfer processing according to the embodiment of the present invention. First, the J runt number is set in the counter 103, and 1 is written in the counter enable register 104 to enable the counter 103. Thereafter, the counter 103 counts down by one each time there is a write cycle (step 4G1).

次に、アドレスレジスタAmの指しているアドレスの内
容をアドレスレジスタAnの指しているアドレスへデー
タを転送し、そのあとAmの値とAnの値をインクリメ
ントする(ステップ402)。
Next, the contents of the address pointed to by address register Am are transferred to the address pointed to by address register An, and then the values of Am and An are incremented (step 402).

その後はこの処理を繰り返す。After that, this process is repeated.

第3図に示す従来例の処理の流れ図ではソフトウェアで
カウントダウンし0かどうかを判定してジャンプしてい
たが、第2図(a)ではステップ402で無条件ジャン
プするようになっている。そのかわりハードウェアでカ
ウントするためにステップ401でカウンタ103にカ
ウント数を設定し、カウンタ103をイネーブルにして
いる。
In the conventional processing flowchart shown in FIG. 3, the software counts down and determines whether it is 0 before jumping, but in FIG. 2(a), the jump is made unconditionally at step 402. Instead, in order to count by hardware, a count number is set in the counter 103 in step 401, and the counter 103 is enabled.

次にステップ402でのハードウェアの動作を説明する
。カウンタ103はイネーブル状態であるので、ライト
サイクルが起こるたびに(Amの指すアドレスの内容が
、Anの指すアドレスへ転送されるたびに)カウントダ
ウンされ、ステップ402でこのループが続く。必要な
データ転送がステップ402で行われて、さらにもう一
度データ転送を行おうとしたとき、カウンタ103はア
ンダフローとなり、プロセッサ101に対してバスエラ
ー信号を出力する。
Next, the operation of the hardware at step 402 will be explained. Since the counter 103 is enabled, it is counted down every time a write cycle occurs (every time the contents of the address pointed to by Am are transferred to the address pointed to by An), and this loop continues at step 402. When the necessary data transfer is performed in step 402 and another data transfer is attempted, the counter 103 underflows and outputs a bus error signal to the processor 101.

すなわち、必要なデータ転送が終了してもステップ40
2はさらにデータ転送を行おうとするために、それをカ
ウンタ103で阻止する。このときカウンタ103はア
ンダフローのままディスエーブルとなる。
In other words, even if the necessary data transfer is completed, step 40
2 tries to transfer data further, so the counter 103 prevents it. At this time, the counter 103 remains underflow and is disabled.

第2図(5)はバスエラー処理ルーチンでカウント分の
データ転送が行われた後信号115がプロセッサ101
のバスエラーに入ったときに行う処理の流れを示す流れ
図である。バスエラーがプロセッサ101 に入ると、
先のデータ転送は中断してバスエラー処理ルーチンにプ
ロセッサ101の制御が移る。
FIG. 2 (5) shows that the signal 115 is sent to the processor 101 after the counted data has been transferred in the bus error processing routine.
3 is a flowchart showing the flow of processing performed when a bus error occurs. When a bus error enters processor 101,
The previous data transfer is interrupted and control of the processor 101 is transferred to the bus error handling routine.

このときデータ転送を行おうとした命令のアドレスがス
タックに退避されるのは通常の処理どおりである。
At this time, the address of the instruction attempting to transfer data is saved on the stack as in normal processing.

バスエラー処理ルーチンでは、まず本当のバスエラーな
のか、カウンタアンダフローによるものなのかを調べる
(ステップ403)。もしカウンタアンダフローでなけ
れば真のバスエラーであるためバスエラ一時の処理を行
う(ステップ404)。ここでは通常のバスエラー処理
であるステップ404については言及を省略する。カウ
ンタアンダフローであれば、カウンタイネーブルレジス
タ104をクリアする(ステップ405)。これは次に
データ転送するときにカウンタをイネーブルにすること
ができるようにするために行う。
In the bus error processing routine, it is first checked whether it is a real bus error or a counter underflow (step 403). If the counter underflows, it is a true bus error, so temporary bus error processing is performed (step 404). Here, description of step 404, which is normal bus error processing, will be omitted. If the counter underflows, the counter enable register 104 is cleared (step 405). This is done so that the counter can be enabled the next time the data is transferred.

データ転送を行おうとしたいた命令のアドレスはスタッ
クに退避しである。すでに必要なデータは転送されてい
るのでこの命令自体は実行してはならない命令である。
The address of the instruction attempting to transfer data is saved on the stack. Since the necessary data has already been transferred, this command itself must not be executed.

したがって、この命令の次の命令に戻るように退避しで
ある命令のアドレスの次ヘジャンブする(ステップ40
6)。
Therefore, in order to return to the instruction next to this instruction, jump to the next address of the instruction (step 40).
6).

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

以上説明したように本発明によれば、データ転送時のラ
イトサイクルを検出してハードウェアでそのライトサイ
クルをカウントすることにより、わずかなハードウェア
の増加でデータ転送を高速化できる効果がある。
As described above, according to the present invention, by detecting write cycles during data transfer and counting the write cycles using hardware, it is possible to speed up data transfer with a slight increase in hardware.

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

第1図は本発明実施例の構成を示すブロック図。 第2図(a)およびら)は本発明実施例におけるデータ
転送の流れを示す流れ図。 第3図は従来例におけるデータ転送の流れを示す流れ図
。 第4図はデータ転送例の概念を示す図。 101・・・プロセッサ、102・・・アドレスデコー
ダ、103・・・カウンタ、104・・・カウンタイネ
ーブルレジスタ、105・・・論理和回路、106・・
・アドレスバス、107・・・データバス、108・・
・アドレスストローブ信号線、109・・・リード・ラ
イト信号線、110・・・その他の制御線、111・・
・レジスタセレクト信号線、112・・・カウンタセレ
クト信号線、113・・・カウンタイネーブル信号線、
114・・・カウンタへのクロック信号線、115・・
・カウント分のデータ転送が終了したことを通知する信
号線。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIGS. 2(a) and 2(a) are flowcharts showing the flow of data transfer in the embodiment of the present invention. FIG. 3 is a flowchart showing the flow of data transfer in a conventional example. FIG. 4 is a diagram showing the concept of an example of data transfer. 101... Processor, 102... Address decoder, 103... Counter, 104... Counter enable register, 105... OR circuit, 106...
・Address bus, 107...Data bus, 108...
・Address strobe signal line, 109...Read/write signal line, 110...Other control lines, 111...
- Register select signal line, 112... Counter select signal line, 113... Counter enable signal line,
114... Clock signal line to counter, 115...
・Signal line that notifies that the counted amount of data transfer has finished.

Claims (1)

【特許請求の範囲】 1、データ転送処理を実行するプロセッサを備えた情報
処理装置において、 前記プロセッサからのライトサイクルを検出する手段と
、 この検出する手段により検出されたライトサイクルを設
定値までカウントしたときに前記プロセッサに通知する
カウンタと、 このカウンタをイネーブルにするカウンタイネーブルレ
ジスタと、 前記カウンタおよび前記カウンタイネーブルレジスタを
前記プロセッサからアクセス可能にするアドレスデコー
ダと を上記プロセッサとは別にハードウェア回路として設け
たことを特徴とする情報処理装置。
[Scope of Claims] 1. In an information processing device equipped with a processor that executes data transfer processing, means for detecting write cycles from the processor, and counting the write cycles detected by the detecting means up to a set value. A counter that notifies the processor when the counter is activated, a counter enable register that enables the counter, and an address decoder that makes the counter and the counter enable register accessible from the processor as hardware circuits separate from the processor. An information processing device characterized by:
JP11969889A 1989-05-11 1989-05-11 Information processor Pending JPH02297653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11969889A JPH02297653A (en) 1989-05-11 1989-05-11 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11969889A JPH02297653A (en) 1989-05-11 1989-05-11 Information processor

Publications (1)

Publication Number Publication Date
JPH02297653A true JPH02297653A (en) 1990-12-10

Family

ID=14767857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11969889A Pending JPH02297653A (en) 1989-05-11 1989-05-11 Information processor

Country Status (1)

Country Link
JP (1) JPH02297653A (en)

Similar Documents

Publication Publication Date Title
US5748806A (en) Deskew circuit in a host interface circuit
US5524268A (en) Flexible processor-driven control of SCSI buses utilizing tags appended to data bytes to determine SCSI-protocol phases
JPS60258671A (en) Processor
US6205509B1 (en) Method for improving interrupt response time
JPS60235269A (en) Data transfer controller
JPS63127368A (en) Vector processing device control method
JPH03129448A (en) Data transfer controller
US6115767A (en) Apparatus and method of partially transferring data through bus and bus master control device
JP2536415B2 (en) DMA transfer control device
US5812878A (en) System for DMA transfer wherein controller waits before execution of next instruction until a counter counts down from a value loaded by said controller
JPH02297653A (en) Information processor
JPS6298430A (en) Microprocessor
JP3261665B2 (en) Data transfer method and data processing system
JP2990800B2 (en) Interrupt processing device
JP2594611B2 (en) DMA transfer control device
JPS59231639A (en) Terminal interface device
JP2679440B2 (en) Information processing device
JP2819705B2 (en) Data transfer control device
JPH01100652A (en) Direct memory access controller
JPS63233455A (en) Microprocessor
JPH04369065A (en) Direct memory access controller
JPS63273957A (en) High-speed data transfer device
JPS62151963A (en) Bus time-out circuit
JPH0479022B2 (en)
JPH03282669A (en) Inter-cpu interface circuit