JPH0830548A - Data collision preventing device - Google Patents

Data collision preventing device

Info

Publication number
JPH0830548A
JPH0830548A JP6163738A JP16373894A JPH0830548A JP H0830548 A JPH0830548 A JP H0830548A JP 6163738 A JP6163738 A JP 6163738A JP 16373894 A JP16373894 A JP 16373894A JP H0830548 A JPH0830548 A JP H0830548A
Authority
JP
Japan
Prior art keywords
output
input
setting
data
transfer
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
JP6163738A
Other languages
Japanese (ja)
Inventor
Osamu Nakano
修 中野
Fumio Yoneda
文生 米田
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP6163738A priority Critical patent/JPH0830548A/en
Publication of JPH0830548A publication Critical patent/JPH0830548A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Bus Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To provide a data collision preventing device capable of preventing the collision of data even at the time of CPU runaway and having simple constitution. CONSTITUTION:The data collision preventing device in a system connecting plural I/O devices to a data bus and executing data transfer based upon a transfer setting signal and a transfer start signal outputted from a CPU 5 is provided with an identification(ID) signal output means for outputting I/O setting ID signals F1 to F4 for setting up outputs or inputs in respective I/O devices 1 to 4 based upon the transfer setting signal from the CPU 5 and transfer start signal invalidating means 11, 12 for judging whether two output settings or more exist or not based upon the signals F1 to F4 to all the I/U devices 1 to 4, and when two output settings or more exist, invalidating the transfer start signal outputted from the CPU 5.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、データバスに複数の
入出力装置が接続されているシステムにおけるデータ衝
突防止装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data collision preventing device in a system in which a plurality of input / output devices are connected to a data bus.

【0002】[0002]

【従来の技術】画像処理装置のように、データバスに複
数の入出力装置が接続されているシステムにおいては、
データバスの制御はハードウエアまたはソフトウエアに
よって行われている。
2. Description of the Related Art In a system in which a plurality of input / output devices are connected to a data bus such as an image processing device,
The data bus is controlled by hardware or software.

【0003】データバスの制御をソフトウエアによって
行う場合には、図3に示すように、CPU100がデー
タバスを管理する。そして、データバスに接続されてい
る入出力装置200のデータの入出力制御は、CPU1
00から入出力装置200へのデータ転送命令によって
行われる。
When the data bus is controlled by software, the CPU 100 manages the data bus as shown in FIG. The input / output control of data of the input / output device 200 connected to the data bus is performed by the CPU 1
00 to the input / output device 200 by a data transfer command.

【0004】データバスの制御をハードウエアによって
行う場合には、図4に示すように、データバスに接続さ
れた入出力装置300に、バス制御部301が設けられ
ている。入出力装置300に設けられたバス制御部30
1は、当該入出力装置300からデータをデータバスに
出力する際には、データバスが現在使用されているか否
かを判別し、使用されていなければデータバスにデータ
を出力する。
When the data bus is controlled by hardware, a bus control section 301 is provided in the input / output device 300 connected to the data bus, as shown in FIG. Bus control unit 30 provided in the input / output device 300
When outputting data from the input / output device 300 to the data bus, 1 determines whether or not the data bus is currently used, and if not, outputs the data to the data bus.

【0005】[0005]

【発明が解決しようとする課題】データバスの制御を上
述したようにソフトウエアによって行う方法では、CP
U暴走時には、複数の入出力装置からデータがデータバ
スに出力されることによってデータの衝突が発生する可
能性がある。
In the method of controlling the data bus by software as described above, the CP
At the time of U runaway, data collision may occur due to the data being output from the plurality of input / output devices to the data bus.

【0006】データバスの制御を上述したようにハード
ウエアによって行う方法では、CPU暴走時でもデータ
の衝突を防止できるが、バス制御部の構成が複雑になる
とともにデータバス数の増加にしたがって回路規模が大
きくなるという問題がある。
In the method of controlling the data bus by hardware as described above, data collision can be prevented even when the CPU runs out of control, but the configuration of the bus controller becomes complicated and the circuit scale increases as the number of data buses increases. There is a problem that becomes large.

【0007】この発明は、CPU暴走時でもデータの衝
突を防止でき、しかも構成が簡単なデータ衝突防止装置
を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a data collision prevention device which can prevent data collision even when the CPU runs out of control and has a simple structure.

【0008】[0008]

【課題を解決するための手段】この発明によるデータ衝
突防止装置は、データバスに複数の入出力装置が接続さ
れており、CPUからの転送設定信号および転送開始信
号に基づいて、データ転送が行われるシステムにおける
データ衝突防止装置であって、CPUからの転送設定信
号に基づいて、各入出力装置ごとに転送設定が出力設定
または入力設定のいずれであるかを示す入出力設定識別
信号を出力する識別信号出力手段および全ての入出力装
置の入出力設定識別信号に基づいて、出力設定が2以上
あるか否かを判定し、出力設定が2以上あるときには、
CPUから出力された転送開始信号を無効にする転送開
始信号無効手段を備えていることを特徴とする。
A data collision preventing device according to the present invention has a plurality of input / output devices connected to a data bus and performs data transfer based on a transfer setting signal and a transfer start signal from a CPU. A data collision prevention device in a system, which outputs an input / output setting identification signal indicating whether the transfer setting is an output setting or an input setting for each input / output device based on a transfer setting signal from a CPU. Based on the identification signal output means and the input / output setting identification signals of all the input / output devices, it is determined whether or not there are two or more output settings. When there are two or more output settings,
A transfer start signal invalidating means for invalidating the transfer start signal output from the CPU is provided.

【0009】[0009]

【作用】CPUからの転送設定信号に基づいて、各入出
力装置ごとに転送設定が出力設定または入力設定のいず
れであるかを示す入出力設定識別信号が出力される。そ
して、全ての入出力装置の入出力設定識別信号に基づい
て、出力設定が2以上あるか否かが判定され、出力設定
が2以上あるときには、CPUから出力された転送開始
信号が無効にされる。
According to the transfer setting signal from the CPU, the input / output setting identification signal indicating whether the transfer setting is output setting or input setting is output for each input / output device. Then, based on the input / output setting identification signals of all the input / output devices, it is determined whether or not the output setting is 2 or more. When the output setting is 2 or more, the transfer start signal output from the CPU is invalidated. It

【0010】[0010]

【実施例】図1は、データ衝突防止回路が設けられたシ
ステムの構成を示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT FIG. 1 shows the configuration of a system provided with a data collision prevention circuit.

【0011】このシステムでは、データバス10に4つ
の入出力装置1、2、3、4が接続されている。これら
の4つの入出力装置1、2、3、4は、CPU5によっ
て制御される。このシステムには、桁上がり判定回路1
1とスリーステイトバッファ12とを備えたデータ衝突
防止回路が設けられている。
In this system, four input / output devices 1, 2, 3, 4 are connected to the data bus 10. These four input / output devices 1, 2, 3, 4 are controlled by the CPU 5. This system has a carry determination circuit 1
A data collision prevention circuit including 1 and a three-state buffer 12 is provided.

【0012】1つの入出力装置から他の1つの入出力装
置にデータを転送する場合には、CPU5から両入出力
装置に転送設定信号が送られた後、CPU5からの転送
開始信号がスリーステイトバッファ12を介して出力さ
れる。データを出力する側の入出力装置にCPU5から
の転送開始信号が送られると、データ転送が開始され
る。
When data is transferred from one input / output device to another one, the CPU 5 sends a transfer setting signal to both the input / output devices, and then the transfer start signal from the CPU 5 is three-stated. It is output via the buffer 12. When the transfer start signal from the CPU 5 is sent to the input / output device on the data output side, the data transfer is started.

【0013】各入出力装置1〜4は、データを出力する
か(出力設定)またはデータを入力するか(入力設定)
を識別するための入出力設定フラグF1〜F4を備えて
いる。各入出力設定フラグF1〜F4は、転送設定信号
が入力設定の転送設定信号のときにはリセット状態”
0”であり、転送設定命令が出力設定の転送設定信号の
ときにはセット状態”1”となる。各入出力設定フラグ
F1〜F4は、通常はリセット状態”0”となってい
る。
Each of the input / output devices 1 to 4 outputs data (output setting) or inputs data (input setting).
I / O setting flags F1 to F4 for identifying Each of the input / output setting flags F1 to F4 is in the reset state when the transfer setting signal is the transfer setting signal of the input setting.
When the transfer setting command is the output setting transfer setting signal, the set state is "1". The input / output setting flags F1 to F4 are normally in the reset state "0".

【0014】各入出力装置1〜4の入出力設定フラグF
1〜F4に関する情報は、桁上がり判定回路11に入力
されている。桁上がり判定回路11は、これらの入出力
設定フラグF1〜F4に関する情報を加算した結果、桁
上がりがないときには信号”0”を出力し、これらの入
出力設定フラグF1〜F4に関する情報を加算した結
果、桁上がりがあるときには信号”1”を出力する。
Input / output setting flag F of each of the input / output devices 1 to 4
Information about 1 to F4 is input to the carry determination circuit 11. As a result of adding the information on the input / output setting flags F1 to F4, the carry determination circuit 11 outputs a signal "0" when there is no carry, and adds the information on the input / output setting flags F1 to F4. As a result, when there is a carry, the signal "1" is output.

【0015】つまり、4つの入出力設定フラグF1〜F
4の状態の組み合わせにおいて、2以上のフラグがセッ
ト状態”1”であるときには、桁上がり判定回路11の
出力は”1”となり、それ以外の組み合わせのときに
は、桁上がり判定回路11の出力は”0”となる。
That is, the four input / output setting flags F1 to F
In combinations of four states, when two or more flags are in the set state "1", the output of the carry determination circuit 11 is "1", and in other combinations, the output of the carry determination circuit 11 is "1". It becomes 0 ".

【0016】桁上がり判定回路11の出力は、スリース
テイトバッファ12に転送開始イネーブル信号として送
られる。したがって、CPU5からの転送開始信号は、
桁上がり判定回路11の出力が”0”のときのみ、スリ
ーステイトバッファ12を介して入出力装置1〜4に送
られる。逆に、桁上がり判定回路11の出力が”1”の
ときには、CPU5から転送開始信号が出力されても、
転送開始信号は入出力装置1〜4に送られなくなる。
The output of the carry determination circuit 11 is sent to the three-state buffer 12 as a transfer start enable signal. Therefore, the transfer start signal from the CPU 5 is
Only when the output of the carry determination circuit 11 is “0”, it is sent to the input / output devices 1 to 4 through the three-state buffer 12. On the contrary, when the output of the carry determination circuit 11 is "1", even if the transfer start signal is output from the CPU 5,
The transfer start signal is not sent to the input / output devices 1 to 4.

【0017】以上のような構成において、入出力装置1
から入出力装置2にデータ転送を行う場合の動作につい
て説明する。
In the configuration as described above, the input / output device 1
The operation when data is transferred from the input / output device 2 will be described.

【0018】全ての入出力設定フラグF1〜F4は、”
0”に設定されているものとする。まず、CPU5から
入出力装置1に対しては出力設定のための転送設定信号
が送られ、CPU5から入出力装置2に対しては入力設
定のための転送設定信号が送られる。これにより、入出
力装置1の入出力設定フラグF1は、”1”に設定され
る。また、入出力装置2は入力ポートを解放する。この
場合には、4つの入出力設定フラグF1〜F4のうち、
1つの入出力設定フラグF1のみが”1”に設定されて
いるので、桁上がり判定回路11の出力は”0”であ
る。
All the input / output setting flags F1 to F4 are "
It is assumed that the transfer setting signal for output setting is sent from the CPU 5 to the input / output device 1, and the CPU 5 sends input / output device 2 to the input / output device 2 for input setting. The transfer setting signal is sent, whereby the input / output setting flag F1 of the input / output device 1 is set to "1", and the input / output device 2 releases the input port. Of the input / output setting flags F1 to F4,
Since only one input / output setting flag F1 is set to "1", the output of the carry determination circuit 11 is "0".

【0019】この後、CPU5から転送開始信号が出力
される。この転送開始信号は、スリーステイトバッファ
12を介して入出力装置1に送られる。転送開始信号が
入出力装置1に送られると、入出力装置1からデータが
データバス10に出力され、データバス10を介して入
出力装置2に転送される。データ転送を終了すると、入
出力装置1は入出力設定フラグF1を”0”にリセット
し、入出力装置2は入力ポートを閉鎖する。
Thereafter, the CPU 5 outputs a transfer start signal. This transfer start signal is sent to the input / output device 1 via the three-state buffer 12. When the transfer start signal is sent to the input / output device 1, the data is output from the input / output device 1 to the data bus 10 and transferred to the input / output device 2 via the data bus 10. When the data transfer is completed, the input / output device 1 resets the input / output setting flag F1 to "0", and the input / output device 2 closes the input port.

【0020】入出力装置1から入出力装置2にデータ転
送を行っている途中に、CPU5が暴走し、入出力装置
3に対して出力設定のための転送設定信号が送られたと
する。この場合には、入出力装置3の入出力設定フラグ
F3が”1”に設定される。そうすると、2つの入出力
設定フラグF1およびF3が”1”となり、桁上がり判
定回路11の出力が”1”となる。このため、この後
に、CPU5から転送開始信号が出力されても、スリー
ステイトバッファ12により転送開始信号がロックさ
れ、転送開始信号は入出力装置3に送られなくなる。こ
の結果、データの衝突が未然に防止される。
It is assumed that the CPU 5 runs away during the data transfer from the input / output device 1 to the input / output device 2 and a transfer setting signal for output setting is sent to the input / output device 3. In this case, the input / output setting flag F3 of the input / output device 3 is set to "1". Then, the two input / output setting flags F1 and F3 become "1", and the output of the carry determination circuit 11 becomes "1". Therefore, even if the CPU 5 outputs the transfer start signal thereafter, the transfer start signal is locked by the three-state buffer 12, and the transfer start signal is not sent to the input / output device 3. As a result, data collision is prevented in advance.

【0021】入出力装置が4つの場合の桁上がり判定回
路11の具体例を図2に示しておく。図2の具体例で
は、桁上がり判定回路11は、2つの排他的論理和回路
21、22と、3つの論理積回路23、24、25と、
1つの論理和回路26とから構成されている。入出力設
定フラグF1とF2の両方が”1”であれば、論理積回
路23の出力が”1”となり、論理和回路26の出力
が”1”となる。入出力設定フラグF3とF4の両方
が”1”であれば、論理積回路25の出力が”1”とな
り、論理和回路26の出力が”1”となる。
FIG. 2 shows a concrete example of the carry determination circuit 11 when there are four input / output devices. In the specific example of FIG. 2, the carry determination circuit 11 includes two exclusive OR circuits 21, 22 and three AND circuits 23, 24, 25.
It is composed of one OR circuit 26. When both the input / output setting flags F1 and F2 are "1", the output of the AND circuit 23 becomes "1" and the output of the OR circuit 26 becomes "1". When both the input / output setting flags F3 and F4 are "1", the output of the AND circuit 25 becomes "1" and the output of the OR circuit 26 becomes "1".

【0022】また、入出力設定フラグF1およびF2の
うちの一方のみが”1”であり、かつ入出力設定フラグ
F3およびF4のうちの一方のみが”1”であるときに
は、両排他的論理和回路21、22の出力は共に”1”
となり、論理積回路24の出力が”1”となり、論理和
回路26の出力が”1”となる。したがって、入出力設
定フラグF1〜F4のうち、2以上の入出力設定フラグ
が”1”となれば、論理和回路26の出力が”1”とな
る。入出力設定フラグF1〜F4の全部が”0”のとき
または入出力設定フラグF1〜F4のうち、1つのみ
が”1”のときには、論理和回路25の出力が”0”と
なる。
When only one of the input / output setting flags F1 and F2 is "1" and only one of the input / output setting flags F3 and F4 is "1", both exclusive ORs are performed. The outputs of the circuits 21 and 22 are both "1".
Therefore, the output of the logical product circuit 24 becomes "1" and the output of the logical sum circuit 26 becomes "1". Therefore, if two or more of the input / output setting flags F1 to F4 are "1", the output of the OR circuit 26 is "1". When all the input / output setting flags F1 to F4 are "0" or when only one of the input / output setting flags F1 to F4 is "1", the output of the OR circuit 25 becomes "0".

【0023】上記実施例では、データバスに接続されて
いる入出力装置が4つの場合について説明したが、デー
タバスに複数の入出力装置が接続されているシステムで
あれば、入出力装置の数にかかわらずこの発明を適用す
ることができる。
In the above embodiment, the case where there are four input / output devices connected to the data bus has been described. However, in the case of a system in which a plurality of input / output devices are connected to the data bus, the number of input / output devices is increased. This invention can be applied regardless of.

【0024】上記実施例によれば、構成が簡単なデータ
衝突防止回路を設けることによって、CPU暴走時にお
いてもデータの衝突を防止することができる。
According to the above embodiment, by providing the data collision prevention circuit having a simple structure, it is possible to prevent the data collision even when the CPU is out of control.

【0025】[0025]

【発明の効果】この発明によれば、CPU暴走時でもデ
ータの衝突を防止でき、しかも構成が簡単なデータ衝突
防止装置が得られる。
According to the present invention, it is possible to obtain a data collision preventing device which can prevent data collision even when the CPU is out of control and has a simple structure.

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

【図1】データ衝突防止回路が設けられたシステムの構
成を示す電気ブロック図である。
FIG. 1 is an electrical block diagram showing a configuration of a system provided with a data collision prevention circuit.

【図2】図1の桁上がり判定回路の具体例を示す電気回
路図である。
FIG. 2 is an electric circuit diagram showing a specific example of the carry determination circuit of FIG.

【図3】ソフトウエアによってデータバスを制御する従
来例を示す電気ブロック図である。
FIG. 3 is an electric block diagram showing a conventional example in which a data bus is controlled by software.

【図4】ハードウエアによってデータバスを制御する従
来例を示す電気ブロック図である。
FIG. 4 is an electrical block diagram showing a conventional example in which a data bus is controlled by hardware.

【符号の説明】[Explanation of symbols]

1、2、3、4 入出力装置 5 CPU 10 データバス 11 桁上がり判定回路 12 スリーステイトバッファ 1, 2, 3, 4 Input / output device 5 CPU 10 Data bus 11 Carry determination circuit 12 Three-state buffer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データバスに複数の入出力装置が接続さ
れており、CPUからの転送設定信号および転送開始信
号に基づいて、データ転送が行われるシステムにおける
データ衝突防止装置であって、 CPUからの転送設定信号に基づいて、各入出力装置ご
とに転送設定が出力設定または入力設定のいずれである
かを示す入出力設定識別信号を出力する識別信号出力手
段、および全ての入出力装置の入出力設定識別信号に基
づいて、出力設定が2以上あるか否かを判定し、出力設
定が2以上あるときには、CPUから出力された転送開
始信号を無効にする転送開始信号無効手段、 を備えているデータ衝突防止装置。
1. A data collision prevention device in a system in which a plurality of input / output devices are connected to a data bus, and data is transferred based on a transfer setting signal and a transfer start signal from the CPU. Identification signal output means for outputting an input / output setting identification signal indicating whether the transfer setting is output setting or input setting for each input / output device based on the transfer setting signal of A transfer start signal invalidating unit that determines whether or not the output setting is 2 or more based on the output setting identification signal, and invalidates the transfer start signal output from the CPU when the output setting is 2 or more. Data collision prevention device.
JP6163738A 1994-07-15 1994-07-15 Data collision preventing device Pending JPH0830548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6163738A JPH0830548A (en) 1994-07-15 1994-07-15 Data collision preventing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6163738A JPH0830548A (en) 1994-07-15 1994-07-15 Data collision preventing device

Publications (1)

Publication Number Publication Date
JPH0830548A true JPH0830548A (en) 1996-02-02

Family

ID=15779742

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6163738A Pending JPH0830548A (en) 1994-07-15 1994-07-15 Data collision preventing device

Country Status (1)

Country Link
JP (1) JPH0830548A (en)

Similar Documents

Publication Publication Date Title
JPH0830548A (en) Data collision preventing device
JP2806771B2 (en) Bus arbitration circuit
JPH07219887A (en) Dma transfer controller
JP3206910B2 (en) DMA transfer method
JPS6337453A (en) Bus switch device
JPH05143521A (en) Information processing system and input/output instruction responsing system using the same
JP3211267B2 (en) Access control method
JPH07141288A (en) Dma transfer system
JP2893033B2 (en) DMA channel identification control method
JPS58101322A (en) Data transfer controlling circuit
JP2842639B2 (en) Data transfer method
JP2820054B2 (en) Bus interface device
JPH05173949A (en) Microprocessor device
JPH0241551A (en) Interrupt handling method for specifying destination
JPH04267438A (en) Double exception detector
JPH04167043A (en) Portable electronic equipment
JPH0381833A (en) Arithmetic processor
JPH0553692A (en) Multiprocessor system
JPH0340159A (en) Interruption controller
JPH0535663A (en) Hierarchical bus arbitration circuit
JPS5856012A (en) Interruption control system
JPS62174858A (en) Ipi protocol control system
JPH0225543B2 (en)
JPH05216599A (en) Output device for information processing system and spooling method
JPS63245544A (en) Input/output controller