JPH0512175A - Peripheral controller - Google Patents
Peripheral controllerInfo
- Publication number
- JPH0512175A JPH0512175A JP16794091A JP16794091A JPH0512175A JP H0512175 A JPH0512175 A JP H0512175A JP 16794091 A JP16794091 A JP 16794091A JP 16794091 A JP16794091 A JP 16794091A JP H0512175 A JPH0512175 A JP H0512175A
- Authority
- JP
- Japan
- Prior art keywords
- data
- attribute
- register
- port
- main memory
- 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.)
- Granted
Links
- 230000002093 peripheral effect Effects 0.000 title claims abstract description 13
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は周辺制御装置、特に垂直
型マイクロプログラム制御により動作する周辺制御装置
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a peripheral control device, and more particularly to a peripheral control device which operates by vertical microprogram control.
【0002】[0002]
【従来の技術】従来、この種の周辺制御装置は、メモリ
上の個々のデータの属性は個々に識別する手段はなく、
無制限にアクセスが可能であった。2. Description of the Related Art Conventionally, this type of peripheral control device has no means for individually identifying the attributes of individual data on a memory.
There was unlimited access.
【0003】[0003]
【発明が解決しようとする課題】この従来の周辺制御装
置では、メモリ上のデータは無制限にアクセスが可能で
あったため、制御を行なおうとするポート以外のポート
のデータを誤って読み出したとしても、それをチェック
する機能がないので、誤動作する可能性があった。In this conventional peripheral control device, since the data on the memory can be accessed indefinitely, even if the data of the port other than the port to be controlled is erroneously read. , There was a possibility of malfunction because there is no function to check it.
【0004】同様に、制御を行なおうとするポート以外
のポートのデータが格納されている領域に誤って書き込
もうとしてもそれをチェックする機能がないので、他ポ
ートの制御データを破壊する可能性があった。Similarly, even if data is written in an area in which data of a port other than the port to be controlled is erroneously written, there is no function to check it, so that control data of other ports may be destroyed. was there.
【0005】[0005]
【課題を解決するための手段】本発明の装置は、複数の
ポートを有する周辺制御装置において、主記憶部と同一
アドレス空間を有し、該主記憶部に格納されているデー
タがどのポートの制御情報かを表すポートの属性を示す
データを格納する主記憶データ属性格納部と、該主記憶
データ属性格納部のデータを授受する主記憶データ属性
レジスタと、マイクロプログラムによりポートの制御を
行っている時の、該ポートの属性値を格納するための属
性データレジスタと、前記主記憶データ属性レジスタと
前記属性データレジスタの値とを比較する比較器とを有
し、該比較器で不一致を検出した時、割込み制御を行う
ことを特徴とする。In a peripheral control device having a plurality of ports, the device of the present invention has the same address space as the main memory unit, and the port in which the data stored in the main memory unit is stored. A main memory data attribute storage unit that stores data indicating the port attribute indicating control information, a main memory data attribute register that transmits and receives data in the main memory data attribute storage unit, and a port is controlled by a microprogram. The attribute data register for storing the attribute value of the port, and a comparator for comparing the value of the main memory data attribute register with the value of the attribute data register when the mismatch is detected by the comparator. When it does, it is characterized in that interrupt control is performed.
【0006】[0006]
【実施例】次に本発明について図を参照して説明する。The present invention will be described below with reference to the drawings.
【0007】図1は本発明の周辺制御装置の一実施例で
ある。FIG. 1 shows an embodiment of the peripheral control device of the present invention.
【0008】この周辺制御装置は内部バス13を介し
て、命令レジスタ7,アドレスレジスタ6,主記憶デー
タ属性レジスタ3,属性データレジスタ4,メモリレジ
スタ8,アキュムレータ9,ポート21,ポート22,
ポート23,ポート24がそれぞれ接続されている。This peripheral controller is provided with an instruction register 7, an address register 6, a main memory data attribute register 3, an attribute data register 4, a memory register 8, an accumulator 9, a port 21, a port 22, via an internal bus 13.
Ports 23 and 24 are connected to each other.
【0009】また、アドレスレジスタ6はアドレスバス
14を介して主記憶部2,主記憶データ属性格納部1に
接続され、主記憶部2はデータバス15を介して命令レ
ジスタ7とメモリレジスタに接続される。また、主記憶
データ属性格納部1はデータバス16を介して主記憶デ
ータ属性レジスタ3に接続され、主記憶データ属性レジ
スタ3と属性レジスタ4はともに比較器5の入力とな
り、比較器5は割込み信号線17を介して制御装置11
に接続される。The address register 6 is connected to the main storage unit 2 and the main storage data attribute storage unit 1 via the address bus 14, and the main storage unit 2 is connected to the instruction register 7 and the memory register via the data bus 15. To be done. The main memory data attribute storage unit 1 is connected to the main memory data attribute register 3 via the data bus 16. Both the main memory data attribute register 3 and the attribute register 4 are input to the comparator 5, and the comparator 5 interrupts. Control device 11 via signal line 17
Connected to.
【0010】命令レジスタ7も制御装置11に接続さ
れ、命令レジスタのオペレーションコードの解釈は制御
装置11で行う。メモリレジスタ8とアキュムレータ9
は演算器10と接続し、演算器10での演算の結果には
アキュムレータ9にセットされる。The instruction register 7 is also connected to the control unit 11, and the control unit 11 interprets the operation code of the instruction register. Memory register 8 and accumulator 9
Is connected to the arithmetic unit 10 and the result of the arithmetic operation in the arithmetic unit 10 is set in the accumulator 9.
【0011】図2は主記憶部2と主記憶データ属性格納
部1のデータ格納イメージであり、同一アドレスにデー
タとそれに対応するポート属性が対になって存在する。FIG. 2 is a data storage image of the main storage unit 2 and the main storage data attribute storage unit 1, in which data and corresponding port attributes exist in pairs at the same address.
【0012】次にこのように構成された本実施例の周辺
制御装置への動作を説明する。Next, the operation of the peripheral control device of this embodiment having the above-described structure will be described.
【0013】制御装置11は、ポート21を制御する
時、ポート21を選択すると共に属性データレジスタ4
にポート属性データをセットする。まず、ポート21を
制御するための制御データを主記憶部2から読み取る場
合を考える。When the control device 11 controls the port 21, it selects the port 21 and at the same time, the attribute data register 4
Set the port attribute data to. First, consider a case where control data for controlling the port 21 is read from the main storage unit 2.
【0014】制御装置11は、プログラムカウンタ12
に従って主記憶部2から命令レジスタ7にマイクロ命令
を読み込む。マイクロ命令のオペレーションコードを制
御装置11にセットしてデコードし、メモリのリードで
あることを認識する。The control unit 11 includes a program counter 12
In accordance with the above, the micro instruction is read from the main storage unit 2 into the instruction register 7. The operation code of the microinstruction is set in the control device 11 and decoded to recognize that it is a memory read.
【0015】制御装置11は、命令レジスタ7のオペラ
ンドをアドレスレジスタ6にセットし、アドレスバス1
4を介して主記憶部2と主記憶データ属性格納部1の該
当アドレスを選択する。またデータバス15を介して主
記憶部2のデータをメモリレジスタ8にセットし、デー
タバス16を介して主記憶データ属性格納部1のデータ
を主記憶データ属性レジスタ3にセットする。The control unit 11 sets the operand of the instruction register 7 in the address register 6 and sets the address bus 1
The corresponding addresses in the main storage unit 2 and the main storage data attribute storage unit 1 are selected via 4. Further, the data of the main storage unit 2 is set in the memory register 8 via the data bus 15, and the data of the main storage data attribute storage unit 1 is set in the main storage data attribute register 3 via the data bus 16.
【0016】既にセットされている属性データレジスタ
4の値とこの主記憶データ属性レジスタ3の値を比較器
5で比較し、属性データが一致していればそのままメモ
リリードの処理が完了する。もしここで比較器5の結果
が不一致であった場合は、割込み信号線17を介して制
御装置11によりプログラムの割込み処理が制御されデ
ータの属性不一致の異常処理が行なわれる。The comparator 5 compares the already set value of the attribute data register 4 with the value of the main memory data attribute register 3, and if the attribute data match, the memory read process is completed. If the result of the comparator 5 does not match here, the interrupt processing of the program is controlled by the control device 11 via the interrupt signal line 17 and abnormal processing of data attribute mismatch is performed.
【0017】次にポート21を制御するための制御デー
タをアキュムレータ9から主記憶部2に書き込む場合を
考える。Next, consider a case where control data for controlling the port 21 is written from the accumulator 9 to the main memory 2.
【0018】制御装置11は、プログラムカウンタ12
に従って主記憶部2から命令レジスタ7にマイクロ命令
を読み込む。マイクロ命令のオペレーションコードを制
御装置11にセットしてデコードし、メモリのライトで
あることを認識する。命令レジスタのオペランドをアド
レスレジスタ6にセットし、アドレスバス14を介して
主記憶部2と主記憶データ属性格納部1の該当アドレス
を選択する。アキュムレータ9からメモリレジスタ8に
データを移送する。データバス16を介して主記憶デー
タ属性格納部1のデータを主記憶データ属性レジスタ3
にセットする。The control unit 11 includes a program counter 12
In accordance with the above, the micro instruction is read from the main storage unit 2 into the instruction register 7. The operation code of the microinstruction is set in the control device 11 and decoded to recognize that it is a memory write. The operand of the instruction register is set in the address register 6, and the corresponding address in the main memory 2 and the main memory data attribute storage 1 is selected via the address bus 14. Data is transferred from the accumulator 9 to the memory register 8. Data in the main memory data attribute storage unit 1 is transferred via the data bus 16 to the main memory data attribute register 3
Set to.
【0019】既にセットされている属性データレジスタ
4の値をこの主記憶データ属性レジスタ3の値を比較器
5で比較し、属性データが一致していればデータバス1
5を介してメマリレジスタ8の内容を主記憶部2にデー
タをセットしてメモリライトの処理が完了する。もしこ
こで比較器5の結果が不一致であった場合には、割込み
信号線17を介して制御装置11によりプログラムの割
込み処理が起動され、データの属性不一致の異常処理が
行なわれる。The value of the attribute data register 4 which has already been set is compared with the value of the main memory data attribute register 3 by the comparator 5, and if the attribute data match, the data bus 1
The contents of the summary register 8 are set in the main memory 2 via 5, and the memory write process is completed. If the result of the comparator 5 does not match here, the controller 11 activates the interrupt processing of the program through the interrupt signal line 17, and the abnormal processing of the data attribute mismatch is performed.
【0020】[0020]
【発明の効果】以上説明したように本発明は、主記憶部
と同一空間の主記憶データ属性格納部を有し、主記憶部
の読み出しまたは書き込みを行なった時、そのアドレス
のポート属性値を属性データレジスタの値とハードウェ
アで比較することにより、プログラム上意識することな
く制御しているポートに対応したデータかどうかのチェ
ックが行なわれるので、プログラムを複雑化させること
なく、データの信頼性を向上させることができる効果が
ある。As described above, the present invention has the main memory data attribute storage unit in the same space as the main memory unit, and when the main memory unit is read or written, the port attribute value of the address is set. By comparing the value of the attribute data register with the hardware, it is possible to check whether or not the data corresponds to the port being controlled without being aware of it in the program. Therefore, the reliability of the data can be improved without complicating the program. There is an effect that can be improved.
【図1】本発明の周辺制御装置の一実施例のブロック図
である。FIG. 1 is a block diagram of an embodiment of a peripheral control device of the present invention.
【図2】本発明における主記憶部と主記憶データ属性格
納部のデータ格納イメージである。FIG. 2 is a data storage image of a main storage unit and a main storage data attribute storage unit according to the present invention.
1 主記憶データ属性格納部 2 主記憶部 3 主記憶データ属性レジスタ 4 属性データレジスタ 5 比較器 6 アドレスレジスタ 7 命令レジスタ 8 メモリレジスタ 9 アキュムレータ 10 演算器 11 制御装置 12 プログラムカウンタ 13 内部バス 14 アドレスバス 15,16 データバス 17 割込み信号線 21,22,23,24 ポート 1 Main memory data attribute storage unit 2 Main memory unit 3 Main memory data attribute register 4 Attribute data register 5 Comparator 6 Address register 7 Instruction register 8 Memory register 9 Accumulator 10 Arithmetic unit 11 Controller 12 Program counter 13 Internal bus 14 Address bus 15, 16 Data bus 17 Interrupt signal line 21, 22, 23, 24 ports
Claims (1)
いて、 主記憶部と同一アドレス空間を有し、該主記憶部に格納
されているデータがどのポートの制御情報かを表すポー
トの属性を示すデータを格納する主記憶データ属性格納
部と、 該主記憶データ属性格納部のデータを授受する主記憶デ
ータ属性レジスタと、マイクロプログラムによりポート
の制御を行っている時の、該ポートの属性値を格納する
ための属性データレジスタと、 前記主記憶データ属性レジスタと前記属性データレジス
タの値とを比較する比較器とを有し、 該比較器で不一致を検出した時、割込み制御を行うこと
を特徴とする周辺制御装置。Claim: What is claimed is: 1. In a peripheral control device having a plurality of ports, which port has control information having the same address space as that of the main memory, and which data is stored in the main memory. A main memory data attribute storage unit that stores data indicating the attribute of the port that is represented, a main memory data attribute register that transmits and receives data in the main memory data attribute storage unit, and when controlling the port by the microprogram, An attribute data register for storing an attribute value of the port, and a comparator for comparing the value of the main memory data attribute register with the value of the attribute data register, and when the comparator detects a mismatch, an interrupt is generated. A peripheral control device characterized by performing control.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16794091A JP3293144B2 (en) | 1991-07-09 | 1991-07-09 | Peripheral control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16794091A JP3293144B2 (en) | 1991-07-09 | 1991-07-09 | Peripheral control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0512175A true JPH0512175A (en) | 1993-01-22 |
| JP3293144B2 JP3293144B2 (en) | 2002-06-17 |
Family
ID=15858876
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16794091A Expired - Fee Related JP3293144B2 (en) | 1991-07-09 | 1991-07-09 | Peripheral control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3293144B2 (en) |
-
1991
- 1991-07-09 JP JP16794091A patent/JP3293144B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP3293144B2 (en) | 2002-06-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0098172B1 (en) | Register control processing system | |
| US5142673A (en) | Bus monitor with dual port memory for storing selectable trigger patterns | |
| JPH0512175A (en) | Peripheral controller | |
| EP0382234B1 (en) | Microprocessor having improved functional redundancy monitor mode arrangement | |
| JPS60207935A (en) | Detecting system of illegal instruction | |
| JPH0480860A (en) | Program loading system | |
| JP3140028B2 (en) | Subroutine argument passing method | |
| JPS61194566A (en) | Vector data reference control system | |
| JPS6226738B2 (en) | ||
| JPH0447350A (en) | Main storage read/response control | |
| JPS6029131B2 (en) | Diagnostic method | |
| JPS63165931A (en) | Storing system for information on discontinuous instruction fetch address | |
| JPS60193046A (en) | Instruction exception detection method | |
| JP2560312B2 (en) | Information processing system | |
| JPS626341A (en) | Information processor | |
| JPS61175731A (en) | Microprogram control system | |
| JPS6332642A (en) | Information processor | |
| JPS59139199A (en) | Protecting method of storage | |
| JPS63120336A (en) | Switching system for memory access mode | |
| JPH0612292A (en) | Microcomputer | |
| JPS62114046A (en) | Access control system | |
| JPH0215353A (en) | Abnormality setting system at specific address | |
| JPH0335331A (en) | Peripheral controller | |
| JPS62212733A (en) | Overflow detecting mechanism for stack area | |
| JPH06301628A (en) | Electronic computer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20020305 |
|
| LAPS | Cancellation because of no payment of annual fees |