Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5932815B2 - data processing system - Google Patents
[go: Go Back, main page]

JPS5932815B2 - data processing system - Google Patents

data processing system

Info

Publication number
JPS5932815B2
JPS5932815B2 JP4556180A JP4556180A JPS5932815B2 JP S5932815 B2 JPS5932815 B2 JP S5932815B2 JP 4556180 A JP4556180 A JP 4556180A JP 4556180 A JP4556180 A JP 4556180A JP S5932815 B2 JPS5932815 B2 JP S5932815B2
Authority
JP
Japan
Prior art keywords
data
memory
address
counter
output device
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.)
Expired
Application number
JP4556180A
Other languages
Japanese (ja)
Other versions
JPS56143038A (en
Inventor
英夫 宇留賀
稔 畑田
博夫 竹之内
邦夫 桧山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP4556180A priority Critical patent/JPS5932815B2/en
Publication of JPS56143038A publication Critical patent/JPS56143038A/en
Publication of JPS5932815B2 publication Critical patent/JPS5932815B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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)

Description

【発明の詳細な説明】 本発明は、プロセッサに接続されたメモリヘ、外部から
データを人力するデータ処理システムに関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data processing system that manually inputs data from the outside into a memory connected to a processor.

第1図は、従来のデータ処理システムに関する。FIG. 1 relates to a conventional data processing system.

データ出力装置から供給されるデータを高速でプロセッ
サが取り込むため従来より行なわれている方式としてダ
イレクトメモリアクセス(DMA)方式がある。第1図
はDMA方式による情報処理装置の概念図である。通常
DMA方式では複数のデータを1ブロックとして取り扱
う。データを送る側の装置REQはダイレクトメモリア
クセスコントローラ(以下コントローラ)DMACに対
して転送要求TXRQを出す。コントローラDMACは
プロセツサPに対してDMAリクエストDRを出す。プ
ロセツサPはこのリクエストDRを受け取るとそれまで
実行していた処理を停止しDMA許可信号DGを出す。
許可信号DGの信号はコントローラDMACに入力され
ると同時にインバータINを通りゲートAGO,DGO
を閉じ、アドレスバスA,データバスDがプロセツサP
により使用されないようにする。コントローラDMAC
は許可信号DGを受けるとゲートAGlを開ける信号を
、このゲートAGlに送出するとともに、この開かれた
ゲートAGlを介して、アドレスバスAに、メモリME
Mをアクセスするためのアドレスを出力する。
2. Description of the Related Art A direct memory access (DMA) method is a conventional method for allowing a processor to take in data supplied from a data output device at high speed. FIG. 1 is a conceptual diagram of an information processing device using the DMA method. Normally, in the DMA method, multiple pieces of data are handled as one block. The device REQ on the data sending side issues a transfer request TXRQ to the direct memory access controller (hereinafter referred to as controller) DMAC. The controller DMAC issues a DMA request DR to the processor P. When processor P receives this request DR, it stops the processing that was being executed up to that point and issues a DMA permission signal DG.
The permission signal DG is input to the controller DMAC and at the same time passes through the inverter IN to the gates AGO and DGO.
is closed, and address bus A and data bus D are connected to processor P.
Prevent it from being used by Controller DMAC
When it receives the enable signal DG, it sends a signal to open the gate AGl to this gate AGl, and also sends the memory ME to the address bus A via this opened gate AGl.
Outputs the address for accessing M.

出力されるアドレスは事前に決められたアドレスで、デ
ータ出力装置REQからデータをメモリMEMに書き込
むためのメモリアドレスである。さらに、コントローラ
DMACは許可信号DGを受けると、データ出力装置R
EQに対して転送許可T>(STBを出す。信号TXS
TBを受けたデータ出力装置REQはゲートDGlを開
ける信号のこのゲート トに送出するとともに、データ
をこのゲートDGlを介して、データバスDに出力する
。これによりコントローラDMACからすでに出力され
ているメモリMEMのアドレス位置にこのデータを書き
込むことができる。すなわち、通常は、プロセツサPが
使用しているバスA,Dを外部からのデータ転送時には
、バスAをコントローラDMACが、バスDをデータ出
力装置REQが使用して、メモリMEMにデータを書き
込む。又前述の通りデータはプロツクで送られるので、
1つのデータをメモリMEMに書き込むとコントローラ
DMACが出力するアドレスは自動的に1加算(又は減
算)されるのが普通である。そして1プロツク分の転送
が終えると、データ出力装置REQ又はコントローラD
MACが転送終了を出し(図では省略)プロセツサPは
転送があつたことを知り、又停止状態から実行状態にな
る。このようにして、DMA方式では、1プロツク内の
データを高速にメモリMEMに入力できてる。
The output address is a predetermined address and is a memory address for writing data from the data output device REQ into the memory MEM. Further, when the controller DMAC receives the permission signal DG, the data output device R
Transfer permission T>(STB is issued for EQ. Signal TXS
The data output device REQ receiving TB sends a signal to open the gate DGl, and outputs the data to the data bus D via the gate DGl. This allows this data to be written to the address location of the memory MEM that has already been output from the controller DMAC. That is, normally, when transferring data from the outside through buses A and D used by processor P, bus A is used by controller DMAC and bus D is used by data output device REQ to write data into memory MEM. Also, as mentioned above, data is sent by block, so
When one piece of data is written to the memory MEM, the address output by the controller DMAC is usually automatically incremented (or subtracted) by 1. When the transfer for one block is completed, the data output device REQ or the controller D
The MAC issues a transfer end signal (not shown in the figure), and the processor P knows that the transfer has occurred, and changes from the stopped state to the running state. In this way, in the DMA system, data within one block can be inputted into the memory MEM at high speed.

しかし、次のプロツクのデータをメモリMEMに・入力
するには、前回のプロツクのデータのプロセツサPによ
る処理が終つていなければならない。従つてデータ出力
装置REQからメモリMEMにデータを転送する速度は
、プロセツサPによるデータ処理速度により制限される
という問題を有する。本発明は従来のこのような問題を
解決し、プロセツサが先のデータの処理を実行中でも、
メモリに外部からデータを書き込むことができるデータ
転送装置を提供することを目的とする。
However, in order to input the data of the next block into the memory MEM, the processing of the data of the previous block must be completed by the processor P. Therefore, there is a problem in that the speed at which data is transferred from the data output device REQ to the memory MEM is limited by the data processing speed by the processor P. The present invention solves these conventional problems, and even when the processor is processing the previous data,
An object of the present invention is to provide a data transfer device that can write data into a memory from the outside.

第2図は実施例のプロツク図である。FIG. 2 is a block diagram of the embodiment.

第2図の内、第1図と同一の記号のものは、第1図のも
のと同一のものをさす。メモリMEMには、第3図に示
すように、アドレスA。
In Figure 2, the same symbols as in Figure 1 refer to the same items as in Figure 1. The memory MEM has an address A as shown in FIG.

からA。までの領域を、データ出力装置REQからのデ
ータを格納するためのデータ転送用領域とする。この領
域は、複数のプロツクのデータを格納するのに十分な大
きさとする。データ転送をするに際して、データ出力装
置REQは、従来と同じく、転送要求TXRQを出力す
る。
From A. The area up to is a data transfer area for storing data from the data output device REQ. This area should be large enough to store data for multiple programs. When transferring data, the data output device REQ outputs a transfer request TXRQ as in the conventional case.

コントローラDMACは、従来と同じくDMAリクエス
トDRをプロセツサPに送り、プロセツサPが、このリ
クエストに応答して、処理を停止して許可信号DGを送
る。
The controller DMAC sends a DMA request DR to the processor P, as in the conventional case, and in response to this request, the processor P stops processing and sends a permission signal DG.

コントローラDMACは、この許可信号DGに応答して
転送許可信号TXSTBをデータ出力装置REQに送出
する。このとき、信号DGによりゲートAGO,DGO
はオフとされている。データ出力装置REQは、この転
送許可信号TXSTBに応答して、転送したい語数SC
をデータとしてデータ線Dを介してメモリMEMに送る
Controller DMAC sends transfer permission signal TXSTB to data output device REQ in response to this permission signal DG. At this time, the gates AGO and DGO are activated by the signal DG.
is considered off. In response to this transfer permission signal TXSTB, the data output device REQ outputs the number of words SC to be transferred.
is sent as data to the memory MEM via the data line D.

コントローラDMACは、このデータを、メモリMEM
内の転送領域内の先頭アドレスA。にストアするために
、内蔵するアドレスカウンタ(図示せず)により、アド
レス線AにアドレスA。を出力する。データ出力装置R
EQは、その後、データを1ワードずつデータ線Dに送
出し、コントローーラDMACは、アドレスカウンタの
出力するアドレスを1つずつ更新してアドレス線Aに送
出する。こうしてメモリMEMに、語数SCに等しいワ
ード数のデータがストアされる。これらのデータの転送
後データ出力装置REQはカウンタCNをカウントアツ
プ線UPにより1増加させる。カウンタCNの出力はオ
ア回路0Rに入力されており、このオア回路0Rは、カ
ウンタCNの内容がゼロ以外の時、割込み線1NTによ
りプロセツサPに割込み要求を出す。プロセツサPは割
込みを受けるとメモリのアドレヌA。から語数SCを取
り出し、転送語数を知り、アドレスA。のつぎの領域か
ら転送語数SCに等しいワード数のデータを取り出し、
処理をする。このときプロセツサPは語数SCと、先頭
アドレスA。とから次のプロツクのデータが転送される
アドレスa1を計算し、これを記憶しておき、次のプロ
ツクが転送されてきた場合はアドレスA。でなく、アド
レスA,からデータを取り出す準備をする。さらにプロ
セツサPはデータ処理後カウントダウン線DNによりカ
ウンタCNをカウントダウンさせる。データ出力装置R
EQは、上述のデータ送出後、更に、1プロツク分のデ
ータを送出したいときは、上述したのと全く同じように
して、転送語数および転送すべきデータをデータ線Dに
出力する。
The controller DMAC transfers this data to the memory MEM
Start address A within the transfer area. A built-in address counter (not shown) causes address A to be stored on address line A. Output. Data output device R
The EQ then sends the data word by word to the data line D, and the controller DMAC updates the address output from the address counter one by one and sends it to the address line A. In this way, data of the number of words equal to the number of words SC is stored in the memory MEM. After transferring these data, the data output device REQ increments the counter CN by 1 via the count up line UP. The output of the counter CN is input to an OR circuit 0R, and this OR circuit 0R issues an interrupt request to the processor P via an interrupt line 1NT when the contents of the counter CN are other than zero. When processor P receives an interrupt, it reads memory address A. Take out the number of words SC from , know the number of transferred words, and move to address A. Extract data with the number of words equal to the number of transferred words SC from the next area,
Process. At this time, the processor P has the number of words SC and the start address A. From this, calculate the address a1 to which the data of the next block will be transferred, store this, and when the next block is transferred, address A1. Instead, prepare to retrieve data from address A. Furthermore, after processing the data, the processor P causes the counter CN to count down using the countdown line DN. Data output device R
After the above-mentioned data transmission, when the EQ wants to further transmit one block's worth of data, it outputs the number of words to be transferred and the data to be transferred to the data line D in exactly the same manner as described above.

このとき、コントローラDMACは、その中のカウンタ
により、メモリMEM内のアドレヌa1から順次1プロ
ツク分のデータストアのためのアドレスをアドレス線A
に送出する。従つて、メモリMEMのアドレス而から始
まる位置にストアされたデータの処理がプロセツサPに
より、まだなされていなくても、このデータを書きかえ
ることなく次のデータをメモリMEMにストアできる。
プロセツサPは、割込み信号線1NTからの割込み信号
に応答して、メモリMEMのこのアドレスa1から順次
データを読出す、プロセツサPは、上述のごとく、この
アドレスを、先に読出したデータから計算して記憶して
いる。以後、データ出力装置REQは、同じように、複
数のプロツクのデータを順次、メモリMEMに送出する
ことができる。
At this time, the controller DMAC uses a counter in the controller DMAC to sequentially set addresses for data storage of one block from address a1 in the memory MEM to the address line A1.
Send to. Therefore, even if the processor P has not yet processed the data stored at the location starting from the address in the memory MEM, the next data can be stored in the memory MEM without rewriting this data.
In response to the interrupt signal from the interrupt signal line 1NT, the processor P sequentially reads data from this address a1 of the memory MEM.As mentioned above, the processor P calculates this address from the previously read data. I remember that. Thereafter, the data output device REQ can similarly sequentially send data of a plurality of blocks to the memory MEM.

このとき、プロセツサPは、メモリMEM内の1プロツ
ク分のデータを処理後、カウンタCNをカウントダウン
する。従つて、カウンタCNは、現在、メモリMEMに
ある、未処理のデータのプロツク数を示す。メモリME
Mの転送領域の容量は有限であるので、データをこのよ
うに順次格納していくと、用意した転送用領域の容量を
越えるデータを格納せざるをえない事態も生じうる。
At this time, the processor P counts down the counter CN after processing data for one block in the memory MEM. Therefore, the counter CN indicates the number of blocks of unprocessed data currently in the memory MEM. Memory ME
Since the capacity of the M transfer area is finite, if data is stored sequentially in this manner, a situation may arise in which data exceeding the capacity of the prepared transfer area must be stored.

これを防止するためコントローラDMACはアドレスA
。まで格納した後は再びアドレスA。からデータ格納す
る機能を持たせる。このために、アドレスカウンタがア
ドレスAOをカウントした後は、AOをセツトするよう
に、循環的にアドレスを出力する。通常この機能はデー
タチエーンと言われ、市販されているコントローラDM
ACにはすでに設けられている。この場合、データ出力
装置REQが、アドレスAnまでの領域にデータを入力
した後、改めて、アドレスA。
To prevent this, the controller DMAC uses address A.
. After storing up to address A again. Provide a function to store data from. For this purpose, after the address counter counts the address AO, the address is output cyclically so as to set AO. This function is usually called a data chain, and is a commercially available controller DM.
It is already installed in AC. In this case, the data output device REQ inputs data to the area up to the address An, and then inputs the data to the area up to the address An.

からの領域にデータを入力するためには、アドレスA。
から始まるデータがすでにプロセツサPにより処理され
ていなければならない。そうでない場合はデータ出力装
置REQからのデータ転送を禁止しなければならない。
このため、カウンタCNの出力をデコーダDECにより
デコードし、転送マスク線MSKによりデータ出力装置
REQに知らせる。つまり、カウンタCNの内容が一定
値に達したらデータ出力装置REQはデータの転送を禁
止にする。1プロツクで転送する最大語数と、メモリM
EMの転送領域の容量からこの一定値をきめる。
To input data into the area from address A.
Data starting from must already be processed by processor P. Otherwise, data transfer from the data output device REQ must be prohibited.
Therefore, the output of the counter CN is decoded by the decoder DEC and notified to the data output device REQ via the transfer mask line MSK. That is, when the contents of the counter CN reach a certain value, the data output device REQ prohibits data transfer. Maximum number of words transferred in one block and memory M
This constant value is determined from the capacity of the EM transfer area.

例えば1プロツクの最大語数を100とし、メモリME
Mの転送領域の容量を500とすれば、デコーダDEC
は、カウンタCNの値が5になれば1111信号を出力
するように構成すれば良いことになる。このようにして
、プロセツサPが既に転送されたデータ処理が完了して
いない場合でも、データ出力装置REQは、次のデータ
を転送することができる。
For example, if the maximum number of words in one block is 100, the memory ME
If the capacity of the transfer area of M is 500, the decoder DEC
Therefore, it is sufficient to configure the circuit so that the 1111 signal is output when the value of the counter CN reaches 5. In this way, even if the processor P has not finished processing the data that has already been transferred, the data output device REQ can transfer the next data.

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

第1図は従来のデータ処理システムの構成図、第2図は
、本発明の一実施例を示す図、第3図は、本発明で用い
るメモリのデータ転送領域の説明図である。 P・・・・・・プロセツサ、DMAC・・・・・・ダイ
レクトメモリアクセスコントローラ、REQ・・・・・
・データ出力装置、MEM・・・・・・メモリ。
FIG. 1 is a block diagram of a conventional data processing system, FIG. 2 is a diagram showing an embodiment of the present invention, and FIG. 3 is an explanatory diagram of a data transfer area of a memory used in the present invention. P...Processor, DMAC...Direct memory access controller, REQ...
・Data output device, MEM...Memory.

Claims (1)

【特許請求の範囲】 1 データ処理装置と、メモリと、データ出力装置と、
該データ出力装置からのデータを該メモリにストアする
ための制御回路と、該メモリに転送されたデータ量をブ
ロックごとにカウントするためのカウンタと、該カウン
タの内容が第1の条件を満すときには、該処理装置にデ
ータ処理要求を出力する手段と、該カウンタの内容が第
2の条件を満すときには、該データ出力装置のデータ転
送を禁止する手段と、を有し、該処理装置が、該データ
処理要求に応答して該メモリ内のデータをアクセスした
データの処理の終了後、該カウンタを第1の向きにカウ
ントさせる手段と、該データ出力装置が、該メモリにブ
ロックごとにデータを転送後、該カウンタを上記第1の
向きと逆の向きにカウントする手段とを有するデータ処
理システム。 2 該データ出力装置は、転送すべきデータ量を表わす
転送量データを、該転送すべきデータとともに該メモリ
に送出するものであり、該処理装置は、該メモリから該
転送量データを読出した後に、該転送量データの示すデ
ータ量を該メモリから読出すものである第1項のデータ
処理システム。 3 該制御回路は、該データ転送領域内のデータ絡納位
置を示すアドレスを循環的に出力するものである第2項
のデータ処理システム。 4 該データ処理装置は、先に処理したデータの該転送
量データと、該データの上記メモリ内のストアアドレス
とから、次に読出すべきデータの先頭アドレスを決定す
る機能を有する、第2項又は第3項のデータ処理システ
ム。
[Claims] 1. A data processing device, a memory, a data output device,
a control circuit for storing data from the data output device in the memory; a counter for counting the amount of data transferred to the memory for each block; and the contents of the counter satisfy a first condition. In some cases, the processing apparatus includes means for outputting a data processing request to the processing apparatus, and means for prohibiting data transfer of the data output apparatus when the content of the counter satisfies a second condition. , means for causing the counter to count in a first direction after processing of data accessed in the memory in response to the data processing request, and the data output device outputting data to the memory block by block. and means for counting the counter in a direction opposite to the first direction after transferring the data. 2. The data output device outputs transfer amount data representing the amount of data to be transferred to the memory together with the data to be transferred, and after reading the transfer amount data from the memory, the processing device , the data processing system according to claim 1, wherein the data amount indicated by the transfer amount data is read from the memory. 3. The data processing system according to item 2, wherein the control circuit cyclically outputs an address indicating a data consolidation position within the data transfer area. 4. Clause 2, wherein the data processing device has a function of determining a starting address of data to be read next from the transfer amount data of the previously processed data and the store address of the data in the memory. or the data processing system described in Section 3.
JP4556180A 1980-04-09 1980-04-09 data processing system Expired JPS5932815B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4556180A JPS5932815B2 (en) 1980-04-09 1980-04-09 data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4556180A JPS5932815B2 (en) 1980-04-09 1980-04-09 data processing system

Publications (2)

Publication Number Publication Date
JPS56143038A JPS56143038A (en) 1981-11-07
JPS5932815B2 true JPS5932815B2 (en) 1984-08-11

Family

ID=12722759

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4556180A Expired JPS5932815B2 (en) 1980-04-09 1980-04-09 data processing system

Country Status (1)

Country Link
JP (1) JPS5932815B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59121432A (en) * 1982-12-16 1984-07-13 Fujitsu Ltd Print data buffering system of printer
JPS59128621A (en) * 1983-01-13 1984-07-24 Yokogawa Hokushin Electric Corp Controlling device of dma
JP2519519Y2 (en) * 1987-01-26 1996-12-04 カシオ計算機株式会社 Data storage device

Also Published As

Publication number Publication date
JPS56143038A (en) 1981-11-07

Similar Documents

Publication Publication Date Title
US3938097A (en) Memory and buffer arrangement for digital computers
US4719563A (en) Data transmission control device for controlling transfer of large amounts of data between two memory units
JPS5932815B2 (en) data processing system
US6112229A (en) Secure terminal and method of communicating messages among processing systems internal thereto
JP2545627B2 (en) CPU interface method
JPS6046463B2 (en) Waiting control method
JPS649563A (en) Interprocessor data transfer system
JPH03231345A (en) Cache device
JP3096382B2 (en) DMA circuit
JP2595808B2 (en) Memory device for distributed processing
JPS5936773B2 (en) Local burst transfer control method
JP2000215154A (en) DMA controller
JPS5815877B2 (en) Buffer memory control method
JP3145765B2 (en) Information processing device
JPH05250310A (en) Data processor
JPS61117651A (en) Interface device
JPS6249537A (en) Data buffer controller
JPS59103155A (en) Data processing module
JPS61265653A (en) Direct memory access system
JP2581144B2 (en) Bus control device
JPH06348644A (en) DMA circuit
JPS5818709B2 (en) Data transfer control method
JPH04160458A (en) DMA controller peripheral circuit
JPS5819966A (en) Dma transfer system
JPS6238743B2 (en)