JPH0358216B2 - - Google Patents

Info

Publication number
JPH0358216B2
JPH0358216B2 JP60128618A JP12861885A JPH0358216B2 JP H0358216 B2 JPH0358216 B2 JP H0358216B2 JP 60128618 A JP60128618 A JP 60128618A JP 12861885 A JP12861885 A JP 12861885A JP H0358216 B2 JPH0358216 B2 JP H0358216B2
Authority
JP
Japan
Prior art keywords
control device
main processor
slave
memory
data
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
JP60128618A
Other languages
Japanese (ja)
Other versions
JPS61286954A (en
Inventor
Hajime Takahashi
Akio Hanazawa
Yukinori Inoe
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 JP60128618A priority Critical patent/JPS61286954A/en
Publication of JPS61286954A publication Critical patent/JPS61286954A/en
Publication of JPH0358216B2 publication Critical patent/JPH0358216B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 〔概要〕 内部バスに、少なくとも主プロセツサと、制御
記憶と、従制御装置とが接続されており、該主プ
ロセツサが上記制御記憶に格納されている制御プ
ログラムを実行することによつて、従制御装置を
制御する形式のデータ処理装置において、上記主
プロセツサが、上記従制御装置に対するアクセス
を行つても、該従制御装置が該アクセスに対する
処理が不可能な時、上記従制御装置が外部インタ
フエースを通して送受するデータをサイクルスチ
ールの形式で、上記内部バスを通して、制御記憶
を授受する要求が生起された時、上記主プロセツ
サからのアクセス要求を保留した侭、当該制御記
憶に対するサイクルスチールによるメモリアクセ
スを優先的に行うことができるようにしたもので
ある。
[Detailed Description of the Invention] [Summary] At least a main processor, a control memory, and a slave control device are connected to an internal bus, and the main processor executes a control program stored in the control memory. In particular, in a data processing device that controls a slave control device, even if the main processor accesses the slave control device, when the slave control device is unable to process the access, the When a request is made to send/receive data sent/received by the slave control device through the external interface via the internal bus in the form of a cycle steal, the access request from the main processor is suspended, and the control memory is sent/received. This allows memory access by cycle stealing to be performed preferentially.

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

本発明は、例えば通信制御装置(CCP)に具
備されている回線走査機構(スキヤナ)に係り、
特に、制御記憶、主プロセツサ、従制御装置が内
部バスによつて接続されているデータ処理装置に
おいて、上記従制御装置から制御記憶に対するサ
イクルスチールによるメモリアクセス制御方式に
関する。
The present invention relates to a line scanning mechanism (scanner) included in, for example, a communication control device (CCP),
In particular, the present invention relates to a memory access control method using cycle stealing from the slave controller to the control memory in a data processing device in which a control memory, a main processor, and a slave controller are connected via an internal bus.

最近のデータ処理装置の形式として、内部バス
に主プロセツサと、制御記憶と、外部インタフエ
ースからの多量のデータを実時間で処理する従制
御装置が接続されており、該従制御装置において
実時間で処理された多量のデータを、サイクルス
チールの形で、上記制御記憶にリード/ライトす
るものが存在する。
As a form of recent data processing equipment, a main processor, a control memory, and a slave controller that processes a large amount of data from an external interface in real time are connected to an internal bus. There is a device that reads/writes a large amount of data processed in the above control memory in the form of a cycle steal.

例えば、通信制御装置(CCP)における回線
走査機構(スキヤナ)においては、該装置の内部
バスに主プロセツサと、制御記憶と、該主プロセ
ツサの指示に基づいて、複数個の回線との間で授
受されるビツドデータをキヤラクタに組立てて、
上記制御記憶にサイクルスチールの形で格納、或
いは該制御記憶からサイクルスチールの形で読み
出したキヤラクタデータをビツドデータに分解し
て上記回線に送出する従制御装置が接続されてお
り、該主プロセツサは、上記制御記憶に格納され
ている制御プログラムを実行して、該従制御装置
をアクセスすることにより、ホスト計算機と、上
記回線との間のデータの授受に対する制御を行つ
ている。
For example, in a line scanning mechanism (scanner) in a communication control device (CCP), the internal bus of the device has a main processor, a control memory, and data exchange between multiple lines based on instructions from the main processor. Assemble the bit data into a character,
A slave control device is connected to which the character data stored in the control memory in the form of cycle steals or read out from the control memory in the form of cycle steals is decomposed into bit data and sent to the line, and the main processor By executing a control program stored in the control storage and accessing the slave control device, data exchange between the host computer and the line is controlled.

この場合、最近のデータ処理のオンライン化の
進展と、処理量の増大化に伴つて、回線数の増大
と高速化が図られており、上記サイクルスチール
によるデータのリード、ライト機構に対して益々
高いパフオーマンスが要求されるようになつてき
ている。
In this case, with the recent progress in online data processing and the increase in processing volume, the number of lines and speeds have increased, and the data read/write mechanism based on cycle stealing is becoming more and more difficult. High performance is increasingly required.

このような、主プロセツサの指示に従つて自走
することにより、サイクルスチール形式で記憶装
置との間でデータの授受を行う必要があるデータ
処理の他の例としては、多数のセンサからの実時
間データを処理する必要があるセンサシステムと
か、或いはホスト計算機で処理した多量のデータ
を、多数の制御機構に実時間で送出する必要があ
るロボツトシステム等がある。
Another example of data processing that requires data to be exchanged with a storage device in a cycle-steal format by running on its own according to the instructions of the main processor is processing data from a large number of sensors. There are sensor systems that need to process time data, and robot systems that need to send a large amount of data processed by a host computer to a large number of control mechanisms in real time.

何れの場合においても、ホスト計算機からの指
示は、主プロセツサが、例えば制御記憶が格納さ
れている制御プログラムを実行することにより、
従制御装置に送出され、その指示に従つて、従制
御装置において、外部インタフエース(例えば、
通信制御装置における回線対応部、センサシステ
ムにおけるセンサ対応部、ロボツトシステムにお
けるロボツト制御部等)とのデータの授受を行
い、該データがサイクルスチールの形式で本デー
タ処理装置の記憶装置に格納される所に特徴があ
る。
In either case, instructions from the host computer are received by the main processor, for example, by executing a control program in which control memory is stored.
The information is sent to the slave controller, and according to the instructions, the slave controller connects the external interface (e.g.
Data is exchanged with the line support unit in the communication control device, the sensor support unit in the sensor system, the robot control unit in the robot system, etc.), and the data is stored in the storage device of this data processing device in the form of a cycle steal. The place has its own characteristics.

従つて、主プロセツサからの従制御装置に対す
るアクセスによつて、上部外部インタフエースか
ら実時間でデータを送受して処理した後、記憶装
置と授受する為のサイクルスチール動作が妨げら
れることのないサイクルスチール制御方式が要求
される。
Therefore, after data is transmitted and processed in real time from the upper external interface by access to the slave control device from the main processor, the cycle steal operation for transmitting and receiving data to and from the storage device is not hindered. Steel control method is required.

〔従来の技術〕[Conventional technology]

1つの内部バスに、主プロセツサと、制御記憶
と、従制御装置とが接続され、主プロセツサから
の指示に従つて、上記従制御装置が自走すること
により、外部インタフエースから実時間でデータ
の授受を行い、特定の処理を施した後、記憶装置
に該データをサイクルスチールの形でリード、ラ
イトするデータ処理装置の例として、通信制御装
置(CCP)における回線走査機構(スキヤナ)
があるが、該回線走査機構(スキヤナ)での従来
のデータ処理方式を以下に説明する。
The main processor, control memory, and slave control device are connected to one internal bus, and the slave control device runs on its own according to instructions from the main processor, allowing data to be sent from the external interface in real time. A line scanning mechanism (scanner) in a communication control unit (CCP) is an example of a data processing device that sends and receives data, performs specific processing, and then reads and writes the data to a storage device in the form of a cycle steal.
However, the conventional data processing method in the line scanning mechanism (scanner) will be explained below.

第3図は従来の回線走査機構(スキヤナ)の構
成例を示した図である。
FIG. 3 is a diagram showing an example of the configuration of a conventional line scanning mechanism (scanner).

このようなデータ処理装置におけるデータの授
受はデータパス7を通して行われるが、該パスは
次の3つに大別される。即ち、 (1) 制御プログラムフエツチとか、サイクルスチ
ールによつて、各回線毎のメツセージデータを
授受する為の主プロセツサ(CSP)1と制御記
憶3との間の第1のパス。
Data is exchanged in such a data processing device through the data path 7, which is roughly divided into the following three types. (1) A first path between the main processor (CSP) 1 and the control memory 3 for exchanging message data for each line by control program fetch or cycle steal.

(2) 従制御装置(FES)2に対しる初期化、該従
制御装置(FES)2におけるエラー情報等のス
テータスの読み取り、回線走査を制御する為の
制御情報のライト等を行う為の主プロセツサ
(CSP)1と従制御装置(FES)2との間の第
2のパス。
(2) Main unit for initializing the slave control device (FES) 2, reading status such as error information in the slave control device (FES) 2, writing control information for controlling line scanning, etc. A second path between the processor (CSP) 1 and the slave controller (FES) 2.

(3) 回線(LUT)との間で、LUTインタフエー
ス回路6を通して、ビツト単位で送受するデー
タをキヤラクタ単位に組立、分解して、制御記
憶3に対してサイクルスチールの形式で該デー
タを送受する従制御装置(FES)2と制御記憶
3との間の第3のパス。
(3) Assemble and disassemble the data to be sent and received in bit units between the line (LUT) and the LUT interface circuit 6 in character units, and send and receive the data to and from the control memory 3 in a cycle steal format. a third path between the slave controller (FES) 2 and the control store 3;

である。It is.

サイクルスチール制御部4は、上記3つのパス
の優先制御を行う。そして、通常は実時間処理を
必要とする従制御装置(FES)2からの、第3の
パスによるサイクルスチールが最も高い優先順位
となるように設定されている。
The cycle steal control unit 4 performs priority control of the above three paths. The cycle steal by the third path from the slave control device (FES) 2, which normally requires real-time processing, is set to have the highest priority.

上記回線走査機構(スキヤナ)での動作を以下
に要約する。
The operation of the line scanning mechanism (scanner) described above is summarized below.

先ず、主プロセツサ(CSP)1において、制御
記憶3から制御プログラムがフエツチされ、該プ
ログラムを実行することによつて回線走査動作が
行われる。
First, in the main processor (CSP) 1, a control program is fetched from the control memory 3, and a line scanning operation is performed by executing the program.

具体的には、上記第2のパス(データバス7、
及びアドレスバス8a,9)によつて、従制御装
置(FES)2に対する初期化が行われた後、回線
走査周期等の設定が行われ、回線走査動作が開始
される。
Specifically, the second path (data bus 7,
After initialization of the slave control device (FES) 2 is performed by the address buses 8a and 9), the line scanning cycle and the like are set, and the line scanning operation is started.

この結果、各回線(LUT)からのデータが、
ビツト単位で従制御装置(FES)2の内部メモリ
に、一旦蓄積され、各回線毎に、例えば2キヤラ
クタ分のデータが蓄積された時点において、該従
制御装置(FES)2はサイクルスチール制御部4
に、サイクルスチール要求と、制御記憶3に対す
るアドレスとを、制御線、アドレスバス8bに送
出する。
As a result, the data from each line (LUT) is
The data is once stored in the internal memory of the slave control device (FES) 2 in bit units, and at the point when data for, for example, two characters has been stored for each line, the slave control device (FES) 2 activates the cycle steal control unit. 4
Then, a cycle steal request and an address for the control memory 3 are sent to the control line and address bus 8b.

サイクルスチール制御部4においては、上記サ
イクルスチール要求を認識すると、最優先で制御
記憶3の当該回線に対応した領域に、上記キヤラ
クタデータをサイクルスチールの形式で格納す
る。
When the cycle steal control unit 4 recognizes the cycle steal request, it stores the character data in the cycle steal format in the area corresponding to the line in the control memory 3 with the highest priority.

このようにして、制御記憶3の各回線対応の領
域に格納されたキヤラクタデータが、予め定めら
れているメツセージ単位になると、例えば、従制
御装置(FES)2からの主プロセツサ(CSP)1
に対する割り込みによつて通知されることによ
り、主プロセツサ(CSP)1がサイクルスチール
の形式で該制御記憶3から該メツセージを読り取
り、IOCバス制御部5を通して、図示していない
ホスト計算機に送出する。
In this way, when the character data stored in the area corresponding to each line of the control memory 3 becomes a predetermined message unit, for example, the character data stored in the area corresponding to each line of the control memory 3 is sent to the main processor (CSP) 1 from the slave control device (FES) 2.
The main processor (CSP) 1 reads the message from the control memory 3 in the form of a cycle steal, and sends it to the host computer (not shown) through the IOC bus controller 5. do.

同じような手順によつて、ホスト計算機から各
回線(LUT)に対するデータの送出も行われる。
A similar procedure is used to send data from the host computer to each line (LUT).

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

このような従来方式においては、一旦主プロセ
ツサ(CSP)1において、上記第1パス、又は第
2のパスに関連する処理(例えば、制御プログラ
ムフエツチ、命令の実行等)が開始されると、当
該処理が完了する迄、従制御装置(FES)2は、
上記第3のパスに関連するサイクルスチール動作
を実行することができなかつた。
In such a conventional system, once processing related to the first pass or the second pass (for example, control program fetch, instruction execution, etc.) is started in the main processor (CSP) 1, Until the processing is completed, the slave control device (FES) 2
The cycle steal operation associated with the third pass could not be performed.

第4図は、上記主プロセツサ(CSP)1での動
作例(例えば、第1,第2のパスに関連する動
作)をタイムチヤートで示した図であつて、該主
プロセツサ(CSP)1は、命令フエツチと、該
命令のデコード動作と、該命令による従制御装
置(FES)2に対するアクセス(データのロー
ド/ストア)を1命令実行サイクルとして実行
することを示している。
FIG. 4 is a time chart showing an example of the operation (for example, operation related to the first and second paths) in the main processor (CSP) 1. , an instruction fetch, a decoding operation of the instruction, and an access (data load/store) to the slave control unit (FES) 2 by the instruction are executed as one instruction execution cycle.

この1命令実行サイクルの間、上記データパス
7はビジーとなる。
During this one instruction execution cycle, the data path 7 is busy.

然して、従制御装置(FES)2においては、第
5図のタイムチヤートで示す如く、主プロセツサ
(CSP)1からの命令(例えば、内部メモリ、レ
ジスタに対するリード/ライト)を処理するサイ
クル(第4図対応)と、該従制御装置
(FES)2自身での処理、即ち制御記憶3に対す
るサイクルスチール(SEND,RECV)サイクル
の実行タイミングが定まつている為、主プロセ
ツサ(CSP)1からの命令の発行タイミングによ
つては、該命令の処理が次の従制御装置(FES)
2での実行サイクル′迄待たされることが起こ
る。
However, in the slave control device (FES) 2, as shown in the time chart of FIG. (corresponding to the figure) and the processing in the slave control device (FES) 2 itself, that is, the execution timing of the cycle steal (SEND, RECV) cycle for the control memory 3 is fixed, so the instruction from the main processor (CSP) 1 Depending on the issuance timing of the instruction, the processing of the instruction may be executed by the next slave control device (FES).
It may be necessary to wait until the execution cycle '2.

この状態をで示しており、この主プロセツサ
(CSP)1からの第2のパスを介したアクセスの
実行が待たされている時、通常のサイクルはサ
イクルスチールに渡されるタイミングであるにも
拘わらず、データパス7はビジーである為、従制
御装置(FES)2において、上記制御記憶3に対
するサイクルスチール要求が発生しても実行でき
ないと去う問題があつた。この状態がである。
This state is shown in , and when the execution of access via the second path from main processor (CSP) 1 is awaited, even though the normal cycle is the timing to be passed to cycle steal. Since the data path 7 is busy, there has been a problem in the slave control device (FES) 2 that even if a cycle steal request is generated for the control memory 3, it cannot be executed. This condition is.

第6図は、上記主プロセツサ(CSP)1からの
第2のパスに対するアクセス動作aと、従制御装
置(FES)2における、第3のパスに対するサイ
クルスチール動作bとの関係をタイムチヤートで
示した図であり、主プロセツサ(CSP)1が第2
のパスに対するアクセスを開始するタイミングに
よつては、最優先で処理する必要がある従制御装
置(FES)2でのサイクルスチール動作が待たさ
れると去う上記の問題を示している。
FIG. 6 is a time chart showing the relationship between the access operation a for the second path from the main processor (CSP) 1 and the cycle steal operation b for the third path in the slave controller (FES) 2. This is a diagram in which main processor (CSP) 1 is
Depending on the timing of starting access to the path, the above-mentioned problem may occur if the cycle steal operation in the slave control device (FES) 2, which should be processed with the highest priority, is made to wait.

このように従来方式においては、主プロセツサ
(CSP)1の従制御装置(FES)2に対するアク
セスができない待ち合わせ状態においても、従制
御装置(FES)2におけるサイクルスチール動作
が待たされると去う問題があつた。
In this way, in the conventional method, even in a waiting state where the main processor (CSP) 1 cannot access the slave control device (FES) 2, the problem that occurs when the cycle steal operation in the slave control device (FES) 2 is made to wait is solved. It was hot.

本発明は上記従来の欠点に鑑み、主プロセツサ
(CSP)1が従制御装置(FES)2に対するアク
セスを行つても、該アクセスが実行できない、即
ち待たされている場合(第5図,第6図参照)に
は、従制御装置(FES)2でのサイクルスチール
動作を優先的に処理できるように制御する方法を
提供することを目的とするものである。
In view of the above-mentioned drawbacks of the conventional art, the present invention provides a processor for cases where the main processor (CSP) 1 accesses the slave control device (FES) 2 but cannot perform the access, that is, the access is made to wait (see FIGS. 5 and 6). The purpose of the present invention is to provide a method of controlling the slave control device (FES) 2 so that the cycle steal operation can be processed preferentially.

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

第1図は本発明の一実施例をブロツク図で示し
た図であつて、主プロセツサ(CSP)1からの従
制御装置(FES)2に対するアクセスが行われて
も、当該命令の発行タイミングによつて、従制御
装置(FES)2において、当該アクセスに対する
処理が実行できなくて待たされている場合に、従
制御装置(FES)2において、最優先のサイクル
スチールの要求が生起した場合には、サイクルス
チール制御部4において、該要求を認識し、主プ
ロセツサ(CSP)1に対して、上記命令の実行を
保留させる(例えば、データバス7に対する命令
の送出を抑止させる)命令実行抑止信号10を送
出するように構成する。
FIG. 1 is a block diagram illustrating an embodiment of the present invention, in which even if a main processor (CSP) 1 accesses a slave control device (FES) 2, the timing of issuing the command is Therefore, if the slave control device (FES) 2 is forced to wait because it cannot execute the process for the access, and a cycle steal request with the highest priority occurs in the slave control device (FES) 2, , the cycle steal control unit 4 recognizes the request and sends an instruction execution inhibition signal 10 to the main processor (CSP) 1 to suspend execution of the instruction (for example, to inhibit sending of the instruction to the data bus 7). Configure it to send out.

〔作用〕[Effect]

即ち、本発明によれば、内部バスに、少なくと
も主プロセツサと、制御記憶と、従制御装置とが
接続されており、該主プロセツサが上記制御記憶
に格納されている制御プログラムを実行すること
によつて、従制御装置を制御する形式のデータ処
理装置において、上記主プロセツサが、上記従制
御装置に対するアクセスを行つても、該従制御装
置が該アクセスに対する処理が不可能な時、上記
従制御装置が外部インタフエースを通して送受す
るデータをサイクルスチールの形式で、上記内部
バスを通して、制御記憶と授受する要求が生起さ
れた時、上記主プロセツサからのアクセス要求を
保留した侭、当該制御記憶に対するサイクルスチ
ールによるメモリアクセスを優先的に行うことが
でき、従制御装置での実時間処理を効果的に実行
することができる効果がある。
That is, according to the present invention, at least a main processor, a control memory, and a slave control device are connected to the internal bus, and the main processor executes a control program stored in the control memory. Therefore, in a data processing device that controls a slave control device, even if the main processor accesses the slave control device, when the slave control device is unable to process the access, the slave control device When a request is made to send/receive data to/from the control memory via the internal bus in the form of a cycle steal, the device suspends the access request from the main processor and steals the cycle for the control memory. This has the effect that memory access by stealing can be performed preferentially, and real-time processing can be effectively executed in the slave control device.

〔実施例〕〔Example〕

以下本発明の実施例を図面によつて詳述する。
第2図は本発明の一実施例をタイムチヤートで示
した図であり、第1図を参照しながら本発明を実
施した時の従制御装置(FES)におけるサイクル
スチール動作を説明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.
FIG. 2 is a time chart showing one embodiment of the present invention, and the cycle steal operation in the slave control system (FES) when the present invention is implemented will be explained with reference to FIG.

先ず、主プロセツサ(CSP)1から従制御装置
(FES)2に対するアクセスが、例えば第5図で
説明したようなタイミングで行われ、当該命令の
実行が、次の従制御装置(FES)2での実行サイ
クル′迄待たされているものとする。
First, the main processor (CSP) 1 accesses the slave control device (FES) 2 at the timing explained in FIG. Assume that the execution cycle ′ is kept waiting until the execution cycle ′.

この命令実行待ち合わせ期間を点線で示す。
この時、従制御装置(FES)2において、内部メ
モリ(図示せず)上のある回路に対応する領域
に、例えば2キヤラクタ分のデータが蓄積され、
サイクルスチール制御部4を経由して、制御記憶
3に対するサイクルスチール要求と、そのアドレ
ス情報が送出されると、サイクルスチール制御部
4において、上記主プロセツサ(CSP)1からの
命令の待ち合わせが認識され、主プロセツサ
(CSP)1に対して、上記命令実行抑止信号10
が送出され、該主プロセツサ(CSP)1から従制
御装置(FES)2に対して送出されていた命令
が、データバス7上において抑止され、該データ
バス7をアイドルとするように機能する。
This instruction execution waiting period is shown by a dotted line.
At this time, in the slave control device (FES) 2, data for, for example, two characters is accumulated in an area corresponding to a certain circuit on the internal memory (not shown).
When a cycle steal request and its address information are sent to the control memory 3 via the cycle steal control unit 4, the cycle steal control unit 4 recognizes that the instruction from the main processor (CSP) 1 is waiting. , the instruction execution inhibit signal 10 is sent to the main processor (CSP) 1.
is sent out, and the command sent from the main processor (CSP) 1 to the slave control unit (FES) 2 is suppressed on the data bus 7, thereby functioning to make the data bus 7 idle.

従つて、従制御装置(FES)2は制御記憶3に
対するサイクルスチール動作を行うことができ
るようになり、上記2キヤラクタ分のデータを、
制御記憶3の上記回線に対応する領域に格納する
ことができる。
Therefore, the slave control device (FES) 2 can now perform a cycle steal operation on the control memory 3, and the data for the above two characters can be stored as follows.
It can be stored in an area of the control memory 3 corresponding to the above-mentioned line.

該サイクルスチール動作が終了すると、上記命
令実行抑止信号10は解除されるので、主プロセ
ツサ(CSP)1は、保留していた命令の実行を、
従制御装置(FES)2における次の実行サイクル
′において行うことができる。
When the cycle steal operation is completed, the instruction execution inhibit signal 10 is released, so the main processor (CSP) 1 stops executing the suspended instruction.
This can be done in the next execution cycle' in the slave controller (FES) 2.

このように、本発明においては、主プロセツサ
(CSP)1が制御記憶3に格納されている制御プ
ログラムを実行することによつて、従制御装置
(FES)2が回線走査を自走している時、該主プ
ロセツサ(CSP)1が従制御装置(FES)2に対
する他のアクセス命令を発行しても、そのタイミ
ング条件によつて従制御装置(FES)2が当該ア
クセスの処理を実行できない場合に、該従制御装
置(FES)2における回線走査動作により、制御
記憶3に対するサイクルスチール要求が生起する
と、主プロセツサ(CSP)1における上記命令の
実行を抑止して、該サイクルスチール動作を優先
的に行うことができるようにした所に特徴があ
る。
As described above, in the present invention, the main processor (CSP) 1 executes the control program stored in the control memory 3, so that the slave control device (FES) 2 autonomously scans the line. In this case, even if the main processor (CSP) 1 issues another access command to the slave controller (FES) 2, the slave controller (FES) 2 cannot process the access due to the timing conditions. When a cycle steal request is generated for the control memory 3 due to a line scanning operation in the slave controller (FES) 2, execution of the above instruction in the main processor (CSP) 1 is suppressed and the cycle steal operation is prioritized. It is unique in that it is possible to do so.

尚、本実施例においては、通信制御装置
(CCP)における回線走査機構(スキヤナ)にお
ける動作で説明したが、本発明の主旨から考え
て、当該スキヤナ動作に限定されるものではな
く、主プロセツサが命令を発行することによつ
て、自走する従制御装置において、実時間で処理
したデータを、該データ処理装置の記憶装置に、
例えばサイクルスチールの形で送受しており、主
プロセツサで発行した命令の実行が、従制御装置
での動作タイミングによつて待ち合わせとなるよ
うな処理形態を示すデータ処理システム、例えば
前述のセンサシステム、ロボツトシステム等に
も、総て適用できることは去う迄もないことであ
る。
In this embodiment, the operation in the line scanning mechanism (scanner) in the communication control device (CCP) has been explained, but considering the gist of the present invention, the operation is not limited to the scanner operation, and the main processor By issuing a command, the self-running slave control device transfers the data processed in real time to the storage device of the data processing device.
For example, a data processing system exhibiting a processing form in which data is transmitted and received in the form of cycle stealing, and the execution of an instruction issued by a main processor is delayed depending on the operation timing of a slave control device, such as the aforementioned sensor system, It goes without saying that all of the above can be applied to robot systems, etc.

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

以上、詳細に説明したように、本発明のサイク
ルスチール制御方式は、内部バスに、少なくとも
主プロセツサと、制御記憶と、従制御装置とが接
続されており、該主プロセツサが上記制御記憶に
格納されている制御プログラムを実行することに
よつて、従制御装置を制御する形式のデータ処理
装置において、上記主プロセツサが、上記従制御
装置に対するアクセスを行つても、該従制御装置
が該アクセスに対する処理が不可能な時、上記従
制御装置が外部インタフエースを通して送受する
データをサイクルスチールの形式で、上記内部バ
スを通して、制御記憶と授受する要求が生起され
た時、上記主プロセツサからのアクセス要求を保
留した侭、当該制御記憶に対するサイクルスチー
ルによるメモリアクセスを優先的に行うことがで
き、従制御装置での実時間処理を効果的に実行す
ることができる効果がある。
As described above in detail, in the cycle steal control method of the present invention, at least a main processor, a control memory, and a slave control device are connected to an internal bus, and the main processor stores data in the control memory. In a data processing device that controls a slave control device by executing a control program, even if the main processor accesses the slave control device, the slave control device does not respond to the access. When processing is not possible, when a request is made to send/receive data to/from the control memory via the internal bus in the form of a cycle steal, the slave controller receives an access request from the main processor. While the control memory is suspended, memory access by cycle stealing to the control memory can be performed preferentially, and there is an effect that real-time processing can be effectively executed in the slave control device.

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

第1図は本発明の一実施例をブロツク図で示し
た図、第2図は本発明の一実施例をタイムチヤー
トで示した図、第3図は従来の回線走査機構(ス
キヤナ)の構成例を示した図、第4図は主プロセ
ツサ(CSP)での動作例をタイムチヤートで示し
た図、第5図は従制御装置(FES)での動作例を
タイムチヤートで示した図、第6図は主プロセツ
サのアクセス動作と従制御装置におけるサイクル
スチール動作との関係をタイムチヤートで示した
図、である。 図面において、1は主プロセツサ(CSP)、2
は従制御装置(FES)、3は制御記憶、4はサイ
クルスチール制御部、5はIOCバス制御部、6は
LUTインタフエース回路、7はデータバス、8
a,8b,9は制御、アドレスバス、10は命令
実行抑止信号、〜,′は各動作タイミング、
をそれぞれ示す。
Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a time chart showing an embodiment of the present invention, and Fig. 3 is the configuration of a conventional line scanning mechanism (scanner). Figure 4 is a time chart showing an example of the operation in the main processor (CSP). Figure 5 is a time chart showing an example of the operation in the slave controller (FES). FIG. 6 is a time chart showing the relationship between the access operation of the main processor and the cycle steal operation of the slave control device. In the drawing, 1 is the main processor (CSP), 2
is the slave control unit (FES), 3 is the control memory, 4 is the cycle steal control unit, 5 is the IOC bus control unit, and 6 is the IOC bus control unit.
LUT interface circuit, 7 is data bus, 8
a, 8b, 9 are control and address buses, 10 is an instruction execution inhibit signal, ~, ' are each operation timing,
are shown respectively.

Claims (1)

【特許請求の範囲】 1 制御プログラムを格納する制御記憶3と、主
プロセツサ1、及び内部メモリと、レジスタを設
けた複数の従制御装置2とが内部バス7によつて
接続され、 上記主プロセツサ1、制御記憶3、従制御装置
2の相互間で情報を授受するデータ処理装置であ
つて、 該従制御装置2の上記内部メモリ、及びレジス
タは、上記主プロセツサ1から見た上記制御記憶
3のアドレスの一部が割り当てられており、 該主プロセツサ1は、該アドレスを用いて従制
御装置2に対してロード命令、或いはストア命令
を発行することによつて、上記内部メモリ、及び
レジスタをアクセスする手段と、該従制御装置2
は該制御記憶3へのサイクルスチールを行う手段
とを備えたデータ処理装置において、 上記主プロセツサ1が従制御装置2に対するロ
ード命令、或いはストア命令の処理要求を発行し
て、該処理が従制御装置2で処理不可能で待たさ
れている時に、該従制御装置2から制御記憶3に
対するサイクルスチール要求が発生した場合に
は、該主プロセツサ1の上記命令の実行を保留さ
せることにより、 上記従制御装置2からの制御記憶3に対するサ
イクルスチールを優先的に実行できるように制御
することを特徴とするサイクルスチール制御方
式。
[Scope of Claims] 1. A control memory 3 storing a control program, a main processor 1, an internal memory, and a plurality of slave control devices 2 provided with registers are connected by an internal bus 7, 1. A data processing device that exchanges information between a control memory 3 and a slave control device 2, wherein the internal memory and registers of the slave control device 2 are the control memory 3 seen from the main processor 1. A part of the address is assigned, and the main processor 1 uses the address to issue a load command or a store command to the slave control device 2, thereby updating the internal memory and registers. means for accessing and the slave control device 2
The main processor 1 issues a processing request for a load instruction or a store instruction to the slave control device 2, and the processing is carried out by the slave control device. If the slave controller 2 issues a cycle steal request to the control memory 3 while the processor 2 is unable to process the processor 2 and is forced to wait, the master processor 1 suspends execution of the above instruction. A cycle steal control method characterized by controlling so that cycle steal from a control device 2 to a control memory 3 can be executed preferentially.
JP60128618A 1985-06-13 1985-06-13 Cycle steal control system Granted JPS61286954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60128618A JPS61286954A (en) 1985-06-13 1985-06-13 Cycle steal control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60128618A JPS61286954A (en) 1985-06-13 1985-06-13 Cycle steal control system

Publications (2)

Publication Number Publication Date
JPS61286954A JPS61286954A (en) 1986-12-17
JPH0358216B2 true JPH0358216B2 (en) 1991-09-04

Family

ID=14989237

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60128618A Granted JPS61286954A (en) 1985-06-13 1985-06-13 Cycle steal control system

Country Status (1)

Country Link
JP (1) JPS61286954A (en)

Also Published As

Publication number Publication date
JPS61286954A (en) 1986-12-17

Similar Documents

Publication Publication Date Title
JP2829091B2 (en) Data processing system
JP3481308B2 (en) Interface device, data transfer system and data transfer method
JPS6131485B2 (en)
JP2846760B2 (en) Programmable controller
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPS61286954A (en) Cycle steal control system
JPH02291039A (en) Memory control system
JPS5834858B2 (en) Data exchange control method
JP2785855B2 (en) Information processing device
JP3043361B2 (en) Distributed processor control method
JPH0689258A (en) Bus control system
JPH0820934B2 (en) Disk cache control method
JPH0424733B2 (en)
JPS63226755A (en) Data transfer circuit
JPH0628305A (en) Data transfer controller for multiprocessor system
JPH0535507A (en) Central processing unit
JP2000298585A (en) ROM rewriting system and ROM rewriting method
JPH0353361A (en) Io control system
JPH01233651A (en) Communication control system
JPS6121559A (en) System for transferring data directly between memories
JPH04154346A (en) Circuit controller
JPH08137738A (en) Cpu arbitration circuit
JPH0321941B2 (en)
JPS60129835A (en) Instruction controlling system
JPH0752425B2 (en) Data input / output control method for information processing system