JPH03189850A - Data processor - Google Patents
Data processorInfo
- Publication number
- JPH03189850A JPH03189850A JP33059189A JP33059189A JPH03189850A JP H03189850 A JPH03189850 A JP H03189850A JP 33059189 A JP33059189 A JP 33059189A JP 33059189 A JP33059189 A JP 33059189A JP H03189850 A JPH03189850 A JP H03189850A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- working
- transfer
- cpu
- 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
Links
- 230000015654 memory Effects 0.000 claims abstract description 59
- 238000000034 method Methods 0.000 claims abstract description 12
- 239000000872 buffer Substances 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- HJBWJAPEBGSQPR-UHFFFAOYSA-N DMCA Natural products COC1=CC=C(C=CC(O)=O)C=C1OC HJBWJAPEBGSQPR-UHFFFAOYSA-N 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、パーソナルコンピュータやエンジニャリング
ワークステーション等に用いられるデータ処理装置に関
する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a data processing device used in personal computers, engineering workstations, and the like.
従来の技術
従来この種装置は、第4図に示すように、データの加工
やデータのアクセス、その他の各種■10、LSI等の
制御を行う中央処理装置(以下、CPUと略称する。)
1と、CPUとは独立に一方のメモリから他方のメモリ
へデータの転送を行うダイレクトメモリアクセスコント
ローラ(以下、DMACと略称する。)2と、CPUや
LSI等の各種マスクからのデータを記憶しまたは出力
する複数のメモリ3および4と、これらCPUI、DM
AC2およびメモリ3.4等がそれぞれ結合されて、デ
ータおよび制御信号等の通路となるバス5とから構成さ
れていた。BACKGROUND ART Conventionally, as shown in FIG. 4, this type of device is a central processing unit (hereinafter abbreviated as CPU) that processes data, accesses data, and controls various other devices such as 10 and LSI.
1, a direct memory access controller (hereinafter abbreviated as DMAC) 2, which transfers data from one memory to another independently of the CPU, and a direct memory access controller (hereinafter abbreviated as DMAC) 2, which stores data from various masks such as the CPU and LSI. Or multiple memories 3 and 4 to output, these CPUI, DM
It consisted of a bus 5 to which an AC 2, memories 3, 4, etc. were coupled, and served as a path for data, control signals, etc.
メモリ3からメモリ4へのデータの転送は、CPUIを
介したプログラム転送と、CPU1を介さずにDMAC
2によるDMA転送とが出来るようになっている。DM
A転送の場合、メモlJ3に記憶されたデータについて
ピントを反転したシ、上位および下位バイトを交換しだ
シ等の加工を要するときは、従来は一旦CPU1で加工
してからDMCA2によυメモリ4へ転送していた。ま
た、プログラム転送の場合には、CPU1がメモリ3内
のデータを加工して直接メモリ4へ転送していた。Data is transferred from memory 3 to memory 4 by program transfer via CPUI and DMAC without via CPU1.
2 DMA transfer is now possible. DM
In the case of A transfer, when the data stored in the memory lJ3 requires processing such as reversing the focus or exchanging the upper and lower bytes, conventionally, the data is processed by the CPU 1 and then transferred to the υ memory by the DMCA 2. It was transferred to 4. Furthermore, in the case of program transfer, the CPU 1 processes data in the memory 3 and directly transfers it to the memory 4.
このようなりMA転送については特開昭58−8336
号公報等に記載されている。Regarding such MA transfer, Japanese Patent Application Laid-Open No. 58-8336
It is stated in the publication number etc.
発明が解決しようとする課題
しかしながら、このような構成によれば、DMA転送の
際に転送時間が長くかかるという問題があった。これは
メモリ3のデータを転送する際、CPUIがメモリ3か
らデータを取り出し、そのデータをCPUI内部で加工
し終わった後にメモリ4へ書き込むという動作を行わな
ければならないからである。本来DMA転送は、CPU
からの指令により、メモリ内のある領域のデータを他の
メモリへCPUを介さず直接に行うことを目的としてい
るのに対して、上述の構成ではデータの加工のためにC
PUを一旦通すため、転送時間がよけいにかかっていた
のである。Problems to be Solved by the Invention However, with this configuration, there is a problem in that it takes a long time to perform DMA transfer. This is because when transferring data in the memory 3, the CPU must take out the data from the memory 3, process the data inside the CPU, and then write it into the memory 4. Originally, DMA transfer was performed by CPU
The purpose is to directly transfer data from a certain area of memory to another memory without going through the CPU, based on commands from the CPU.
Because the data had to go through the PU once, the transfer time took longer.
本発明は、上述の問題点に鑑みてなされたもので、デー
タの加工を必要とするDMA転送の場合に転送時間を短
くすることの出来るデータ処理装置を提供することを目
的とする。The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to provide a data processing device that can shorten the transfer time in the case of DMA transfer that requires data processing.
課題を解決するための手段
本発明は、上述の問題点を解決するため、バスとデータ
の転送を受けるメモリとの間にデータ加工装置を介在さ
せるという構成を備えたものである。Means for Solving the Problems In order to solve the above-mentioned problems, the present invention has a configuration in which a data processing device is interposed between a bus and a memory that receives data transfer.
作用
本発明は、上述の構成によって、一方のメモリから他方
のメモリへデータをDMA転送する際に、データの加工
をCPUが行うこと欧<、データ加工装置によシデータ
を転送しながら行うことが可能となる。Effects of the present invention With the above-described configuration, when data is transferred from one memory to another memory by DMA, the data processing can be performed by the CPU while the data is being transferred to the data processing device. It becomes possible.
実施例
第1図は本発明の一実施例によるデータ処理装置の概略
構成を示すものである。11はデータの各種演算による
加工、データの読み出しおよび書き込みのだめのアクセ
ス、その他各種I10、LSI等の制御を行うCPU、
12はメモリとメモリとの間のデータの転送をCP U
11とは独立して行うDMAC,13は転送する前の
データが格納されているメモリ、14はメモリ13から
のデータを加工した後に受けるメモリ、15は制御信号
等の通路となり、CPUII、DMAC12、メモリ1
3.14およびその他の図示されないコントローラ等を
結合してデータまたは信号の交換を行うバス、16はバ
ス15とデータの転送を受けるメモリ14との間に接続
されて、データの加工を行うデータ加工装置である。Embodiment FIG. 1 shows a schematic configuration of a data processing apparatus according to an embodiment of the present invention. 11 is a CPU that processes data through various calculations, accesses data for reading and writing, and controls various I10, LSI, etc.;
12 is a CPU that transfers data between memories.
13 is a memory that stores data before being transferred; 14 is a memory that receives data after processing it from the memory 13; 15 is a path for control signals, etc.; CPU II, DMAC 12, memory 1
3. A bus that connects 14 and other controllers (not shown) to exchange data or signals; 16 a data processing bus that is connected between the bus 15 and the memory 14 that receives data transfer; and 16 a data processing bus that processes data; It is a device.
第2図にはこのデータ加工装置16の詳細が示されてい
る。17はバス15を介して転送されてきたデータを一
旦蓄える入力バッファ、18はCPUIIがらの加工の
有無や種類等の指令によりデータ加工ユニット19を制
御するコントローラ、19はコントローラ18の指令に
従って入力バッファ17からバイト分のデータを取り出
して加工する加工ユニット、加はメモリ14へ加工済み
のデータを一旦蓄える出力バッファである。FIG. 2 shows details of this data processing device 16. 17 is an input buffer that temporarily stores the data transferred via the bus 15; 18 is a controller that controls the data processing unit 19 according to instructions from the CPU II such as whether or not to process and the type of processing; and 19 is an input buffer that follows instructions from the controller 18. A processing unit extracts and processes byte worth of data from 17, and an output buffer temporarily stores the processed data in memory 14.
以上のように構成されたデータ処理装置について、以下
その動作を第3図のフローチャートを参照して説明する
。The operation of the data processing apparatus configured as described above will be explained below with reference to the flowchart shown in FIG.
メモリ13内には加工した後にメモリ14へ転送を希望
するデータが格納されている。まず、メモリ13からC
PUIIへDMA転送の要求があると(ステップ21)
、CPUIIからDMAC12へ転送開始要求の指令
が出され(ステップ22) 、DMAC12がこれを受
は付けると、CPU11はメモリ13のどの領域のデー
タを転送するのかを指示する開始アドレスとその開始ア
ドレスからのオフセット値をDMACI2へ渡す(ステ
ップ23)。そして転送しようとするデータについてメ
モリ13からデータの加工要求があったか否かが判定さ
れ(ステップ24)、加工要求があった場合には、CP
U11からデータ加工装置16のコントローラ18ヘデ
ータの加工およびどのように加工するかの指示を与える
制御信号が出力され(ステップ25)、コントローラ1
8ハテータ加工ユニツト19をオンさせる(ステップ2
6)。The memory 13 stores data that is desired to be transferred to the memory 14 after being processed. First, from memory 13 to C
When there is a request for DMA transfer to PUII (step 21)
, a command to request the start of transfer is issued from the CPU II to the DMAC 12 (step 22), and when the DMAC 12 accepts the command, the CPU 11 selects the start address that indicates which area of the memory 13 to transfer data, and from that start address. The offset value of is passed to DMACI2 (step 23). Then, it is determined whether or not there is a data processing request from the memory 13 for the data to be transferred (step 24), and if there is a processing request, the CP
A control signal is output from U11 to the controller 18 of the data processing device 16 for processing the data and giving instructions on how to process the data (step 25).
8 Turn on the hatter processing unit 19 (Step 2
6).
一方、DMAC12は転送しようとするメモリ13のデ
ータをバス15を介して取り出しくステップ27)、デ
ータ加工装置16は取シ出されたデータの加工を行う(
ステップ28)。データはデータ加工装置16の入力バ
ッファ17かいっばいになるまで取シ出され、順次デー
タ加工ユニット19で加工された後、出力バッファ加に
渡され、メモリI4に転送される(29)。On the other hand, the DMAC 12 retrieves the data from the memory 13 to be transferred via the bus 15 (step 27), and the data processing device 16 processes the retrieved data (step 27).
Step 28). The data is extracted until the input buffer 17 of the data processing device 16 is almost full, and after being sequentially processed by the data processing unit 19, it is passed to the output buffer and transferred to the memory I4 (29).
データの加工要求のなかった通常のDMA転送の場合は
、ステップ24で加工要求がないと判定され、ステップ
若でメモ1月3からデータを取シ出し、そのままステッ
プ29でメモリ14へ転送する。この場合、CPU11
からはデータ加工装置16のコントローラ18へ制御信
号が出力されないので、入カバンファ工7、データ加工
ユニノト19および出カバソファ20は単なるバッファ
とシテ働く。In the case of normal DMA transfer in which there is no data processing request, it is determined in step 24 that there is no processing request, and the data is extracted from the memo January 3 in step 29 and transferred to the memory 14 as is in step 29. In this case, CPU11
Since no control signal is output from the controller 18 to the controller 18 of the data processing device 16, the input bag buffer 7, the data processing unit 19, and the output cover sofa 20 function as mere buffers.
上述の実施例においては、データの転送がメモリ13か
らメモリ14へと行われているが、第4図に示すように
、バス15と両方のメモリ13および14との間にそれ
ぞれデータ加工装置16を介在させることにより、メモ
リ13からメモリ14へだけでなく、メモリ14からメ
モリ13へのデータ転送も可能になる。In the embodiment described above, data is transferred from memory 13 to memory 14, but as shown in FIG. By interposing the , data can be transferred not only from the memory 13 to the memory 14 but also from the memory 14 to the memory 13.
発明の効果
以上の説明から明らかなようK、本発明は、バスとデー
タの転送を受けるメモリとの間にデータ加工装置を介在
させることによって、一方のメモリから他方のメモリへ
DMA転送する際に、データの加工をCPUが行うこと
なくデータ加工装置が行うため、データを加工しながら
データの転送を行うことができ、転送時間を短縮するこ
とが出来るという効果を有する。Effects of the Invention As is clear from the above description, the present invention provides a data processing device that is interposed between a bus and a memory receiving data transfer, thereby improving DMA transfer from one memory to another memory. Since the data processing device processes the data without the CPU, the data can be transferred while the data is being processed, and the transfer time can be shortened.
第1図は本発明の一実施例を示すデータ処理装置の概略
ブロフク図、第2図は本発明の一実施例におけるデータ
加工装置の概略ブロック興、第3図は本発明の一実施例
における動作を説明するためのフローチャート、第4図
は本発明の他の実施例を示す概略ブロック図、第5図は
従来のデータ処理装置の一例を示す概略ブロック図であ
る。
11・・・中央処理装置(CPU)、12・・・ダイレ
クトメモリアクセスコントローラ(DMAC) 、13
゜14・・・メモリ、15・・・バス、16・・・デー
タ加工装置、17・・・入カバノファ、18・・・コン
トローラ、19・・・データ加工ユニノト、加・・・出
力バッファ。FIG. 1 is a schematic block diagram of a data processing apparatus according to an embodiment of the present invention, FIG. 2 is a schematic block diagram of a data processing apparatus according to an embodiment of the present invention, and FIG. 3 is a schematic block diagram of a data processing apparatus according to an embodiment of the present invention. FIG. 4 is a schematic block diagram showing another embodiment of the present invention, and FIG. 5 is a schematic block diagram showing an example of a conventional data processing device. 11... Central processing unit (CPU), 12... Direct memory access controller (DMAC), 13
14...Memory, 15...Bus, 16...Data processing device, 17...Input cover, 18...Controller, 19...Data processing unit, addition...Output buffer.
Claims (1)
モリとダイレクトメモリアクセスコントローラと、前記
バスとデータの転送を受けるメモリとの間に接続された
データ加工装置とを有し、前記ダイレクトメモリアクセ
スコントローラによる一方のメモリから他方のメモリへ
のデータの転送を前記データ加工装置によりデータを加
工しながら行うことを特徴とするデータ処理装置。a central processing unit, a plurality of memories, and a direct memory access controller coupled to each other via a bus; and a data processing device connected between the bus and the memory receiving data transfer, the direct memory access A data processing device characterized in that a controller transfers data from one memory to another memory while the data processing device processes the data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP33059189A JPH03189850A (en) | 1989-12-20 | 1989-12-20 | Data processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP33059189A JPH03189850A (en) | 1989-12-20 | 1989-12-20 | Data processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03189850A true JPH03189850A (en) | 1991-08-19 |
Family
ID=18234367
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP33059189A Pending JPH03189850A (en) | 1989-12-20 | 1989-12-20 | Data processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03189850A (en) |
-
1989
- 1989-12-20 JP JP33059189A patent/JPH03189850A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS5943456A (en) | information processing equipment | |
| JP2007520770A (en) | Readable virtual DMA control and status register | |
| JPH0553902A (en) | Memory control circuit | |
| JP2522412B2 (en) | Communication method between programmable controller and input / output device | |
| JP2594673B2 (en) | Data processing method | |
| JPH08278939A (en) | Data transfer method and data transfer device | |
| JP2687716B2 (en) | Information processing device | |
| JPS6217780B2 (en) | ||
| JPH01142962A (en) | Data transfer control system | |
| JPS60142450A (en) | Storage system | |
| JPH05210617A (en) | Bus extending device | |
| JPS60136853A (en) | Data transfer system | |
| JPS59189433A (en) | Data erasing system by direct memory access | |
| JPH01318140A (en) | Multiprocessor system | |
| JPH01175656A (en) | High speed data transferring system | |
| JPH01140272A (en) | Picture processor | |
| JPH02299076A (en) | Image data upside down system | |
| JPH02307149A (en) | Direct memory access control method | |
| JPH06131292A (en) | Data transfer method | |
| JPS60112160A (en) | Control system of input/output device | |
| JPS60186955A (en) | Dma control system | |
| JPS6132710B2 (en) | ||
| JPS63163952A (en) | Data transfer system | |
| JPS60231232A (en) | Control method of magnetic tape device in multiprocessor | |
| JPS61296459A (en) | Data processor |