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
JPS6156827B2 - - Google Patents
[go: Go Back, main page]

JPS6156827B2 - - Google Patents

Info

Publication number
JPS6156827B2
JPS6156827B2 JP56052352A JP5235281A JPS6156827B2 JP S6156827 B2 JPS6156827 B2 JP S6156827B2 JP 56052352 A JP56052352 A JP 56052352A JP 5235281 A JP5235281 A JP 5235281A JP S6156827 B2 JPS6156827 B2 JP S6156827B2
Authority
JP
Japan
Prior art keywords
address
data
signal
channel
output
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
JP56052352A
Other languages
Japanese (ja)
Other versions
JPS57168330A (en
Inventor
Takeshi Ishii
Chihiro Nakajima
Eijiro Iharaki
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
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
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, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP56052352A priority Critical patent/JPS57168330A/en
Publication of JPS57168330A publication Critical patent/JPS57168330A/en
Publication of JPS6156827B2 publication Critical patent/JPS6156827B2/ja
Granted 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/22Handling requests for interconnection or transfer for access to input/output bus using successive scanning, e.g. polling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 本発明は、デジタル演算制御装置に使用するデ
ータ格納装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data storage device used in a digital arithmetic control device.

従来のデジタル演算制御装置は、第1図に示す
ように、端末ユニツト11、ダイレクトメモリア
クセスユニツト12(以下DMA12と称す
る。)、メインメモリ13、中央処理装置14(以
下CPU14と称する。)および共通バス15を有
している。このデジタル演算制御装置において、
端末ユニツト11は受信データをDMA12に転
送し、DMA12は共通バス15を介してそのデ
ータをメモリ13に格納する。このようなデータ
転送方法は、一般的な使用条件に対しては支障な
く適用できるが、データの高速度処理が要求され
るデジタル保護継電装置のようなデジタル演算制
御装置においては、次のような欠点がある。
As shown in FIG. 1, a conventional digital arithmetic control device includes a terminal unit 11, a direct memory access unit 12 (hereinafter referred to as DMA 12), a main memory 13, a central processing unit 14 (hereinafter referred to as CPU 14), and a common unit. It has a bus 15. In this digital arithmetic and control device,
Terminal unit 11 transfers the received data to DMA 12, which stores the data in memory 13 via common bus 15. This data transfer method can be applied without problems under general usage conditions, but in digital arithmetic control devices such as digital protective relay devices that require high-speed data processing, the following There are some drawbacks.

(1) DMA12からメモリ13へデータを転送す
る際、共通バス15を使用するため、CPU1
4は共通バス15の使用権を一時放棄して
DMA12にその使用権を与える。従つて、
DMA12がメモリ13へデータを転送中は、
CPU14は共通バス15を使用できず、CPU
14の処理効率が低下する。
(1) When transferring data from the DMA 12 to the memory 13, the common bus 15 is used, so the CPU 1
4 temporarily waives the right to use common bus 15.
Give the right to use it to DMA12. Therefore,
While DMA 12 is transferring data to memory 13,
CPU 14 cannot use common bus 15, and CPU
14 processing efficiency decreases.

(2) DMA12が1スキヤン毎に(N+1)点の
データをメモリ13の指定領域へ転送し、
CPU14がその都度最新のデータと一定時間
前の旧データを用いて演算処理を行うデジタル
演算制御装置においては、CPU14はDMA1
2が書き込んだ最新データをメモリ13の別の
領域へ逐次格納し直し、データを一定時間保存
して処理しなければならない。
(2) The DMA 12 transfers (N+1) point data to the designated area of the memory 13 for each scan,
In a digital arithmetic control device in which the CPU 14 performs arithmetic processing using the latest data and old data from a certain period of time ago, the CPU 14 uses the DMA1
It is necessary to sequentially restore the latest data written by 2 to another area of the memory 13, and store the data for a certain period of time before processing.

(3) CPU14がメモリ13の所定領域に格納さ
れた新旧データを用いて演算処理する場合、最
新データと一定時間前の旧データの所在を明確
にするため、アドレス計数をその都度行う必要
があり、従つて該当データの検索に時間がかか
る。特に、入力データを高速度でサンプリング
して読み込み、繰返し演算処理を実行するデジ
タル演算制御装置においては、データの保存、
アドレス計算などに無駄な時間が費されシステ
ムの効率が著しく低下する。
(3) When the CPU 14 performs arithmetic processing using new and old data stored in a predetermined area of the memory 13, it is necessary to perform address counting each time to clarify the location of the latest data and old data from a certain time ago. , therefore, it takes time to search for the relevant data. In particular, in digital arithmetic control devices that sample and read input data at high speed and perform repetitive arithmetic processing, data storage,
Time is wasted in address calculations and the efficiency of the system is significantly reduced.

本発明の目的は、上述した従来のデジタル演算
制御装置の欠点を除去するために、データを共通
バスを介さずに格納し、データの高速度処理が要
求されるデジタル演算制御装置に適用しても
CPUの処理効率の低下を来たさないデータ格納
装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to store data without using a common bus and apply it to digital arithmetic and control devices that require high-speed data processing, in order to eliminate the drawbacks of the conventional digital arithmetic and control devices described above. too
An object of the present invention is to provide a data storage device that does not cause a decrease in CPU processing efficiency.

本発明のデータ格納装置は、モード制御信号に
もとづいて書き込みおよび読み出しモードが制御
され、データ格納ロケーシヨンがチヤンネル番号
とチヤンネル内アドレスで指定されるランダムア
クセスメモリと、入力データを前記チヤンネル番
号毎に順次読み込む受信データレジスタと、この
受信データレジスタによる前記入力データの読み
込みに同期して計数値が変化し、その計数値が前
記ランダムアクセスメモリの前記チヤンネル内ア
ドレスに対応する循環カウンタと、前記受信デー
タレジスタのチヤンネル番号出力と前記循環カウ
ンタの前記計数値にもとづいて前記ランダムアク
セスメモリにおけるデータの書き込みアドレス信
号を生成する第1アドレス変換回路と、中央処理
装置から指定されるチヤンネル番号とチヤンネル
内相対アドレスにより前記ランダムアクセスメモ
リに格納されているデータの読み出しアドレス信
号を生成する第2アドレス変換回路と、アドレス
モード選択信号に応じて前記書き込みアドレス信
号もしくは前記読み出しアドレス信号を選択して
前記ランダムアクセスメモリに供給するモードセ
レクタと、前記ランダムアクセスメモリの前記モ
ード制御信号、前記受信データレジスタによる前
記入力データの読み込みを制御する信号、前記モ
ードセレクタの前記アドレスモード選択信号、お
よび前記ランダムアクセスメモリが前記受信デー
タレジスタの出力データを格納したときに、前記
中央処理装置に通知する割り込み信号をそれぞれ
出力する制御回路とを具備したことを特徴とする
ものである。
The data storage device of the present invention includes a random access memory in which write and read modes are controlled based on a mode control signal, and a data storage location is specified by a channel number and an address within the channel, and input data is sequentially stored for each channel number. a receive data register to be read; a circular counter whose count value changes in synchronization with the read of the input data by the receive data register, and whose count value corresponds to the address within the channel of the random access memory; and the receive data register. a first address conversion circuit that generates a write address signal for data in the random access memory based on the channel number output of and the count value of the circulation counter; and a channel number and intra-channel relative address specified by the central processing unit. a second address conversion circuit that generates a read address signal for data stored in the random access memory; and a second address conversion circuit that selects the write address signal or the read address signal according to an address mode selection signal and supplies it to the random access memory. the mode selector of the random access memory; the mode control signal of the random access memory; a signal that controls reading of the input data by the receive data register; the address mode selection signal of the mode selector; The apparatus is characterized by comprising a control circuit that outputs an interrupt signal to notify the central processing unit when the output data of is stored.

以下、図面を参照して、本発明について説明す
る。
The present invention will be described below with reference to the drawings.

第2図は本発明によるデータ格納装置21を適
用したデジタル演算制御装置の一構成例を示すブ
ロツク図である。このデジタル演算制御装置にお
いては、端末ユニツト11で受信したデータを直
接データ格納装置21に格納し、データ格納装置
21とCPU14は共通バス15で結合するた
め、DMAは不要である。データ格納装置21
は、ランダムアクセスメモリ(以下RAMと称す
る。)とアドレス変換回路を有し、RAMには端末
ユニツト11が収集する(N+1)チヤンネルの
入力データを少なくとも(K+1)回分ほど格納
する記憶領域があり、アドレス変換回路は、
RAMにおける最新入力データの格納位置の指定
と、CPU14の相対アドレス指定にもとづい
て、RAMにおける所要の新旧格納データのアド
レス指定を行うことができる。端末ユニツト11
一定サンプリング周期で連続的に(N+1)チヤ
ンネルのデータを繰返し取り込むが、データ格納
装置21は各種のエラーチエツク回路を備えてお
り、入力データを受信する際にチヤンネル照合チ
エツク、パリテイチエツクなどを行い、単発的な
エラー検出ができ、しかもそれによつてCPU1
4における演算処理が阻害されることなく続行で
きるような構成になつている。このデータ格納装
置を用いると、従来のデジタル演算制御装置にお
いて必要であつたDMA12によるメモリ13へ
のデータ転送およびCPU14による複雑なデー
タ検索処理が不要となり、CPU14の処理効率
が向上する。
FIG. 2 is a block diagram showing an example of the configuration of a digital arithmetic and control device to which the data storage device 21 according to the present invention is applied. In this digital arithmetic and control device, data received by the terminal unit 11 is directly stored in the data storage device 21, and the data storage device 21 and the CPU 14 are connected via the common bus 15, so DMA is not required. Data storage device 21
has a random access memory (hereinafter referred to as RAM) and an address conversion circuit, and the RAM has a storage area for storing at least (K+1) input data of the (N+1) channels collected by the terminal unit 11, The address conversion circuit is
Based on the designation of the storage location of the latest input data in the RAM and the relative address designation of the CPU 14, it is possible to designate the addresses of the required new and old stored data in the RAM. Terminal unit 11
The data of (N+1) channels is repeatedly taken in continuously at a constant sampling period, but the data storage device 21 is equipped with various error check circuits, and performs channel verification checks, parity checks, etc. when receiving input data. , it is possible to detect one-off errors, and by doing so, CPU1
The configuration is such that the arithmetic processing in step 4 can be continued without being hindered. Using this data storage device eliminates the need for data transfer to the memory 13 by the DMA 12 and complicated data search processing by the CPU 14, which were necessary in conventional digital arithmetic control devices, and the processing efficiency of the CPU 14 is improved.

第3図はデータ格納装置21の詳細なブロツク
図である。データ格納装置21は、端末ユニツト
11からデータ転送を受けるインターフエースと
して、受信データレジスタ31とストローブ信号
検出回路32を有している。受信データレジスタ
31は、端末ユニツト11からチヤンネル番号5
1とそのチヤンネル番号に対応したデータ52の
転送を受ける。ストローブ信号検出回路32は、
ストローブ信号53の立上りを検出し、データラ
ツチ要求信号54を制御回路33に出力する。こ
の制御回路33は、データラツチ要求信号54に
応答して、データラツチ信号55を受信データレ
ジスタ31に供給する。従つて、受信データレジ
スタ31は、端末ユニツト11から転送されたチ
ヤンネル番号51とそのデータ52を読み込む。
チヤンネル番号51およびデータ52は、第4図
Aのように、1スキヤンが(N+1)チヤンネル
からなり、ストローブ信号53は第4図Bに示す
ようなタイミングを有している。いま、受信デー
タレジスタ31が読み込んだ入力データのチヤン
ネル番号出力58がスタートを示す“0”である
とすると、制御回路33は制御信号56とアドレ
スモード選択信号57を出力する。そして、制御
信号56により、プラス循環カウンタ34はその
内容を“+1”ほど加算し、さらにチヤンネル照
合チエツク回路35と状態レジスタ36はリセツ
トする。このとき、アドレスモード選択信号57
は、第4図Cに示すように、書き込みモード選択
信号となり、このためモードセレクタ37は書き
込み側に切り換わる。プラス循環カウンタ34は
1スキヤン毎に“+1”の加算を行う(K+1)
進カウンタであり、その計数出力59は第1アド
レス変換回路38に供給される。第1アドレス変
換回路38は、循環カウンタ34の計数出力59
と、受信データレジスタ31のチヤンネル番号出
力58にもとづいて、ランダムアクセスメモリ3
9(以下RAM39と称する。)のアドレス信号6
0を出力する。このアドレス信号60は、書き込
みモード選択信号57によつて書き込み側に切り
換わつているモードセレクタ37を介して、書き
込みアドレス信号61としてRAM37に供給さ
れる。このとき、RAM39は、受信データレジ
スタ31から出力データ62の転送を受けるが、
そのデータ62の書き込みの実行に先立つて、次
の異常チエツクが行なわれる。
FIG. 3 is a detailed block diagram of the data storage device 21. The data storage device 21 has a reception data register 31 and a strobe signal detection circuit 32 as an interface for receiving data transfer from the terminal unit 11. The reception data register 31 receives channel number 5 from the terminal unit 11.
1 and data 52 corresponding to the channel number are transferred. The strobe signal detection circuit 32 is
The rise of the strobe signal 53 is detected and a data latch request signal 54 is output to the control circuit 33. The control circuit 33 supplies a data latch signal 55 to the receiving data register 31 in response to the data latch request signal 54 . Therefore, the reception data register 31 reads the channel number 51 and its data 52 transferred from the terminal unit 11.
Regarding channel number 51 and data 52, one scan consists of (N+1) channels as shown in FIG. 4A, and strobe signal 53 has timing as shown in FIG. 4B. Now, assuming that the channel number output 58 of the input data read by the reception data register 31 is "0" indicating a start, the control circuit 33 outputs a control signal 56 and an address mode selection signal 57. Then, in response to the control signal 56, the positive circulation counter 34 increments its contents by "+1", and furthermore, the channel verification check circuit 35 and the status register 36 are reset. At this time, address mode selection signal 57
As shown in FIG. 4C, becomes a write mode selection signal, and therefore the mode selector 37 is switched to the write side. The positive circulation counter 34 adds “+1” every scan (K+1)
The count output 59 is supplied to the first address conversion circuit 38. The first address conversion circuit 38 has a count output 59 of the circulation counter 34.
Based on the channel number output 58 of the reception data register 31, the random access memory 3
9 (hereinafter referred to as RAM 39) address signal 6
Outputs 0. This address signal 60 is supplied to the RAM 37 as a write address signal 61 via the mode selector 37 which is switched to the write side by the write mode selection signal 57. At this time, the RAM 39 receives the output data 62 from the reception data register 31, but
Prior to writing the data 62, the following abnormality check is performed.

(i) チヤンネル照合チエツク回路35が、チヤン
ネル番号出力58と内部のチヤンネルカウンタ
の計数値との照合を行う。そして、それらが不
一致の場合、チヤンネル照合チエツク回路35
は、異常信号63,64を状態レジスタ36と
制御回路33にそれぞれ出力する。
(i) The channel verification check circuit 35 performs verification between the channel number output 58 and the count value of the internal channel counter. If they do not match, the channel matching check circuit 35
outputs abnormal signals 63 and 64 to the status register 36 and control circuit 33, respectively.

(ii) パリテイチエツク回路40が、チヤンネル番
号出力58とデータ出力62のパリテイを検査
する。そして、パリテイに異常があると、パリ
テイチエツク回路40は、異常信号64,65
をそれぞれ制御回路33と状態レジスタ36に
供給する。
(ii) Parity check circuit 40 checks the parity of channel number output 58 and data output 62. If there is an abnormality in parity, the parity check circuit 40 sends abnormality signals 64, 65.
are supplied to the control circuit 33 and the status register 36, respectively.

このようにして、もしチヤンネル照合とパリテ
イに異常があると、制御回路33はRAM39に
書き込み制御信号66を出力せず、従つてRAM
37が書き込み動作を中止し、アドレス信号61
で指定したRAM39の旧データの更新は行われ
ず、そのまま保存される。しかし、チヤンネル照
合とパリテイに異常がなければ、制御回路33は
RAM39に書き込み制御信号66を供給するた
め、書き込みアドレス信号61で指定したRAM
39のアドレスに受信データレジスタ31の出力
データ62がチヤンネル番号0〜N毎に順次書き
込まれる。そして、1スキヤンの最終チヤンネル
番号Nと、そのデータ52を受信データレジスタ
31が読み込み、その出力データ62をRAM3
9に書き込むと、制御回路33は、モードセレク
タ37に読み出しモード選択信号57を出力して
モードセレクタ37を読み出し側へ切り換えると
共に、1スキヤンサイクルのデータ読み込みが完
了したことをCPU14に通知するため、割り込
み信号67を共通バス15に出力する。この割り
込み信号67に応答して、CPU14はRAM39
に書き込まれたデータの読み取りを開始する。そ
こで、CPU14は、まず状態レジスタ36の内
容を参照して、データ読み込みを完了したスキン
サイクルが正常であつたかどうかをチエツクす
る。その結果、異常がなければ、第5図に示すよ
うに、チヤンネル番号アドレス指定部CHNとチ
ヤンネル内相対アドレス指定部αからなるフオー
マツトのアドレス信号68を、共通バス15を介
して、第2アドレス変換回路41に供給する。第
2アドレス変換回路41は、第6図に示すよう
に、減算器81、加算器82、セレクタ83およ
びアドレスレジスタ84を備えている。アドレス
信号68のチヤンネル番号アドレスCHNは、そ
のままアドレスレジスタ84がチヤンネル番号ア
ドレス指定部CHMに入力するが、相対アドレス
αはRAM39の絶対アドレスへの変換を受け
る。ここで、相対アドレスαは、最新の読み込み
データのアドレスを0とし、1、2、………、K
の順に旧データのチヤンネル内アドレスを指定す
る。RAM39のメモリアロケーシヨンは、例え
ば第7図のような配列になつており、チヤンネル
番号0からチヤンネル番号Nについて、0からK
まで(K+1)回のスキヤンにもとづくデータを
格納することができる。既に述べたように、デー
タの書き込みアドレスは、第1アドレス変換回路
38が、受信データレジスタ31のチヤンネル番
号出力58と、プラス循環カウンタ34の計数値
にもとづいて指定する。いま、最新のデータの書
き込みアドレスが各チヤンネルで“k”とすれ
ば、そのチヤンネル番号アドレスは受信データレ
ジスタ31のチヤンネル番号出力58で決まる
が、各チヤンネル内のアドレス“k”はプラス循
環カウンタ34の計数値できまり、それらの関係
は第7図のようになる。ここで、各チヤンネルの
斜線で表示した領域がアドレス“k”であり、こ
の領域に最新データが格納される。(ただし、0
≦k≦Kである。)次に、CPU14のチヤンネル
内相対アドレスαについて説明すると、最新デー
タを読み出す場合には、相対アドレスα=0とす
ればよく、それよりi回前(ただし、0≦i≦
K)に格納した旧データを読み出す場合には、相
対アドレスα=iとなる。従つて、CPU14は
RAM39のどの絶対アドレスにi回前の旧デー
タが格納されているかを認識してデータの検索を
する必要はない。これは、特に最新データと旧デ
ータとを用いて演算処理を行うデジタル演算制御
装置、例えばデジタル保護継電装置にとつては極
めて有効なアドレス指定方式である。ここで、こ
のアドレス指定方式について、第8図のフローチ
ヤートを参照して説明する。まず、ステツプ85
では、CPU14からアドレス信号68が第2ア
ドレス変換回路41に送出される。そして、ステ
ツプ86において、アドレス信号68のチヤンネ
ル番号アドレスCHNは、そのままアドレスレジ
スタ84がチヤンネル番号アドレス指定部CHM
に入力するが、チヤンネル内相対アドレスαにつ
いては、減算器81がプラス循環カウンタ35の
計数値kとの減算A=k−αを行う。(ただし、
最新データの絶対アドレスを、第7図のように、
kとする。)次のステツプ87では、減算出力A
の正、負の判定を行うが、これは当該出力A≧0
の場合には、CPU14が読み出しを要求してい
るデータは、チヤンネル内絶対アドレス空間の0
からk(第7図参照)のいずれかにあるが、A<
0の場合にはそれが絶対アドレス空間で(k+
1)からKのいずれかに格納されているから、そ
れらの判別が必要となるからである。従つて、減
算出力AがA≧0の場合には、ステツプ89の動
作として、出力Aをセレクタ83を介してアドレ
スレジスタ84のチヤンネル内アドレス指定部
MSMに入力する。ところが、A<0となると、
減算器81の判定信号により、セレクタ83は加
算器82の出力を取り込むように切り換わる。そ
して、ステツプ88においては、加算器82が減
算出力Aと一定入力(K+1)を加算し、次のス
テツプ89で、その加算出力(A+K+1)をセ
レクタ83を介してアドレスレジスタ84のチヤ
ンネル内アドレス指定部MSMに入力する。すな
わち、加算出力(A+K+1)は、絶対アドレス
空間の(k+1)からKまでのいるれかのデータ
を指定することになる。このようにして、アドレ
スレジスタ84は、チヤンネル番号アドレスとチ
ヤンネル内アドレスとを得ることができ、アドレ
ス変換操作はステツプ90で完了する。このと
き、制御回路33は、すでにモードセレクタ37
に読み出しモード選択信号57を出力するととも
に、RAM39に読み出し信号66を出力してい
るから、第2アドレス変換回路41のアドレス信
号69はモードセレクタ37を介してRAM39
のアドレス信号61となり、そのアドレスで指定
されたチヤンネル番号のデータ70がRAM39
から読み出され、共通バス15を介してCPU1
4に転送される。
In this way, if there is an abnormality in channel matching and parity, the control circuit 33 will not output the write control signal 66 to the RAM 39, and therefore the RAM 39 will not output the write control signal 66.
37 aborts the write operation and the address signal 61
The old data in RAM 39 specified by is not updated and is saved as is. However, if there is no abnormality in channel verification and parity, the control circuit 33
In order to supply the write control signal 66 to the RAM 39, the RAM specified by the write address signal 61
The output data 62 of the reception data register 31 is sequentially written to the address 39 for each channel number 0 to N. Then, the reception data register 31 reads the final channel number N of one scan and its data 52, and the output data 62 is read into the RAM 3.
9, the control circuit 33 outputs the read mode selection signal 57 to the mode selector 37 to switch the mode selector 37 to the read side, and also notifies the CPU 14 that one scan cycle of data reading has been completed. An interrupt signal 67 is output to the common bus 15. In response to this interrupt signal 67, the CPU 14
Start reading data written to . Therefore, the CPU 14 first refers to the contents of the status register 36 to check whether the skin cycle that completed the data reading was normal. As a result, if there is no abnormality, as shown in FIG. Supplied to circuit 41. The second address conversion circuit 41 includes a subtracter 81, an adder 82, a selector 83, and an address register 84, as shown in FIG. The channel number address CHN of the address signal 68 is input as is to the channel number address designation unit CHM by the address register 84, but the relative address α is converted into an absolute address in the RAM 39. Here, the relative address α is 1, 2, ......, K, with the address of the latest read data being 0.
Specify the in-channel address of the old data in this order. The memory allocation of the RAM 39 is arranged as shown in FIG. 7, for example, with channel numbers 0 to N being arranged from 0 to K
Data based on up to (K+1) scans can be stored. As already mentioned, the data write address is specified by the first address conversion circuit 38 based on the channel number output 58 of the reception data register 31 and the count value of the positive circulation counter 34. Now, if the write address of the latest data is "k" for each channel, the channel number address is determined by the channel number output 58 of the reception data register 31, but the address "k" in each channel is determined by the positive circulation counter 34. The relationship between them is as shown in Figure 7. Here, the hatched area of each channel is address "k", and the latest data is stored in this area. (However, 0
≦k≦K. ) Next, to explain the relative address α in the channel of the CPU 14, when reading the latest data, it is sufficient to set the relative address α = 0, and it is sufficient to set the relative address α = 0.
When reading the old data stored in K), the relative address α=i. Therefore, CPU14 is
There is no need to recognize at which absolute address in the RAM 39 the old data from i times ago is stored and search for data. This is an extremely effective addressing method especially for digital arithmetic control devices that perform arithmetic processing using the latest data and old data, such as digital protective relay devices. This addressing method will now be explained with reference to the flowchart of FIG. First, step 85
Then, the address signal 68 is sent from the CPU 14 to the second address conversion circuit 41. Then, in step 86, the channel number address CHN of the address signal 68 is directly transferred to the channel number address designation section CHM of the address register 84.
However, regarding the intra-channel relative address α, the subtracter 81 performs subtraction A=k−α with the count value k of the positive circulation counter 35. (however,
Enter the absolute address of the latest data as shown in Figure 7.
Let it be k. ) In the next step 87, the subtraction output A
It is determined whether the output is positive or negative, but this means that the output A≧0
In this case, the data that the CPU 14 requests to read is located at 0 in the absolute address space within the channel.
to k (see Figure 7), but A<
0, it is an absolute address space (k+
1) to K, so it is necessary to determine them. Therefore, when the subtracted output A is A≧0, the output A is sent to the in-channel address designation section of the address register 84 via the selector 83 as the operation of step 89.
Enter into MSM. However, when A<0,
In response to the determination signal from the subtracter 81, the selector 83 is switched to receive the output from the adder 82. Then, in step 88, the adder 82 adds the subtracted output A and the constant input (K+1), and in the next step 89, the added output (A+K+1) is sent to the address register 84 to be designated as an in-channel address. Enter the section MSM. That is, the addition output (A+K+1) specifies any data from (k+1) to K in the absolute address space. In this way, address register 84 can obtain the channel number address and intra-channel address, and the address translation operation is completed at step 90. At this time, the control circuit 33 has already selected the mode selector 37.
Since the read mode selection signal 57 is output to the RAM 39 and the read signal 66 is output to the RAM 39, the address signal 69 of the second address conversion circuit 41 is sent to the RAM 39 via the mode selector 37.
address signal 61, and the data 70 of the channel number specified by that address is stored in the RAM 39.
is read from the CPU 1 via the common bus 15.
Transferred to 4.

このデータ格納装置29は、異常監視回路とし
て、チヤンネル照合回路35とパリテイチエツク
回路40の他に、時間監視タイマ42を備えてい
る。この時間監視タイマ42は、制御信号56に
よりデータ受信間隔を監視し、ハードウエアの異
常などに起因するデータサンプリング間隔の異常
やサンプリングの停止などを検出することができ
る。そして、異常を検出すると、時間監視タイマ
42は、時間監視異常信号71を状態レジスタ3
6の出力すると共に、CPU14に割り込み信号
72を出力する。CPU14は、データをRAM3
9から読み出す際には、必ず状態レジスタ36を
最初にチエツクする。時間監視異常の場合には、
CPU14は正常なデータ処理を続行できないの
で、障害を取り除くために割り込み処理を行う。
This data storage device 29 includes a time monitoring timer 42 in addition to a channel checking circuit 35 and a parity check circuit 40 as abnormality monitoring circuits. The time monitoring timer 42 monitors the data reception interval using the control signal 56, and can detect an abnormality in the data sampling interval due to a hardware abnormality or a stop in sampling. When an abnormality is detected, the time monitoring timer 42 transmits the time monitoring abnormality signal 71 to the status register 3.
6 and outputs an interrupt signal 72 to the CPU 14. CPU14 transfers data to RAM3
9, the status register 36 is always checked first. In case of time monitoring abnormality,
Since the CPU 14 cannot continue normal data processing, it performs interrupt processing to remove the failure.

上述したように、本発明によれば、共通バスを
介することなく入力データを順次所定領域に格納
できるので、CPUの処理効率が向上し、CPUの
データ処理にあたつて、RAMに書き込んだデー
タのリロケーシヨンをする必要がない。また、当
該データはCPUから相対アドレスで指定できる
ので、データの保存やアドレス計算などに無駄な
時間を費やすことがないので、本発明を適用した
システムの効率を向上させることができる。特
に、本発明のデータ格納装置は、電力系統から電
圧、電流などのアナログ量を一定間隔でサンプリ
ングし、量子化したデータを収集することによつ
て、保護リレー演算制御を実行するデジタル保護
継電装置のように、高速度で繰返し演算が必要な
デジタル演算制御装置に好適である。さらに、入
力データのチヤンネル照合、パリテイチエツクお
よび時間監視機能などを備えることにより、装置
の信頼性を一層高めることもできる。
As described above, according to the present invention, input data can be sequentially stored in a predetermined area without going through a common bus, so the processing efficiency of the CPU is improved, and when data is processed by the CPU, data written to RAM is There is no need for relocation. Further, since the data can be specified by a relative address from the CPU, no time is wasted in data storage or address calculation, so the efficiency of the system to which the present invention is applied can be improved. In particular, the data storage device of the present invention is a digital protection relay that performs protection relay calculation control by sampling analog quantities such as voltage and current from the power system at regular intervals and collecting quantized data. The present invention is suitable for digital arithmetic control devices that require repetitive calculations at high speeds, such as devices. Furthermore, by providing input data channel verification, parity check, time monitoring functions, etc., the reliability of the device can be further improved.

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

第1図は従来のデジタル演算制御装置のブロツ
ク図、第2図は本発明によるデータ格納装置を結
合したデジタル演算制御装置のブロツク図、第3
図は第2図のデータ格納装置の一構成例を示すブ
ロツク図、第4図A〜Cはその要部のタイミング
チヤート、第5図は上記データ格納装置の読み出
しのためのアドレス指定フオーマツト図、第6図
はデータ読み出し用の第2アドレス変換回路のブ
ロツク図、第7図はメモリアロケーシヨンを示す
ブロツク図、第8図は上述した第2アドレス変換
回路の動作フローチヤートである。 11……端末ユニツト、14……中央処理装置
(CPU)、15……共通バス、21……データ格
納装置、31……受信データレジスタ、32……
ストローブ信号検出回路、33……制御回路、3
4……第1アドレス変換回路、35……プラス循
環カウンタ、36……モードセレクタ、37……
ランダムアクセスメモリ(RAM)、38……第2
アドレス変換回路、39……チヤンネル照合回
路、40……パリテイチエツク回路、41……時
間監視タイマ、42……状態レジスタ、81……
減算器、82……加算器、83……セレクタ、8
4……アドレスレジスタ。
FIG. 1 is a block diagram of a conventional digital arithmetic and control device, FIG. 2 is a block diagram of a digital arithmetic and control device combined with a data storage device according to the present invention, and FIG.
The figure is a block diagram showing an example of the configuration of the data storage device shown in FIG. 2, FIGS. 4A to 4C are timing charts of the main parts thereof, and FIG. 5 is an addressing format diagram for reading out the data storage device. FIG. 6 is a block diagram of the second address conversion circuit for reading data, FIG. 7 is a block diagram showing memory allocation, and FIG. 8 is an operation flowchart of the second address conversion circuit described above. 11...Terminal unit, 14...Central processing unit (CPU), 15...Common bus, 21...Data storage device, 31...Reception data register, 32...
Strobe signal detection circuit, 33...control circuit, 3
4...First address conversion circuit, 35...Plus circulation counter, 36...Mode selector, 37...
Random access memory (RAM), 38...2nd
Address conversion circuit, 39... Channel verification circuit, 40... Parity check circuit, 41... Time monitoring timer, 42... Status register, 81...
Subtractor, 82... Adder, 83... Selector, 8
4...Address register.

Claims (1)

【特許請求の範囲】 1 モード制御信号にもとづいて書き込みおよび
読み出しモードが制御され、データ格納ロケーシ
ヨンがチヤンネル番号とチヤンネル内アドレスで
指定されるランダムアクセスメモリと、入力デー
タを前記チヤンネル番号毎に順次読み込む受信デ
ータレジスタと、この受信データレジスタによる
前記入力データの読み込みに同期して計数値が変
化し、その計数値が前記ランダムアクセスメモリ
の前記チヤンネル内アドレスに対応する循環カウ
ンタと、 前記受信データレジスタに順次読み込まれた入
力データをその都度前記ランダムアクセスメモリ
へ直接的に格納するために、 前記受信データレジスタのチヤンネル番号出力
と前記循環カウンタの前記計数値にもとづいて前
記ランダムアクセスメモリにおけるデータの書き
込みアドレス信号を生成する第1アドレス変換回
路と、中央処理装置から指定されるチヤンネル番
号とチヤンネル内相対アドレスにより前記ランダ
ムアクセスメモリに格納されているデータの読み
出しアドレス信号を生成する第2アドレス変換回
路と、アドレスモード選択信号に応じて前記書き
込みアドレス信号もしくは前記読み出しアドレス
信号を選択して前記ランダムアクセスメモリに供
給するモードセレクタと、前記ランダムアクセス
メモリの前記モード制御信号、前記受信データレ
ジスタによる前記入力データの読み込みを制御す
る信号、前記モードセレクタの前記アドレスモー
ド選択信号、および先頭チヤンネル番号から最終
チヤンネル番号までの入力データを前記受信デー
タレジスタを介して前記ランダムアクセスメモリ
へ格納する過程が完了したときに、前記中央処理
装置に通知する割り込み信号をそれぞれ出力する
制御回路とを具備したことを特徴とするデータ格
納装置。 2 前記循環カウンタの前記計数値と前記受信デ
ータレジスタの前記チヤンネル番号出力を照合す
るチヤンネル照合回路と、前記受信データレジス
タの前記データ出力のパリテイを検査するパリテ
イチエツク回路とを備え、前記チヤンネル照合回
路がチヤンネル照合異常信号を出力したとき、お
よび/または前記パリテイチエツク回路がパリテ
イ異常信号を出力したとき、前記制御回路が前記
ランダムアクセスメモリに書き込みのための前記
モード制御信号を出力しないことを特徴とする特
許請求範囲第1項記載のデータ格納装置。 3 前記受信データレジスタが前記入力データを
読み込む時間を監視し、異常があれば前記中央処
理装置に異常処理を要求する割り込み信号を出力
するタイマを備えたことを特徴とする特許請求範
囲第2項記載のデータ格納装置。 4 前記チヤンネル照合回路、前記パリテイチエ
ツク回路および前記タイマの出力をそれぞれ蓄積
する状態レジスタを備えたことを特徴とする特許
請求範囲第3項記載のデータ格納装置。 5 前記第2アドレス変換回路は、前記循環カウ
ンタの前記計数値から前記チヤンネル内相対アド
レスを減算する減算器と、前記循環カウンタの上
限計数値に1を加えた定数に前記減算器の出力を
加算する加算器と、前記減算器の減算結果が正の
場合には前記減算器の出力を選択し、また前記減
算結果が負の場合には前記加算器の出力を選択す
るセレクタと、前記中央処理装置から指定される
前記チヤンネル番号と前記セレクタの出力を貯え
るアドレスレジスタとを具備したことを特徴とす
る特許請求範囲第1項記載のデータ格納装置。
[Claims] 1. A random access memory in which write and read modes are controlled based on a mode control signal, and a data storage location is specified by a channel number and an address within the channel, and input data is sequentially read for each channel number. a reception data register, a circular counter whose count value changes in synchronization with reading of the input data by the reception data register, and whose count value corresponds to the address in the channel of the random access memory; In order to directly store sequentially read input data into the random access memory each time, the write address of the data in the random access memory is determined based on the channel number output of the receive data register and the count value of the circulation counter. a first address conversion circuit that generates a signal; a second address conversion circuit that generates a read address signal for data stored in the random access memory based on a channel number and an intra-channel relative address specified by a central processing unit; a mode selector that selects the write address signal or the read address signal according to an address mode selection signal and supplies it to the random access memory; a mode selector that selects the write address signal or the read address signal according to an address mode selection signal; When the process of storing a read control signal, the address mode selection signal of the mode selector, and input data from a first channel number to a last channel number into the random access memory via the received data register, A data storage device comprising: a control circuit that outputs an interrupt signal to notify the central processing unit. 2. A channel verification circuit that verifies the count value of the circulation counter and the channel number output of the reception data register, and a parity check circuit that verifies the parity of the data output of the reception data register, When the circuit outputs a channel verification abnormal signal and/or when the parity check circuit outputs a parity abnormal signal, the control circuit does not output the mode control signal for writing to the random access memory. A data storage device according to claim 1. 3. Claim 2, further comprising a timer that monitors the time during which the received data register reads the input data, and outputs an interrupt signal requesting abnormality processing to the central processing unit if an abnormality occurs. Data storage device as described. 4. The data storage device according to claim 3, further comprising a status register that stores the outputs of the channel check circuit, the parity check circuit, and the timer, respectively. 5. The second address conversion circuit includes a subtracter that subtracts the intra-channel relative address from the count value of the circulation counter, and adds the output of the subtracter to a constant obtained by adding 1 to the upper limit count value of the circulation counter. an adder that selects the output of the subtracter when the subtraction result of the subtracter is positive, and a selector that selects the output of the adder when the subtraction result is negative; 2. The data storage device according to claim 1, further comprising an address register that stores the channel number specified by the device and the output of the selector.
JP56052352A 1981-04-09 1981-04-09 Data storage device Granted JPS57168330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56052352A JPS57168330A (en) 1981-04-09 1981-04-09 Data storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56052352A JPS57168330A (en) 1981-04-09 1981-04-09 Data storage device

Publications (2)

Publication Number Publication Date
JPS57168330A JPS57168330A (en) 1982-10-16
JPS6156827B2 true JPS6156827B2 (en) 1986-12-04

Family

ID=12912411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56052352A Granted JPS57168330A (en) 1981-04-09 1981-04-09 Data storage device

Country Status (1)

Country Link
JP (1) JPS57168330A (en)

Also Published As

Publication number Publication date
JPS57168330A (en) 1982-10-16

Similar Documents

Publication Publication Date Title
JPS62120574A (en) Vector processor
JPS6156827B2 (en)
JP3145765B2 (en) Information processing device
US5497481A (en) Microcomputer computer system having plural programmable timers and preventing memory access operations from interfering with timer start requests
JP2888654B2 (en) Data input control method
JPS6343560Y2 (en)
JPS59160898A (en) Fault diagnostic device of storage device
JPS5532264A (en) Diagnostic system for memory unit
JPS59106060A (en) Data logging system
JPH0447855B2 (en)
JPS5848299A (en) Fault diagnosing device of memory
JPH05120205A (en) Processor system with address conversion device for dma transfer and dma transfer method
JPH05224968A (en) Data check system
JPS62114047A (en) Storage device
JPS6136641B2 (en)
JPH05120060A (en) Fault data extraction system
JPS6326744A (en) Memory bank switching circuit for microprocessor
JPH05233526A (en) DMA control system
JPH0610795B2 (en) Shared memory diagnostic method
JPH0291750A (en) Diagnostic system for bus stack fault
JPS6220041A (en) Asynchronous data transfer circuit for data processor
JPH0118460B2 (en)
JPH04364538A (en) Information processor
JPH06266629A (en) Bus converter
JPS6238741B2 (en)