JPH02299345A - Line address scanning circuit - Google Patents
Line address scanning circuitInfo
- Publication number
- JPH02299345A JPH02299345A JP1119528A JP11952889A JPH02299345A JP H02299345 A JPH02299345 A JP H02299345A JP 1119528 A JP1119528 A JP 1119528A JP 11952889 A JP11952889 A JP 11952889A JP H02299345 A JPH02299345 A JP H02299345A
- Authority
- JP
- Japan
- Prior art keywords
- stack
- line
- counter
- write
- signal
- 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
Links
- 238000001514 detection method Methods 0.000 claims abstract description 6
- 238000004891 communication Methods 0.000 claims description 8
- 230000000873 masking effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 9
- 238000012544 monitoring process Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Communication Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、通信制御装置の回線アドレス走査回路に利用
する。特に、複数の回線を監視するための回線アドレス
走査回路に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention is applied to a line address scanning circuit of a communication control device. In particular, it relates to a line address scanning circuit for monitoring multiple lines.
本発明は回線アドレス走査回路において、回線割込みの
マスクフラグを設定時にスタック上記有効な回線アドレ
スを記憶しておくことにより、
割込みをマスクしている監視不要な回線アドレスを走査
監視することなく、回線処理効率を向上できるようにし
たものである。The present invention stores the valid line addresses listed above in the stack when setting the mask flag for line interrupts in the line address scanning circuit. This is designed to improve processing efficiency.
従来、回線アドレス走査回路は、すべての回線アドレス
を走査して監視するためのカウンタと回線ごとに割込み
信号をマスクする手段とから構成されていた。Conventionally, a line address scanning circuit has been comprised of a counter for scanning and monitoring all line addresses and means for masking interrupt signals for each line.
しかし、このような従来の回線アドレス走査回路では、
すべての回線アドレスについて回線からの割込みおよび
割込みのマスク指示を走査監視している。したがって、
割込みをマスクしている監視不要な回線のアドレスも走
査監視するために、回線からの割込みの受付処理に無駄
な時間を要する欠点があった。However, in such conventional line address scanning circuits,
All line addresses are scanned and monitored for interrupts from the line and interrupt mask instructions. therefore,
Since addresses of lines that do not need to be monitored and whose interrupts are masked are also scanned and monitored, there is a drawback that time is wasted in accepting interrupts from the lines.
本発明は上記の欠点を解決するもので、割込みのマスク
をしている監視不要な回線アドレスを走査監視すること
なく、回線処理効率を向上できる回線アドレス走査回路
を提供することを目的とする。The present invention solves the above-mentioned drawbacks, and aims to provide a line address scanning circuit that can improve line processing efficiency without scanning and monitoring line addresses that are masked for interrupts and do not need to be monitored.
本発明は、通信制御装置の指示に従って回線ごとに割込
マスク情報が設定されるフラグレジスタと、上記回線制
御装置の書込信号に基づき回線アドレスを順次に周期的
に出力するカウンタとを備えた回線アドレス走査回路に
おいて、上記フラグレジスタの内容および上記カウンタ
の出力に基づき割込マスク指示のない回線アドレスを検
出するセレクタと、上記カウンタの出力のうちの割込マ
スク指示のない回線アドレスを格納するスタックと、こ
のスタックに対しアクセス制御を行うスタック制御回路
とを備え、上記スタック制御回路は、上記書込信号に基
づき上記スタックに書込モード信号を与える手段および
上記カウンタの出力に基づき上記スタックに読出モード
信号を与える手段を含むリードライト制御回路と、この
書込モード信号および上記セレクタの検出出力に基づき
上記カウンタに同期して上記スタックに書込制御信号お
よび書込アドレスを与え、上記読出モード信号に基づき
周期的に読出アドレスを与えるカウント手段と、上記フ
ラグレジスタの内容に基づき割込マスク指示のない回線
アドレスの数を加算する加算器と、上記読出モード信号
に基づき上記カウント手段の出力とこの加算器の加算結
果とが一致したとき上記カウント手段をリセットする比
較器とを含むことを特徴とする。The present invention includes a flag register in which interrupt mask information is set for each line according to instructions from a communication control device, and a counter that sequentially and periodically outputs line addresses based on write signals from the line control device. In the line address scanning circuit, a selector detects a line address without an interrupt mask instruction based on the contents of the flag register and the output of the counter, and stores a line address without an interrupt mask instruction among the outputs of the counter. a stack; and a stack control circuit for controlling access to the stack; the stack control circuit includes means for providing a write mode signal to the stack based on the write signal; and means for providing a write mode signal to the stack based on the output of the counter. a read/write control circuit including means for providing a read mode signal; and a read/write control circuit that provides a write control signal and a write address to the stack in synchronization with the counter based on the write mode signal and the detection output of the selector; counting means for periodically providing a read address based on the signal; an adder for adding up the number of line addresses for which no interrupt masking instruction is given based on the contents of the flag register; and an output of the counting means based on the read mode signal. It is characterized by including a comparator that resets the counting means when the addition result of the adder matches.
また、本発明は、通信制御装置の指示に従って回線ごと
に割込マスク情報が設定されるフラグレジスタと、上記
回線制御装置の書込信号に基づき回線アドレスを順次に
周期的に出力するカウント手段とを備えた回線アドレス
走査回路にふいて、上記フラグレジスタの内容および上
記カウンタの出力に基づき割込マスク指示のない回線ア
ドレスを検出するセレクタと、上記カウンタの出力のう
ちの割込マスク指示のない回線アドレスを格納するスタ
ックと、このスタックに対しアクセス制御を行うスタッ
ク制御回路とを備え、上記スタック制御回路は、上記書
込信号に基づき上記スタックに書込モード信号を与える
手段および上記カウンタの出力に基づき上記スタックに
読出モード信号を与えるリードライト制御回路と、この
書込モード信号および上記セレクタの検出出力に基づき
上記カウンタに同期して上記スタックに書込制御信号お
よび書込アドレスを与え、上記読出モード信号に基づき
周期的に読出アドレスを与えるカウント手段と、上記書
込モードに基づいてこのカウント手段の出力の最大値を
保持する最大アドレス保持レジスタと、上記読出モード
信号に基づき上記カウント手段の出力とこの最大アドレ
ス保持レジスタの内容とが一致したときに上記カウント
手段をリセットする比較器とを含むことができる。The present invention also includes a flag register in which interrupt mask information is set for each line according to instructions from a communication control device, and a counting means for sequentially and periodically outputting line addresses based on a write signal from the line control device. a selector for detecting a line address without an interrupt mask instruction based on the contents of the flag register and the output of the counter; and a selector for detecting a line address without an interrupt mask instruction among the outputs of the counter. The stack control circuit includes a stack that stores a line address and a stack control circuit that controls access to the stack, and the stack control circuit includes means for applying a write mode signal to the stack based on the write signal and an output of the counter. a read/write control circuit that provides a read mode signal to the stack based on the above; a counting means for periodically giving a read address based on the read mode signal; a maximum address holding register for holding the maximum value of the output of the counting means based on the write mode; and a maximum address holding register for holding the maximum value of the output of the counting means based on the read mode signal; A comparator may be included for resetting the counting means when the output matches the contents of the maximum address holding register.
セレクタはフラグレジスタの内容およびカウンタの出力
に基づき割込マスク指示のない回線アドレスを検出する
。スタック制御回路のリードライト制御回路は通信制御
装置の書込信号に基づいてスタックに書込モード信号を
与えカウンタの1周後に読出モード信号を与える。スタ
ック制御回路のカウント手段はこの書込モード信号およ
びセレクタの検出出力に基づきカウンタに同期してスタ
ックに書込制御信号および書込アドレスを与え、カウン
タの出力する回線アドレスのうちの割込マスクのない回
線アドレスをスタックに格納する。The selector detects a line address without an interrupt mask instruction based on the contents of the flag register and the output of the counter. A read/write control circuit of the stack control circuit provides a write mode signal to the stack based on a write signal from the communication control device, and provides a read mode signal after one cycle of the counter. The counting means of the stack control circuit applies a write control signal and a write address to the stack in synchronization with the counter based on this write mode signal and the detection output of the selector, and selects the interrupt mask among the line addresses output by the counter. Store the missing line address on the stack.
また上記読出モード信号に基づき周期的に読出アドレス
をスタックに与えてその内容を読出す。スタック制御回
路の加算器はフラグレジスタの内容に基づいて割込マス
ク指示のない回線アドレスの数を加算する。スタック制
御回路の比較器は上記読出モード信号に基づきカウント
手段の出力とこの加算器の加算結果が一致したときカウ
ント手段をリセットする。以上の動作により割込のマス
クをしている監視不要な回線アドレスを走査監視するこ
となく、回線処理効率を向上できる。Also, based on the read mode signal, a read address is periodically given to the stack to read its contents. The adder in the stack control circuit adds up the number of line addresses without interrupt mask instructions based on the contents of the flag register. The comparator of the stack control circuit resets the counting means when the output of the counting means and the addition result of the adder match based on the read mode signal. By the above-described operation, line processing efficiency can be improved without scanning and monitoring line addresses that are masked for interrupts and which do not require monitoring.
また、本発明は加算器の代わりに最大アドレス保持レジ
スタをスタック制御回路に設け、上記書込モード信号に
基づいてカウント手段の出力の最大値を保持し、比較器
で読出モード信号に基づきカウント手段の出力とこの最
大アドレス保持レジスタの内容と一致したときカウント
手段をリセットすることができる。Furthermore, the present invention provides a maximum address holding register in the stack control circuit instead of the adder, holds the maximum value of the output of the counting means based on the write mode signal, and uses the comparator to hold the maximum value of the output of the counting means based on the read mode signal. When the output matches the contents of this maximum address holding register, the counting means can be reset.
〔実施例〕
本発明の実施例について図面を参照して説明する。第1
図は本発明一実施例回線アドレス走査回路のブロック構
成図である。第2図は本発明の回線アドレス走査回路の
スタック制御回路のブロック構成図である。第1図およ
び第2図において、回線アドレス走査回路は、通信制御
装置の指示に従って回線ごとに信号線S1を介して人力
する書込信号により割込マスク情報が信号線32.−3
21を介して設定されるフラグレジスタ10と、上記回
線制御装置の信号線S1を介して入力する書込信号に基
づき回線アドレスを順次に周期的に出力するカウンタと
して+1カウンタ20を備える。[Example] An example of the present invention will be described with reference to the drawings. 1st
The figure is a block diagram of a line address scanning circuit according to an embodiment of the present invention. FIG. 2 is a block diagram of the stack control circuit of the line address scanning circuit of the present invention. In FIGS. 1 and 2, the line address scanning circuit writes interrupt mask information to signal line 32.1 by a write signal manually applied via signal line S1 for each line according to instructions from a communication control device. -3
21, and a +1 counter 20 as a counter for sequentially and periodically outputting line addresses based on a write signal input via signal line S1 of the line control device.
ここで本発明の特徴とするところは、フラグレジスタ1
0の内容を信号線S3.−33.を介して人力し、また
カウンタ20の出力を信号線S4を介して人力して割込
マスク指示のない回線アドレスを検出するセレクタ30
と、+1カウンタ20の出力のうちの割込マスク指示の
ない回線アドレスを信号線S4を介して格納するスタッ
ク40と、スタック40に対しアクセス制御を行うスタ
ック制御回路50とを備え、スタック制御回路50は、
信号線s1を介して入力する上記書込信号に基づきスタ
ック50に信号線S7を介して書込モード信号を与え、
カウンタの1周後に読出モード信号を与えるリードライ
ト制御回路51と、信号線S7を介して人力するこの書
込モード1号および信号線S5を介して入力するセレク
タ30の検出出力に基づき+1カウンタ20に同期して
スタック40に信号線S8、S6を介してそれぞれ書込
制御信号および書込アドレスを与え、上記読出モード信
号に基づき信号線6を介して周期的に読出アドレスを与
えるカウント手段としてカウンタ制御回路52および+
1カウンタ53と、フラグレジスタ10の内容に基づき
信号線331〜S3hを介して入力する割込マスク指示
のない回線アドレスの数を加算する加算器54と、上記
読出モード信号に基づき+1カウンタ53の出力とこの
加算器の加算結果とが一致したとき+1カウンタ53を
リセットする比較器とを含むことにある。Here, the feature of the present invention is that the flag register 1
The contents of 0 are transferred to the signal line S3. -33. A selector 30 detects a line address without an interrupt mask instruction by manually inputting the output of the counter 20 via a signal line S4.
A stack control circuit 50 includes a stack 40 that stores a line address without an interrupt mask instruction among the outputs of the +1 counter 20 via a signal line S4, and a stack control circuit 50 that controls access to the stack 40. 50 is
Applying a write mode signal to the stack 50 via the signal line S7 based on the write signal input via the signal line s1,
+1 counter 20 based on the read/write control circuit 51 which gives a read mode signal after one cycle of the counter, this write mode No. 1 which is input manually via signal line S7, and the detection output of selector 30 which is input via signal line S5. A counter is used as a counting means to provide a write control signal and a write address to the stack 40 via signal lines S8 and S6, respectively, in synchronization with Control circuit 52 and +
1 counter 53, an adder 54 that adds up the number of line addresses without interrupt mask instructions input via signal lines 331 to S3h based on the contents of the flag register 10, and a +1 counter 53 based on the read mode signal. The comparator includes a comparator that resets the +1 counter 53 when the output matches the addition result of the adder.
このような構成の回線アドレス走査回路の動作について
説明する。第3図は本発明の回線アドレス走査回路の書
込モード時の各部分の信号のタイムチャートである。第
4図は本発明の回線アドレス走査回路の読出モード時の
各部分の信号のタイムチャートである。The operation of the line address scanning circuit having such a configuration will be explained. FIG. 3 is a time chart of signals of various parts in the write mode of the line address scanning circuit of the present invention. FIG. 4 is a time chart of signals of various parts in the read mode of the line address scanning circuit of the present invention.
第1図および第2図において、フラグレジスタ10は、
回線数nに対してnビットのフラグを持ち、信号線S1
からの書込信号により、信号線S2、〜32.により与
えられる割込マスクフラグをセットする。In FIGS. 1 and 2, the flag register 10 is
It has an n-bit flag for the number of lines n, and the signal line S1
The write signals from signal lines S2, to 32. Sets the interrupt mask flag given by .
+lカウンタ20はn進カウンタで、信号線S1からの
書込信号により「0」から起動する。+1カウンタ20
の値によりセレクタ30で割込マスクフラグを1ビット
選択する。The +l counter 20 is an n-ary counter, and is started from "0" by a write signal from the signal line S1. +1 counter 20
The selector 30 selects one bit of the interrupt mask flag according to the value of .
信号線S1から書込信号が与えられると、スタック制御
回路50は+1カウンタ20が1周する間スタック40
への書込モードとなり、セレクタ30より与えられた割
込マスクフラグが論理「0」であればスタック40へ+
1カウンタ20の値を書込み、論理「1」であれば書込
まない。When a write signal is applied from the signal line S1, the stack control circuit 50 controls the stack 40 while the +1 counter 20 makes one round.
If the interrupt mask flag given by the selector 30 is logic "0", the write mode is entered into the stack 40.
1 Write the value of the counter 20, and do not write if it is logical "1".
+lカウンタ20が1周した後に、スタック制御回路5
0は読出モードとなり、スタック40の内容をサイクリ
ックに読出し、回線アドレスとして通信制御装置に与え
る。After the +l counter 20 has completed one round, the stack control circuit 5
0 is the read mode, and the contents of the stack 40 are cyclically read out and given to the communication control device as a line address.
第2図において、リードライト制御回路51は、信号線
S1から書込信号が与えられると、+1カウンタ20が
1周する間書込モード信号を出力する。In FIG. 2, when the read/write control circuit 51 receives a write signal from the signal line S1, it outputs a write mode signal while the +1 counter 20 completes one revolution.
+1カウンタ53は+1カウンタ20に同期しており、
スタック40のアドレスを与える。+1 counter 53 is synchronized with +1 counter 20,
Give the address of stack 40.
カウンタ制御回路52は、書込モードでは、割込マスク
フラグが論理「0」であればスタック40に+1カウン
タ20の値を書込み、+1カウンタ53を「+1」更新
し、論理「1」であれは何もしない。In the write mode, the counter control circuit 52 writes the value of the +1 counter 20 to the stack 40 if the interrupt mask flag is logic "0", updates the +1 counter 53 by "+1", and if the interrupt mask flag is logic "1" does nothing.
また、書込モードでなければ、+1カウンタ53を常時
「+1」する。Moreover, if it is not the write mode, the +1 counter 53 is always incremented by "+1".
加算器54は、フラグレジスタ10の出力33.〜33
、の内の論理「0」の数、すなわち、n(3++3□+
+3.、)
を算出する。Adder 54 receives output 33 . of flag register 10 . ~33
, i.e., n(3++3□+
+3. , ) is calculated.
比較器55は、書込モードでないときに、+1カウンタ
53の値と加算器54の値を比較し、一致すれば+1カ
ウンタ53をリセットする。Comparator 55 compares the value of +1 counter 53 and the value of adder 54 when not in write mode, and resets +1 counter 53 if they match.
第3図はスタック40への書込モード時の動作を示すタ
イムチャートであり、回線数nで、回線アドレス0.2
.3に割込マスクをセットした場合の例を示す。FIG. 3 is a time chart showing the operation in the write mode to the stack 40, where the number of lines is n and the line address is 0.2.
.. An example is shown in which the interrupt mask is set to 3.
信号線S 2 +”=32−より、割込マスクフラグと
してビット0.2.3を論理「1」にしたnビットの値
を与え、信号線S1より書込信号を与える。これにより
、フラグレジスタ10に割込マスクフラグの値を保持し
、リードライト制御回路51は、+1カウンタ20が1
周する間スタック40を書込モードとするための信号を
信号線S7に出力する。An n-bit value with bits 0.2.3 set to logic "1" is given as an interrupt mask flag from the signal line S 2 +''=32-, and a write signal is given from the signal line S1. As a result, the value of the interrupt mask flag is held in the flag register 10, and the read/write control circuit 51 determines that the +1 counter 20 is 1.
During the rotation, a signal for setting the stack 40 in write mode is output to the signal line S7.
信号線S4は+1カウンタ20の出力であり、セレクタ
30のセレクト人力となる。The signal line S4 is the output of the +1 counter 20 and serves as the selection power of the selector 30.
信号線s3.−33..のうち、信号!1nIs41;
:ヨり選択された信号が、信号線S5に出力される。Signal line s3. -33. .. Out of the signal! 1nIs41;
:The selected signal is output to the signal line S5.
この値が論理「1」 (割込マスク指示)であれば、+
1カウンタ53の出力信号は変更せず、論理「0」であ
れば、信号線SIOにカウンタ更新信号を出力し、信号
線S6を「+1」更新する。したがって、信号線S6に
示すmはこの場合は
m=n−3
である。If this value is logic “1” (interrupt mask instruction), +
The output signal of the 1 counter 53 is not changed, and if the logic is "0", a counter update signal is output to the signal line SIO, and the signal line S6 is updated by "+1". Therefore, m shown in the signal line S6 is m=n-3 in this case.
信号線S8はスタック40への書込制御信号で、信号線
S5が論理「0」であれば信号線S6の値をスタック4
0へ書込む。信号線S11の出力値は、m=n−Σ3X
x+1
を与える。The signal line S8 is a write control signal to the stack 40, and if the signal line S5 is logic "0", the value of the signal line S6 is written to the stack 40.
Write to 0. The output value of the signal line S11 gives m=n-Σ3X x+1.
信号線S12の信号は+1カウンタ53がスタック40
の最大アドレスとなったときに出力するが、書込モード
では出力しない。The signal on the signal line S12 is +1 counter 53 and the stack 40
It is output when the maximum address is reached, but it is not output in write mode.
第4図はスタックメモリからの読出しモード時の動作を
示し、第3図と同じ条件での書込後の動作を示す例であ
る。FIG. 4 shows the operation in the read mode from the stack memory, and is an example showing the operation after writing under the same conditions as FIG. 3.
信号線S7は読出しモードであることを示す。Signal line S7 indicates read mode.
信号線S6はスタフ・り40のアドレスを示し、一定周
期でm進のカウントを行う。A signal line S6 indicates the address of the staff register 40, and performs m-adic counting at a constant period.
信号線312の信号は、加算器54の値と+1カウンタ
53の値とが一致したときに出力する。信号線S9はス
タック40の出力であり、書込モード時に記憶した有効
な回線アドレスを出力する。The signal on the signal line 312 is output when the value of the adder 54 and the value of the +1 counter 53 match. Signal line S9 is the output of stack 40 and outputs the valid line address stored during write mode.
第1図および第2図に示したブロック構成図は、本発明
の特徴を示すところのみを図示しており、実際には図示
していない回路および結線が存在する。The block configuration diagrams shown in FIGS. 1 and 2 only illustrate features of the present invention, and there are actually circuits and connections that are not shown.
第5図は本発明能の実施例回線アドレス走査回路のスタ
ック制御回路のブロック構成図である。FIG. 5 is a block diagram of a stack control circuit of a line address scanning circuit according to an embodiment of the present invention.
ここで、他の実施例の回線アドレス走査回路のブロック
構成図は第1図と同じである。Here, the block diagram of the line address scanning circuit of the other embodiment is the same as that in FIG.
第5図において、56は最大アドレス保持レジスタを示
す。最大アドレス保持レジスタ56は、信号線S7を介
してリードライト制御回路51に接続され、また信号線
SIOを介してカウンタ制御回路52に接続される。さ
らに、信号線S6を介して+1カウンタ53に接続され
る。リードライト制御回路51は、信号線S1から書込
信号が与えられると、+1カウンタ20が1周する間書
込モード信号を出力する。In FIG. 5, 56 indicates a maximum address holding register. The maximum address holding register 56 is connected to the read/write control circuit 51 via a signal line S7, and to the counter control circuit 52 via a signal line SIO. Further, it is connected to a +1 counter 53 via a signal line S6. When the read/write control circuit 51 receives a write signal from the signal line S1, it outputs a write mode signal while the +1 counter 20 makes one revolution.
+1カウンタ53は+1カウンタ20に同期しており、
スタック40のアドレスを与える。+1 counter 53 is synchronized with +1 counter 20,
Give the address of stack 40.
カウンタ制御回路52は、書込モードでは、割込マスク
フラグが論理「0」であればスタック40に+1カウン
タ20の値を書込み、最大アドレス保持レジスタ56に
+1カウンタ53の値を記憶し、+1カウンタ53を「
+1」更新し、論理「1」であれば何もしない。また、
書込モードでなければ、+1カウンタ53を常時「+1
」更新する。In the write mode, if the interrupt mask flag is logic "0", the counter control circuit 52 writes the value of the +1 counter 20 to the stack 40, stores the value of the +1 counter 53 in the maximum address holding register 56, and stores the value of the +1 counter 53 in the maximum address holding register 56. Counter 53 is
+1” is updated, and if the logic is “1”, nothing is done. Also,
If it is not the write mode, the +1 counter 53 is always set to “+1
"Update.
比較器55は、書込モードでないときに、+1カウンタ
53の値と最大アドレス保持レジスタ56の値を比較し
、一致すれば+1カウンタ53をリセットする。Comparator 55 compares the value of +1 counter 53 and the value of maximum address holding register 56 when not in write mode, and resets +1 counter 53 if they match.
第6図は本発明の他の実施例回線アドレス走査回路のス
タックメモリへの書込モード時の動作を示すタイムチャ
ートであり、回線数nで、回線アドレス0.2.3に割
込マスクをセットした場合の例を示す。FIG. 6 is a time chart showing the operation of the line address scanning circuit according to another embodiment of the present invention in the write mode to the stack memory. An example when set is shown below.
信号線S2.〜S20より、割込マスクフラグとしてビ
ット0.2.3を論理「1」にしたnビットの値を与え
、信号線S1より書込信号を与える。これにより、フラ
グレジスタ10に割込マスクフラグの値を保持し、リー
ドライト制御回路51は、+1カウンタ20が1周する
間スタックメモリを書込モードとするための信号を信号
線S7に出力する。Signal line S2. From ~S20, an n-bit value with bits 0.2.3 set to logic "1" is given as an interrupt mask flag, and a write signal is given from the signal line S1. As a result, the value of the interrupt mask flag is held in the flag register 10, and the read/write control circuit 51 outputs a signal to the signal line S7 to set the stack memory in write mode while the +1 counter 20 completes one revolution. .
信号線S4は+1カウンタ20の出力であり、セレクタ
30のセレクト人力となる。The signal line S4 is the output of the +1 counter 20 and serves as the selection power of the selector 30.
信号線S3+〜S3.、のうち、信号線S4により選択
された信号が、信号線S5に出力される。Signal lines S3+ to S3. , the signal selected by the signal line S4 is output to the signal line S5.
この値が論理「1」 (割込マスク指示)であれば、+
1カウンタ53の出力信号の信号線S6は変更せず、論
理「0」であれば、信号線S10にカウンタ更新信号を
出力し、信号線S6を「+1」更新する。したがって、
信号線S6に示すmはこの場合は、
m=n−3
である。If this value is logic “1” (interrupt mask instruction), +
The signal line S6 for the output signal of the 1 counter 53 is not changed, and if the logic is "0", a counter update signal is output to the signal line S10, and the signal line S6 is updated by "+1". therefore,
In this case, m shown in the signal line S6 is m=n-3.
信号線S8はスタック40への書込信号で、信号線S5
が論理「0」であれば信号線S6の値をスタック40へ
書込む。また、信号線310により最大アドレス保持レ
ジスタ56に信号線S6の値を保持し、スタック40の
最大アドレスとして信号線5llAに出力する。信号線
311の出力値は、書込モードの終了時点で固定する。The signal line S8 is a write signal to the stack 40, and the signal line S5
If is logical "0", the value of the signal line S6 is written to the stack 40. Further, the value of the signal line S6 is held in the maximum address holding register 56 by the signal line 310, and outputted to the signal line 5llA as the maximum address of the stack 40. The output value of the signal line 311 is fixed at the end of the write mode.
信号線S12の信号は、+1カウンタ53がスタック4
0の最大アドレスとなったときに出力するが、書込モー
ドでは出力しない。The signal on the signal line S12 indicates that the +1 counter 53 is connected to the stack 4.
It is output when the maximum address of 0 is reached, but it is not output in write mode.
本発明の他の実施例回線アドレス走査回路のスタックメ
モリからの読出モード時の動作を示すタイムチャートは
、第4図と同様である。A time chart showing the operation of the line address scanning circuit according to another embodiment of the present invention in the read mode from the stack memory is the same as that shown in FIG.
信号線S7は読出モードであることを示す。Signal line S7 indicates read mode.
信号線S6はスタック40のアドレスを示し、一定周期
でm進のカウントを行う。The signal line S6 indicates the address of the stack 40, and performs m-adic counting at a constant period.
信号線S12の信号は、最大アドレス保持レジスタ56
の値と+1カウンタ53の値が一致したときに出力する
。信号線S9はスタック40の出力であり、書込モード
時に記憶した有効な回線アドレスを出力する。The signal on the signal line S12 is transmitted to the maximum address holding register 56.
It is output when the value of +1 counter 53 matches the value of +1 counter 53. Signal line S9 is the output of stack 40 and outputs the valid line address stored during write mode.
第5図に示したブロック構成図は、本発明の特徴を示す
ところのみを図示しており、実際には図示していない回
路および結線が存在する。The block configuration diagram shown in FIG. 5 only shows features of the present invention, and there are actually circuits and connections that are not shown.
以上説明したように、本発明は、有効な回線アドレスの
みを走査監視し、回線処理効率を上げることができる優
れた効果がある。As described above, the present invention has the excellent effect of scanning and monitoring only valid line addresses and improving line processing efficiency.
第1図は本発明一実施例回線アドレス走査回路のブロッ
ク構成図。
第2図は本発明の回線アドレス走査回路のスタック制御
回路のブロック構成図。
第3図は本発明の回線アドレス走査回路のスタック書込
時の各信号のタイムチャート。
第4図は本発明の回線アドレス走査回路のスタック読出
時の各信号のタイムチャート。
第5図は本発明能の実施例回線アドレス走査回路のスタ
ック制御回路のブロック構成図。
第6図は本発明能の実施例回線アドレス走査回路のスタ
ック書込時の各信号のタイムチャート。
lO・・・フラグレジスタ、20.53・・・+1カウ
ンタ、30・・・セレクタ、40・・・スタック、50
・・・スタック制御回路、51・・・リードライト制御
回路、52・・・カウンタ制御回路、54・・・加算器
、55・・・比較器、56・・・最大アドレス保持レジ
スタ、81〜S12・・・信号線。FIG. 1 is a block diagram of a line address scanning circuit according to an embodiment of the present invention. FIG. 2 is a block diagram of the stack control circuit of the line address scanning circuit of the present invention. FIG. 3 is a time chart of each signal during stack writing in the line address scanning circuit of the present invention. FIG. 4 is a time chart of each signal during stack readout of the line address scanning circuit of the present invention. FIG. 5 is a block diagram of a stack control circuit of a line address scanning circuit according to an embodiment of the present invention. FIG. 6 is a time chart of each signal during stack writing in the line address scanning circuit according to the embodiment of the present invention. lO...Flag register, 20.53...+1 counter, 30...Selector, 40...Stack, 50
Stack control circuit, 51 Read/write control circuit, 52 Counter control circuit, 54 Adder, 55 Comparator, 56 Maximum address holding register, 81 to S12 ···Signal line.
Claims (1)
情報が設定されるフラグレジスタと、上記回線制御装置
の書込信号に基づき回線アドレスを順次に周期的に出力
するカウンタとを備えた回線アドレス走査回路において
、 上記フラグレジスタの内容および上記カウンタの出力に
基づき割込マスク指示のない回線アドレスを検出するセ
レクタと、上記カウンタの出力のうちの割込マスク指示
のない回線アドレスを格納するスタックと、このスタッ
クに対しアクセス制御を行うスタック制御回路とを備え
、 上記スタック制御回路は、上記書込信号に基づき上記ス
タックに書込モード信号を与える手段および上記カウン
タの出力に基づき上記スタックに読出モード信号を与え
る手段を含むリードライト制御回路と、この書込モード
信号および上記セレクタの検出出力に基づき上記カウン
タに同期して上記スタックに書込制御信号および書込ア
ドレスを与え、上記読出モード信号に基づき周期的に読
出アドレスを与えるカウント手段と、上記フラグレジス
タの内容に基づき割込マスク指示のない回線アドレスの
数を加算する加算器と、上記読出モード信号に基づき上
記カウント手段の出力とこの加算器の加算結果とが一致
したとき上記カウント手段をリセットする比較器とを含
む ことを特徴とする回線アドレス走査回路。 2、通信制御装置の指示に従って回線ごとに割込マスク
情報が設定されるフラグレジスタと、上記回線制御装置
の書込信号に基づき回線アドレスを順次に周期的に出力
するカウンタとを備えた回線アドレス走査回路において
、 上記フラグレジスタの内容および上記カウンタの出力に
基づき割込マスク指示のない回線アドレスを検出するセ
レクタと、上記カウンタの出力のうちの割込マスク指示
のない回線アドレスを格納するスタックと、このスタッ
クに対しアクセス制御を行うスタック制御回路とを備え
、 上記スタック制御回路は、上記書込信号に基づき上記ス
タックに書込モード信号を与える手段および上記カウン
タの出力に基づき上記スタックに読出モード信号を与え
る手段を含むリードライト制御回路と、この書込モード
信号および上記セレクタの検出出力に基づき上記カウン
タに同期して上記スタックに書込制御信号および書込ア
ドレスを与え、上記読出モード信号に基づき周期的に読
出アドレスを与えるカウント手段と、上記書込モードに
基づきこのカウント手段の出力の最大値を保持する最大
アドレス保持レジスタと、上記読出モード信号に基づき
上記カウント手段の出力とこの最大アドレス保持レジス
タの内容とが一致したときに上記カウント手段をリセッ
トする比較器とを含む ことを特徴とする回線アドレス走査回路。[Claims] 1. A flag register in which interrupt mask information is set for each line according to instructions from a communication control device, and a counter that sequentially and periodically outputs line addresses based on write signals from the line control device. a selector for detecting a line address without an interrupt mask instruction based on the contents of the flag register and the output of the counter, and a line address without an interrupt mask instruction among the outputs of the counter; The stack control circuit includes a stack for storing addresses and a stack control circuit for controlling access to the stack, and the stack control circuit includes a means for applying a write mode signal to the stack based on the write signal and an output of the counter. a read/write control circuit including means for applying a read mode signal to the stack based on the write mode signal; and a read/write control circuit that applies a write control signal and a write address to the stack in synchronization with the counter based on the write mode signal and the detection output of the selector. , a counting means for periodically providing a read address based on the read mode signal, an adder for adding up the number of line addresses for which there is no interrupt mask instruction based on the contents of the flag register, and a count means for adding the number of line addresses for which there is no interrupt mask instruction based on the contents of the flag register; A line address scanning circuit characterized in that it includes a comparator that resets the counting means when the output of the means and the addition result of the adder match. 2. A line address that includes a flag register in which interrupt mask information is set for each line according to instructions from the communication control device, and a counter that sequentially and periodically outputs the line address based on the write signal of the line control device. The scanning circuit includes a selector that detects a line address without an interrupt mask instruction based on the contents of the flag register and the output of the counter, and a stack that stores the line address without an interrupt mask instruction among the outputs of the counter. , a stack control circuit for controlling access to the stack, the stack control circuit providing a write mode signal to the stack based on the write signal and a read mode signal to the stack based on the output of the counter. A read/write control circuit including means for providing a signal; and a read/write control circuit that provides a write control signal and a write address to the stack in synchronization with the counter based on the write mode signal and the detection output of the selector; a maximum address holding register that holds the maximum value of the output of the counting means based on the write mode; and a maximum address holding register that holds the maximum value of the output of the counting means based on the read mode signal; A line address scanning circuit comprising: a comparator that resets the counting means when the contents of the holding register match.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1119528A JPH02299345A (en) | 1989-05-12 | 1989-05-12 | Line address scanning circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1119528A JPH02299345A (en) | 1989-05-12 | 1989-05-12 | Line address scanning circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02299345A true JPH02299345A (en) | 1990-12-11 |
Family
ID=14763519
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1119528A Pending JPH02299345A (en) | 1989-05-12 | 1989-05-12 | Line address scanning circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02299345A (en) |
-
1989
- 1989-05-12 JP JP1119528A patent/JPH02299345A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH01237864A (en) | Dma transfer controller | |
| JPS6155688B2 (en) | ||
| US5201058A (en) | Control system for transferring vector data without waiting for transfer end of the previous vector data | |
| JPH02299345A (en) | Line address scanning circuit | |
| JPH0478948A (en) | Dma controller | |
| JPS619766A (en) | Data transfer device | |
| JPH02127751A (en) | Misalignment processing circuit | |
| JPS6362083A (en) | Projection data generation method | |
| JPH01273132A (en) | Microprocessor | |
| JPH0120514B2 (en) | ||
| JP2699482B2 (en) | Data transfer control device | |
| JPS6230097Y2 (en) | ||
| JPS61198351A (en) | Direct memory access control circuit | |
| JP2599805B2 (en) | DMA controller | |
| JPS6362064A (en) | Bus converter | |
| JPH01316826A (en) | Register file address circuit | |
| JPS62165248A (en) | Memory access control system | |
| JPS6155137B2 (en) | ||
| JPH06243080A (en) | Data transfer circuit | |
| JPH03240172A (en) | Address computing part for image processor | |
| JPH0232485A (en) | Plotting control system | |
| JPS62229335A (en) | Address comparator | |
| JPH04245333A (en) | information processing equipment | |
| JPS63311568A (en) | Vector calculation mask controlling system | |
| JPH02105242A (en) | Memory clear circuit |