JP2003085126A - Input data processor and method - Google Patents

Input data processor and method

Info

Publication number
JP2003085126A
JP2003085126A JP2001279906A JP2001279906A JP2003085126A JP 2003085126 A JP2003085126 A JP 2003085126A JP 2001279906 A JP2001279906 A JP 2001279906A JP 2001279906 A JP2001279906 A JP 2001279906A JP 2003085126 A JP2003085126 A JP 2003085126A
Authority
JP
Japan
Prior art keywords
processing
slave
processor
input data
master
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
JP2001279906A
Other languages
Japanese (ja)
Inventor
Michiya Muramoto
道也 村本
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2001279906A priority Critical patent/JP2003085126A/en
Publication of JP2003085126A publication Critical patent/JP2003085126A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To optimize the hardware constitution by preventing an enlargement and a cost increase of the hardware constitution in an input data processor and a method. SOLUTION: A master processor 10 outputs commands 1 and 10 to a slave processor 30. The slave processor 30 responds to these commands, and samples data to input groups 11 and 12 by processing of a specific period divided into two parts in the timing according to a processing switching signal, and arithmetically executes slave processing on the basis of the data. Arithmetic processing results 1 and 2 and responses 1 and 2 are returned to the master processor 10.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は入力データ処理装置
および方法に関し、特に、複数のマスタプロセッサと1
個のスレーブプロセッサを用いて入力データをサンプリ
ングし、処理する入力データ処理装置および方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input data processing apparatus and method, and more particularly, to a plurality of master processors and one master processor.
The present invention relates to an input data processing device and method for sampling and processing input data using a plurality of slave processors.

【0002】[0002]

【従来の技術】マイクロプロセッサを応用した制御を行
なうマルチプセッサ型のハードウエア構成の一例を図3
に示す。図3に示した従来の入力データ処理装置はマス
タマイクロプロセッサとスレーブマイクロプロセッサを
備える。
2. Description of the Related Art An example of a multiprocessor type hardware configuration for performing control using a microprocessor is shown in FIG.
Shown in. The conventional input data processing device shown in FIG. 3 includes a master microprocessor and a slave microprocessor.

【0003】マスタマイクロプロセッサ(以下、マスタ
プロセッサと称す)100はスレーブマイクロプロセッ
サ(以下、スレーブプロセッサと称す)110に対して
指令を出し、スレーブプロセッサ110はこの指令に応
答し、一定周期T内の処理で入力群Iに対してデータサ
ンプリングを行ない、そのデータを基にスレーブ処理を
演算実行する。マスタプロセッサ100に演算結果・応
答が返される。
A master microprocessor (hereinafter, referred to as a master processor) 100 issues a command to a slave microprocessor (hereinafter, referred to as a slave processor) 110, and the slave processor 110 responds to the command and within a fixed period T. In the processing, data sampling is performed on the input group I, and slave processing is executed based on the data. The calculation result / response is returned to the master processor 100.

【0004】この処理のタイミングの一例を図4のタイ
ミングチャートに示す。
An example of the timing of this processing is shown in the timing chart of FIG.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のハード
ウエア構成およびその処理タイミングでは、特にスレー
ブプロセッサの入力データサンプリング期間が長いが、
その演算処理期間が相対的に短い場合に、以下のような
課題があった。 全体としてのハードウェア構成が必要以上に大規模に
なってしまう。 コストが増大する。 周期T内でスレーブの演算処理時間に余裕があって
も、その余裕時間に他の処理を行なうことができず(図
4参照)、ハードウェア構成の最適化を図ることができ
ない。
In the above-mentioned conventional hardware configuration and its processing timing, the input data sampling period of the slave processor is long,
When the arithmetic processing period is relatively short, there are the following problems. The overall hardware configuration becomes unnecessarily large. The cost increases. Even if the slave has an extra processing time within the cycle T, no other processing can be performed in that extra time (see FIG. 4), and the hardware configuration cannot be optimized.

【0006】本発明の目的は、スレーブのハードウェア
構成の系統の統一化を図って複数のマスタープロセッサ
に対して共通スレーブ構成とし、各マスタープロセッサ
に応じたスレーブ処理に必要なデータサンプリングを他
のスレーブ処理実行中に行なうようにしたことで上記の
課題を解決した入力データ処理装置および方法を提供す
ることである。
An object of the present invention is to unify the system of slave hardware configurations so that a plurality of master processors have a common slave configuration, and to perform data sampling required for slave processing depending on each master processor to another. An object of the present invention is to provide an input data processing device and method which solve the above problems by performing the slave processing during execution.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
めに請求項1の発明は、マスタプロセッサからの指令に
応答して所定周期で入力データをサンプリングしてスレ
ーブ処理を行ない、演算結果を該マスタプロセッサに返
すスレーブプロセッサを備えた入力データ処理装置にお
いてn個(nは2以上の自然数)の前記マスタプロセッ
サと、各々のマスタプロセッサによる処理を切替える処
理切替手段とを備え前記スレーブプロセッサは、各々の
マスタプロセッサからの指令に応じて前記切替手段によ
る切替タイミングに従い前記スレーブ処理を実行するこ
とを特徴とする入力データ処理装置を実施した。
In order to achieve the above object, the invention of claim 1 responds to a command from a master processor to sample input data at a predetermined cycle to perform slave processing, and obtain a calculation result. In the input data processing device having a slave processor for returning to the master processor, n (n is a natural number of 2 or more) of the master processors and processing switching means for switching processing by each master processor are provided, and the slave processor is An input data processing device is implemented which is characterized in that the slave process is executed in accordance with a switching timing by the switching means in response to a command from each master processor.

【0008】請求項2の発明は、請求項1に記載の入力
データ処理装置において前記処理切替手段は、n個の前
記マスタプロセッサに対して前記所定周期をn分割した
処理期間が前記所定周期で繰り返されるように前記処理
の切替えを行ない前記スレーブプロセッサは、n個の前
記マスタプロセッサの1つに応答するサンプリング期間
に他の前記マスタプロセッサに対する演算処理を行なう
ことを特徴とする入力データ処理装置を実施した。
According to a second aspect of the present invention, in the input data processing device according to the first aspect, the processing switching means is configured such that a processing period obtained by dividing the predetermined cycle by n for the n master processors is the predetermined cycle. The input data processing device is characterized in that the slave processor performs switching of the processing so as to be repeated and performs arithmetic processing on another master processor during a sampling period in response to one of the n master processors. Carried out.

【0009】請求項3の発明は、n個(nは2以上の自
然数)のマスタプロセッサからの指令に応答してスレー
ブプロセッサが所定周期で入力データをサンプリングし
てスレーブ処理を行ない、演算結果を各々のマスタプロ
セッサに返す入力データ処理方法においてn個(nは2
以上の自然数)の前記マスタプロセッサと、各々のマス
タプロセッサによる処理を切替える第1ステップと各々
のマスタプロセッサからの指令に応じて前記スレーブプ
ロセッサが第1ステップにおける切替タイミングに従い
前記スレーブ処理を実行する第2ステップを備えたこと
を特徴とする入力データ処理方法を実施した。
According to a third aspect of the invention, in response to a command from n (n is a natural number of 2 or more) master processors, the slave processors sample the input data at a predetermined cycle and perform slave processing. In the input data processing method for returning to each master processor, n (n is 2
A first step for switching processing by each master processor and a slave processor for executing the slave processing according to a switching timing in the first step in response to a command from each master processor; An input data processing method characterized by comprising two steps was implemented.

【0010】請求項4の発明は、請求項3に記載の入力
データ処理方法において前記第2ステップにおいて、n
個の前記マスタプロセッサに対して前記所定周期をn分
割した処理期間が前記所定周期で繰り返されるように前
記処理の切替えを行ない、前記スレーブプロセッサは、
n個の前記マスタプロセッサの1つに応答するサンプリ
ング期間に他の前記マスタプロセッサに対する演算処理
を行なうことを特徴とする入力データ処理方法を実施し
た。
According to a fourth aspect of the present invention, in the input data processing method according to the third aspect, in the second step, n
Switching the processing so that a processing period obtained by dividing the predetermined cycle by n is repeated at the predetermined cycle for each of the master processors;
An input data processing method is carried out, characterized in that arithmetic processing is performed on another master processor during a sampling period in response to one of the n master processors.

【0011】[0011]

【発明の実施の形態】(実施形態の説明)図1は本発明
に係る入力データ処理装置の一実施形態のブロック構成
図である。図1において、マスタプロセッサ10はスレ
ーブプロセッサ30に対して指令1を出し、スレーブプ
ロセッサ30はこの指令に応答し、一定周期の処理で入
力群I1に対してデータサンプリングを行ない、そのデ
ータを基にスレーブ処理を演算実行する。そして、マス
タプロセッサ10に演算処理結果1と応答1が返され
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS (Description of Embodiments) FIG. 1 is a block diagram of an embodiment of an input data processing apparatus according to the present invention. In FIG. 1, the master processor 10 issues a command 1 to the slave processor 30, and the slave processor 30 responds to this command, performs data sampling on the input group I1 in a process of a fixed cycle, and based on the data. Executes slave processing. Then, the arithmetic processing result 1 and the response 1 are returned to the master processor 10.

【0012】マスタプロセッサ20はスレーブプロセッ
サ30に対して指令2を出し、スレーブプロセッサ30
はこの指令に応答し、一定周期の処理で入力群I2に対
してデータサンプリングを行ない、そのデータを基にス
レーブ処理を演算実行する。そして、マスタプロセッサ
20に演算処理結果2と応答2が返される。
The master processor 20 issues a command 2 to the slave processor 30, and the slave processor 30
Responds to this command, performs data sampling on the input group I2 in a process of a constant cycle, and executes a slave process based on the data. Then, the arithmetic processing result 2 and the response 2 are returned to the master processor 20.

【0013】スレーブプロセッサ30が上記演算処理を
行なうにあたっては、処理切替信号に応じたタイミング
でこれを行ない、マスタプロセッサ10および20に応
答した夫々の演算処理結果と応答を、処理切替信号に応
じた割り込み1および処理切替信号をインバータ40に
より反転した割り込み2に同期してマスタプロセッサ1
0および20に返す。
When the slave processor 30 performs the above arithmetic processing, the slave processor 30 performs the arithmetic processing at a timing corresponding to the processing switching signal, and the respective arithmetic processing results and responses in response to the master processors 10 and 20 are responded to the processing switching signal. The master processor 1 is synchronized with the interrupt 1 and the interrupt 2 obtained by inverting the process switching signal by the inverter 40.
Return to 0 and 20.

【0014】上述した処理のタイミングを図2のタイミ
ングチャートに示す。スレーブプロセッサ30は一定周
期T内で2回反転する時間的に対称で周期的な処理切替
信号に従い処理を行なう。ここでは、処理切替信号がロ
ーレベルの期間がマスタ1処理期間、処理切替信号がハ
イレベルの期間がマスタ2処理期間である。
The timing of the above-mentioned processing is shown in the timing chart of FIG. The slave processor 30 performs processing in accordance with a temporally symmetrical and periodical processing switching signal that is inverted twice within a fixed cycle T. Here, the period in which the process switching signal is at the low level is the master 1 processing period, and the period in which the process switching signal is at the high level is the master 2 processing period.

【0015】すなわち、スレーブプロセッサ30は、処
理切替信号の最初の立下りエッジに同期して入力群I2
のデータサンプリング(データサンプリング2)および
演算処理1を実行する。次にスレーブプロセッサ30
は、処理切替信号の最初の立上りエッジに同期して入力
群I1のデータサンプリング(データサンプリング1)
および演算処理2を実行する。
That is, the slave processor 30 synchronizes with the input group I2 in synchronization with the first falling edge of the processing switching signal.
Data sampling (data sampling 2) and arithmetic processing 1 are executed. Next, slave processor 30
Is data sampling of the input group I1 (data sampling 1) in synchronization with the first rising edge of the processing switching signal.
And the arithmetic processing 2 is executed.

【0016】そして、処理切替信号の次の立下りエッジ
に同期してスレーブプロセッサ30は、データサンプリ
ング2および演算処理1を実行する。さらに、処理切替
信号の次の立上りエッジに同期してデータサンプリング
1および演算処理2を実行する。
Then, in synchronization with the next falling edge of the processing switching signal, the slave processor 30 executes the data sampling 2 and the arithmetic processing 1. Further, the data sampling 1 and the arithmetic processing 2 are executed in synchronization with the next rising edge of the processing switching signal.

【0017】このように本実施形態では、一定周期Tを
2分割して処理を切替える処理切替信号を利用して、各
演算処理1,2のためのデータサンプリング1,2を他
のマスタ処理期間に行なっている。このような処理タイ
ミングを実施するためには、各スレーブ処理の時系列で
の処理期間の管理を厳密に行なう必要がある。
As described above, in this embodiment, the data sampling 1 and 2 for each arithmetic processing 1 and 2 are changed to another master processing period by using the processing switching signal for switching the processing by dividing the fixed period T into two. I am doing this. In order to implement such processing timing, it is necessary to strictly manage the processing period of each slave processing in time series.

【0018】(実施形態の効果)本実施形態によればス
レーブプロセッサのハードウェア構成の系統の統一化を
図って2つのマスタープロセッサに対して共通スレーブ
構成とし、各マスタープロセッサに応じたスレーブ処理
に必要なデータサンプリングを他のスレーブ処理実行中
に行なうようにしたことにより、1スレーブプロセッサ
構成で2つの処理期間に時分割して(勿論、n(nは2
以上の自然数)分割してもよい)事象独立の処理を行な
えるようにしたため、システム全体としてのアプリケー
ション管理を簡素化することができる。さらに、同一ス
レーブプロセッサを共通に使用するマスタ数nが大きい
ほど大きな効果が得られ、ハードウェア構成の大規模化
およびコスト増大を防止でき、ハードウェア構成の最適
化を実現することが可能である。また、各スレーブ処理
の時系列での処理期間を厳密に管理することで、各処理
期間の精度が向上する同時に、入力データのサンプリン
グ精度も向上することから演算精度の向上という効果も
得られる。
(Effects of the Embodiment) According to the present embodiment, the system of the hardware configuration of the slave processors is unified and the two master processors are configured as a common slave configuration, and the slave processing corresponding to each master processor is performed. Since the necessary data sampling is performed during the execution of other slave processes, the one slave processor is time-divided into two processing periods (of course, n (n is 2
Since the above natural number) (may be divided) event-independent processing can be performed, application management of the entire system can be simplified. Further, the larger the number n of masters that commonly use the same slave processor is, the greater the effect can be obtained, the large scale of the hardware configuration and the cost increase can be prevented, and the hardware configuration can be optimized. . Further, by strictly managing the time-series processing period of each slave process, the accuracy of each processing period is improved, and at the same time, the sampling accuracy of the input data is also improved, so that the calculation accuracy is also improved.

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

【図1】本発明に係る入力データ処理装置の一実施形態
のブロック構成図である。
FIG. 1 is a block configuration diagram of an embodiment of an input data processing device according to the present invention.

【図2】図1に示した構成の入力データ処理装置による
処理のタイミングを示すタイミングチャートである。
FIG. 2 is a timing chart showing the timing of processing by the input data processing device having the configuration shown in FIG.

【図3】従来の入力データ処理装置の一例のブロック構
成図である。
FIG. 3 is a block configuration diagram of an example of a conventional input data processing device.

【図4】図3に示した構成入力データ処理の装置による
処理のタイミングを示すタイミングチャートである。
4 is a timing chart showing the timing of processing by the apparatus for processing the configuration input data shown in FIG.

【符号の説明】 10 マスタマイクロプロセッサ 20 マスタマイクロプロセッサ 30 スレーブマイクロプロセッサ 40 インバータ 100 マスタマイクロプロセッサ 110 スレーブマイクロプロセッサ[Explanation of symbols] 10 master microprocessor 20 master microprocessor 30 slave microprocessors 40 inverter 100 master microprocessor 110 slave microprocessors

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 マスタプロセッサからの指令に応答して
所定周期で入力データをサンプリングしてスレーブ処理
を行ない、演算結果を該マスタプロセッサに返すスレー
ブプロセッサを備えた入力データ処理装置において、 n個(nは2以上の自然数)の前記マスタプロセッサ
と、各々のマスタプロセッサによる処理を切替える処理
切替手段とを備え、 前記スレーブプロセッサは、各々のマスタプロセッサか
らの指令に応じて前記切替手段による切替タイミングに
従い前記スレーブ処理を実行することを特徴とする入力
データ処理装置。
1. An input data processing device comprising a slave processor which samples input data in a predetermined cycle in response to a command from a master processor, performs slave processing, and returns an operation result to the master processor. n is a natural number of 2 or more), and processing switching means for switching processing by each master processor. The slave processor follows the switching timing by the switching means in response to a command from each master processor. An input data processing device, which executes the slave process.
【請求項2】 請求項1に記載の入力データ処理装置に
おいて、 前記処理切替手段は、n個の前記マスタプロセッサに対
して前記所定周期をn分割した処理期間が前記所定周期
で繰り返されるように前記処理の切替えを行ない、 前記スレーブプロセッサは、n個の前記マスタプロセッ
サの1つに応答するサンプリング期間に他の前記マスタ
プロセッサに対する演算処理を行なうことを特徴とする
入力データ処理装置。
2. The input data processing device according to claim 1, wherein the processing switching unit repeats a processing period obtained by dividing the predetermined cycle by n with respect to n master processors at the predetermined cycle. The input data processing device, wherein the processing is switched, and the slave processor performs arithmetic processing on another master processor during a sampling period in response to one of the n master processors.
【請求項3】 n個(nは2以上の自然数)のマスタプ
ロセッサからの指令に応答してスレーブプロセッサが所
定周期で入力データをサンプリングしてスレーブ処理を
行ない、演算結果を各々のマスタプロセッサに返す入力
データ処理方法において、 n個(nは2以上の自然数)の前記マスタプロセッサ
と、各々のマスタプロセッサによる処理を切替える第1
ステップと、 各々のマスタプロセッサからの指令に応じて前記スレー
ブプロセッサが第1ステップにおける切替タイミングに
従い前記スレーブ処理を実行する第2ステップとを備え
たことを特徴とする入力データ処理方法。
3. In response to a command from n (n is a natural number of 2 or more) master processors, slave processors sample input data at a predetermined cycle and perform slave processing, and the calculation result is sent to each master processor. In a method of processing input data to be returned, a first (n) (n is a natural number of 2 or more) master processor and a process for switching processing by each master processor are switched.
An input data processing method comprising: a step; and a second step in which the slave processor executes the slave processing in accordance with a switching timing in the first step in response to a command from each master processor.
【請求項4】 請求項3に記載の入力データ処理方法に
おいて、 前記第2ステップにおいて、n個の前記マスタプロセッ
サに対して前記所定周期をn分割した処理期間が前記所
定周期で繰り返されるように前記処理の切替えを行な
い、前記スレーブプロセッサは、n個の前記マスタプロ
セッサの1つに応答するサンプリング期間に他の前記マ
スタプロセッサに対する演算処理を行なうことを特徴と
する入力データ処理方法。
4. The input data processing method according to claim 3, wherein in the second step, a processing period obtained by dividing the predetermined cycle by n is repeated for the n master processors. The input data processing method, wherein the processing is switched, and the slave processor performs arithmetic processing on another master processor during a sampling period in response to one of the n master processors.
JP2001279906A 2001-09-14 2001-09-14 Input data processor and method Pending JP2003085126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001279906A JP2003085126A (en) 2001-09-14 2001-09-14 Input data processor and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001279906A JP2003085126A (en) 2001-09-14 2001-09-14 Input data processor and method

Publications (1)

Publication Number Publication Date
JP2003085126A true JP2003085126A (en) 2003-03-20

Family

ID=19104000

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001279906A Pending JP2003085126A (en) 2001-09-14 2001-09-14 Input data processor and method

Country Status (1)

Country Link
JP (1) JP2003085126A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007026438A (en) * 2005-07-15 2007-02-01 Samsung Electronics Co Ltd Communications system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007026438A (en) * 2005-07-15 2007-02-01 Samsung Electronics Co Ltd Communications system
JP4568703B2 (en) * 2005-07-15 2010-10-27 三星電子株式会社 Communications system
US8274972B2 (en) 2005-07-15 2012-09-25 Samsung Electronics Co., Ltd. Communication system with switchable connection

Similar Documents

Publication Publication Date Title
US7778814B2 (en) Method and device for simulating an automation system
US6832326B2 (en) Multiprocessor clock synchronization with adjustment based on measuring propagation delay between a processor and a plurality of processors
JP2003085126A (en) Input data processor and method
Ogawa et al. Efficient approach to ensure temporal determinism in automotive control systems
TW201723708A (en) Functional unit and control apparatus
CN115694704A (en) Time synchronization method, device, equipment and storage medium
JP2007536659A (en) Method and apparatus for simulation of automated systems
CN109298974B (en) System control method, device, computer and computer readable storage medium
JP2567119B2 (en) Bus arbitration circuit
Sundaramurthy et al. Hard real time implementation of reconfigurable virtual instruments using FPGA
JP4905782B2 (en) Plant control system, plant control method, and program for plant control
CN110716465B (en) Adaptive data processing system based on single chip microcomputer and control method
JPH11184828A (en) Test system for multiprocessor system
JP4205525B2 (en) Parallel simulation apparatus and parallel simulation method
US20180136955A1 (en) Simulation apparatus, simulation method, and computer readable medium
JP2786110B2 (en) Competitive operation test method
JPS62293331A (en) Data processor
JP2000011016A (en) Parallel logical simulation system
JPH0356983A (en) Plant simulation device and simulation code generating device used for the same
Wiebelt et al. Flexible HPC: bwForCluster NEMO
KR20230087090A (en) Apparatus for synchronizing tasks between heterogeneous systems and method thereof
JPH0328957A (en) Microcomputer system
JPH04128960A (en) Monitoring mechanism for multi-processor
Lawson et al. Experimentation Procedure for Offloaded Mini-Apps Executed on Cluster Architectures with Xeon Phi Accelerators
JPS61166631A (en) Microprogram control processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060914

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080919

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20080919

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080919

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090825

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091008

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20091215