JPH02193241A - Communication controller - Google Patents

Communication controller

Info

Publication number
JPH02193241A
JPH02193241A JP1013376A JP1337689A JPH02193241A JP H02193241 A JPH02193241 A JP H02193241A JP 1013376 A JP1013376 A JP 1013376A JP 1337689 A JP1337689 A JP 1337689A JP H02193241 A JPH02193241 A JP H02193241A
Authority
JP
Japan
Prior art keywords
stack
address
overflow
signal
request information
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
JP1013376A
Other languages
Japanese (ja)
Inventor
Shinichi Tamada
玉田 眞一
Kazuo Kobayashi
和夫 小林
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.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP1013376A priority Critical patent/JPH02193241A/en
Publication of JPH02193241A publication Critical patent/JPH02193241A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To prevent the extension of the processing time without having an influence upon a memory by using an idle area in a stack at the time of overflow of the stack where a processing request will be stored. CONSTITUTION:When a stack 3 where processing request information already designated by a central processing unit 1 will be stored overflows, a stack address control circuit 21 changes the overflow stack 3 by a stack pointer detection signal 17, an overflow address select signal 27, and an idle stack holding register 29 and outputs an overflow stack address signal 28 for the purpose of store processing request information in another idle stack 3, and this signal 28 passes a selector 22 to become the address of this stack 3. Then, the overflow stack 3 is changed to another idle stack 3. Thus, extension of the processing time is prevented without having an influence upon the memory.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は通信制御装置に利用する。本発明はファームウ
ェアおよび各制御部からの処理要求情報を一時スタック
したときのオーバフロー処理に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is applied to a communication control device. The present invention relates to overflow processing when processing request information from firmware and each control unit is temporarily stacked.

〔概要〕〔overview〕

本発明は中央処理装置に接続されファームウェアおよび
各制御部からの処理要求情報を一時スタックして処理を
行う通信制御装置において、処理要求情報を格納しよう
とするスタックがオ−バフローしたときにスタック内の
空エリアを使用できるようにすることにより、 メモリに影響を与えることなく処理時間の増大を防ぐよ
うにしたものである。
The present invention provides a communication control device that is connected to a central processing unit and performs processing by temporarily stacking firmware and processing request information from each control unit. By making the empty area available for use, the processing time is prevented from increasing without affecting memory.

〔従来の技術〕[Conventional technology]

従来、この種の通信制御装置はファームウェアおよび各
制御部からの処理要求情報を格納する複数のスタックと
スタック内の読出し、書込み位置を示すスタックポイン
タとで構成されていた。処理要求情報は処理レベルによ
って格納するスタックが決められており特定の処理レベ
ルに処理要求情報が集中してスタックがオーバフローし
た場合各制御部から新たに処理要求情報を入出力命令で
読み出しメモリに格納し、スタックされていた処理要求
情報が処理され、スタックオーバフローが解除されると
、メモリに格納していた処理要求情報を順次再スタック
していた。
Conventionally, this type of communication control device has been composed of a plurality of stacks that store firmware and processing request information from each control section, and a stack pointer that indicates a read/write position within the stack. The stack where processing request information is stored is determined by the processing level, and if processing request information is concentrated at a specific processing level and the stack overflows, new processing request information is read from each control unit using an input/output command and stored in memory. However, when the stacked processing request information is processed and the stack overflow is cleared, the processing request information stored in memory is sequentially re-stacked.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の通信制御装置は特定の処理レベルに処理
要求情報が集中してスタックがオーバフローした場合、
メモリに一時格納するためメモリのデータ格納エリアが
減少し、また処理要求情報の格納エリアをスタックから
メモリに一時移して再びスタックへ戻すための処理時間
が増大する欠点があった。
In the conventional communication control device described above, when processing request information is concentrated at a specific processing level and the stack overflows,
Since the data is temporarily stored in the memory, the data storage area of the memory is reduced, and the processing time required to temporarily move the storage area of the processing request information from the stack to the memory and then return it to the stack is disadvantageous.

本発明はこのような欠点を除去するもので、メモリに影
響を与えることなく処理時間の増大を防ぐことができる
装置を提供することを目的とする。
The present invention aims to eliminate such drawbacks and to provide a device that can prevent an increase in processing time without affecting memory.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、中央処理装置からの処理要求情報を格納する
複数のスタックと、このスタックにそれぞれ対応して設
けられたスタック制御手段とを備え、このスタック制御
手段には、それぞれスタックのポインタを制御するポイ
ンタ制御部およびオーバフローを検出するオーバフロー
検出部を含み、上記中央処理装置に接続され上記スタッ
クを共通に制御するスタック制御回路を備えた通信制御
装置において、上記スタック制御回路に、オーバフロー
したスタックのアドレスを保持するオーバフロー状態保
持レジスタと、空エリアのあるスタックのアドレスを保
持する空スタック保持レジスタと、上記中央処理装置か
らのスタックアドレス信号と上記オーバフロー状態保持
レジスタからのオーバフローしたスタックを示すアドレ
ス信号とを比較するアドレス比較器と、処理要求情報を
上記空スタック保持レジスタにより示される空エリアの
あるスタックへ格納する制御を行うスタックアドレス制
御回路とを備えたことを特徴とする。
The present invention includes a plurality of stacks that store processing request information from a central processing unit, and stack control means provided corresponding to each of the stacks, and each of the stack control means controls a pointer of the stack. In the communication control device, the stack control circuit includes a pointer control section for detecting an overflow, and an overflow detection section for detecting an overflow, and is connected to the central processing unit and commonly controls the stack. An overflow status holding register that holds an address, an empty stack holding register that holds the address of a stack with an empty area, a stack address signal from the central processing unit, and an address signal indicating an overflowed stack from the overflow status holding register. The present invention is characterized in that it comprises an address comparator that compares the processing request information and a stack address control circuit that controls the storage of processing request information into a stack with an empty area indicated by the empty stack holding register.

〔作用〕[Effect]

スタック制御手段のオーバフロー検出部によりスタック
のオーバフローが検出されると、スタック制御回路のオ
ーバフロー状態保持レジスタがオーバフローしたスタッ
クのアドレスを保持し、空スタック保持レジスタが空エ
リアのあるスタックのアドレスを保持する。一方アドレ
スデコーダが中央処理装置からのスタックアドレス信号
により指定されたスタックのアドレスデコード信号を出
カシ、アドレス比較器がこのアドレスデコード信号とオ
ーバフロー状態保持レジスタからのオーバフロー信号と
を比較し、スタックアドレス制御回路がアドレス比較器
、スタック制御手段および空スタック保持レジスタから
の出力により処理要求情報を空エリアのあるスタックへ
格納する制御を行い、セレクタがこの制御により処理要
求情報を空きスタックに格納する。
When a stack overflow is detected by the overflow detection section of the stack control means, the overflow status holding register of the stack control circuit holds the address of the overflowed stack, and the empty stack holding register holds the address of the stack with an empty area. . On the other hand, the address decoder outputs an address decode signal for the stack specified by the stack address signal from the central processing unit, and the address comparator compares this address decode signal with the overflow signal from the overflow status holding register to control the stack address. A circuit performs control to store processing request information in a stack with an empty area based on outputs from an address comparator, a stack control means, and an empty stack holding register, and a selector stores processing request information in an empty stack under this control.

これにより、処理要求情報を格納しようとするスタック
がオーバフローしたときに、メモリに影響を与えること
なく処理時間が増大することを防ぐことができる。
This makes it possible to prevent an increase in processing time without affecting memory when the stack in which processing request information is to be stored overflows.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。 Next, embodiments of the present invention will be described based on the drawings.

第1図は本発明実施例の構成を示すブロック図、第2図
は本発明実施例のスタック制御回路2の構成を示すブロ
ック図、第3図は本発明実施例のスタック制御手段の構
成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of the stack control circuit 2 of the embodiment of the present invention, and FIG. 3 is a block diagram showing the configuration of the stack control means of the embodiment of the present invention. FIG.

本発明実施例は、中央処理装置1からの処理要求情報を
格納する複数のスタック3と、このスタック3にそれぞ
れ対応して設けられたスタック制御手段4とを備え、こ
のスタック制御手段4には、それぞれスタック3のポイ
ンタを制御するボイン夕制御部5およびオーバフローを
検出するオーバフロー検出部6を含み、バス30に接続
された中央処理装置1に接続されスタック3を共通に制
御するスタック制御回路2を備え、このスタック制御回
路2には、オーバフローしたスタックのアドレスを保持
するオーバフロー状態保持レジスタ18と、空エリアの
あるスタック3のアドレスを保持する空スタック保持レ
ジスタ29と、中央処理装置lからのスタックアドレス
信号により指定されたスタックのアドレスデコード信号
を出力するアドレスデコーダ19と、このアドレスデコ
ード信号とオーバフロー状態保持レジスタ18からのオ
ーバフローしたスタック3を示すアドレス信号とを比較
するアドレス比較器20と、処理要求情報を空スタック
保持レジスタ29により示される空エリアのあるスタッ
ク3へ格納する制御を行うスタックアドレス制御回路2
1と、処理要求情報をスタックに格納するスタックアド
レス信号をセレクタするセレクタ22とを備える。バス
30にはメモリ31が接続され、複数のスタック3は回
線インタフェース31にそれぞれ接続される。
The embodiment of the present invention includes a plurality of stacks 3 for storing processing request information from the central processing unit 1, and stack control means 4 provided corresponding to each of the stacks 3. , a stack control circuit 2 that is connected to a central processing unit 1 connected to a bus 30 and that commonly controls the stack 3, including a pointer control unit 5 that controls the pointer of the stack 3, and an overflow detection unit 6 that detects overflow. This stack control circuit 2 includes an overflow status holding register 18 that holds the address of the stack that has overflowed, an empty stack holding register 29 that holds the address of the stack 3 that has an empty area, and a an address decoder 19 that outputs an address decode signal of the stack designated by the stack address signal; an address comparator 20 that compares this address decode signal with an address signal indicating the overflowed stack 3 from the overflow status holding register 18; A stack address control circuit 2 that controls storing processing request information in a stack 3 with an empty area indicated by an empty stack holding register 29
1, and a selector 22 that selects a stack address signal for storing processing request information in the stack. A memory 31 is connected to the bus 30, and the plurality of stacks 3 are connected to the line interface 31, respectively.

中央処理装置1からの処理要求情報はデータ・アドレス
信号11を介してスタック制御回路2に接続され、デー
タ・アドレス信号12によってスタック3に接続される
Processing request information from the central processing unit 1 is connected to the stack control circuit 2 via a data address signal 11 and to the stack 3 via a data address signal 12.

スタック制御回路2は、中央処理装置lとのインタフェ
ースとして機能し、スタック3のオーバフロー時の処理
要求情報を制御する。
The stack control circuit 2 functions as an interface with the central processing unit 1, and controls processing request information when the stack 3 overflows.

スタック制御手段4のポインタ制御部5は書込み、読出
しスタックポインタを制御し、オーバフロー検出部6は
、スタックのオーバフローを検出してオーバフロー検出
信号14により検出信号を第1図に示すスタック制御回
路2に通知する。また、第1図に示すスタック制御手段
信号13は第2図に示す書込みスタックポインタ信号1
5および読出しスタックポインタ信号16からなる。
The pointer control section 5 of the stack control means 4 controls the write and read stack pointers, and the overflow detection section 6 detects stack overflow and sends a detection signal to the stack control circuit 2 shown in FIG. 1 using an overflow detection signal 14. Notice. Further, the stack control means signal 13 shown in FIG. 1 is the write stack pointer signal 1 shown in FIG.
5 and a read stack pointer signal 16.

次に、このように構成された本発明実施例の動作につい
て説明する。第2図に示すスタック制御手段4のオーバ
フロー検出部6によりスタックのオーバフローが検出さ
れると、オーバフロー検出信号14により第1図に示す
スタック制御回路2に通知される。
Next, the operation of the embodiment of the present invention configured as described above will be explained. When an overflow of the stack is detected by the overflow detection section 6 of the stack control means 4 shown in FIG. 2, the stack control circuit 2 shown in FIG. 1 is notified by an overflow detection signal 14.

スタック制御回路2では第2図に示すオーバフロー検出
部6により検出されたオーバフロー信号14をオーバフ
ロー状態保持レジスタ18と空スタック保持レジスタ2
9に保持し、中央処理装置1からスタックアドレス信号
24により指定されたスタックのアドレスデコーダ19
からのアドレスデコード信号25と、スタックオーバフ
ロー信号26とがアドレス比較器20により比較され、
オーバフローの有無がオーバフローアドレスセレクト信
号27に示される。
In the stack control circuit 2, the overflow signal 14 detected by the overflow detection section 6 shown in FIG.
9, and the stack address decoder 19 is designated by the stack address signal 24 from the central processing unit 1.
The address decode signal 25 from and the stack overflow signal 26 are compared by the address comparator 20,
The overflow address select signal 27 indicates whether there is an overflow.

処理要求情報を格納するスタック3がオーバフローして
いない場合はスタックアドレス信号24がセレクタ22
を通ってスタック3のアドレスとなる。
If the stack 3 storing processing request information has not overflowed, the stack address signal 24 is sent to the selector 22.
It passes through and becomes the address of stack 3.

すでに中央処理装置1に指定されたスタック3がオーバ
フローしている場合は、アドレス比較器20から出力さ
れたオーバフローアドレスセレクト信号27と、第2図
に示すポインタ制御部5から出力されたスタックポイン
タ検出信号17とがスタックアドレス制御回路21へ通
知される。
If the stack 3 designated by the central processing unit 1 has already overflowed, the overflow address select signal 27 output from the address comparator 20 and the stack pointer detection output from the pointer control unit 5 shown in FIG. The signal 17 is notified to the stack address control circuit 21.

スタック制御回路21はスタックポインタ検出信号17
とオーバフローアドレスセレクト信号27、および空ス
タック保持レジスタ29により中央処理装置1から指定
されたオーバフローしているスタック3に変更して空い
ているスタック3に処理要求情報を格納するた砧にオー
バフロースタックアドレス信号28を出力し、セレクタ
22を通ってスタック3のアドレスとなる。これにより
オーバフローしているスタック3を、他の空いているス
タック3に変更することができる。
The stack control circuit 21 receives the stack pointer detection signal 17
The overflow stack address is changed to the overflowing stack 3 designated by the central processing unit 1 by the overflow address select signal 27 and the empty stack holding register 29, and the processing request information is stored in the empty stack 3. A signal 28 is outputted, passes through the selector 22, and becomes the address of the stack 3. This allows the overflowing stack 3 to be changed to another empty stack 3.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、処理要求情報を格
納しようとするスタックがオーバフローしたときにスタ
ック内の空エリアを使用することにより、メモリに影響
を与えることなく処理時間の増大を防ぐことができる効
果がある。
As explained above, according to the present invention, when the stack in which processing request information is to be stored overflows, an empty area in the stack is used to prevent an increase in processing time without affecting memory. There is an effect that can be done.

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

第1図は本発明実施例の構成を示すブロック図。 第2図は本発明実施例のスタック制御回路の構成を示す
ブロック図。 第3図は本発明実施例のスタック制御手段の構成を示す
ブロック図。 1・・・中央処理装置、2・・・スタック制御回路、3
・・・スタック、4・・・スタック制御手段、5・・・
ポインタ制御部、6・・・オーバフロー検出部、11.
12・・・データ・アドレス信号、13・・・スタック
制御手段信号、14・・・オーバフロー検出信号、15
・・・書込みスタックポインタ信号、16・・・読出し
スタックポインタ信号、17・・・スタックポインタ検
出信号、18・・・オーバフロー状態保持レジスタ、1
9・・・アドレスデコーダ、20・・・アドレス比較器
、21・・・スタックアドレス制御回路、22・・・セ
レクタ、23・・・処理要求情報、24・・・スタック
アドレス信号、25・・・アドレスデコード信号、26
・・・スタックオーバフロー信号、27・・・オーバフ
ローアドレスセレクト信号、28−・・オーバフロース
タックアドレス信号、29・・・空スタック保持レジス
タ、30・・・バス、31・・・メモリ、32・・・回
線インタフェース。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a block diagram showing the configuration of a stack control circuit according to an embodiment of the present invention. FIG. 3 is a block diagram showing the configuration of the stack control means according to the embodiment of the present invention. 1... Central processing unit, 2... Stack control circuit, 3
...Stack, 4...Stack control means, 5...
Pointer control unit, 6... overflow detection unit, 11.
12... Data address signal, 13... Stack control means signal, 14... Overflow detection signal, 15
...Write stack pointer signal, 16...Read stack pointer signal, 17...Stack pointer detection signal, 18...Overflow status holding register, 1
9... Address decoder, 20... Address comparator, 21... Stack address control circuit, 22... Selector, 23... Processing request information, 24... Stack address signal, 25... Address decode signal, 26
...Stack overflow signal, 27... Overflow address select signal, 28-... Overflow stack address signal, 29... Empty stack holding register, 30... Bus, 31... Memory, 32... line interface.

Claims (1)

【特許請求の範囲】 1、中央処理装置からの処理要求情報を格納する複数の
スタックと、このスタックにそれぞれ対応して設けられ
たスタック制御手段とを備え、このスタック制御手段に
は、それぞれスタックのポインタを制御するポインタ制
御部およびオーバフローを検出するオーバフロー検出部
を含み、上記中央処理装置に接続され上記スタックを共
通に制御するスタック制御回路を備えた 通信制御装置において、 上記スタック制御回路に、 オーバフローしたスタックのアドレスを保持するオーバ
フロー状態保持レジスタと、 空エリアのあるスタックのアドレスを保持する空スタッ
ク保持レジスタと、 上記中央処理装置からのスタックアドレス信号と上記オ
ーバフロー状態保持レジスタからのオーバフローしたス
タックを示すアドレス信号とを比較するアドレス比較器
と、 処理要求情報を上記空スタック保持レジスタにより示さ
れる空エリアのあるスタックへ格納する制御を行うスタ
ックアドレス制御回路と を備えたことを特徴とする通信制御装置。
[Scope of Claims] 1. A plurality of stacks for storing processing request information from a central processing unit, and stack control means provided corresponding to each of the stacks; A communication control device comprising a pointer control section for controlling a pointer and an overflow detection section for detecting an overflow, and a stack control circuit connected to the central processing unit and commonly controlling the stack, the stack control circuit comprising: An overflow status holding register that holds the address of an overflowed stack; an empty stack holding register that holds the address of a stack with an empty area; and a stack address signal from the central processing unit and the overflowed stack from the overflow status holding register. and a stack address control circuit that controls the storage of processing request information into a stack with an empty area indicated by the empty stack holding register. Control device.
JP1013376A 1989-01-23 1989-01-23 Communication controller Pending JPH02193241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1013376A JPH02193241A (en) 1989-01-23 1989-01-23 Communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1013376A JPH02193241A (en) 1989-01-23 1989-01-23 Communication controller

Publications (1)

Publication Number Publication Date
JPH02193241A true JPH02193241A (en) 1990-07-30

Family

ID=11831381

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1013376A Pending JPH02193241A (en) 1989-01-23 1989-01-23 Communication controller

Country Status (1)

Country Link
JP (1) JPH02193241A (en)

Similar Documents

Publication Publication Date Title
US4062059A (en) Information processing system
US4138732A (en) Data transfer control system
US4228500A (en) Command stacking apparatus for use in a memory controller
KR960005106B1 (en) Buffer managing system
JPH02193241A (en) Communication controller
JP2710151B2 (en) How the automation device works
EP0206335B1 (en) Interruption method for a data processing system
JPS6194142A (en) First-in/first-out type memory
US4263658A (en) Electronic apparatus capable of storing operational sequence
JPS6240736B2 (en)
JPS63180153A (en) Line-back control system for cache memory
JPH0355654A (en) Data transfer controller
JP2839545B2 (en) Data access method
JP2814849B2 (en) Communication control device
JPS60193044A (en) Data buffer device
JPH0486047A (en) Buffer circuit having preferential processing function
JPH0482077A (en) Fifo memory
JPH0736806A (en) Dma system
JPS59103155A (en) Data processing module
JPH07210446A (en) Priority discrimination device
JPH0535411A (en) Cache memory circuit
JPS63167949A (en) Data transfer system
JPH0521458B2 (en)
JPH04373058A (en) Buffer control system
JPS6222167A (en) Time-out detector